/* ============================================================
   FC Masters: the feed
   Built for thumbs and short attention. Home is a floodlit stage with the
   day's five strongest picks as balls; tap one and it opens like a status:
   one pick per screen, read in three seconds (who plays, the pick in plain
   words, how sure we are), moving on by itself. Tap for next, hold to pause. Colours come from the FC Masters logo: crown gold
   on black, floodlight blue second, green and red only for won and lost.
   Native scrolling and snapping; no libraries, so cheap phones keep up.
   ============================================================ */
:root {
  --bg: #07080c;
  --surface: #12141b;
  --surface-2: #1b1e27;
  --surface-3: #272b36;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f5f5f2;
  --text-2: #b8bcc6;
  --text-3: #8b909b;          /* >= 4.5:1 on --bg and --surface */

  --gold: #ffc91a;  --gold-ink: #1d1400;  --gold-soft: rgba(29, 20, 0, 0.14);
  --royal: #1b6fe8; --blue: #0a3f96;
  --silver: #d3d6dc;
  --win: #35d07f;  --loss: #ff5a4f;  --red: #ff4136;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --r: 24px;
  --r-sm: 16px;
  --page: 720px;
  --top: 60px;                 /* fixed header */
  --tab: 92px;                 /* floating tab bar zone on phones */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--font); font-size: 1rem; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
i { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.icon-sm { width: 1em; height: 1em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Everything set in the display face is condensed and heavy, like the logo. */
h1, h2, h3, .pick-say, .pick-name, .pick-v, .sure-num, .row-num, .score-line b, .result-score, .facts b,
.page-title, .section-title, .btn, .act, .chip, .cat-name, .hero-title, .ball-say, .ball-num, .price-chip b, .seg button, .tabbar a, .topnav a, 
.plan-price, .plan-mini b, .vip-code code, .vip-title, .tg-title, .tri-labels strong, .xg strong, .prob-num, .compare td, .card-names {
  font-family: var(--display); font-stretch: 75%; font-weight: 800; letter-spacing: 0.005em;
}

/* ---------------- Header ---------------- */
.top {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--top);
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: rgba(7, 8, 12, 0.94); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { display: block; height: 46px; width: auto; }
.topnav { display: flex; gap: 6px; }
.topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-size: 1.05rem; color: var(--text-2); background: var(--surface-2); }
.topnav a:hover { color: var(--text); background: var(--surface-3); }
.topnav a[aria-current="page"] { background: var(--gold); color: var(--gold-ink); }

/* ---------------- Page ---------------- */
.page { max-width: var(--page); margin: 0 auto; padding: calc(var(--top) + 16px) 16px 48px; }
.page-head { margin: 4px 0 16px; }
.page-title { font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 0.95; margin: 0; text-wrap: balance; }
.section-title { font-size: 1.7rem; line-height: 1; margin: 28px 0 12px; }
.page-sub { color: var(--text-2); margin: 8px 0 0; max-width: 60ch; }
.page-sub a { color: var(--gold); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.back-link:hover { color: var(--text); }
.fine { margin: 10px 0 0; font-size: 0.84rem; color: var(--text-3); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-size: 1.15rem; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease; }
.btn:active { transform: scale(0.97); }
.btn-solid, .btn-yellow, .btn-ink { background: var(--gold); color: var(--gold-ink); }
.btn-solid:hover, .btn-yellow:hover, .btn-ink:hover { background: #ffd84a; }
.btn-line, .btn-line-light { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-line:hover, .btn-line-light:hover { border-color: var(--text); }
.btn-wide { width: 100%; }
.share-btn.done { background: var(--win); border-color: var(--win); color: #04170c; }

/* ---------------- Crests ---------------- */
.crest { --h: 140; position: relative; flex: none; overflow: hidden; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.72rem; color: #fff; background: hsl(var(--h) 40% 32%); }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.crest-sm { width: 30px; height: 30px; font-size: 0.66rem; }
.crest-md { width: 46px; height: 46px; font-size: 0.85rem; }
.crest-xl { width: clamp(72px, min(25vw, 14vh), 116px); height: clamp(72px, min(25vw, 14vh), 116px); font-size: 1.6rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.crest-xl img, .crest-md img { padding: 6px; }

/* ---------------- Kick-off ---------------- */
.when { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.countdown { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--surface-3); color: var(--text); }
.countdown:empty { display: none; }
.countdown.soon { background: var(--text); color: var(--bg); }
.countdown.live { background: var(--red); color: #fff; }

/* ---------------- The pick (shared by feed, card and match page) ---------------- */
.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pick-league { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.pick-league span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-league img { width: 20px; height: 20px; object-fit: contain; flex: none; background: #fff; border-radius: 5px; padding: 1px; }
.pick-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; text-align: center; }
.pick-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.pick-name { font-size: clamp(1.15rem, 5.2vw, 1.5rem); line-height: 1.02; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.pick-v { align-self: center; padding-bottom: 28px; font-size: 1.3rem; color: var(--text-3); }
.pick-call { text-align: center; }
.pick-flag { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); font-size: 0.82rem; font-weight: 700; }
.is-banker .pick-flag { background: var(--gold); color: var(--gold-ink); }
.pick-say { margin: 0; font-size: clamp(2.3rem, 12.5vw, 4rem); line-height: 0.92; color: var(--gold); text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; }
.pick-say.is-long { font-size: clamp(1.8rem, 9vw, 3rem); }
.pick-slip { margin: 8px 0 0; font-size: 0.86rem; color: var(--text-3); }

.sure { display: flex; align-items: center; gap: 14px; }
.sure-num { flex: none; font-size: clamp(3rem, 15vw, 4.2rem); line-height: 0.8; font-variant-numeric: tabular-nums; }
.sure-num small { font-size: 0.45em; margin-left: 2px; }
.sure-side { flex: 1; display: grid; gap: 6px; min-width: 0; }
.sure-word { font-weight: 700; color: var(--text-2); }
.sure-bar { display: block; height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sure-bar i { display: block; height: 100%; width: var(--pct); border-radius: inherit; background: linear-gradient(90deg, var(--royal), var(--gold)); transform-origin: left; }
.pick .sure-bar i { transform: scaleX(0); transition: transform 0.7s var(--ease); }
.pick.is-seen .sure-bar i { transform: none; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: var(--r-sm); background: var(--surface-2); text-align: center; }
.facts b { font-size: 1.9rem; line-height: 1; color: var(--gold); }
.facts span { font-size: 0.8rem; line-height: 1.25; color: var(--text-2); }

/* big thumb buttons under a pick */
.pick-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.act { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; width: 100%; padding: 0 10px; border-radius: 20px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.2rem; text-decoration: none; cursor: pointer; list-style: none; transition: transform 0.1s ease, background-color 0.15s ease; }
.act::-webkit-details-marker { display: none; }
.act:active { transform: scale(0.96); }
.act .icon { width: 22px; height: 22px; }
.act-main { background: var(--gold); color: var(--gold-ink); }
.act-bet { background: var(--royal); color: #fff; }
.why[open] > .act-main { background: var(--text); }
.why-sheet {
  position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  max-height: 62%; overflow: auto; display: grid; gap: 12px; padding: 18px 16px 16px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7); animation: rise 0.22s var(--ease);
}
.why-sheet h3 { margin: 0; font-size: 1.5rem; line-height: 1; }
.why-sheet p { margin: 0; color: var(--text-2); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

/* ---------------- Home screen: the logo under the floodlights ---------------- */
.is-home .top { display: none; }                      /* on phones the big logo below is the header */
.is-home .page { padding-top: 10px; }
.hero { position: relative; isolation: isolate; margin: 0 -16px; padding: 4px 16px 26px; text-align: center; overflow: hidden; }
.hero-logo { display: block; width: min(74%, 330px); height: auto; margin: 0 auto 2px; animation: logo-in 0.7s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-26px) scale(0.86); } }
.hero-title { margin: 0; font-size: clamp(2.2rem, 10.5vw, 3.2rem); line-height: 0.95; text-wrap: balance; }
.hero-sub { margin: 6px auto 0; max-width: 34ch; color: var(--text-2); }
.hero-sub a, .hero-note a { color: var(--gold); font-weight: 700; }
.hero-note { margin: 22px auto 0; max-width: 34ch; padding: 16px; border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); }
.hero-more { display: grid; gap: 10px; max-width: 420px; margin: 22px auto 0; }
.hero-record { justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--win); font-weight: 700; text-decoration: none; }

/* the lights: two beams swaying from the top corners, gold sparks rising */
.lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beam { position: absolute; top: -8%; width: 78%; height: 86%; opacity: 0.5; transform-origin: 50% 0; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); will-change: transform; }
.beam-l { left: -34%; background: linear-gradient(rgba(27, 111, 232, 0.9), rgba(27, 111, 232, 0)); animation: sway-l 7s ease-in-out infinite alternate; }
.beam-r { right: -34%; background: linear-gradient(rgba(255, 201, 26, 0.75), rgba(255, 201, 26, 0)); animation: sway-r 8.5s ease-in-out infinite alternate; }
@keyframes sway-l { from { transform: rotate(-30deg); } to { transform: rotate(-12deg); } }
@keyframes sway-r { from { transform: rotate(30deg); } to { transform: rotate(13deg); } }
.sparks i { position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0; animation: spark 6s linear infinite; will-change: transform, opacity; }
.sparks i:nth-child(1) { left: 8%; animation-delay: 0s; }
.sparks i:nth-child(2) { left: 21%; animation-delay: 2.4s; animation-duration: 7.5s; width: 3px; height: 3px; }
.sparks i:nth-child(3) { left: 34%; animation-delay: 4.1s; animation-duration: 5.2s; }
.sparks i:nth-child(4) { left: 47%; animation-delay: 1.2s; animation-duration: 8s; width: 3px; height: 3px; }
.sparks i:nth-child(5) { left: 58%; animation-delay: 3.3s; }
.sparks i:nth-child(6) { left: 69%; animation-delay: 0.6s; animation-duration: 6.8s; width: 4px; height: 4px; }
.sparks i:nth-child(7) { left: 80%; animation-delay: 5s; animation-duration: 5.6s; }
.sparks i:nth-child(8) { left: 91%; animation-delay: 2s; animation-duration: 7.2s; width: 3px; height: 3px; }
.sparks i:nth-child(9) { left: 14%; animation-delay: 3.8s; animation-duration: 9s; background: #6fa8ff; }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translateY(-520px) translateX(18px); opacity: 0; } }

/* ---------------- Balls: a pick you can tap ---------------- */
.balls { list-style: none; margin: 22px auto 0; padding: 0; }
.balls-pyramid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; max-width: 420px; --ball: clamp(92px, 27vw, 116px); }
.balls-pyramid .is-big { grid-column: 1 / -1; --ball: clamp(128px, 38vw, 160px); }
.balls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 8px; max-width: 560px; --ball: clamp(86px, 25vw, 108px); }
.ball-slot { display: flex; justify-content: center; min-width: 0; animation: drop 0.75s cubic-bezier(0.3, 1.45, 0.5, 1) both; animation-delay: calc(0.25s + var(--i, 0) * 0.11s); }
@keyframes drop { from { opacity: 0; transform: translateY(-90px) scale(0.6); } 60% { opacity: 1; } }
.ball { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; max-width: 190px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ball-body { position: relative; width: var(--ball); height: var(--ball); margin-bottom: 8px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #2e3340, #14161d 68%); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55); animation: bob 3.6s ease-in-out infinite alternate; animation-delay: calc(1.1s + var(--i, 0) * 0.4s); transition: transform 0.12s ease; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.ball:active .ball-body { animation-play-state: paused; transform: scale(0.94); }
.ball:hover .ball-say { color: var(--gold); }
/* the banker ball calls for the first tap */
.ball.is-banker .ball-body::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: ping 2.4s ease-out infinite; animation-delay: 1.6s; }
.balls-grid .ball.is-banker .ball-body::after { display: none; }
@keyframes ping { 0% { transform: scale(0.94); opacity: 0.7; } 100% { transform: scale(1.22); opacity: 0; } }
.ball-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ball-ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: rgba(255, 255, 255, 0.12); }
.ring-fill { stroke: var(--royal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pct)); animation: ring 1.2s var(--ease) both; animation-delay: calc(0.6s + var(--i, 0) * 0.11s); }
.ball.is-banker .ring-fill { stroke: var(--gold); }
@keyframes ring { from { stroke-dashoffset: 100; } }
.ball-crests { position: absolute; inset: 15%; display: flex; align-items: center; justify-content: center; }
.ball-crests .crest { width: 54%; height: 54%; font-size: 0.7rem; }
.ball-crests .crest + .crest { margin-left: -12%; }
.ball-num { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--royal); color: #fff; font-size: 0.95rem; line-height: 1.25; white-space: nowrap; }
.ball-num small { font-size: 0.72em; }
.ball.is-banker .ball-num { background: var(--gold); color: var(--gold-ink); }
.is-big .ball-num { font-size: 1.25rem; bottom: -12px; padding: 2px 12px; }
.ball-say { font-size: 1.12rem; line-height: 1.05; color: var(--text); text-wrap: balance; overflow-wrap: break-word; max-width: 100%; }
.is-big .ball-say { font-size: 1.5rem; color: var(--gold); }
.ball-teams { font-size: 0.78rem; line-height: 1.25; color: var(--text-3); max-width: 100%; overflow-wrap: break-word; }
.ball-teams i { color: var(--text-3); }

/* ---------------- The status player (opens when a ball is tapped) ---------------- */
.viewer { width: 100%; max-width: 480px; height: 100%; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow: hidden; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.88); }
.viewer[open] { animation: open-up 0.24s var(--ease); }
@keyframes open-up { from { opacity: 0; transform: scale(0.9); } }
@media (min-width: 520px) { .viewer { height: min(860px, 94vh); border-radius: 30px; border: 1px solid var(--line-2); } }
.stage { position: relative; height: 100%; }
.bars { position: absolute; z-index: 6; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.bars span { flex: 1; min-width: 2px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.24); overflow: hidden; }
.bars i { display: block; height: 100%; width: 0; background: #fff; }
.bars span.done i { width: 100%; }
.bars span.active i { animation: status-fill var(--status-ms, 7000ms) linear forwards; }
.stage.is-paused .bars span.active i { animation-play-state: paused; }
@keyframes status-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .bars span.active i { width: 100%; } }
.viewer-close { position: absolute; z-index: 7; top: calc(22px + env(safe-area-inset-top, 0px)); right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.viewer-close .icon { width: 22px; height: 22px; }

.feed { position: relative; height: 100%; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pick {
  position: absolute; inset: 0; visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: calc(74px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(120% 55% at 50% 0%, hsl(var(--h, 215) 60% 26% / 0.75), transparent 72%), var(--bg);
}
.pick.is-banker { background: radial-gradient(120% 55% at 50% 0%, rgba(255, 201, 26, 0.3), transparent 72%), var(--bg); }
.pick.is-on { visibility: visible; animation: arrive 0.22s var(--ease); }
.pick.is-on.from-left { animation-name: arrive-back; }
@keyframes arrive { from { opacity: 0.4; transform: translateX(18px); } }
@keyframes arrive-back { from { opacity: 0.4; transform: translateX(-18px); } }
.pick-top { padding-right: 46px; }                 /* clear of the close button */
.card .pick-top, .verdict .pick-top { padding-right: 0; }
.pick-ad, .pick-end { justify-content: center; align-items: stretch; text-align: center; --h: 215; cursor: auto; user-select: text; -webkit-user-select: text; }
.pick-ad .ad-card { background: transparent; border: 0; }
.pick-ad .ad-card img.ad-image, .pick-ad .ad-card video.ad-video { max-height: 62vh; object-fit: contain; }
.pick-end h2 { margin: 0; font-size: clamp(2.4rem, 12vw, 3.6rem); line-height: 0.95; }
.pick-end p { margin: 0; }
.pick-end a:not(.btn) { color: var(--gold); font-weight: 700; }
.end-icon { width: 64px; height: 64px; margin: 0 auto; color: var(--win); }
.pick-end .fine { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left; }
.why-sheet { cursor: auto; user-select: text; -webkit-user-select: text; }
.tap-hint { position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 0.84rem; font-weight: 600; color: var(--text-2); pointer-events: none; }
.tap-hint.is-done, .stage:has(details.why[open]) .tap-hint { display: none; }

/* ---------------- VIP ---------------- */
.vip-crown { display: block; width: clamp(120px, 38vw, 170px); height: auto; margin: 6px auto 4px; animation: logo-in 0.7s var(--ease) both, bob 3.6s ease-in-out 0.9s infinite alternate; }
.perks { list-style: none; margin: 20px auto 0; padding: 0; max-width: 420px; display: grid; gap: 8px; text-align: left; }
.perks li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(18, 20, 27, 0.86); }
.perks .icon { width: 26px; height: 26px; color: var(--gold); }
.perks span { display: grid; font-size: 0.9rem; line-height: 1.3; color: var(--text-2); }
.perks b { font-size: 1.02rem; color: var(--text); }
.price-chips { list-style: none; margin: 18px auto 0; padding: 0; max-width: 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.price-chip { display: grid; gap: 2px; height: 100%; padding: 12px 10px; border-radius: var(--r-sm); background: var(--surface); border: 2px solid var(--line-2); text-decoration: none; transition: border-color 0.15s ease; }
.price-chip:hover { border-color: var(--gold); }
.price-chip b { font-size: 1.5rem; line-height: 1.05; overflow-wrap: anywhere; }
.price-chip span { font-size: 0.82rem; color: var(--text-2); }
.price-chip.is-best { background: var(--royal); border-color: var(--royal); }
.price-chip.is-best span { color: rgba(255, 255, 255, 0.9); }
.have-code { max-width: 420px; margin: 20px auto 0; }
.have-code summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text-2); font-weight: 700; text-decoration: underline; cursor: pointer; list-style: none; }
.have-code summary::-webkit-details-marker { display: none; }
.have-code[open] summary { color: var(--text); }
.have-code .vip-form { margin-top: 8px; }
.vip-hero .vip-lock-form { margin-top: 24px; }

/* ---------------- Card (VIP board) and verdict (match page) ---------------- */
.card, .verdict { display: grid; gap: 16px; padding: 18px 16px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(120% 60% at 50% 0%, hsl(var(--h, 215) 60% 26% / 0.5), transparent 72%), var(--surface); }
.card.is-banker, .verdict.is-banker { background: radial-gradient(120% 60% at 50% 0%, rgba(255, 201, 26, 0.22), transparent 72%), var(--surface); border-color: rgba(255, 201, 26, 0.45); }
.card-teams { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: center; }
.card-names { font-size: 1.3rem; line-height: 1.05; overflow-wrap: break-word; }
.card-names i, .row-teams i, .result-teams i { color: var(--text-3); font-weight: 500; font-family: var(--font); font-stretch: normal; }
.card .pick-say { font-size: clamp(1.9rem, 9vw, 2.6rem); }
.card .sure-num { font-size: 3rem; }
.card-reason { margin: 0; color: var(--text-2); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1; min-height: 48px; font-size: 1.05rem; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.verdict { margin-bottom: 8px; }

/* ---------------- All: the list ---------------- */
.rows, .pick-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick-rows > li[hidden] { display: none; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); text-decoration: none; transition: background-color 0.15s ease; }
.row:hover { background: var(--surface-2); }
.row-crests { display: flex; }
.row-crests .crest + .crest { margin-left: -9px; box-shadow: 0 0 0 2px var(--surface); }
.row-main { display: grid; gap: 1px; min-width: 0; }
.row-teams { font-size: 0.88rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-say { font-weight: 800; font-size: 1.08rem; line-height: 1.2; overflow-wrap: break-word; }
.row-meta { font-size: 0.8rem; color: var(--text-3); }
.row-meta .when { font-size: 0.8rem; color: var(--text-3); white-space: nowrap; }
.row-meta .countdown { font-size: 0.72rem; padding: 1px 7px; }
.row-num { font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.row-num small { font-size: 0.5em; }
.row.is-banker .row-num { color: var(--gold); }

.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface-2); font-size: 1.05rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); background: var(--surface-3); }
.chip.active { background: var(--gold); color: var(--gold-ink); }
.results-count { margin: 0 0 12px; font-size: 0.9rem; color: var(--text-3); }
.filter-empty { text-align: center; padding: 30px 16px; border: 2px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.league-group { margin-bottom: 20px; }
.league-head { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-family: var(--font); font-stretch: normal; font-size: 0.95rem; font-weight: 700; letter-spacing: 0; color: var(--text-2); }
.league-head img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 5px; padding: 1px; }
.league-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-country { font-weight: 500; color: var(--text-3); }
.league-count { margin-left: auto; min-width: 28px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); font-size: 0.8rem; color: var(--text-2); }

/* ---------------- Category: one big tile per kind of pick ---------------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 620px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 138px; padding: 16px 14px 14px; border-radius: var(--r); background: var(--surface); border: 2px solid transparent; text-decoration: none; transition: border-color 0.15s ease, transform 0.1s ease; }
.cat:hover { border-color: var(--gold); }
.cat:active { transform: scale(0.97); }
.cat-name { font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 0.95; color: var(--gold); }
.cat-mean { font-size: 0.86rem; line-height: 1.3; color: var(--text-2); }
.cat-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 0.85rem; color: var(--text-2); }
.cat-foot b { font-size: 1.05rem; color: var(--text); }
.cat-best { color: var(--text-3); white-space: nowrap; }
.cat-rail { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail .chip { text-decoration: none; }

/* ---------------- Results: the scoreline, then a square per pick ---------------- */
.score { padding: 20px 16px; margin-bottom: 14px; border-radius: var(--r); background: var(--surface); }
.score-line { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.score-line b { font-size: clamp(4.5rem, 24vw, 7rem); line-height: 0.8; color: var(--win); font-variant-numeric: tabular-nums; }
.score-line span { font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: var(--text-2); }
.squares { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.sq { display: inline-block; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-3); }
.sq-won { background: var(--win); }
.sq-lost { background: var(--loss); }
.score-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; font-size: 0.85rem; color: var(--text-2); }
.score-key .sq { width: 14px; height: 14px; border-radius: 4px; }
.score-key .sq-lost { margin-left: 8px; }
.score-week { margin-left: auto; }
.score-week strong { color: var(--text); }
.result-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.result-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); }
.result-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.result-mark .icon { width: 20px; height: 20px; stroke-width: 3; }
.result-won .result-mark { background: var(--win); color: #04170c; }
.result-lost .result-mark { background: var(--loss); color: #230300; }
.result-match { display: grid; min-width: 0; }
.result-teams { font-size: 0.86rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-say { font-weight: 800; line-height: 1.2; overflow-wrap: break-word; }
.result-lost .result-say { text-decoration: line-through; color: var(--text-2); }
.result-score { font-size: 1.6rem; line-height: 1; }

/* ---------------- Match page: the numbers ---------------- */
.match-grid { display: grid; gap: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 8px; }
.panel-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--text-3); }
.tri-bar { display: flex; height: 14px; gap: 3px; border-radius: 999px; overflow: hidden; }
.tri-home { background: var(--gold); } .tri-draw { background: var(--surface-3); } .tri-away { background: var(--royal); }
.tri-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; font-size: 0.85rem; color: var(--text-2); }
.tri-labels span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: break-word; }
.tri-labels span:nth-child(2) { text-align: center; } .tri-labels span:nth-child(3) { text-align: right; }
.tri-labels strong { font-size: 2.2rem; line-height: 1; color: var(--text); }
.xg-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.xg { display: flex; flex-direction: column; font-size: 0.82rem; color: var(--text-2); min-width: 0; overflow-wrap: break-word; }
.xg:last-child { text-align: right; }
.xg strong { font-size: 2.6rem; line-height: 1; color: var(--text); }
.xg-label { font-size: 0.78rem; font-weight: 600; color: var(--text-3); }
.prob-row { display: grid; grid-template-columns: minmax(96px, 150px) 1fr 46px; align-items: center; gap: 10px; padding: 7px 0; }
.prob-name { font-weight: 600; font-size: 0.9rem; }
.prob-track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.prob-fill { display: block; height: 100%; width: var(--pct); border-radius: inherit; background: var(--text-3); }
.prob-num { font-size: 1.4rem; text-align: right; }
.prob-row.is-pick .prob-fill { background: var(--gold); }
.prob-row.is-pick .prob-name::after { content: " (our pick)"; font-weight: 500; color: var(--gold); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 9px 4px; }
.compare thead th { font-size: 0.8rem; font-weight: 600; color: var(--text-3); }
.compare thead th:first-child, .compare td:first-child { text-align: left; }
.compare thead th:last-child, .compare td:last-child { text-align: right; }
.compare tbody th { font-weight: 500; color: var(--text-3); text-align: center; font-size: 0.85rem; }
.compare td { font-size: 1.5rem; }
.compare tbody tr + tr { border-top: 1px solid var(--line); }
.match-disclaimer { color: var(--text-3); font-size: 0.85rem; max-width: 70ch; margin-top: 22px; }

/* ---------------- VIP / sign in ---------------- */
.vip-gate { padding: 30px 0 10px; }
.vip-turnstile { max-width: 440px; margin: 0 auto; padding: 30px 22px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.icon-badge { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); }
.icon-badge .icon { width: 28px; height: 28px; }
.vip-title { font-size: 3rem; line-height: 0.95; margin: 0 0 10px; }
.vip-sub { margin: 0 auto 20px; max-width: 34ch; color: var(--text-2); }
.tg-join { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.tg-title { margin: 0 0 6px; font-size: 1.5rem; }
.tg-join .vip-sub { margin-bottom: 14px; }
.vip-form { display: flex; flex-direction: column; gap: 10px; }
.code-input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--bg); text-align: center; font-size: 1.1rem; letter-spacing: 0.1em; }
.code-input:focus { border-color: var(--gold); outline: none; }
.form-error { color: #ff8a80; font-weight: 600; margin: 0 0 12px; }
.vip-board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.vip-lock-form { margin: 0; }
.vip-lock-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface-2); font-weight: 600; color: var(--text-2); cursor: pointer; }
.admin-login code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------------- Empty states ---------------- */
.empty, .empty-state { text-align: center; padding: 56px 12px; color: var(--text-2); }
.empty .record { color: var(--gold); font-weight: 700; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; display: block; color: var(--gold); }
.empty h1, .empty-state h1, .empty-state h2 { font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 0.95; color: var(--text); margin: 0 0 12px; text-wrap: balance; }
.empty p, .empty-state p { max-width: 42ch; margin: 0 auto 10px; }
.empty-state a, .empty a { color: var(--gold); }

/* ---------------- Ads ---------------- */
.ad-slot { margin: 18px 0; }
.ad-slot:empty { display: none; margin: 0; }
.ad-card { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ad-label { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.72rem; font-weight: 600; pointer-events: none; }
.ad-card a.ad-link { display: block; line-height: 0; }
.ad-card img.ad-image, .ad-card video.ad-video { display: block; width: 100%; max-height: 160px; object-fit: cover; background: #000; }
.ad-embed { max-height: 250px; overflow: hidden; display: flex; justify-content: center; padding: 6px; }
.ad-support-link { display: block; padding: 6px; text-align: center; font-size: 0.78rem; color: var(--text-3); text-decoration: none; }
.ad-slideshow { position: relative; }
.ad-slide { display: none; }
.ad-slide.active { display: block; }
.ad-anchor { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(7, 8, 12, 0.96); border-top: 1px solid var(--line); transform: translateY(110%); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.ad-anchor.show { transform: none; opacity: 1; pointer-events: auto; }
.ad-anchor .ad-card { width: 100%; max-width: 728px; }
.ad-anchor .ad-card img.ad-image, .ad-anchor .ad-card video.ad-video { max-height: 64px; }
.ad-anchor-close { position: absolute; top: -14px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--surface-3); color: #fff; font-weight: 800; cursor: pointer; }

/* ---------------- Finder (All picks) ---------------- */
.finder { position: sticky; top: var(--top); z-index: 20; margin: 0 -16px 14px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); cursor: text; }
.search:focus-within { box-shadow: 0 0 0 2px var(--gold); color: var(--text); }
.search .icon { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; font-size: 1rem; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.league-group li[hidden] { display: none; }
@media (min-width: 720px) { .finder { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* ---------------- Get VIP / payments ---------------- */
.plan-mini { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--text-2); }
.plan-mini b { font-size: 1.5rem; color: var(--text); }
.vip-or { margin: 18px 0 10px; color: var(--text-3); font-size: 0.9rem; }
.steps { margin: 0 0 6px; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 6px; }
.steps b { color: var(--text); }
.sub { font-size: 1rem; font-weight: 700; margin: 18px 0 10px; color: var(--text-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 16px;
  border-radius: var(--r); background: var(--surface); border: 2px solid var(--line-2);
  cursor: pointer; transition: border-color .18s, transform .12s;
}
.plan:hover { border-color: var(--text-3); }
.plan:active { transform: translateY(1px); }
.plan-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan:has(.plan-input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.plan:has(.plan-input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plan-best { background: var(--royal); border-color: var(--royal); }
.plan-flag { align-self: flex-start; margin-bottom: 6px; padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--text); font-size: 0.78rem; font-weight: 700; }
.plan-name { font-weight: 700; color: var(--text-2); }
.plan-best .plan-name, .plan-best .plan-days, .plan-best .plan-note { color: rgba(255, 255, 255, 0.88); }
.plan-price { font-size: 2rem; line-height: 1.05; overflow-wrap: anywhere; }
.plan-days { font-size: 0.88rem; color: var(--text-2); }
.plan-note { font-size: 0.85rem; color: var(--text-3); }
.plan-tick {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--gold-ink);
  opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s;
}
.plan-tick .icon { width: 18px; height: 18px; }
.plan:has(.plan-input:checked) .plan-tick { opacity: 1; transform: none; }
.plan-summary { margin: 0; color: var(--text-2); }
.plan-summary b { color: var(--text); }
.plan-summary a { margin-left: 6px; color: var(--gold); }
.plan-price { font-size: 2rem; line-height: 1; }
.plan-days { font-size: 0.85rem; color: var(--text-3); }
.pay-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1.1rem; }
.qr { width: 164px; height: 164px; margin: 0 auto 12px; padding: 8px; border-radius: 12px; background: #fff; }
.qr:empty { display: none; }
.qr img, .qr canvas { display: block; width: 100%; height: auto; }
.address { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.address code, .bank code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.85rem; overflow-wrap: anywhere; }
.copy-btn { min-height: 40px; padding: 0 14px; font-size: 0.85rem; }
.pay-warn { margin: 10px 0 0; font-size: 0.85rem; color: #ffb35c; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: center; }
.bank dt { color: var(--text-3); font-size: 0.88rem; }
.bank dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.pay-form { display: grid; gap: 14px; }
.pay-form fieldset { border: 0; margin: 0; padding: 0; }
.pay-form legend { font-weight: 700; margin-bottom: 8px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); font-weight: 600; cursor: pointer; }
.radio:has(input:checked) { background: var(--gold); color: var(--gold-ink); }
.radio input { accent-color: var(--gold-ink); }
.field { display: grid; gap: 6px; font-weight: 600; }
.field input { min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 500; }
.field input:focus { border-color: var(--gold); outline: none; }
.fine { margin: 6px 0 0; font-size: 0.82rem; color: var(--text-3); }
.vip-code { margin: 6px 0 16px; }
.vip-code code { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-size: 1.8rem; letter-spacing: 0.06em; }
.icon-badge-warn { background: var(--red); color: #fff; }
.status-facts { text-align: left; margin: 0 0 16px; }
.page-sub a { color: var(--gold); }

/* ---------------- Affiliate "bet this" ---------------- */
.btn-bet { width: 100%; background: var(--royal); color: #fff; font-size: 1.05rem; min-height: 50px; text-align: center; }
.btn-bet:hover { background: #3a86f5; }
.bet-note { display: block; margin-top: -8px; text-align: center; font-size: 0.75rem; color: var(--text-3); }

/* ---------------- Footer + floating tab bar ---------------- */
.foot { max-width: var(--page); margin: 0 auto; padding: 22px 16px 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot p { margin: 0; }
.foot a { color: var(--text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.foot-safe { display: flex; align-items: center; gap: 10px; max-width: 56ch; }
.age { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); color: #ff8a80; font-weight: 800; font-size: 0.78rem; }
.tabbar { display: none; }

@media (max-width: 899px) {
  .topnav { display: none; }
  .tabbar {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 6px;
    background: rgba(27, 30, 39, 0.97); border: 1px solid var(--line-2); border-radius: 26px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; min-width: 0; border-radius: 20px; text-decoration: none; font-size: 0.84rem; color: var(--text-2); }
  .tabbar .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { background: var(--gold); color: var(--gold-ink); }
  body.site { padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px)); }
  .ad-anchor { bottom: calc(var(--tab) - 8px + env(safe-area-inset-bottom, 0px)); background: transparent; border: 0; }
  body.site.has-anchor-ad { padding-bottom: calc(var(--tab) + 80px + env(safe-area-inset-bottom, 0px)); }
}

/* Short screens: keep one pick on one screen. */
@media (max-height: 640px) {
  .pick { gap: 6px; padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  .pick-slip, .tap-hint { display: none; }
  .crest-xl { width: 64px; height: 64px; }
  .act { min-height: 50px; }
  .why-sheet { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Desktop: a wider stage, the five balls in one row. */
@media (min-width: 900px) {
  :root { --tab: 0px; }
  .is-home .page { max-width: 980px; padding-top: var(--top); }
  .is-home .top { display: flex; }
  .hero { margin: 0; padding: 26px 24px 40px; border-radius: 0 0 36px 36px; }
  .hero-logo { width: 400px; }
  .balls-pyramid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; max-width: 900px; gap: 16px; --ball: 124px; }
  .balls-pyramid .is-big { grid-column: 3; grid-row: 1; --ball: 164px; }
  .balls-grid { max-width: 820px; --ball: 116px; }
  .hero-more { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .hero-record { grid-column: 1 / -1; }
}
