.prediction-detail-page { display: grid; gap: 1.25rem; }
.prediction-purchase-notice { padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: .75rem; background: var(--accent-soft); color: var(--text); font-size: .78rem; font-weight: 650; }
.prediction-back { display: inline-flex; width: fit-content; align-items: center; gap: .3rem; color: var(--text-muted); font-size: .8rem; font-weight: 650; }
.prediction-back:hover { color: var(--accent); }
.prediction-back svg { width: 1rem; height: 1rem; }
.prediction-detail-hero { position: relative; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.2rem); background: linear-gradient(125deg, var(--surface) 52%, var(--accent-soft)); }
.prediction-detail-badges, .prediction-event-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.prediction-tournament { padding: .26rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .68rem; font-weight: 700; }
.prediction-detail-heading { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-top: 1.4rem; }
.prediction-detail-heading h1 { max-width: 38rem; margin: .25rem 0 0; }
.prediction-hero-price { display: grid; flex: 0 0 auto; text-align: right; line-height: 1.15; }
.prediction-hero-price span { color: var(--text-muted); font-size: .72rem; }
.prediction-hero-price strong { margin-top: .25rem; color: var(--accent); font-size: clamp(1.6rem, 3vw, 2.15rem); font-variant-numeric: tabular-nums; }
.prediction-hero-free strong { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.prediction-event-meta { margin-top: 1.25rem; color: var(--text-muted); font-size: .78rem; }
.prediction-event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.prediction-event-meta svg { width: 1rem; height: 1rem; color: var(--accent); }
.prediction-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 29%); align-items: start; gap: 1.25rem; }
.prediction-detail-main { display: grid; gap: 1.25rem; }
.prediction-locked-section, .prediction-author, .prediction-checkout, .prediction-analysis { padding: clamp(1.2rem, 2.5vw, 1.65rem); }
.prediction-description { margin-top: 1.15rem; color: var(--text-muted); font-size: .85rem; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.prediction-block-heading, .prediction-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prediction-block-heading h2, .prediction-related-heading h2 { margin: .2rem 0 0; }
.prediction-block-heading > span { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .68rem; font-weight: 700; }
.prediction-block-heading > span svg { width: .9rem; height: .9rem; }
.prediction-block-heading > .prediction-access-open { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); color: var(--accent); }
.prediction-revealed-details { display: grid; grid-template-columns: minmax(0, 2fr) minmax(130px, 1fr); gap: .8rem; margin: 1.2rem 0 0; }
.prediction-revealed-details div { padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-hover); }
.prediction-revealed-details dt { color: var(--text-muted); font-size: .68rem; }
.prediction-revealed-details dd { margin: .3rem 0 0; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.prediction-revealed-details .prediction-single-score { grid-column: 2; }
.prediction-glass-lock { position: relative; display: grid; min-height: 230px; place-items: center; margin-top: 1.2rem; overflow: hidden; border: 1px solid var(--border); border-radius: .9rem; background: linear-gradient(135deg, var(--surface-hover), color-mix(in srgb, var(--accent-soft) 55%, var(--surface))); }
.prediction-glass-blur { position: absolute; inset: 1.15rem; display: grid; align-content: center; gap: .75rem; filter: blur(7px); opacity: .56; }
.prediction-glass-blur span { display: block; height: .85rem; border-radius: 999px; background: color-mix(in srgb, var(--text-muted) 22%, transparent); }
.prediction-glass-blur span:nth-child(1) { width: 45%; }
.prediction-glass-blur span:nth-child(2) { width: 82%; }
.prediction-glass-blur span:nth-child(3) { width: 68%; }
.prediction-glass-blur span:nth-child(4) { width: 55%; }
.prediction-lock-message { position: relative; z-index: 1; width: min(88%, 390px); padding: 1.15rem; border: 1px solid color-mix(in srgb, var(--border) 65%, transparent); border-radius: .9rem; background: color-mix(in srgb, var(--surface) 78%, transparent); box-shadow: 0 12px 32px var(--shadow); text-align: center; backdrop-filter: blur(14px); }
.prediction-lock-message svg { width: 1.75rem; height: 1.75rem; margin-bottom: .45rem; color: var(--accent); }
.prediction-lock-message strong { display: block; }
.prediction-lock-message p { max-width: 24rem; margin: .3rem auto 0; color: var(--text-muted); font-size: .78rem; line-height: 1.45; }
.prediction-express-preview { margin-top: 1.25rem; }
.prediction-express-preview h3 { margin: 0 0 .35rem; font-size: .95rem; }
.prediction-express-preview ol { margin: 0; padding-left: 1.4rem; }
.prediction-express-preview li { padding: .8rem .25rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.prediction-express-preview li:last-child { border-bottom: 0; }
.prediction-express-preview li::marker { color: var(--text-muted); font-size: .8rem; }
.prediction-express-preview strong { display: block; font-size: .86rem; line-height: 1.4; }
.prediction-express-preview small { display: block; margin-top: .25rem; color: var(--text-muted); font-size: .72rem; line-height: 1.5; }
.prediction-author-body { display: flex; align-items: center; gap: .9rem; margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--border); }
.prediction-ai-about-copy { display: grid; gap: .7rem; margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--border); }
.prediction-ai-about-copy p { margin: 0; color: var(--text-muted); font-size: .8rem; line-height: 1.65; }
.prediction-author-avatar { display: grid; flex: 0 0 3.25rem; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: .9rem; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; font-weight: 850; }
.prediction-author-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.prediction-author-name { font-size: .9rem; font-weight: 750; }
.prediction-author-name:hover { color: var(--accent); }
.prediction-author-body strong { font-size: .9rem; }
.prediction-author-body p { margin: .15rem 0 0; color: var(--text-muted); font-size: .75rem; line-height: 1.45; }
.prediction-author-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 1rem 0 0; }
.prediction-author-stats div { display: grid; padding: .65rem; border: 1px solid var(--border); border-radius: .65rem; text-align: center; }
.prediction-author-stats dt { color: var(--text-muted); font-size: .62rem; }
.prediction-author-stats dd { margin: .1rem 0 0; font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.prediction-checkout { position: sticky; top: 105px; }
.prediction-sale-status { display: inline-flex; padding: .32rem .55rem; border: 1px solid color-mix(in srgb, #d99820 55%, var(--border)); border-radius: 999px; color: #9a6410; font-size: .66rem; font-weight: 750; }
.prediction-free-status { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); color: var(--accent); }
.prediction-checkout h2 { margin: .9rem 0 0; color: var(--text); font-size: 2rem; font-variant-numeric: tabular-nums; }
.prediction-checkout > p { margin: .3rem 0 0; color: var(--text-muted); font-size: .75rem; line-height: 1.5; }
.prediction-buy-button { width: 100%; margin-top: 1rem; }
.prediction-owned-button { justify-content: center; cursor: default; background: var(--accent-soft); color: var(--accent); }
.prediction-checkout .prediction-auth-note { color: var(--accent); font-size: .67rem; text-align: center; }
.prediction-benefits { display: grid; gap: .6rem; margin: 1.25rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--border); list-style: none; }
.prediction-benefits li { position: relative; padding-left: 1.25rem; color: var(--text-muted); font-size: .72rem; line-height: 1.35; }
.prediction-benefits li::before { position: absolute; left: .15rem; color: var(--accent); content: '✓'; font-weight: 800; }
.prediction-checkout .prediction-checkout-note { display: flex; gap: .4rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .66rem; }
.prediction-checkout-note svg { width: .9rem; height: .9rem; margin-top: .1rem; }
.prediction-related { display: grid; gap: .85rem; margin-top: .25rem; }
.prediction-related-heading > a { color: var(--accent); font-size: .76rem; font-weight: 700; }
.prediction-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.prediction-related-empty { grid-column: 1 / -1; padding: 1.25rem; color: var(--text-muted); font-size: .8rem; text-align: center; box-shadow: none; }
html:has(.prediction-buy-dialog[open]) { overflow: hidden; }
.prediction-buy-dialog { position: fixed; inset: 0; width: min(620px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; margin: auto; overflow-y: auto; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px var(--shadow); }
.prediction-buy-dialog::backdrop { background: color-mix(in srgb, var(--text) 30%, transparent); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
:root[data-theme="dark"] .prediction-buy-dialog::backdrop { background: color-mix(in srgb, var(--background) 45%, transparent); }
.prediction-buy-card { position: relative; padding: clamp(1.4rem, 4vw, 2.25rem); }
.prediction-buy-close { position: absolute; top: .75rem; right: .75rem; border: 0; background: transparent; color: var(--text-muted); }
.prediction-buy-card h1 { margin: .45rem 0 .25rem; }
.prediction-buy-intro { margin: 0; color: var(--text-muted); font-size: .82rem; }
.prediction-buy-summary { margin-top: 1.4rem; overflow: hidden; border: 1px solid var(--border); border-radius: .9rem; }
.prediction-buy-event { display: grid; gap: .3rem; padding: 1.1rem; background: linear-gradient(125deg, var(--surface-hover), var(--accent-soft)); }
.prediction-buy-event span, .prediction-buy-event small { color: var(--text-muted); font-size: .7rem; }
.prediction-buy-event strong { font-size: 1rem; line-height: 1.4; }
.prediction-buy-totals { display: grid; gap: .7rem; margin: 0; padding: 1.1rem; }
.prediction-buy-totals div { display: flex; justify-content: space-between; gap: 1rem; }
.prediction-buy-totals dt { color: var(--text-muted); font-size: .76rem; }
.prediction-buy-totals dd { margin: 0; font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.prediction-buy-totals .prediction-buy-after { margin-top: .2rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.prediction-buy-after dd { color: var(--accent); }
.prediction-buy-error { margin: 1rem 0 0; padding: .75rem .85rem; border: 1px solid color-mix(in srgb, var(--danger, #d94b4b) 45%, var(--border)); border-radius: .65rem; background: color-mix(in srgb, var(--danger, #d94b4b) 8%, var(--surface)); color: var(--danger, #c43f3f); font-size: .76rem; }
.prediction-buy-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; margin-top: 1.2rem; }
.prediction-buy-confirm, .prediction-buy-cancel { min-height: 48px; justify-content: center; }
.prediction-buy-confirm:disabled { cursor: not-allowed; opacity: .5; }
.prediction-buy-topup { display: block; margin-top: .8rem; color: var(--accent); font-size: .78rem; font-weight: 700; text-align: center; }
.prediction-buy-note { margin: 1rem 0 0; color: var(--text-muted); font-size: .7rem; line-height: 1.5; text-align: center; }
@media (max-width: 900px) { .prediction-detail-layout { grid-template-columns: 1fr; } .prediction-checkout { position: static; grid-row: 1; } .prediction-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .prediction-detail-heading { align-items: start; flex-direction: column; } .prediction-hero-price { text-align: left; } .prediction-block-heading { align-items: start; flex-direction: column; } .prediction-related-grid, .prediction-revealed-details { grid-template-columns: 1fr; } .prediction-revealed-details .prediction-single-score { grid-column: auto; } .prediction-buy-form { grid-template-columns: 1fr; } }
.prediction-detail-hero { background-position: center; background-size: cover; }
.prediction-detail-hero.prediction-cover-forest { background: linear-gradient(135deg, #0b2630, #155a31); color: #fff; }
.prediction-detail-hero.prediction-cover-ocean { background: linear-gradient(135deg, #101e44, #2457d4); color: #fff; }
.prediction-detail-hero.prediction-cover-ember { background: linear-gradient(135deg, #302039, #a13c19); color: #fff; }
.prediction-detail-hero.prediction-cover-violet { background: linear-gradient(135deg, #161d3d, #6c3f8f); color: #fff; }
.prediction-detail-hero[class*='prediction-cover-'] .eyebrow,
.prediction-detail-hero[class*='prediction-cover-'] .prediction-event-meta,
.prediction-detail-hero[style*='background-image'] .eyebrow,
.prediction-detail-hero[style*='background-image'] .prediction-event-meta { color: #dcebe4; }

.prediction-has-cover { --prediction-cover-shade-start: rgba(5,16,22,.62); --prediction-cover-shade-end: rgba(5,16,22,.12); }
:root[data-theme='dark'] .prediction-has-cover { --prediction-cover-shade-start: rgba(5,16,22,.88); --prediction-cover-shade-end: rgba(5,16,22,.38); }
.prediction-has-cover .prediction-detail-heading h1 { color: #fff; text-shadow: 0 2px 8px #0008; }
.prediction-has-cover .prediction-hero-price span,
.prediction-has-cover .eyebrow,
.prediction-has-cover .prediction-event-meta { color: #edf5f1; text-shadow: 0 1px 5px #0009; }
.prediction-has-cover .prediction-event-meta svg { color: #6edba6; }

.prediction-detail-hero .prediction-hero-price strong { color: var(--accent); text-shadow: none; }
.prediction-detail-hero .prediction-hero-price,
.prediction-detail-hero .prediction-hero-price strong { background: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; }

.prediction-discount-form{display:grid;gap:10px;margin:18px 0}.prediction-discount-form select{max-width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;color:var(--text);background:var(--surface);font:inherit}
.prediction-kind-badge { padding: .35rem .62rem; border: 1px solid #ffffff55; border-radius: 999px; background: #08171355; color: #fff; font-size: .72rem; font-weight: 750; }
.prediction-revealed-details .prediction-express-legs { display: block; grid-column: 1 / -1; min-width: 0; padding: 1rem 1.15rem; }
.prediction-express-legs dd { margin-top: .65rem; }
.prediction-express-legs ol { display: grid; margin: 0; padding: 0; list-style: none; }
.prediction-express-legs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: .9rem 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent); border-radius: 0; background: transparent; }
.prediction-express-legs li:last-child { border-bottom: 0; }
.prediction-revealed-details .prediction-express-legs li > div { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.prediction-express-legs li strong, .prediction-express-legs li span, .prediction-express-legs li small { display: block; }
.prediction-express-legs li strong { font-size: .86rem; line-height: 1.35; }
.prediction-express-legs li span { margin-top: .3rem; color: var(--text); font-size: .76rem; font-weight: 700; line-height: 1.35; }
.prediction-express-legs li small { margin-top: .25rem; color: var(--text-muted); font-size: .68rem; font-weight: 500; line-height: 1.4; }
.prediction-express-leg-result { display: grid; min-width: 6.5rem; justify-items: end; gap: .4rem; }
.prediction-express-leg-result b { color: var(--accent); font-size: .92rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.prediction-express-legs .prediction-leg-score { margin: 0; color: var(--text-muted); font-size: .64rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prediction-express-legs .prediction-leg-status { display: inline-flex; width: fit-content; align-items: center; margin: 0; padding: .24rem .48rem; border-radius: 999px; font-size: .61rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.prediction-leg-status-pending { background: #f6ecd8; color: #8b6014 !important; }
.prediction-leg-status-won { background: var(--accent-soft); color: var(--accent) !important; }
.prediction-leg-status-lost { background: var(--danger-soft); color: var(--danger) !important; }
.prediction-leg-status-refund { background: var(--surface-hover); color: var(--text-muted) !important; }
:root[data-theme='dark'] .prediction-leg-status-pending { background: #473b22; color: #f0c86a !important; }
.prediction-revealed-details .prediction-express-total { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.15rem; }
.prediction-express-total dd { margin: 0; color: var(--accent); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .prediction-detail-layout, .prediction-revealed-details { grid-template-columns: minmax(0, 1fr); }
  .prediction-detail-heading, .prediction-block-heading { flex-wrap: wrap; gap: 12px; }
  .prediction-buy-form { grid-template-columns: minmax(0, 1fr); }
  .prediction-express-legs li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prediction-express-leg-result { min-width: 0; text-align: left; }
}

:root:not([data-theme='dark']) .prediction-detail-hero:is(.prediction-has-cover, [class*='prediction-cover-']) .prediction-hero-price strong {
  color: #fff; text-shadow: 0 2px 6px #000;
}
:root:not([data-theme='dark']) .prediction-detail-hero:is(.prediction-has-cover, [class*='prediction-cover-']) .prediction-hero-price {
  background: rgba(8, 22, 30, .82); padding: .6rem .85rem; border-radius: .65rem;
}

.prediction-buy-warning { grid-column: 1 / -1; display: grid; gap: .3rem; padding: .8rem; border: 1px solid #b77a16; border-radius: .65rem; background: color-mix(in srgb, #edb344 12%, var(--surface)); color: var(--text); font-size: .8rem; line-height: 1.45; }
.prediction-buy-warning[hidden] { display: none; }
