/* Components shared by every page (glass / motion language). Pick, chart, plan and settled-table styles live in
   ui-*.css, imported only where used. Home-only pieces (pill, section head, aurora): pages/home.css + home-below.css. */

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--fill { fill: currentColor; stroke: none; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--stone); cursor: pointer; transition: color var(--dur-1), background var(--dur-1); }
.icon-btn:hover { color: var(--ivory); background: rgba(255,255,255,.05); }

/* ---------- Buttons ---------- */
.btn { --btn-h: var(--tap); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h); padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-sm); font: 600 var(--fs-sm)/1 var(--font-ui); letter-spacing: .02em; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { --btn-h: 52px; padding: 0 28px; font-size: var(--fs-md); }
.btn--xl { --btn-h: 58px; padding: 0 34px; font-size: 1.0625rem; }
.btn--sm { --btn-h: 38px; padding: 0 16px; font-size: var(--fs-xs); }
.btn--pill { border-radius: var(--r-pill); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn--gold { background: var(--foil); color: var(--ink-0); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(90,60,20,.35), 0 14px 34px -14px rgba(226,194,122,.6); }
.btn--gold::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.62), transparent); transform: translateX(-130%) skewX(-18deg); pointer-events: none; }
.btn--gold:hover { color: var(--ink-0); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(90,60,20,.35), 0 20px 44px -14px rgba(226,194,122,.75); }
.btn--gold:hover::after { transform: translateX(230%) skewX(-18deg); transition: transform 900ms var(--ease); }
.btn--sheen::after { animation: sheen 5.5s var(--ease-io) 1.2s infinite; }
.btn--ghost { background: rgba(226,194,122,.03); color: var(--gold-1); border-color: var(--line-gold-2); }
.btn--ghost:hover { color: var(--gold-1); background: var(--gold-bg); border-color: rgba(226,194,122,.55); }
.btn--subtle { background: rgba(255,255,255,.045); color: var(--ivory); border-color: var(--line-2); }
.btn--subtle:hover { color: var(--ivory); background: rgba(255,255,255,.08); }
.btn--link { padding: 0 4px; min-height: var(--tap); background: none; color: var(--gold-2); border: 0; letter-spacing: .02em; }
.btn--link:hover { color: var(--gold-1); }
.btn--link .icon { transition: transform var(--dur-2) var(--ease); }
.btn--link:hover .icon { transform: translateX(3px); }

/* ---------- Chips & pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255,255,255,.025); color: var(--stone); font-size: var(--fs-sm); cursor: pointer; transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1); }
.chip:hover { color: var(--ivory); border-color: rgba(255,255,255,.2); }
.chip[aria-pressed="true"], .chip.is-active { color: var(--gold-1); border-color: rgba(226,194,122,.5); background: var(--gold-bg); box-shadow: inset 0 0 0 1px rgba(226,194,122,.12); }
.chip .icon { width: 16px; height: 16px; }
.chip__count { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
.chip[aria-pressed="true"] .chip__count { color: var(--gold-2); }
@media (pointer: coarse) { .chip { min-height: var(--tap); } }

/* ---------- Cards (glass) ---------- */
.card { position: relative; border: 1px solid var(--glass-line); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--shadow-1); }
.card--glass { background: var(--glass-strong); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); }
.card__body { padding: clamp(20px, 2.4vw, 28px); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.card__title { font: 700 var(--fs-lg)/1.3 var(--font-display); }
/* Gold-foil border via gradient + mask (signature) */
.card--foil { border-color: transparent; }
.card--foil::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--foil-soft); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
/* Corner brackets */
.card--deco::after { content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: .7; background: linear-gradient(var(--gold-3), var(--gold-3)) left top / 14px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) left top / 1px 14px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right top / 14px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right top / 1px 14px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) left bottom / 14px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) left bottom / 1px 14px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right bottom / 14px 1px no-repeat, linear-gradient(var(--gold-3), var(--gold-3)) right bottom / 1px 14px no-repeat; }
.card--hover { transition: transform var(--dur-3) var(--ease), border-color var(--dur-3), box-shadow var(--dur-3) var(--ease); }
.card--hover:hover { transform: translateY(-3px); border-color: var(--glass-line-gold); box-shadow: var(--shadow-2), var(--glow-hover); }

/* ---------- Dot grid (decorative) ---------- */
.dotgrid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--dots); background-size: 22px 22px; -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%); mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%); }

/* ---------- Check list ---------- */
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: var(--fs-sm); color: var(--stone); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .icon { width: 16px; height: 16px; color: var(--gold-2); stroke-width: 2; }

/* ---------- Stat tiles ---------- */
.stat { display: grid; gap: 6px; align-content: start; }
.stat__label { font: 600 var(--fs-xs)/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.stat__value { font: 700 var(--fs-stat)/1.05 var(--font-mono); letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; min-height: 1em; }
.stat__value small { font-size: .5em; margin-left: .08em; }
.stat__meta { font: 400 var(--fs-xs)/1.4 var(--font-mono); color: var(--text-3); }
.stat--sm .stat__value { font-size: var(--fs-stat-sm); }
.stat__value.pos, .stat__value.neg { background: none; -webkit-text-fill-color: currentColor; }
.stat__value.pos { color: var(--jade); }
.stat__value.neg { color: var(--garnet); }

/* ---------- Result badges (text + colour, never colour alone) ---------- */
.result { --c: var(--stone); --bg: rgba(255,255,255,.05); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 3px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent); color: var(--c); font: 600 var(--fs-xs)/1 var(--font-ui); white-space: nowrap; }
.result__k { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 5px; background: color-mix(in srgb, var(--c) 18%, transparent); font: 700 11px/1 var(--font-mono); }
.result--win { --c: var(--jade); --bg: var(--jade-bg); }
.result--half_win { --c: var(--jade); --bg: rgba(60,196,154,.06); }
/* loss text is a lighter garnet: #E5566A on its own tint is < 4.5:1 at this size (≈ 3.5:1 on the letter chip) */
.result--loss { --c: #F58A98; --bg: var(--garnet-bg); }
.result--half_loss { --c: #F58A98; --bg: rgba(229,86,106,.06); }
.result--push { --c: var(--amber); --bg: var(--amber-bg); }
.result--void { --c: var(--text-3); --bg: rgba(255,255,255,.04); }
.result--void .result__k { color: var(--stone); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--stone); font: 600 11px/1 var(--font-ui); letter-spacing: .06em; white-space: nowrap; }
.tag--gold { color: var(--gold-1); border-color: var(--line-gold-2); background: var(--gold-bg); }
.tag--demo { color: var(--amber); border-color: rgba(240,179,74,.45); background: var(--amber-bg); }
.tag--live { color: var(--sapphire); border-color: rgba(122,162,255,.4); background: var(--sapphire-bg); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(122,162,255,.18); }
.tag--corrected { color: var(--sapphire); border-color: rgba(122,162,255,.35); }
.tag--muted { color: var(--text-3); }

/* ---------- Confidence stars · odds pill · countdown ---------- */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-2); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .is-off { fill: none; stroke: var(--text-3); stroke-width: 1.4; }
.stars--na { gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.stars--na .icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.odds { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-gold); background: var(--gold-bg); color: var(--gold-1); font: 500 var(--fs-sm)/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.odds::before { content: "@"; color: var(--gold-3); font-size: .85em; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--stone); white-space: nowrap; }
.countdown .icon { width: 14px; height: 14px; color: var(--text-3); }
.countdown--soon, .countdown--soon .icon { color: var(--amber); }
.countdown--live { color: var(--sapphire); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th { padding: 0 14px 12px; border-bottom: 1px solid var(--line-gold); color: var(--text-3); font: 600 11px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ivory); }
.table tbody tr { transition: background var(--dur-1); }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .is-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .is-sub { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 767px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* visually hidden, still the column headers for AT */
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 0; border: 0; }
  .table--stack .is-num { text-align: right; }
}

/* ---------- SVG sprite holder (never display:none — gradients must stay resolvable) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Announcement bar ---------- */
.announce { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--announce-h); padding: 6px 56px; border-bottom: 1px solid var(--line-gold); background: linear-gradient(90deg, rgba(226,194,122,.04), rgba(226,194,122,.12) 50%, rgba(226,194,122,.04)); font-size: var(--fs-sm); color: var(--ivory); text-align: center; }
.announce--warning { background: linear-gradient(90deg, rgba(240,179,74,.05), rgba(240,179,74,.14), rgba(240,179,74,.05)); border-bottom-color: rgba(240,179,74,.25); }
.announce--info { background: linear-gradient(90deg, rgba(122,162,255,.03), rgba(122,162,255,.1), rgba(122,162,255,.03)); border-bottom-color: rgba(122,162,255,.18); }
.announce__body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.announce__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__text a { color: var(--gold-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226,194,122,.45); }
.announce__text a:focus-visible { outline-offset: -2px; } /* the text box clips overflow */
.announce__close { position: absolute; right: 6px; top: 50%; translate: 0 -50%; }
.announce__pager { display: inline-flex; gap: 2px; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
@media (max-width: 767px) { .announce { justify-content: flex-start; padding: 6px 48px 6px 16px; text-align: left; } .announce .tag { display: none; } }

/* ---------- Sticky glass header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-nav); padding: 10px var(--gutter) 0; pointer-events: none; }
.nav { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 20px; max-width: var(--container-wide); height: var(--nav-h); margin-inline: auto; padding: 0 10px 0 16px; border-radius: var(--r-lg); background: rgba(12,13,18,.58); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 24px 50px -30px rgba(0,0,0,.9); transition: height var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.nav::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px; background: var(--foil-hair); opacity: .5; pointer-events: none; }
.is-scrolled .nav { height: 58px; background: rgba(10,11,15,.82); box-shadow: inset 0 0 0 1px rgba(226,194,122,.14), 0 24px 50px -30px rgba(0,0,0,.95); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: var(--tap); color: var(--ivory); flex: none; }
.brand:hover { color: var(--ivory); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font: 600 1.125rem/1 var(--font-serif); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav__primary { margin-inline: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; color: var(--stone); font: 500 var(--fs-sm)/1 var(--font-ui); letter-spacing: .02em; cursor: pointer; transition: color var(--dur-1), background var(--dur-1); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ivory); background: rgba(255,255,255,.04); }
.nav__link[aria-current="page"] { color: var(--gold-1); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--foil); }
.nav__link .icon { transition: transform var(--dur-2) var(--ease); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__more, .nav__lang, .nav__member { position: relative; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__auth { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; }
.lang-btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; }
.lang-btn__code { font: 600 11px/1 var(--font-ui); letter-spacing: .12em; }
@media (max-width: 1023px) {
  .nav { gap: 8px; padding: 0 6px 0 14px; }
  .nav__primary, .nav__auth, .nav__member { display: none !important; }
  .nav__burger { display: inline-grid; }
}
@media (max-width: 420px) { .brand__name { font-size: 1rem; letter-spacing: .12em; } .lang-btn__code { display: none; } }

/* ---------- Popovers: language, member, mega menu ---------- */
.pop { position: absolute; top: calc(100% + 12px); right: 0; z-index: var(--z-dropdown); min-width: 232px; padding: 8px; border: 1px solid var(--line-gold); border-radius: var(--r-md); background: rgba(16,18,24,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-3); animation: pop-in var(--dur-2) var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.pop__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--stone); font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.pop__item:hover, .pop__item:focus-visible { background: rgba(255,255,255,.05); color: var(--ivory); }
.pop__item[aria-current="true"] { color: var(--gold-1); }
.pop__item[aria-current="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); }
.pop__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.mega { left: 50%; right: auto; translate: -50% 0; width: min(780px, calc(100vw - 48px)); padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 4px 16px; }
.mega__col { display: grid; align-content: start; gap: 2px; }
.mega__heading { padding: 6px 12px 8px; font: 600 11px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.mega__link { display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-md); }
.mega__link:hover { background: rgba(255,255,255,.04); }
.mega__ic { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-gold); background: var(--gold-bg); color: var(--gold-2); }
.mega__title { font-size: var(--fs-sm); font-weight: 500; color: var(--ivory); }
.mega__desc { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-3); }
.mega__feature { position: relative; display: grid; align-content: end; gap: 8px; padding: 20px; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(226,194,122,.16), transparent 60%), var(--ink-3); border: 1px solid var(--line-gold); min-height: 200px; }
.mega__feature-k { font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.mega__feature-t { font: 700 1.25rem/1.25 var(--font-display); color: var(--ivory); }
.mega__feature-d { font-size: var(--fs-xs); color: var(--stone); line-height: 1.6; }
.member-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 10px 0 5px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255,255,255,.03); color: var(--ivory); cursor: pointer; font-size: var(--fs-sm); }
.member-btn:hover { border-color: var(--line-gold-2); }
.member-btn__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2a2518, var(--ink-3)); box-shadow: inset 0 0 0 1px var(--line-gold-2); color: var(--gold-1); font: 700 .9rem/1 var(--font-ui); text-transform: uppercase; }
.avatar--lg { width: 44px; height: 44px; font-size: 1.1rem; }
.member-pop { width: 290px; }
.member-pop__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.member-pop__name { font-weight: 600; }
.member-pop__mail { font-size: var(--fs-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; max-width: 190px; white-space: nowrap; }
.member-pop__sub { margin: 0 4px 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-3); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--stone); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.member-pop__sub.is-active { border-color: var(--line-gold); color: var(--gold-1); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer__scrim { position: absolute; inset: 0; background: rgba(3,3,5,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; background: var(--ink-1); border-left: 1px solid var(--line-gold); box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform var(--dur-3) var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__member { display: flex; align-items: center; gap: 12px; margin: 16px 20px 0; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-gold); background: var(--ink-2); }
.drawer__member-sub { font-size: var(--fs-xs); color: var(--stone); }
.drawer__nav { padding: 8px 12px; display: grid; }
.drawer__group { padding: 18px 12px 6px; font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.drawer__link { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ivory); font-size: var(--fs-md); }
.drawer__link .icon { color: var(--gold-3); }
.drawer__link:hover, .drawer__link[aria-current="page"] { background: rgba(255,255,255,.04); color: var(--gold-1); }
.drawer__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold-2); }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; padding: 20px; border-top: 1px solid var(--line); }
.drawer__langs { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: var(--z-toast); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { --c: var(--gold-2); pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 2px solid var(--c); border-radius: var(--r-md); background: rgba(16,18,24,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-3); font-size: var(--fs-sm); animation: toast-in var(--dur-3) var(--ease); }
.toast .icon { color: var(--c); margin-top: 1px; }
.toast--ok { --c: var(--jade); }
.toast--err { --c: var(--garnet); }
.toast--info { --c: var(--sapphire); }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity var(--dur-2), transform var(--dur-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 767px) { .toasts { left: 16px; right: 16px; width: auto; } }

/* ---------- Skeletons ---------- */
.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.085) 45%, rgba(255,255,255,.04) 90%) 0 0 / 200% 100%, var(--ink-3); animation: skel 1.6s var(--ease-io) infinite; }
.skel--line { height: 12px; }
.skel--num { display: inline-block; width: 4.2ch; height: .78em; vertical-align: -.05em; border-radius: 8px; }
.skel--block { height: 100%; min-height: 120px; border-radius: var(--r-md); }
@keyframes skel { to { background-position: -200% 0, 0 0; } }

/* ---------- Locked content (frosted + gold lock + CTA) ---------- */
.locked { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; isolation: isolate; border: 1px solid var(--line-gold); background: var(--ink-3); }
.locked__decoy { display: flex; align-items: center; gap: 10px; padding: 16px; filter: blur(5px); opacity: .7; }
.locked__decoy i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(246,231,184,.5), rgba(226,194,122,.25)); }
.locked__decoy i:nth-child(1) { width: 38%; }
.locked__decoy i:nth-child(2) { width: 16%; }
.locked__decoy i:nth-child(3) { width: 12%; margin-left: auto; }
.locked__veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; background: linear-gradient(90deg, rgba(10,11,15,.35), rgba(10,11,15,.62)); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }
.lock { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--gold-1); background: radial-gradient(circle at 35% 30%, rgba(246,231,184,.28), rgba(138,106,46,.18)); box-shadow: inset 0 0 0 1px rgba(226,194,122,.55), 0 0 18px -4px rgba(226,194,122,.5); }
.lock .icon { width: 15px; height: 15px; }
.locked__cta { font: 600 var(--fs-sm)/1 var(--font-ui); letter-spacing: .04em; color: var(--gold-1); display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.locked:hover .locked__cta { color: #fff; }

/* ---------- Gate panel: members-only data (login → register + sign in · upgrade → plans) ---------- */
/* [data-gate="login|upgrade|''"] holds [data-gated] content + a direct-child .gate panel ('' = allowed) */
[data-gate="login"] [data-gated], [data-gate="upgrade"] [data-gated] { display: none !important; }
[data-gate]:not([data-gate="login"]):not([data-gate="upgrade"]) > .gate { display: none; }
[data-gate="login"] > .gate .gate__upgrade, [data-gate="upgrade"] > .gate .gate__login { display: none; }
.gate { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; min-height: 260px; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border: 1px solid var(--line-gold); border-radius: var(--r-lg); background: radial-gradient(90% 120% at 50% 0%, rgba(226,194,122,.1), transparent 62%), var(--glass-strong); text-align: center; }
.gate__art { position: absolute; inset: 0; z-index: -1; display: grid; align-content: center; gap: 14px; padding: 28px clamp(20px, 6vw, 80px); filter: blur(6px); opacity: .5; pointer-events: none; }
.gate__art i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(246,231,184,.22), rgba(226,194,122,.06)); }
.gate__art i:nth-child(2n) { width: 72%; }
.gate__art i:nth-child(3n) { width: 86%; justify-self: end; }
.gate__body { display: grid; justify-items: center; gap: 12px; max-width: 520px; }
.gate__lock { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold-1); background: radial-gradient(circle at 35% 30%, rgba(246,231,184,.3), rgba(138,106,46,.14)); box-shadow: inset 0 0 0 1px rgba(226,194,122,.55), 0 0 30px -6px rgba(226,194,122,.55); }
.gate__lock .icon { width: 22px; height: 22px; }
.gate__title { font: 700 var(--fs-xl)/1.35 var(--font-display); color: var(--ivory); }
.gate__text { font-size: var(--fs-sm); line-height: 1.7; color: var(--stone); }
.gate__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 6px; }
.gate__login, .gate__upgrade { display: contents; }
.gate--sm { min-height: 0; padding: 22px 18px; }
.gate--sm .gate__lock { width: 40px; height: 40px; }
.gate--sm .gate__title { font-size: var(--fs-md); }
.gate--line { place-items: stretch; min-height: 0; padding: 12px 14px; border-style: dashed; background: rgba(255,255,255,.015); text-align: left; }
.gate--line .gate__body { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 2px 12px; max-width: none; }
.gate--line .gate__lock { grid-row: span 2; width: 34px; height: 34px; box-shadow: inset 0 0 0 1px rgba(226,194,122,.4); }
.gate--line .gate__lock .icon { width: 15px; height: 15px; }
.gate--line .gate__title { font-size: var(--fs-sm); }
.gate--line .gate__text { font-size: var(--fs-xs); }
.gate--row { place-items: stretch; text-align: left; min-height: 0; padding: 16px 20px; }
.gate--row .gate__body { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: start; max-width: none; gap: 6px 16px; }
.gate--row .gate__lock { width: 40px; height: 40px; grid-row: span 2; }
.gate--row .gate__title { font-size: var(--fs-md); }
.gate--row .gate__cta { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 767px) {
  .gate--row .gate__body { grid-template-columns: auto minmax(0, 1fr); }
  .gate--row .gate__cta { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
}

/* ---------- Art-deco section divider ---------- */
.deco-rule { display: flex; align-items: center; gap: 14px; width: min(560px, 70%); margin-inline: auto; color: var(--gold-3); }
.deco-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,194,122,.45)); }
.deco-rule span:last-child { background: linear-gradient(90deg, rgba(226,194,122,.45), transparent); }
.deco-rule i { position: relative; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold-2); flex: none; }
.deco-rule i::after { content: ""; position: absolute; inset: 2px; background: var(--gold-2); }
.deco-rule--wide { width: min(var(--container), calc(100% - var(--gutter) * 2)); }

/* ---------- Empty state ---------- */
.empty { display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 5vw, 56px) 24px; text-align: center; border: 1px dashed var(--line-gold); border-radius: var(--r-lg); background: rgba(255,255,255,.012); }
.empty__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--line-gold-2); }
.empty__title { font: 700 var(--fs-lg)/1.35 var(--font-display); }
.empty__text { max-width: 46ch; color: var(--stone); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--s-16); padding: 0 0 calc(40px + var(--safe-b)); background: linear-gradient(180deg, transparent, rgba(5,5,7,.85) 30%); }
.site-footer > .deco-rule { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-bottom: clamp(48px, 6vw, 80px); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__tagline { margin-top: 16px; max-width: 34ch; color: var(--stone); font-size: var(--fs-sm); line-height: 1.8; }
.footer__cs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer__title { margin-bottom: 14px; font: 600 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.footer__links { list-style: none; display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--stone); font-size: var(--fs-sm); }
.footer__links a:hover { color: var(--gold-1); }
.footer__legal { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__disclaimer { font-size: var(--fs-xs); line-height: 1.8; color: var(--text-3); max-width: 92ch; }
.footer__rg { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--gold-2); font-size: var(--fs-sm); white-space: nowrap; }
.age-badge { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold-3); color: var(--gold-1); font: 700 1rem/1 var(--font-ui); letter-spacing: .02em; box-shadow: inset 0 0 0 3px var(--ink-1), inset 0 0 0 4px rgba(226,194,122,.35); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 24px; font-size: var(--fs-xs); color: var(--text-3); }
/* Licence credits of the imported history sources (Retrosheet's must appear prominently, Football Charts is CC BY).
   Each credit sits on its own line: one of them is a full sentence, and a wrapped half-sentence reads as broken. */
.footer__sources { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 8px 0 0; line-height: 1.6; }
.footer__sources-label { color: var(--text-2); }
.footer__sources-label::after { content: '：'; }
.footer__source { flex: 0 1 auto; max-width: 100%; }
.footer__source + .footer__source::before { content: '・'; margin-inline-end: 10px; color: var(--text-4, var(--text-3)); }
@media (max-width: 640px) { .footer__source { flex-basis: 100%; } .footer__source + .footer__source::before { content: none; margin: 0; } }
/* 「其他玩法」 under the match page's AI probability: analysis for the handicap and the total, with the de-vigged
   market probability beside ours so the reader can see which of the two is more confident (2026-10-21). */
/* The best quote across the books at publication, under a pick's detail rows (2026-10-22). Muted on purpose: the
   price the record is computed at is the one above it, this is the one a member can go and take. */
.pick__best { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--gold-1); }
/* The best quote leads on a pick card; the reference price (what EV, the stake and the record are computed at) sits
   next to it, smaller. 2026-10-22. */
.odds--best { color: var(--gold-1); }
.pick__book { font-size: var(--fs-xs); color: var(--gold-2, var(--gold-1)); align-self: center; }
.pick__ref { font-size: var(--fs-xs); }

.predm { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.predm__t { margin: 0 0 6px; font-size: var(--fs-xs); color: var(--text-3); }
.predm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.predm__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-sm); }
.predm__k { color: var(--text-2); }
.predm__v { display: inline-flex; align-items: baseline; gap: 8px; }
.predm__v small { font-size: var(--fs-xs); }

.motion-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: none; color: var(--stone); font: inherit; cursor: pointer; }
.motion-btn:hover, .motion-btn[aria-pressed="true"] { color: var(--gold-1); border-color: var(--line-gold-2); }
@media (prefers-reduced-motion: reduce) { .motion-btn { display: none; } }
.cs-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ivory); font-size: var(--fs-sm); }
.cs-pill .icon { color: var(--gold-2); width: 18px; height: 18px; }
.cs-pill:hover { border-color: var(--line-gold-2); color: var(--gold-1); }
@media (max-width: 1023px) { .footer__top { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__legal { grid-template-columns: auto 1fr; }
  .footer__rg { grid-column: 1 / -1; }
  .site-footer { padding-bottom: calc(var(--tabbar-h) + 40px + var(--safe-b)); }
}

/* ---------- Demo-data tag (in the nav bar; never floats over content) ---------- */
.nav__demo { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid rgba(240,179,74,.45); background: var(--amber-bg); color: var(--amber); font: 600 11px/1 var(--font-ui); letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 420px) { .nav__demo { padding: 0 8px; } .nav__demo-txt { display: none; } }
.demo-flag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(240,179,74,.2); flex: none; }

/* ---------- Customer-service button ---------- */
.cs-fab { position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: var(--z-fab); display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--foil); color: var(--ink-0); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 6px rgba(226,194,122,.08), 0 18px 40px -12px rgba(226,194,122,.55); cursor: pointer; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.cs-fab:hover { transform: translateY(-2px); }
.cs-fab[aria-expanded="true"] .icon { display: none; }
.cs-fab[aria-expanded="true"]::after { content: ""; width: 18px; height: 18px; background: linear-gradient(45deg, transparent 45%, var(--ink-0) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink-0) 45% 55%, transparent 55%); }
@media (max-width: 1023px) { .cs-fab { right: 14px; bottom: calc(var(--tabbar-h) + 14px + var(--safe-b)); width: 50px; height: 50px; } }

/* ---------- Mobile bottom tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); display: none; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(10,11,15,.88); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--foil-hair); opacity: .55; }
.tabbar__item { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--text-3); font-size: 11px; letter-spacing: .04em; }
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item[aria-current="page"] { color: var(--gold-1); }
.tabbar__item[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 2px; translate: -50% 0; border-radius: 0 0 2px 2px; background: var(--foil); }
@media (max-width: 1023px) { .tabbar { display: grid; } }

/* ---------- Kinds (backend-notes §17): pred sapphire dot · pick gold diamond · rec jade square · sim amber dashed ---------- */
.kind { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 22px; padding: 0 8px; border: 1px solid; border-radius: 6px; font: 600 11px/1 var(--font-ui); letter-spacing: .04em; white-space: nowrap; }
.kind::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; }
.kind--pred { color: var(--sapphire); border-color: rgba(122,162,255,.42); background: var(--sapphire-bg); }
.kind--pred::before { border-radius: 50%; }
.kind--pick { color: var(--gold-1); border-color: var(--line-gold-2); background: var(--gold-bg); }
.kind--pick::before { transform: rotate(45deg) scale(.9); }
.kind--rec { color: var(--jade); border-color: rgba(60,196,154,.42); background: var(--jade-bg); }
.kind--sim { color: var(--amber); border-color: rgba(240,179,74,.55); border-style: dashed; background: var(--amber-bg); }
