/* ===================== CLUTCH 3 · modern design system ===================== */
:root {
  --bg: #f5f6fa; --card: #ffffff; --ink: #0b1020; --ink2: #2a3350; --mute: #6b7390; --line: #eceef5; --line2: #dfe3ee;
  --blue: #3466ff; --blue-soft: #ebf0ff; --violet: #7a5cff; --violet-soft: #f0ecff;
  --pink: #ff3f7d; --pink-soft: #ffeaf1; --mint: #10b981; --mint-soft: #e3f8ef;
  --orange: #ff7a1a; --orange-soft: #fff1e5; --sun: #ffbf1f; --sun-soft: #fff7dc; --red: #f43f5e;
  --brand: linear-gradient(135deg, #3466ff 0%, #7a5cff 100%);
  --turf1: #3cba57; --turf2: #35ab4e; --turf-line: rgba(255,255,255,.5); --los: #ffe066;
  --r: 22px;
  --shadow-sm: 0 1px 2px rgba(11,16,32,.04), 0 2px 8px rgba(11,16,32,.04);
  --shadow: 0 1px 2px rgba(11,16,32,.04), 0 8px 28px rgba(11,16,32,.07);
  --shadow-lg: 0 4px 10px rgba(11,16,32,.05), 0 24px 60px rgba(11,16,32,.14);
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar: 78px;
  --spring: cubic-bezier(.2, 1.3, .4, 1);
}
:root[data-field="night"] { --turf1: #17603d; --turf2: #135233; --turf-line: rgba(255,255,255,.4); }
:root[data-field="snow"] { --turf1: #eef4f9; --turf2: #e3ecf4; --turf-line: rgba(70,110,150,.3); --los: #3466ff; }
:root[data-field="retro"] { --turf1: #dc8a35; --turf2: #cd7b28; }
:root[data-field="gold"] { --turf1: #ecbd2f; --turf2: #e0b022; --turf-line: rgba(255,255,255,.6); --los: #fff; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); overscroll-behavior: none; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: #c7d4ff; top: -40vmax; left: -25vmax; }
.blobs i:nth-child(2) { background: #f3d6ff; top: -35vmax; right: -35vmax; animation-delay: -8s; }
.blobs i:nth-child(3) { background: #ffe9c7; bottom: -50vmax; left: 0; animation-delay: -14s; opacity: .25; }
@keyframes drift { to { transform: translate(5vmax, 4vmax) scale(1.06); } }
#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; z-index: 1; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; padding: 14px 16px calc(18px + var(--safe-b)); animation: enter .35s cubic-bezier(.2,.8,.2,1); }
.screen.has-tabs { padding-bottom: calc(var(--tabbar) + 22px + var(--safe-b)); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.d, .display { font-weight: 800; letter-spacing: -.03em; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
.mute { color: var(--mute); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer { flex: 1; min-height: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: 16px; font-weight: 700; font-size: 15.5px;
  background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); transition: transform .12s var(--spring), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--brand); color: #fff; border: 0; box-shadow: 0 10px 24px -6px rgba(52,102,255,.55); }
.btn.hot { background: linear-gradient(135deg, #ff5a8f, #ff3f7d); color: #fff; border: 0; box-shadow: 0 10px 24px -6px rgba(255,63,125,.5); }
.btn.sun { background: linear-gradient(135deg, #ffcf4d, #ffb11f); color: #3a2600; border: 0; }
.btn.danger { background: var(--red); color: #fff; border: 0; }
.btn.big { padding: 18px; font-size: 17px; border-radius: 18px; }
.btn.small { padding: 10px 14px; font-size: 13.5px; width: auto; border-radius: 13px; }
.btn .d { font-size: 17px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex: none; transition: transform .12s var(--spring); }
.icon-btn:active { transform: scale(.92); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); font-weight: 700; font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar h2 { margin: 0; font-size: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--mute); white-space: nowrap; box-shadow: var(--shadow-sm); }
.pill b { font-weight: 800; font-size: 15px; color: var(--ink); }
.pill.blue b { color: var(--blue); } .pill.mint b { color: var(--mint); } .pill.pink b { color: var(--pink); }
.coins { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: #d08a00; }
.coins b { color: var(--ink); font-weight: 800; font-size: 14px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 22px 2px 10px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 10px; }
.sec-row h3 { margin: 0; font-size: 19px; font-weight: 800; }
.sec-row .mute { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 20; padding: 8px 10px calc(10px + var(--safe-b)); background: rgba(255,255,255,.82); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-top: 1px solid rgba(11,16,32,.06); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; font-size: 10.5px; font-weight: 700; color: #9aa1b8; transition: color .2s; }
.tabbar button .ico { transition: transform .25s var(--spring); }
.tabbar button.on { color: var(--blue); }
.tabbar button.on .ico { transform: translateY(-1px) scale(1.08); }
.tabbar button.on::after { content: ''; position: absolute; bottom: -4px; width: 18px; height: 3px; border-radius: 3px; background: var(--blue); }
.badge-dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px #fff; }

/* ---------- home ---------- */
.home-head { display: flex; align-items: center; gap: 10px; }
.lvl { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lvl .badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: conic-gradient(var(--blue) var(--p), var(--line) 0); position: relative; }
.lvl .badge::before { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--brand); }
.lvl .badge span { position: relative; font-size: 13px; }
.lvl small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 700; }
.lvl b { font-size: 13.5px; font-weight: 800; }
.hello { margin: 22px 2px 0; }
.hello small { font-size: 14px; font-weight: 600; color: var(--mute); }
.hello h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.hello h1 span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.today { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.today::-webkit-scrollbar { display: none; }
.today-card { position: relative; scroll-snap-align: start; text-align: left; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; min-height: 128px; transition: transform .15s var(--spring); }
.today-card:active { transform: scale(.97); }
.today-card b { font-size: 15px; font-weight: 800; margin-top: auto; }
.today-card small { font-size: 12px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-card.done { background: linear-gradient(180deg, #fff, #f6f8fd); }
.tc-ic, .mc-ic, .si, .fp-ic, .pr-ic, .gc-ic, .intro-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.blue { --tint: #3466ff; } .pink { --tint: #ff3f7d; } .violet { --tint: #7a5cff; } .mint { --tint: #10b981; } .orange { --tint: #ff7a1a; } .sun { --tint: #f5a700; } .ink { --tint: #0b1020; }
.tc-ic, .mc-ic, .si, .step .n, .gc-ic { background: linear-gradient(135deg, color-mix(in srgb, var(--tint, #3466ff) 78%, #fff), var(--tint, #3466ff)); box-shadow: 0 8px 18px -8px var(--tint, #3466ff); }
.tc-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; }
.tc-new { position: absolute; top: 14px; right: 12px; font-size: 10px; font-weight: 800; color: var(--pink); background: var(--pink-soft); padding: 3px 7px; border-radius: 99px; }
.feature { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; border-radius: 26px; padding: 20px; color: #fff; margin-top: 18px; background: #0b1020; box-shadow: var(--shadow-lg); transition: transform .15s var(--spring); isolation: isolate; }
.feature:active { transform: scale(.98); }
.feature .ft-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 100%, rgba(122,92,255,.85), transparent 60%), radial-gradient(60% 80% at 0% 0%, rgba(52,102,255,.7), transparent 60%), radial-gradient(50% 60% at 70% 0%, rgba(255,63,125,.45), transparent 60%); }
.feature .tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.feature h3 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 12px 0 4px; line-height: 1; }
.feature p { margin: 0; opacity: .85; font-weight: 500; font-size: 14px; max-width: 62%; line-height: 1.4; }
.feature .art { position: absolute; right: -18px; bottom: -22px; width: 160px; transform: rotate(-10deg); opacity: .95; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); }
.feature .go { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 13px; font-size: 14px; }
.promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, var(--mint-soft), #fff); border: 1px solid #c4ecd9; box-shadow: var(--shadow-sm); }
.promo b { display: block; font-size: 14.5px; } .promo small { color: var(--mute); font-weight: 600; font-size: 12.5px; }
.pr-ic, .fp-ic { background: linear-gradient(135deg, #34d399, #10b981); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { position: relative; text-align: left; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-height: 132px; transition: transform .15s var(--spring); overflow: hidden; }
.mode-card:active { transform: scale(.97); }
.mode-card b { font-size: 16px; font-weight: 800; margin-top: auto; }
.mode-card small { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.mode-card .mc-tag { position: absolute; top: 14px; right: 12px; font-size: 11px; font-weight: 800; color: var(--ink2); background: var(--bg); padding: 4px 8px; border-radius: 99px; }
.mode-card .mc-tag.hot { color: #fff; background: var(--violet); }
.mode-card.big { grid-column: span 2; min-height: 118px; background: linear-gradient(135deg, #fff 40%, var(--mint-soft)); }
.mode-card.big::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.18), transparent 70%); }
.mode-card.wide { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.mode-card.wide b { margin: 0; display: block; }

/* ---------- forms ---------- */
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); width: 100%; text-align: left; box-shadow: var(--shadow-sm); }
.toggle .sw { width: 48px; height: 29px; border-radius: 99px; background: #e2e5ee; position: relative; flex: none; transition: background .25s; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .3s var(--spring); }
.toggle.on .sw { background: var(--mint); }
.toggle.on .sw::after { transform: translateX(19px); }
.toggle h4 { margin: 0; font-size: 15px; font-weight: 700; }
.toggle p { margin: 2px 0 0; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.toggle .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--ink2); }
.settings { display: grid; gap: 8px; }
.field { width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); outline: none; font-size: 16px; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.mgr-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; font-weight: 800; }
.step h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.step p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.45; font-weight: 500; }
.hero-card { padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.intro-hero { text-align: center; padding: 22px 16px; }
.intro-hero .intro-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; background: var(--brand); box-shadow: 0 14px 30px -10px rgba(52,102,255,.6); }
.intro-ic.sm { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, #ffcf4d, #f5a700); }
.challenge-card { padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, var(--violet-soft), #fff); border: 1px solid #ddd3ff; box-shadow: var(--shadow-sm); }
.challenge-card h3 { margin: 0 0 4px; font-size: 18px; }
.goal-card { padding: 6px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gc-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.gc-row + .gc-row { border-top: 1px solid var(--line); }
.gc-row b { display: block; font-size: 15px; } .gc-row small { color: var(--mute); font-weight: 500; font-size: 13px; }
.gc-big { width: 42px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.05em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gc-big small { font-size: 14px; }
.gc-ic { --tint: #f5a700; } .gc-ic.pink { --tint: #ff3f7d; }

/* ---------- player card ---------- */
.pcard { container-type: inline-size; position: relative; aspect-ratio: .72; border-radius: 13%/9.5%; overflow: hidden; background: #fff; box-shadow: 0 6px 16px -4px rgba(11,16,32,.3); isolation: isolate; }
.pc-bg { position: absolute; inset: 0 0 30% 0; background: radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--c1) 70%, #fff) 0%, var(--c1) 45%, color-mix(in srgb, var(--c1) 65%, #000) 100%); }
.pc-mono { position: absolute; right: -6cqw; bottom: 26%; font-weight: 800; font-size: 44cqw; letter-spacing: -.06em; color: rgba(255,255,255,.14); line-height: 1; z-index: 1; }
.pc-stripe { position: absolute; left: 0; right: 0; top: 70%; height: 3cqw; background: var(--c2); z-index: 2; }
.pc-top { position: absolute; top: 6cqw; left: 8cqw; z-index: 3; color: #fff; }
.pc-rt { font-weight: 800; font-size: 31cqw; line-height: .95; letter-spacing: -.05em; text-shadow: 0 2cqw 6cqw rgba(0,0,0,.25); }
.pc-pos { display: inline-block; margin-top: 2cqw; font-weight: 800; font-size: 9.5cqw; padding: 1.5cqw 4cqw; border-radius: 99px; background: rgba(255,255,255,.22); }
.pcard.lightbg .pc-top { color: #111; } .pcard.lightbg .pc-pos { background: rgba(0,0,0,.08); } .pcard.lightbg .pc-mono { color: rgba(0,0,0,.08); } .pcard.lightbg .pc-rt { text-shadow: none; }
.pc-mod { position: absolute; top: 7cqw; right: 7cqw; font-weight: 800; font-size: 10cqw; padding: 1.5cqw 3.5cqw; border-radius: 99px; z-index: 4; color: #fff; }
.pc-mod.up { background: var(--mint); } .pc-mod.down { background: var(--red); }
.pc-plate { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 4cqw; z-index: 3; }
.pc-name { font-weight: 800; font-size: 12.5cqw; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pc-era { font-weight: 700; font-size: 8.5cqw; color: var(--mute); margin-top: 1cqw; white-space: nowrap; }
.pcard.oop .pc-rt::after { content: '*'; color: var(--sun); }
.pcard.t-legend::after, .pcard.t-elite::after, .pcard.t-gold::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2.4cqw; z-index: 5; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pcard.t-legend::after { background: conic-gradient(from var(--ang, 0deg), #ff3f7d, #ffbf1f, #10b981, #3466ff, #7a5cff, #ff3f7d); animation: holo 3s linear infinite; }
.pcard.t-elite::after { background: linear-gradient(135deg, #fff1b5, #ffbf1f 45%, #e08a00 70%, #fff1b5); }
.pcard.t-gold::after { background: linear-gradient(135deg, #f1f3f8, #b7bfd0 50%, #f1f3f8); padding: 1.8cqw; }
.pcard.t-legend .pc-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.4) 48%, transparent 60%); background-size: 260% 100%; animation: shine 2.8s ease-in-out infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes holo { to { --ang: 360deg; } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -110% 0; } }

/* ---------- field ---------- */
.turf { position: relative; width: 100%; aspect-ratio: 1 / .9; border-radius: 24px; overflow: hidden; flex: none;
  background: repeating-linear-gradient(180deg, var(--turf1) 0 10%, var(--turf2) 10% 20%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), var(--shadow-lg); }
.turf::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
:root[data-field="night"] .turf { box-shadow: inset 0 0 60px rgba(0,0,0,.4), var(--shadow-lg); }
:root[data-field="night"] .turf::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 20% -10%, rgba(255,255,220,.35), transparent 70%), radial-gradient(60% 50% at 80% -10%, rgba(255,255,220,.35), transparent 70%); pointer-events: none; }
:root[data-field="snow"] .turf::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 14px 14px; opacity: .8; pointer-events: none; animation: snow 6s linear infinite; }
@keyframes snow { to { background-position: 0 140px; } }
.turf svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.turf svg.lines line, .turf svg.lines rect { stroke: var(--turf-line); }
.turf svg.lines .los { stroke: var(--los); }
.slot { position: absolute; transform: translate(-50%, -50%); width: 16.5%; max-width: 78px; transition: transform .2s ease; z-index: 2; }
.slot .empty { aspect-ratio: .72; border-radius: 13%/9.5%; border: 1.5px dashed rgba(255,255,255,.8); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: rgba(255,255,255,.12); transition: all .15s; }
:root[data-field="snow"] .slot .empty { border-color: rgba(52,102,255,.5); color: var(--blue); }
.slot.target .empty, .slot.target .pcard { outline: 3px solid #fff; outline-offset: 2px; animation: pulse 1s ease-in-out infinite; cursor: pointer; }
.slot.target .empty { background: rgba(255,255,255,.65); color: var(--blue); }
.slot.target.best .empty { background: #fff; }
.slot .pen { position: absolute; top: -9px; right: -7px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); z-index: 6; }
.slot .pen.ok { background: var(--mint); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.slot.placed { animation: drop .5s var(--spring); z-index: 3; }
@keyframes drop { from { transform: translate(-50%, -75%) scale(1.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* ---------- draft ---------- */
.draft { padding-top: 10px; padding-bottom: 0; height: 100dvh; min-height: 0; overflow: hidden; }
.draft .topbar { margin-bottom: 8px; }
.round { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.round small { font-size: 13px; color: var(--mute); font-weight: 700; margin-left: 3px; }
.ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) var(--p, 0%), var(--line) 0); position: relative; flex: none; }
.ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-weight: 800; font-size: 15px; letter-spacing: -.03em; }
.ring small { position: absolute; bottom: -14px; font-size: 9px; font-weight: 800; color: var(--mute); letter-spacing: .04em; }
.ring.big { width: 72px; height: 72px; }
.ring.big::before { inset: 6px; }
.turn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; margin-bottom: 8px; font-weight: 700; font-size: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.turn .tabs { margin-left: auto; display: flex; gap: 4px; }
.turn .tabs button { padding: 4px 8px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--mute); }
.turn .tabs button.on { background: var(--bg); color: var(--ink); }
.panel { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 10px; background: var(--card); border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; margin-left: -4px; margin-right: -4px; box-shadow: 0 -12px 30px rgba(11,16,32,.06); }
.panel::before { content: ''; width: 36px; height: 4px; border-radius: 4px; background: var(--line2); margin: 8px auto 0; flex: none; }
.spinbox { display: flex; align-items: center; gap: 12px; padding: 8px 14px 10px; border-bottom: 1px solid var(--line); position: relative; }
.spinbox .mini-helm { width: 48px; flex: none; }
.spin-txt { flex: 1; min-width: 0; }
.spin-txt .club { font-weight: 800; font-size: 17px; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spin-txt .era { font-size: 13px; color: var(--mute); font-weight: 600; }
.respin { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 13px; white-space: nowrap; }
.respin:disabled { opacity: .4; }
.shotclock { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--line); overflow: hidden; }
.shotclock i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--sun), var(--red)); transform-origin: left; }
.squad { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 10px calc(14px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.hint { font-size: 12.5px; color: var(--mute); padding: 4px 6px 8px; font-weight: 600; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 8px; border-radius: 16px; text-align: left; border: 1px solid transparent; transition: background .15s, border-color .15s; animation: rowIn .3s ease backwards; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prow:active { background: var(--bg); }
.prow.sel { background: var(--blue-soft); border-color: rgba(52,102,255,.35); }
.prow.off { opacity: .38; }
.prow .mc, .srow .mc { width: 42px; flex: none; }
.prow .name { flex: 1; font-weight: 700; font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .note { font-size: 12px; color: var(--mute); font-weight: 600; display: block; margin-top: 2px; }
.prow .note.link { color: var(--violet); }
.prow .note.taken { color: var(--red); }
.prow .pos { padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; flex: none; }
.prow .place { padding: 9px 13px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 12.5px; flex: none; box-shadow: 0 6px 14px -6px rgba(52,102,255,.7); }
.pos.QB { background: #ffe8ee; color: #e11d48; } .pos.RB, .pos.WR, .pos.TE { background: #fff0e3; color: #ea6a0a; } .pos.OL { background: #fff6d9; color: #b07d00; }
.pos.DL, .pos.LB { background: #e9efff; color: #3466ff; } .pos.CB, .pos.S { background: #f0ecff; color: #6a46ff; } .pos.K, .pos.HC { background: #e3f8ef; color: #0e8a50; }
.wait { padding: 28px 16px; text-align: center; color: var(--mute); font-weight: 600; }
.wait .big { font-weight: 800; font-size: 20px; color: var(--ink); margin-bottom: 6px; }

/* ---------- spin wheel ---------- */
.wheel-ov { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(245,246,250,.9); backdrop-filter: blur(14px); animation: fadeIn .2s; }
.wheel-ov.out { animation: fadeOut .25s forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; transform: scale(1.03); } }
.wheel-box { width: min(92vw, 380px); text-align: center; }
.wheel-label { font-weight: 700; font-size: 14px; color: var(--mute); margin-bottom: 14px; }
.wheel-wrap { position: relative; width: min(84vw, 320px); margin: 0 auto; aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; filter: drop-shadow(0 20px 34px rgba(11,16,32,.22)); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 15%; transform: translate(-50%, -50%); }
.wheel-pointer { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--ink); z-index: 2; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.era-reel { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.era-reel span { padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--mute); transition: all .1s; }
.era-reel span.on { background: var(--ink); color: #fff; }
.wheel-result { min-height: 54px; margin-top: 14px; }
.wheel-result b { display: block; font-weight: 800; font-size: 24px; letter-spacing: -.03em; animation: pop .45s var(--spring); }
.wheel-result span { font-weight: 700; color: var(--blue); }
.wheel-skip { font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 4px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- season ---------- */
.season-head { text-align: center; margin: 4px 0 12px; }
.season-head .d { font-size: 26px; }
.scorebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.sb { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 11px 6px; text-align: center; box-shadow: var(--shadow-sm); }
.sb .v { font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.sb .k { font-size: 10px; font-weight: 700; color: var(--mute); letter-spacing: .06em; margin-top: 5px; }
.sb.w .v { color: var(--mint); } .sb.l .v { color: var(--red); } .sb.c .v { color: var(--violet); }
.form { display: flex; gap: 3px; margin: 2px 0 10px; }
.form i { flex: 1; height: 14px; border-radius: 4px; background: var(--line); transition: background .2s; }
.form i.W { background: var(--mint); } .form i.L { background: var(--red); }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.path div { padding: 9px 4px; border-radius: 12px; text-align: center; font-size: 11px; font-weight: 800; color: var(--mute); background: var(--card); border: 1px solid var(--line); }
.path div.W { background: var(--mint-soft); color: var(--mint); border-color: #b9ead4; }
.path div.L { background: #ffe9ed; color: var(--red); border-color: #ffc6d0; }
.path div.bye { background: var(--blue-soft); color: var(--blue); border-color: #cbd8ff; }
.ticker { flex: 1; min-height: 200px; overflow-y: auto; border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 6px; box-shadow: var(--shadow-sm); }
.mrow { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 14px; font-size: 13.5px; animation: rowIn .25s ease; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow .cb { min-width: 36px; height: 24px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.cb.R { background: var(--bg); color: var(--mute); } .cb.P { background: var(--violet-soft); color: var(--violet); } .cb.X { background: var(--sun-soft); color: #b07d00; }
.mrow .mt { flex: 1; min-width: 0; }
.mrow .mt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.mrow .mt small { color: var(--mute); font-size: 11.5px; font-weight: 600; }
.mrow .sc { font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.res { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex: none; }
.res.W { background: var(--mint); } .res.L { background: var(--red); }
.mrow.big { background: linear-gradient(90deg, var(--violet-soft), transparent); }
.mrow.trophy { background: linear-gradient(90deg, #fff3cf, #fffaf0); font-weight: 700; }
.mgr-cards { display: grid; gap: 8px; margin-bottom: 10px; }
.mgr-card { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mgr-card .nm { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgr-card .rec { font-weight: 800; font-size: 16px; }
.mgr-card .st { font-size: 11px; font-weight: 700; color: var(--mute); }

/* ---------- night header (clutch, gameday) ---------- */
.night-head { background: radial-gradient(120% 100% at 50% 0%, #26336a, #0b1020 70%); margin: -14px -16px 16px; padding: 14px 16px 20px; border-radius: 0 0 30px 30px; box-shadow: 0 18px 36px -12px rgba(11,16,32,.45); position: relative; overflow: hidden; color: #fff; }
.night-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 10% -20%, rgba(255,255,220,.22), transparent 70%), radial-gradient(40% 60% at 90% -20%, rgba(255,255,220,.22), transparent 70%); pointer-events: none; }
.night-head .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); box-shadow: none; color: #fff; }
.topline { color: #aab4dc; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.scoreboard { margin: 12px 0 10px; background: rgba(255,255,255,.06); border-radius: 22px; padding: 14px; color: #fff; border: 1px solid rgba(255,255,255,.1); position: relative; }
.scoreboard .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.scoreboard .tm { text-align: center; min-width: 0; position: relative; }
.scoreboard .tm .n { font-weight: 700; font-size: 12.5px; color: #aab4dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scoreboard .tm .s { font-weight: 800; font-size: 48px; line-height: 1.05; letter-spacing: -.05em; }
.scoreboard .tm .s.bump { animation: pop .5s var(--spring); color: var(--sun); }
.scoreboard .tm.has .n::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 8px var(--sun); }
.scoreboard .clock { font-weight: 800; color: var(--sun); font-size: 22px; text-align: center; letter-spacing: -.03em; }
.scoreboard .clock small { display: block; font-weight: 700; color: #aab4dc; font-size: 11px; letter-spacing: .08em; }
.situation { text-align: center; color: #fff; font-weight: 600; font-size: 15px; position: relative; }
.situation b { color: var(--sun); }
.calls { display: grid; gap: 10px; }
.call { display: block; width: 100%; text-align: left; padding: 15px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .12s var(--spring), border-color .15s; }
.call:active { transform: scale(.98); border-color: var(--blue); }
.call h4 { margin: 0; font-size: 17px; font-weight: 800; }
.call p { margin: 3px 0 10px; font-size: 13.5px; color: var(--ink2); font-weight: 500; }
.odds { display: flex; align-items: center; gap: 8px; }
.odds .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.odds .bar i { display: block; height: 100%; border-radius: 99px; }
.odds span { font-size: 12px; font-weight: 800; width: 78px; text-align: right; }
.call .note { font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 6px; }
.play-anim { text-align: center; padding: 40px 10px 20px; }
.play-anim .fb { width: 64px; height: 64px; margin: 0 auto; animation: throw 1.1s cubic-bezier(.3,.6,.4,1) infinite; }
@keyframes throw { 0% { transform: translate(-90px, 30px) rotate(-30deg); } 50% { transform: translate(0, -40px) rotate(10deg); } 100% { transform: translate(90px, 30px) rotate(40deg); } }
.outcome { text-align: center; padding: 22px 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); animation: pop .5s var(--spring); }
.outcome h2 { font-weight: 800; font-size: 38px; margin: 0; line-height: 1; letter-spacing: -.04em; }
.outcome.win { border-color: #b9ead4; background: linear-gradient(180deg, #fff, #f2fcf7); } .outcome.win h2 { color: var(--mint); }
.outcome.loss { border-color: #ffd0d8; background: linear-gradient(180deg, #fff, #fff5f7); } .outcome.loss h2 { color: var(--red); }
.outcome p { font-size: 15px; font-weight: 600; color: var(--ink2); margin: 10px 0 0; }

/* ---------- gameday ---------- */
.gd .night-head { padding-bottom: 14px; margin-bottom: 12px; }
.dd { display: flex; justify-content: center; gap: 8px; margin-top: 2px; position: relative; flex-wrap: wrap; }
.dd span { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 13px; }
.dd span b { color: var(--sun); }
.strip { position: relative; height: 88px; border-radius: 18px; overflow: hidden; margin: 0 0 12px; background: repeating-linear-gradient(90deg, var(--turf1) 0 10%, var(--turf2) 10% 20%); box-shadow: var(--shadow); flex: none; }
.strip .ez { position: absolute; top: 0; bottom: 0; width: 8%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 9px; writing-mode: vertical-rl; letter-spacing: .1em; }
.strip .ez.l { left: 0; transform: rotate(180deg); } .strip .ez.r { right: 0; }
.strip .yl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--turf-line); }
.strip .yn { position: absolute; bottom: 4px; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: rgba(255,255,255,.85); }
.strip .losl { position: absolute; top: 0; bottom: 0; width: 3px; background: #4d8bff; box-shadow: 0 0 10px #4d8bff; transition: left .6s cubic-bezier(.3,.8,.3,1); }
.strip .fdl { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--los); transition: left .6s cubic-bezier(.3,.8,.3,1); }
.strip .ballm { position: absolute; top: 46%; width: 32px; height: 32px; transform: translate(-50%, -50%); transition: left .6s cubic-bezier(.3,.8,.3,1); z-index: 2; }
.strip .ballm svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.playres { min-height: 66px; text-align: center; margin-bottom: 8px; }
.playres h3 { margin: 0; font-weight: 800; font-size: 25px; line-height: 1.1; letter-spacing: -.03em; animation: pop .35s var(--spring); }
.playres p { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.playres .tag { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.good { color: var(--mint); } .bad { color: var(--red); } .bigp { color: var(--violet); }
.playgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc { position: relative; text-align: left; padding: 13px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 98px; transition: transform .12s var(--spring); }
.pc:active { transform: scale(.96); }
.pc .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.pc h4 { margin: 8px 0 2px; font-size: 15px; font-weight: 800; }
.pc p { margin: 0; font-size: 11.5px; color: var(--mute); font-weight: 600; line-height: 1.3; }
.pc .edge { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.edge.g { background: var(--mint-soft); color: var(--mint); } .edge.e { background: var(--sun-soft); color: #b07d00; } .edge.b { background: #ffe9ed; color: var(--red); }
.pc.kick { min-height: 70px; background: var(--bg); box-shadow: none; }
.pc.kick .ic { background: #fff; }
.scout { margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: var(--sun-soft); color: #7a5600; font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.gd-actions { display: flex; gap: 8px; margin-top: 10px; }
.drive-log { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.drive-log div { padding: 7px 2px; border-top: 1px solid var(--line); animation: rowIn .25s ease; display: flex; align-items: center; gap: 6px; }
.dl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; } .dl-dot.us { background: var(--blue); } .dl-dot.them { background: var(--red); }
.opp-picker { display: grid; gap: 10px; }
.opp { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; width: 100%; transition: transform .12s var(--spring); }
.opp:active { transform: scale(.98); }
.opp .hh { width: 66px; flex: none; }
.opp b { display: block; font-weight: 800; font-size: 16px; }
.opp small { font-weight: 600; color: var(--mute); }
.diff { margin-left: auto; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; }

/* ---------- gauntlet / versus ---------- */
.ladder { display: grid; gap: 8px; }
.rung { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rung .no { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--bg); color: var(--mute); flex: none; }
.rung .hh { width: 44px; flex: none; }
.rung .nm { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.rung small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.rung.done { opacity: .55; } .rung.done .no { background: var(--mint); color: #fff; }
.rung.next { border-color: rgba(255,63,125,.5); box-shadow: 0 0 0 4px var(--pink-soft), var(--shadow); } .rung.next .no { background: var(--pink); color: #fff; }
.rung.boss { background: linear-gradient(135deg, #fff8e0, #fff); border-color: #ffe08a; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 8px 0 14px; }
.vs .side { text-align: center; min-width: 0; }
.vs .side .helmbig { width: 104px; max-width: 100%; margin: 0 auto; }
.vs .side b { display: block; font-weight: 800; font-size: 16px; margin-top: 4px; letter-spacing: -.02em; }
.vs .side span { font-size: 12px; font-weight: 700; color: var(--mute); }
.vs .x { font-weight: 800; font-size: 22px; color: var(--pink); }
.qboard { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr) 1.1fr; background: #0b1020; color: #fff; border-radius: 18px; overflow: hidden; font-weight: 700; font-size: 13px; text-align: center; box-shadow: var(--shadow-lg); }
.qboard div { padding: 11px 4px; border-bottom: 1px solid #1d2546; }
.qboard .h { color: #8f99c4; font-size: 11px; letter-spacing: .06em; }
.qboard .t { text-align: left; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qboard .f { font-weight: 800; font-size: 18px; color: var(--sun); }
.qboard .lit { animation: pop .35s ease; }
.upgrade { padding: 14px; border-radius: 20px; background: linear-gradient(135deg, var(--mint-soft), #fff); border: 1px solid #b9ead4; display: grid; gap: 2px; }
.upgrade b { display: flex; align-items: center; gap: 6px; }

/* ---------- who's better ---------- */
.hl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.streak { font-weight: 800; font-size: 40px; line-height: 1; text-align: center; letter-spacing: -.05em; }
.streak small { display: block; font-size: 11px; color: var(--mute); font-weight: 700; letter-spacing: .08em; }
.hl-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 8vh; }
.hl-q { text-align: center; color: var(--ink); margin: 6px 0 14px; }
.hl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; position: relative; }
.hl-pair .opt { transition: transform .15s var(--spring); display: block; width: 100%; }
.hl-pair .opt:active { transform: scale(.96); }
.hl-pair .opt.right .pcard { box-shadow: 0 0 0 4px var(--mint), 0 14px 34px -6px rgba(16,185,129,.55); }
.hl-pair .opt.wrong .pcard { box-shadow: 0 0 0 4px var(--red), 0 14px 34px -6px rgba(244,63,94,.5); animation: shake .4s; }
.hl-vs { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; z-index: 6; box-shadow: 0 0 0 5px var(--bg); }
.timer { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 16px 0 6px; }
.timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--sun), var(--red)); transform-origin: left; }
.hl-sub { text-align: center; font-size: 12.5px; color: var(--mute); font-weight: 600; margin-top: 8px; }

/* ---------- the grid ---------- */
.grid9 { display: grid; grid-template-columns: .8fr 1fr 1fr 1fr; gap: 8px; }
.gcorner { display: grid; place-items: center; color: var(--mute); }
.ghead { text-align: center; padding: 6px 2px; display: flex; flex-direction: column; justify-content: flex-end; }
.ghead b { font-size: 15px; font-weight: 800; }
.ghead small { font-size: 10.5px; color: var(--mute); font-weight: 600; line-height: 1.2; }
.grow-h { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.grow-h small { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.1; }
.gcell { aspect-ratio: .72; border-radius: 16px; background: var(--card); border: 1px dashed var(--line2); display: grid; place-items: center; color: #b3bad0; transition: transform .12s var(--spring), border-color .15s, background .15s; padding: 0; }
.gcell:active { transform: scale(.95); }
button.gcell:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.gcell.filled { border: 0; background: none; display: block; place-items: normal; }
.gcell.filled .pcard { width: 100%; }
.gcell.miss { background: #fff6f8; border-color: #ffd0d8; padding: 6px; text-align: center; }
.gcell.miss small { font-size: 10px; font-weight: 700; color: var(--red); line-height: 1.2; }

/* ---------- who's that ---------- */
.mystery-card { margin-bottom: 12px; }
.mystery { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: #0b1020; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.mystery::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 100%, rgba(255,63,125,.5), transparent 60%), radial-gradient(60% 80% at 0% 0%, rgba(122,92,255,.55), transparent 60%); }
.mystery > * { position: relative; }
.mystery .ico { color: var(--sun); }
.mystery b { display: block; font-size: 18px; } .mystery small { color: #c3c9e4; font-weight: 600; }
.reveal { width: 42%; margin: 0 auto; animation: pop .6s var(--spring); }
.wtable { border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 8px; }
.wh, .wr { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 5px; align-items: center; }
.wh span { font-size: 10.5px; font-weight: 800; color: var(--mute); text-align: center; letter-spacing: .04em; text-transform: uppercase; padding: 4px 0; }
.wh span:first-child { text-align: left; padding-left: 6px; }
.wr { margin-top: 5px; animation: rowIn .3s ease; }
.wn { font-weight: 700; font-size: 13px; padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt { height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--bg); color: var(--ink2); }
.wt.g { background: var(--mint); color: #fff; } .wt.y { background: var(--sun); color: #3a2600; } .wt.x { background: #e9ecf3; color: var(--ink2); }
.wr.win .wn { color: var(--mint); }
.wr.ghost .wt { background: transparent; border: 1px dashed var(--line2); }
.legend { margin-top: 10px; font-size: 11.5px; color: var(--mute); font-weight: 600; line-height: 2; }
.legend .wt { display: inline-grid; width: 22px; height: 20px; vertical-align: middle; border-radius: 6px; font-size: 11px; }

/* ---------- 2-minute drill ---------- */
.night-card { padding: 16px; border-radius: 24px; background: radial-gradient(120% 100% at 50% 0%, #26336a, #0b1020 70%); color: #fff; box-shadow: var(--shadow-lg); }
.nc-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #aab4dc; }
.nc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; margin: 12px 0; }
.nc-score small { display: block; color: #aab4dc; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-score b { font-size: 42px; font-weight: 800; letter-spacing: -.05em; }
.nc-clock { font-weight: 800; font-size: 24px; color: var(--sun); padding: 0 12px; }
.nc-sit { font-weight: 600; font-size: 14px; color: #e5e8f5; text-align: center; line-height: 1.5; }
.nc-sit b { color: var(--sun); }

/* ---------- kick it ---------- */
.kick-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.kick-wrap canvas { display: block; width: 100%; height: min(60vh, 460px); touch-action: manipulation; cursor: pointer; }
.kick-hud { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.kh { padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
.kh small { display: block; font-size: 9.5px; font-weight: 800; color: var(--mute); letter-spacing: .06em; }
.kh b { font-size: 14px; font-weight: 800; }
.kick-tip { text-align: center; font-weight: 700; color: var(--ink2); margin: 12px 0; min-height: 20px; }

/* ---------- packs ---------- */
.free-pack { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, var(--mint-soft), #fff); border: 1px solid #b9ead4; box-shadow: var(--shadow); margin-bottom: 14px; }
.free-pack b { display: block; font-size: 15px; } .free-pack small { color: var(--mute); font-weight: 600; font-size: 12.5px; }
.packs { display: grid; gap: 12px; }
.packcard { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pack-art { position: relative; width: 84px; aspect-ratio: .7; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 22px -8px rgba(11,16,32,.45); flex: none; }
.pack-art span { font-size: 9px; font-weight: 800; letter-spacing: .2em; opacity: .85; position: relative; z-index: 1; }
.pack-art b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; position: relative; z-index: 1; }
.pa-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 46%, transparent 60%); background-size: 260% 100%; animation: shine 2.6s ease-in-out infinite; }
.pack-art::after, .pack-big::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 6px, transparent 6px 14px); }
.pk-info { flex: 1; display: grid; gap: 4px; justify-items: start; }
.pk-info b { font-size: 16px; } .pk-info small { color: var(--mute); font-weight: 600; font-size: 12.5px; }
.pk-info .btn { margin-top: 6px; }
.pack-stage { flex: 1; display: grid; place-items: center; min-height: 380px; position: relative; }
.pack-big { position: relative; width: min(58vw, 230px); aspect-ratio: .7; border-radius: 24px; overflow: hidden; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 30px 60px -20px rgba(11,16,32,.55); animation: float 3s ease-in-out infinite; }
.pack-big span { font-size: 13px; font-weight: 800; letter-spacing: .25em; opacity: .85; position: relative; z-index: 1; }
.pack-big b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; position: relative; z-index: 1; }
.pack-big small { position: absolute; bottom: 18px; font-weight: 700; opacity: .9; font-size: 13px; z-index: 1; }
.pack-big.rip { animation: rip .7s ease forwards; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes rip { 0% { transform: scale(1); } 20% { transform: scale(1.05) rotate(-3deg); } 40% { transform: scale(1.05) rotate(3deg); } 60% { transform: scale(1.1) rotate(-2deg); } 100% { transform: scale(1.6); opacity: 0; filter: brightness(3); } }
.flash { position: absolute; inset: -40px; border-radius: 50%; animation: flash .9s ease forwards; pointer-events: none; }
.flash.legend { background: radial-gradient(circle, rgba(122,92,255,.55), transparent 65%); } .flash.elite { background: radial-gradient(circle, rgba(255,191,31,.55), transparent 65%); }
.flash.gold, .flash.silver, .flash.bronze { background: radial-gradient(circle, rgba(52,102,255,.3), transparent 65%); }
@keyframes flash { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.4); } }
.reveal-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; position: relative; }
.reveal-grid .flip { width: calc((100% - 20px) / 3); }
.flip { perspective: 800px; animation: deal .4s var(--spring) backwards; position: relative; }
.flip:nth-child(2) { animation-delay: .06s; } .flip:nth-child(3) { animation-delay: .12s; } .flip:nth-child(4) { animation-delay: .18s; } .flip:nth-child(5) { animation-delay: .24s; }
@keyframes deal { from { opacity: 0; transform: translateY(40px) scale(.8); } }
.flip-in { position: relative; transition: transform .6s var(--spring); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.pback, .pfront { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pback { aspect-ratio: .72; border-radius: 13%/9.5%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(11,16,32,.4); position: relative; overflow: hidden; }
.pback::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 6px, transparent 6px 14px); }
.pback span { color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .2em; }
.pfront { position: absolute; inset: 0; transform: rotateY(180deg); }
.newtag, .dupetag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 99px; z-index: 6; white-space: nowrap; }
.newtag { background: var(--pink); color: #fff; } .dupetag { background: var(--sun); color: #3a2600; }

/* ---------- results ---------- */
.verdict { text-align: center; padding: 10px 0 4px; }
.verdict .trophy { width: 84px; height: 84px; margin: 0 auto 4px; }
.verdict .trophy.dim { opacity: .25; filter: grayscale(1); }
.verdict .trophy.on { filter: drop-shadow(0 12px 22px rgba(255,170,0,.45)); animation: pop .7s var(--spring) both; }
.verdict h1 { font-weight: 800; font-size: 34px; margin: 2px 0 0; line-height: 1.05; letter-spacing: -.04em; }
.verdict h1.gold { background: linear-gradient(135deg, #ffb800, #ff5a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verdict p { margin: 8px 0 0; color: var(--mute); font-weight: 600; }
.recbig { font-weight: 800; font-size: 42px; text-align: center; margin: 10px 0 2px; letter-spacing: -.05em; }
.recbig .w { color: var(--mint); } .recbig .l { color: var(--red); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.fact .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }
.fact .v { font-weight: 800; font-size: 15px; margin-top: 4px; }
.fact.hi { border-color: #ffe08a; background: #fffaeb; }
.actions { display: grid; gap: 10px; margin-top: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details.table { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-top: 10px; box-shadow: var(--shadow-sm); }
details.table summary { padding: 14px; font-weight: 700; cursor: pointer; list-style: none; }
details.table summary::after { content: '▾'; float: right; color: var(--mute); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { padding: 7px 8px; text-align: right; }
th { color: var(--mute); font-size: 11px; font-weight: 700; }
td:nth-child(2), th:nth-child(2) { text-align: left; }
td:first-child, th:first-child { text-align: center; width: 28px; color: var(--mute); }
tr.me td { background: var(--blue-soft); font-weight: 700; color: var(--blue); }
tr.po td:first-child { color: var(--mint); font-weight: 800; }
.standings { display: grid; gap: 8px; margin: 12px 0; }
.stand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stand.first { border-color: #ffe08a; background: linear-gradient(90deg, #fff7da, #fff); }
.stand .rk { font-weight: 800; font-size: 22px; width: 28px; text-align: center; }
.stand .nm { font-weight: 700; }
.stand small { color: var(--mute); display: block; font-size: 12px; margin-top: 2px; font-weight: 600; }
.mini-turf { margin-top: 12px; }

/* ---------- binder / trophies / profile ---------- */
.prog { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.binder-hero { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: 24px; background: #0b1020; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.binder-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(122,92,255,.6), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(52,102,255,.5), transparent 60%); }
.binder-hero > * { position: relative; }
.binder-hero small { color: #c3c9e4; font-weight: 600; font-size: 13px; }
.binder-hero b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.05em; }
.binder-hero b span { font-size: 16px; color: #aab4dc; font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.binder-hero .ring { background: conic-gradient(#ffbf1f var(--p, 0%), rgba(255,255,255,.15) 0); }
.binder-hero .ring::before { background: #151b33; }
.binder-hero .ring b { font-size: 15px; color: #fff; }
.teamgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tg { text-align: center; padding: 10px 4px 9px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .12s var(--spring); }
.tg:active { transform: scale(.95); }
.tg .crest { width: 38px; height: 38px; }
.tg b { display: block; font-size: 11px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.tg small { font-size: 10.5px; font-weight: 600; color: var(--mute); }
.tg .prog { height: 4px; margin: 5px 8px 0; }
.cardgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.locked { aspect-ratio: .72; border-radius: 13%/9.5%; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 4px; font-weight: 700; color: #b6bdd1; font-size: 11px; border: 1px dashed var(--line2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat .si { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 8px; }
.stat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.stat small { font-size: 11px; color: var(--mute); font-weight: 600; }
.achgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach { text-align: center; padding: 14px 6px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ach .ai { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 8px; color: #fff; background: linear-gradient(135deg, #ffcf4d, #f59e0b); box-shadow: 0 10px 20px -8px rgba(245,158,11,.7); }
.ach.off .ai { background: var(--bg); color: #c2c8d8; box-shadow: none; }
.ach b { display: block; font-size: 12px; font-weight: 800; line-height: 1.2; }
.ach small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 600; margin-top: 3px; line-height: 1.25; }
.ach.off b { color: var(--mute); }
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 22px; }
.theme { border-radius: 16px; aspect-ratio: 1; border: 2px solid transparent; position: relative; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: #fff; }
.theme.on { border-color: var(--ink); }
.theme.lock { filter: grayscale(.6); opacity: .7; color: var(--ink); }
.theme small { position: absolute; bottom: -19px; left: -6px; right: -6px; text-align: center; font-size: 10px; font-weight: 700; color: var(--mute); white-space: nowrap; }

/* ---------- overlays ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(11,16,32,.38); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fadeIn .2s; }
.modal { width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; background: var(--card); border-radius: 28px 28px 0 0; padding: 20px 16px calc(20px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: up .35s cubic-bezier(.2,.9,.3,1); }
.modal::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--line2); margin: -8px auto 14px; }
@keyframes up { from { transform: translateY(60px); opacity: .4; } }
.modal h2 { margin: 0 0 12px; font-size: 24px; }
.modal p { color: var(--ink2); line-height: 1.5; font-size: 14.5px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.results { margin-top: 10px; display: grid; gap: 2px; max-height: 58dvh; overflow-y: auto; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px; border-radius: 14px; color: var(--mute); }
.srow:active { background: var(--bg); }
.srow b { display: block; color: var(--ink); font-size: 15px; } .srow small { font-size: 12px; font-weight: 600; }
.srow.off { opacity: .4; }
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); background: rgba(11,16,32,.92); backdrop-filter: blur(8px); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 16px; z-index: 80; box-shadow: var(--shadow-lg); animation: toast 2.4s ease forwards; max-width: 90vw; font-size: 14px; text-align: center; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.banner { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 20px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: drop2 .5s var(--spring); min-width: 260px; }
.banner.out { animation: rise .4s forwards; }
.banner .bi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ffcf4d, #f59e0b); }
.banner b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #c07a00; font-weight: 700; }
.banner span { font-weight: 800; font-size: 15px; }
@keyframes drop2 { from { transform: translate(-50%, -80px); } } @keyframes rise { to { transform: translate(-50%, -100px); opacity: 0; } }
.xpfloat { position: fixed; right: 16px; top: 68px; z-index: 85; font-weight: 800; color: var(--blue); font-size: 15px; padding: 7px 12px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; animation: xp 1.6s ease forwards; pointer-events: none; }
.xpfloat span { display: inline-flex; align-items: center; gap: 3px; color: #d08a00; }
@keyframes xp { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.code { font-weight: 800; font-size: 46px; letter-spacing: .12em; text-align: center; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0; }
.lobby-list { display: grid; gap: 8px; }

@media (max-height: 740px) { .draft .turf { aspect-ratio: 1 / .78; } .draft .slot { width: 14%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- my club + collection meaning ---------- */
.club-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px; padding: 16px; border-radius: 24px; color: #fff; background: #10172e; box-shadow: var(--shadow-lg); isolation: isolate; transition: transform .15s var(--spring); }
.club-card:active { transform: scale(.98); }
.cc-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 100% at 0% 100%, rgba(16,185,129,.55), transparent 60%), radial-gradient(60% 90% at 100% 0%, rgba(52,102,255,.6), transparent 60%); }
.cc-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none; }
.club-card small { color: #b8c2e6; font-weight: 700; font-size: 12px; }
.club-card b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 6px; }
.cc-pips { display: flex; align-items: center; gap: 5px; }
.cc-pips i { width: 22px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); }
.cc-pips i.on { background: var(--sun); }
.cc-pips span { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: #b8c2e6; }
.club-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 24px; background: #10172e; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; margin-bottom: 12px; isolation: isolate; }
.club-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 100% at 0% 100%, rgba(16,185,129,.5), transparent 60%), radial-gradient(60% 90% at 100% 0%, rgba(52,102,255,.55), transparent 60%); }
.ch-div small { color: #b8c2e6; font-weight: 700; font-size: 12px; }
.ch-div b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.ch-div > span { display: block; color: var(--sun); font-weight: 800; margin-bottom: 8px; }
.club-hero .ring { background: conic-gradient(var(--sun) var(--p, 0%), rgba(255,255,255,.15) 0); }
.club-hero .ring::before { background: #161e3a; }
.club-hero .ring b { color: #fff; font-size: 20px; }
.club-hero .ring small { bottom: 8px; color: #b8c2e6; }
.club-turf .slot { cursor: pointer; }
.wildbtn { background: linear-gradient(135deg, #ffe08a, #ffbf1f); color: #5a3d00; }
.pc-stars { position: absolute; top: 6cqw; right: 6cqw; z-index: 4; font-size: 10cqw; color: #ffd24a; letter-spacing: -.1em; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.stars-inline { color: #f5a700; font-size: 12px; letter-spacing: -.05em; }
.lvltag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; z-index: 6; white-space: nowrap; background: var(--violet); color: #fff; }
.set-banner { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fff3cf, #fff); border: 1px solid #ffe08a; font-weight: 800; color: #9a6a00; margin-bottom: 4px; }
.set-banner .chip { margin-left: auto; }
.set-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 6px; }
.set-head b { font-size: 14px; } .set-head .mute { font-size: 12.5px; font-weight: 700; }
.set-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--mint); font-weight: 800; font-size: 12.5px; }
.tg { position: relative; } .tg.full { border-color: #ffe08a; background: linear-gradient(180deg, #fffaeb, #fff); }
.tg .badge-dot { top: 6px; right: 6px; }

/* ---------- tabs: segmented Club header, Daily tab, season news ---------- */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: -4px 0 14px; border-radius: 16px; background: #eceff7; }
.seg button { position: relative; padding: 9px 0; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink2); transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(11,16,32,.16); }
.seg .badge-dot { top: 7px; right: 12px; }
.daily-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #ff9f1c, #ff5d8f 60%, #7a5cff); box-shadow: var(--shadow-lg); }
.daily-hero small { font-size: 12.5px; font-weight: 700; opacity: .85; }
.daily-hero b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; line-height: 1.15; }
.daily-hero span { font-size: 12.5px; font-weight: 600; opacity: .85; }
.daily-hero .ring { width: 64px; height: 64px; background: conic-gradient(#fff var(--p, 0%), rgba(255,255,255,.28) 0); }
.daily-hero .ring::before { background: rgba(0,0,0,.12); inset: 6px; }
.daily-hero .ring b { font-size: 16px; margin: 0; color: #fff; }
.dl-list { display: grid; gap: 10px; margin-top: 14px; }
.dl-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s var(--spring); }
.dl-card:active { transform: scale(.98); }
.dl-card b { display: block; font-size: 16px; font-weight: 800; }
.dl-card small { display: block; font-size: 12.5px; font-weight: 600; color: var(--mute); margin-top: 1px; }
.dl-card .grow { min-width: 0; }
.dl-card.done { background: linear-gradient(180deg, #fff, #f6f8fd); }
.dl-go { flex: none; padding: 8px 14px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.dl-ok { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; }
.promo.sun { background: linear-gradient(135deg, #fff4dc, #fff); border-color: #ffe2a6; }
.promo.sun .pr-ic { background: linear-gradient(135deg, #ffc531, #ff9f1c); }
.news { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #eef2ff, #fff); border: 1px solid #d9e0ff; box-shadow: var(--shadow-sm); }
.news .nw-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand); }
.news b { display: block; font-size: 14.5px; font-weight: 800; }
.news small { display: block; font-size: 12.5px; font-weight: 600; color: var(--mute); line-height: 1.4; margin-top: 2px; }
.news .icon-btn { width: 30px; height: 30px; flex: none; }
.topbar .grow { min-width: 0; }
/* draft header ring: keep the OVR label inside the ring so it never collides with the field */
.draft .topbar .ring { width: 48px; height: 48px; grid-template-rows: auto auto; align-content: center; gap: 0; }
.draft .topbar .ring b { line-height: 1; font-size: 15px; }
.draft .topbar .ring small { position: relative; bottom: auto; font-size: 7.5px; line-height: 1.1; z-index: 1; }
.spin-txt { min-width: 0; }
.spin-txt .club, .spin-txt .era { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* never let decorative glows/flashes cause sideways scrolling on phones */
html, body { overflow-x: clip; }

/* ---------- live game card (season playback) ---------- */
.live { display: none; }
.live.on { display: block; margin: 2px 0 10px; padding: 12px 14px 10px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; animation: liveIn .35s var(--spring); }
.live.on.po { background: linear-gradient(180deg, #fff, #f3f0ff); border-color: #ddd5ff; }
.live.won { box-shadow: 0 0 0 2px var(--mint), var(--shadow); }
.live.lost { box-shadow: 0 0 0 2px #ffc2cd, var(--shadow); }
.live.clutch { box-shadow: 0 0 0 2px var(--pink), 0 10px 30px -10px var(--pink); }
@keyframes liveIn { from { transform: translateY(6px) scale(.98); opacity: 0; } }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-badge { font-size: 11.5px; font-weight: 800; color: var(--blue); background: var(--blue-soft); padding: 4px 9px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.live.po .lv-badge { color: var(--violet); background: var(--violet-soft); }
.lv-clock { font-size: 13px; font-weight: 800; color: var(--ink2); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.live.clutch .lv-clock { color: var(--pink); }
.lv-clock b { color: #fff; padding: 1px 7px; border-radius: 7px; font-size: 12px; }
.lv-clock b.W { background: var(--mint); } .lv-clock b.L { background: var(--red); }
.lv-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0 6px; }
.lv-tm { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.lv-tm b { font-size: 13px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-h { width: 46px; height: 38px; display: grid; place-items: center; }
.lv-h svg { width: 46px; height: auto; }
.lv-score { display: flex; align-items: center; gap: 8px; font-size: 42px; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.lv-score i { font-style: normal; color: var(--mute); font-size: 26px; }
.lv-score span { min-width: 1.2ch; text-align: center; display: inline-block; }
.lv-score span.bump { animation: lvBump .6s var(--spring); }
@keyframes lvBump { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: var(--blue); } 100% { transform: scale(1); } }
.lv-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.lv-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; }
.lv-feed { display: grid; gap: 4px; margin-top: 8px; min-height: 72px; align-content: start; }
.lv-pl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink2); animation: liveIn .3s ease; min-width: 0; }
.lv-pl .grow { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-pl.mute { color: var(--mute); }
.lv-t { flex: none; font-size: 11px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; width: 62px; }
.lv-k { flex: none; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: #fff; }
.lv-pl.us .lv-k { background: var(--blue); } .lv-pl.them .lv-k { background: #9aa1b8; }
.lv-pl.us { color: var(--ink); }
.live-ctl { display: flex; gap: 8px; margin-top: 10px; }
.live-ctl .btn { margin: 0; }
.live-ctl #spd { flex: none; width: auto; padding-left: 16px; padding-right: 16px; }
.live-ctl .skip { flex: 1; }

/* ---------- Draft Duel + Salary Cap ---------- */
.series { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px 12px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sr-side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.sr-side b { font-size: 14px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-side span { font-size: 11.5px; font-weight: 700; color: var(--mute); }
.sr-side .helmbig { width: 64px; }
.sr-mid { text-align: center; }
.sr-score { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.sr-score i { font-style: normal; color: var(--mute); font-size: 28px; margin: 0 4px; }
.sr-mid small { font-size: 11px; font-weight: 700; color: var(--mute); }
.sr-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.sr-g { text-align: center; padding: 10px 6px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.sr-g small { display: block; font-size: 11px; font-weight: 700; color: var(--mute); }
.sr-g b { font-size: 16px; font-weight: 800; }
.sr-g.W { background: var(--mint-soft); border-color: #bfeedb; } .sr-g.W b { color: var(--mint); }
.sr-g.L { background: #ffe9ed; border-color: #ffc9d3; } .sr-g.L b { color: var(--red); }
.sr-g.next { border: 2px dashed var(--blue); background: var(--blue-soft); } .sr-g.next b { color: var(--blue); font-size: 13px; }
.seg.two { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.seg.two button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; padding-right: 6px; }
.mode-card.duel { background: linear-gradient(135deg, #fff 40%, var(--violet-soft)); }
.opp .hh.mc-ic { width: 40px; height: 40px; }
.cap-bar { padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #fff7dc, #fff); border: 1px solid #ffe2a6; box-shadow: var(--shadow-sm); }
.cap-bar .cb-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.cap-bar .cb-top b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.cap-bar .cb-top span { font-size: 13px; font-weight: 700; color: var(--mute); }
.cap-bar .prog i { background: linear-gradient(90deg, #ffbf1f, #ff9f1c); }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offer { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; transition: transform .15s var(--spring); }
.offer:active { transform: scale(.96); }
.offer .of-card { width: 100%; }
.offer .of-card .pcard { width: 100%; }
.offer b { font-size: 13px; font-weight: 800; margin-top: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer small { font-size: 11px; font-weight: 700; color: var(--mute); }
.offer .price { margin-top: 4px; font-size: 13px; font-weight: 800; color: #7a5600; background: var(--sun-soft); padding: 3px 9px; border-radius: 99px; }
.offer.off { opacity: .45; box-shadow: none; }
.offer.off .price { background: #ffe9ed; color: var(--red); }
.cap-path { margin-bottom: 14px; }
/* standalone live match (Duel, Salary Cap) */
.live.solo { padding: 16px 16px 12px; }
.live.solo .lv-score { font-size: 60px; gap: 10px; }
.live.solo .lv-score i { font-size: 34px; }
.live.solo .lv-h, .live.solo .lv-h svg { width: 64px; height: auto; }
.live.solo .lv-tm b { font-size: 14px; }
.live.solo .lv-feed { min-height: 84px; }
.live.solo .lv-pl { font-size: 13.5px; }
.tape { margin-top: 12px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 8px; font-weight: 800; font-size: 13px; }
.tp-head span:last-child { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-head small { font-size: 11px; font-weight: 700; color: var(--mute); }
.tp-row { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 8px; margin-top: 6px; position: relative; padding-bottom: 12px; }
.tp-row b { font-size: 14px; font-weight: 800; text-align: center; }
.tp-row small { position: absolute; left: 0; right: 0; bottom: -1px; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--mute); }
.tp-bar { height: 8px; border-radius: 8px; background: #ffd5df; overflow: hidden; }
.tp-bar i { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.tp-xi { margin-top: 4px; }

/* ---------- continue / resume ---------- */
.cont-list { display: grid; gap: 8px; }
.cont { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1.5px solid #cfd9ff; box-shadow: 0 0 0 4px var(--blue-soft), var(--shadow-sm); transition: transform .15s var(--spring); }
.cont:active { transform: scale(.98); }
.cont .mc-ic { width: 38px; height: 38px; border-radius: 12px; }
.cont .grow { min-width: 0; }
.cont b { display: block; font-size: 15px; font-weight: 800; }
.cont small { display: block; font-size: 12.5px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont .dl-go { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.resume-head { display: flex; align-items: center; gap: 12px; }
.resume-head .mc-ic { width: 44px; height: 44px; }

/* ---------- tidy grouped lists ---------- */
.group-title { margin: 22px 4px 8px; font-size: 13px; font-weight: 800; color: var(--mute); letter-spacing: .02em; }
.group-title.row-title { display: flex; justify-content: space-between; align-items: center; }
.group-title .mute { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.group { border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; color: var(--mute); transition: background .15s; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow:active { background: var(--bg); }
.lrow .mc-ic { width: 38px; height: 38px; border-radius: 12px; }
.lrow .grow { min-width: 0; }
.lrow b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.lrow small { display: block; font-size: 12.5px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmeta { flex: none; font-size: 12px; font-weight: 800; color: var(--ink2); background: var(--bg); padding: 4px 9px; border-radius: 99px; display: inline-flex; align-items: center; }
.lmeta.hot { color: #fff; background: var(--brand); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; padding: 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mini-stats div { text-align: center; min-width: 0; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.mini-stats small { font-size: 11px; font-weight: 700; color: var(--mute); }
.home-head + .sec-row, .home-head + .feature { margin-top: 14px; }

/* ---------- Who's Better stat cards ---------- */
.hl-cat { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.opt.sc { display: flex; flex-direction: column; align-items: stretch; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; padding: 0 0 12px; text-align: center; min-width: 0; }
.sc-top { position: relative; height: 92px; display: grid; place-items: center; }
.sc-helm { width: 78px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.sc-pos { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0,0,0,.28); padding: 2px 7px; border-radius: 7px; }
.sc-name { margin: 10px 8px 0; font-size: 15px; font-weight: 800; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.sc-team { font-size: 11.5px; font-weight: 700; color: var(--mute); }
.sc-val { margin-top: 8px; }
.sc-val b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.sc-val b.q { color: var(--line); color: #c9cfe0; }
.sc-val small { font-size: 11px; font-weight: 700; color: var(--mute); }
.opt.sc.right { box-shadow: 0 0 0 4px var(--mint), 0 14px 34px -6px rgba(16,185,129,.5); }
.opt.sc.right .sc-val b { color: var(--mint); }
.opt.sc.wrong { box-shadow: 0 0 0 4px var(--red), 0 14px 34px -6px rgba(244,63,94,.45); animation: shake .4s; }
.opt.sc.dim { opacity: .7; }
.hl-pair .hl-vs { top: 46px; }

/* =====================================================================
   FUN LAYER · shapes, motion and chunky, tappable surfaces
   ===================================================================== */
:root { --pop: cubic-bezier(.34, 1.56, .64, 1); }

/* ---- floating background shapes ---- */
.fun-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fun-bg .fs { position: absolute; opacity: .16; animation: fsFloat 18s ease-in-out infinite alternate; }
.fun-bg .fs svg { width: 100%; height: auto; display: block; }
.fun-bg .fs1 { animation-name: fsFloat2; opacity: .13; }
.fun-bg .fs2 { animation-name: fsFloat3; opacity: .19; }
@keyframes fsFloat { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(18px, -26px) rotate(40deg); } }
@keyframes fsFloat2 { 0% { transform: translate(0, 0) rotate(0) scale(1); } 100% { transform: translate(-22px, 20px) rotate(-55deg) scale(1.15); } }
@keyframes fsFloat3 { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(10px, 14px) rotate(25deg); } 100% { transform: translate(-14px, -10px) rotate(-20deg); } }

/* ---- screens: content cascades in ---- */
.screen > * { animation: popIn .45s var(--pop) backwards; }
.screen > *:nth-child(1) { animation-delay: 0s; } .screen > *:nth-child(2) { animation-delay: .04s; } .screen > *:nth-child(3) { animation-delay: .08s; }
.screen > *:nth-child(4) { animation-delay: .12s; } .screen > *:nth-child(5) { animation-delay: .16s; } .screen > *:nth-child(6) { animation-delay: .2s; }
.screen > *:nth-child(7) { animation-delay: .24s; } .screen > *:nth-child(n+8) { animation-delay: .28s; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.screen.draft > *, .screen.gd > * { animation: none; }

/* ---- tap ripple ---- */
.rp-host { overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); pointer-events: none; animation: ripple .6s ease-out forwards; z-index: 0; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.burst { position: fixed; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; animation: burst .85s cubic-bezier(.2, .8, .3, 1) forwards; }
.burst svg { width: 100%; height: 100%; display: block; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); opacity: 0; } }

/* ---- chunky 3D buttons: they press down ---- */
.btn { border-radius: 18px; box-shadow: 0 4px 0 var(--line2), var(--shadow-sm); transition: transform .12s var(--pop), box-shadow .12s; }
.btn:active { transform: translateY(3px) scale(.99); box-shadow: 0 1px 0 var(--line2), var(--shadow-sm); }
.btn.primary { background: linear-gradient(135deg, #4b78ff 0%, #3466ff 45%, #7a5cff 100%); box-shadow: 0 5px 0 #2638b8, 0 14px 26px -8px rgba(52,102,255,.6); position: relative; overflow: hidden; }
.btn.primary:active { box-shadow: 0 1px 0 #2638b8, 0 6px 14px -6px rgba(52,102,255,.5); }
.btn.hot { box-shadow: 0 5px 0 #c4245a, 0 14px 26px -8px rgba(255,63,125,.55); position: relative; overflow: hidden; }
.btn.hot:active { box-shadow: 0 1px 0 #c4245a; }
.btn.sun { box-shadow: 0 5px 0 #c98a00, 0 12px 24px -8px rgba(245,167,0,.5); }
.btn.sun:active { box-shadow: 0 1px 0 #c98a00; }
.btn.primary::after, .btn.hot::after, .feature .go::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); animation: sheen 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.icon-btn { border-radius: 15px; box-shadow: 0 3px 0 var(--line2); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line2); }

/* ---- the Season card: stadium lights, stripes, a bobbing helmet ---- */
.feature { border-radius: 30px; padding: 22px 20px; min-height: 196px; box-shadow: 0 6px 0 #070b18, 0 26px 50px -16px rgba(52,102,255,.6); transition: transform .14s var(--pop), box-shadow .14s; }
.feature:active { transform: translateY(4px); box-shadow: 0 2px 0 #070b18, 0 14px 30px -14px rgba(52,102,255,.5); }
.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.035) 22px 44px); }
.feature::after { content: ''; position: absolute; z-index: -1; top: -60px; left: 30%; width: 120px; height: 300px; background: linear-gradient(180deg, rgba(255,255,230,.35), transparent 75%); transform: rotate(28deg); filter: blur(8px); animation: beam 5s ease-in-out infinite alternate; }
@keyframes beam { from { transform: rotate(18deg); opacity: .6; } to { transform: rotate(38deg); opacity: 1; } }
.feature h3 { font-size: 44px; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.feature .tag { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22); }
.feature .art { width: 178px; right: -20px; bottom: -18px; animation: helmBob 3.2s ease-in-out infinite; }
@keyframes helmBob { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
.feature .go { position: relative; overflow: hidden; padding: 12px 20px; border-radius: 15px; font-size: 15px; box-shadow: 0 4px 0 #c9d2f0; animation: goPulse 2.4s ease-in-out infinite; }
@keyframes goPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.feature .fx { position: absolute; z-index: -1; pointer-events: none; }
.feature .fx svg { width: 100%; display: block; }
.feature .fx1 { width: 26px; top: 18px; right: 120px; animation: twinkle 2.2s ease-in-out infinite; }
.feature .fx2 { width: 16px; top: 64px; right: 34px; animation: twinkle 2.8s ease-in-out -.9s infinite; }
.feature .fx3 { width: 40px; bottom: 16px; left: 52%; opacity: .5; animation: fsFloat 7s ease-in-out infinite alternate; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(25deg); opacity: 1; } }

/* ---- sticker icons: tilted tiles with a white rim ---- */
.lrow .mc-ic, .cont .mc-ic, .dl-card .tc-ic, .mode-card .mc-ic { border: 2.5px solid #fff; box-shadow: 0 6px 14px -6px var(--tint, #3466ff), 0 0 0 1px rgba(11,16,32,.04); transform: rotate(-6deg); transition: transform .3s var(--pop); }
.lrow:nth-child(even) .mc-ic { transform: rotate(5deg); }
.lrow:active .mc-ic, .cont:active .mc-ic { transform: rotate(0) scale(1.12); }
.lrow { transition: background .15s, transform .15s var(--pop); }
.lrow:active { transform: scale(.985); }
.lrow b { font-size: 16px; }

/* ---- groups: soft cards with a colourful shape marker on the title ---- */
.group { border-radius: 24px; border: 0; box-shadow: 0 4px 0 var(--line2), var(--shadow); }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin-top: 24px; }
.group-title::before { content: ''; width: 14px; height: 14px; flex: none; border-radius: 5px; background: var(--blue); transform: rotate(45deg); }
.group-title:nth-of-type(3n+2)::before { background: var(--pink); border-radius: 50%; transform: none; }
.group-title:nth-of-type(3n)::before { background: var(--sun); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; transform: none; }
.group-title.row-title::before { display: none; }
.group-title.row-title > span:first-child::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; background: var(--violet); }
.group-title.row-title > span:first-child { color: var(--ink); }

/* ---- stats strip: each number gets its own colour ---- */
.mini-stats { border: 0; border-radius: 22px; box-shadow: 0 4px 0 var(--line2), var(--shadow-sm); }
.mini-stats div:nth-child(1) b { color: var(--blue); } .mini-stats div:nth-child(2) b { color: #e09a00; }
.mini-stats div:nth-child(3) b { color: var(--pink); } .mini-stats div:nth-child(4) b { color: var(--violet); }
.mini-stats b { font-size: 20px; }

/* ---- floating tab dock with a bubble under the active tab ---- */
.tabbar { left: 12px; right: 12px; width: auto; max-width: 496px; margin: 0 auto; transform: none; bottom: calc(10px + var(--safe-b)); padding: 8px; border-radius: 26px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.86); box-shadow: 0 4px 0 rgba(11,16,32,.06), 0 18px 40px -12px rgba(11,16,32,.25); }
.tabbar button { border-radius: 18px; padding: 7px 0 5px; z-index: 0; }
.tabbar button.on { color: #fff; }
.tabbar button.on::after { display: none; }
.tabbar button.on::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: linear-gradient(135deg, #4b78ff, #7a5cff); box-shadow: 0 3px 0 #2638b8, 0 8px 16px -6px rgba(52,102,255,.6); animation: tabPop .35s var(--pop); }
.tabbar button.on .ico { animation: tabIco .5s var(--pop); transform: none; }
@keyframes tabPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tabIco { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-5px) rotate(-12deg); } 100% { transform: none; } }
.tabbar .badge-dot { top: 3px; right: calc(50% - 18px); animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.screen.has-tabs { padding-bottom: calc(var(--tabbar) + 34px + var(--safe-b)); }

/* ---- header chips: level ring glows, the coin spins now and then ---- */
.lvl, .coins { border: 0; box-shadow: 0 3px 0 var(--line2), var(--shadow-sm); }
.lvl .badge { box-shadow: 0 0 0 3px rgba(52,102,255,.12), 0 6px 14px -4px rgba(52,102,255,.5); }
.coins .ico { animation: coinFlip 4s ease-in-out infinite; }
@keyframes coinFlip { 0%, 80% { transform: rotateY(0); } 90% { transform: rotateY(180deg) scale(1.15); } 100% { transform: rotateY(360deg); } }
.topbar h2.d, .topbar h2.display { font-size: 28px; position: relative; }
.topbar h2.d.grow::after { content: ''; display: block; width: 46px; height: 7px; margin-top: 3px; border-radius: 6px; background: linear-gradient(90deg, var(--pink), var(--sun)); }

/* ---- cards around the app get a bit of bounce and depth ---- */
.hero-card, .step, .toggle, .opp, .offer, .dl-card, .cont, .series, .tape, .cap-bar, .club-hero, .binder-hero, .daily-hero, .stat, .ach { box-shadow: 0 4px 0 var(--line2), var(--shadow-sm); }
.offer, .opp, .dl-card, .cont, .toggle { transition: transform .15s var(--pop); }
.offer:active, .opp:active, .dl-card:active, .cont:active, .toggle:active { transform: translateY(3px) scale(.99); }
.cont { border: 2px solid #cfd9ff; }
.seg { border-radius: 18px; }
.seg button.on { box-shadow: 0 3px 0 var(--line2), 0 4px 10px -4px rgba(11,16,32,.15); animation: tabPop .3s var(--pop); }
.live.on { border: 0; box-shadow: 0 5px 0 var(--line2), var(--shadow); border-radius: 26px; }
.live .lv-score span.bump { animation: lvBump2 .7s var(--pop); }
@keyframes lvBump2 { 0% { transform: scale(1); } 30% { transform: scale(1.5) rotate(-6deg); color: var(--pink); } 100% { transform: scale(1); } }
.live.won { box-shadow: 0 0 0 3px var(--mint), 0 5px 0 #0c8f63, var(--shadow); }
.live.won .lv-clock b { animation: tabPop .4s var(--pop); }
.outcome h2 { animation: popIn .5s var(--pop) both; }

/* ---- calm mode for people who turn motion off ---- */
@media (prefers-reduced-motion: reduce) {
  .fun-bg .fs, .screen > *, .feature::after, .feature .art, .feature .go, .feature .fx, .coins .ico, .tabbar .badge-dot, .btn.primary::after, .btn.hot::after, .feature .go::after { animation: none !important; }
  .burst, .ripple { display: none; }
}

/* ---------- Daily Draft rankings ---------- */
.board { margin-top: 14px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: 0 4px 0 var(--line2), var(--shadow); }
.bd-head b { display: block; font-size: 16px; font-weight: 800; }
.bd-head small { display: block; font-size: 12.5px; font-weight: 600; color: var(--mute); margin-top: 2px; }
.bd-rank { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, var(--blue-soft), #fff); }
.bd-big { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--blue); line-height: 1; }
.bd-big span { font-size: 14px; font-weight: 700; color: var(--mute); letter-spacing: 0; margin-left: 6px; }
.bd-top { flex: none; font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 99px; background: var(--card); color: var(--ink2); box-shadow: 0 2px 0 var(--line2); }
.bd-top.hot { color: #fff; background: linear-gradient(135deg, #ffbf1f, #ff7a1a); box-shadow: 0 3px 0 #c45a00; }
.bd-hist { display: grid; grid-template-columns: repeat(18, 1fr); align-items: end; gap: 3px; height: 112px; margin-top: 14px; }
.bd-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bd-col i { display: block; width: 100%; min-height: 0; border-radius: 4px 4px 2px 2px; background: #d9e1fb; transition: height .6s var(--pop, ease); }
.bd-col small { font-size: 10px; font-weight: 700; color: var(--mute); height: 12px; line-height: 12px; }
.bd-col.me i { background: linear-gradient(180deg, #ff5a8f, #ff3f7d); box-shadow: 0 0 0 2px #fff, 0 4px 10px -2px rgba(255,63,125,.6); }
.bd-col.me small { color: var(--pink); font-weight: 800; }
.bd-axis { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--mute); margin-top: 4px; }
.bd-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bd-stats div { text-align: center; }
.bd-stats div + div { border-left: 1px solid var(--line); }
.bd-stats b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.bd-stats small { font-size: 11px; font-weight: 700; color: var(--mute); }

/* Salary Cap playoff ladder: four steps, each says what happened */
.cap-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cap-steps .cs { text-align: center; padding: 9px 4px; border-radius: 14px; background: var(--card); box-shadow: 0 3px 0 var(--line2); }
.cap-steps .cs b { display: block; font-size: 14px; font-weight: 800; }
.cap-steps .cs small { font-size: 11px; font-weight: 700; color: var(--mute); }
.cap-steps .cs.W { background: var(--mint-soft); box-shadow: 0 3px 0 #b5e8d3; } .cap-steps .cs.W b, .cap-steps .cs.W small { color: var(--mint); }
.cap-steps .cs.L { background: #ffe9ed; box-shadow: 0 3px 0 #ffc9d3; } .cap-steps .cs.L b, .cap-steps .cs.L small { color: var(--red); }
.cap-steps .cs.next { background: linear-gradient(135deg, #4b78ff, #7a5cff); box-shadow: 0 3px 0 #2638b8; } .cap-steps .cs.next b, .cap-steps .cs.next small { color: #fff; }
/* name-only search rows (The Grid): no card, no team, no position */
.srow.name-only { padding: 14px 12px; }
.srow.name-only b { font-size: 16px; }
.srow.name-only small { display: block; }

/* Rivals seasons */
.season-clock { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(255,255,255,.16); }
.season-rw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.season-rw div { text-align: center; padding: 8px 2px; border-radius: 12px; background: var(--card); box-shadow: 0 2px 0 var(--line2); min-width: 0; }
.season-rw b { display: block; font-size: 12px; font-weight: 800; }
.season-rw small { font-size: 11px; font-weight: 700; color: #c98a00; }
.season-rw div.on { background: linear-gradient(135deg, #4b78ff, #7a5cff); box-shadow: 0 3px 0 #2638b8; }
.season-rw div.on b, .season-rw div.on small { color: #fff; }
/* Rivals: wins-to-promote progress bar */
.div-prog { margin-top: 8px; }
.div-prog .dp-bar { width: 170px; max-width: 100%; height: 8px; border-radius: 8px; background: rgba(255,255,255,.18); overflow: hidden; }
.div-prog .dp-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ffe08a, #ffbf1f); transition: width .5s; }
.div-prog span { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; color: #c9d2f0; }
/* online room: connection light */
.net-pill { color: var(--mint); }
.net-pill.bad { color: var(--orange); }
.net-pill.bad .ico { animation: dotPulse 1s ease-in-out infinite; }

/* ---------- Rookie Camp: spotlight tour + tips ---------- */
.coach { position: fixed; inset: 0; z-index: 950; pointer-events: auto; }
.coach.dim { background: rgba(11,16,32,.62); backdrop-filter: blur(2px); }
.co-hole { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(11,16,32,.62), 0 0 0 3px #fff, 0 0 30px 6px rgba(122,92,255,.7); transition: left .35s var(--pop, ease), top .35s var(--pop, ease), width .35s var(--pop, ease), height .35s var(--pop, ease); pointer-events: none; animation: coPulse 1.8s ease-in-out infinite; }
@keyframes coPulse { 0%, 100% { box-shadow: 0 0 0 9999px rgba(11,16,32,.62), 0 0 0 3px #fff, 0 0 24px 4px rgba(122,92,255,.6); } 50% { box-shadow: 0 0 0 9999px rgba(11,16,32,.62), 0 0 0 3px #fff, 0 0 38px 10px rgba(122,92,255,.85); } }
.co-bubble { position: fixed; width: min(330px, calc(100vw - 24px)); padding: 16px 16px 14px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line2), 0 24px 50px -10px rgba(11,16,32,.45); }
.co-bubble.in { animation: coIn .35s var(--pop, ease); }
@keyframes coIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.co-step { display: inline-block; font-size: 11px; font-weight: 800; color: var(--violet); background: var(--violet-soft); padding: 3px 9px; border-radius: 99px; }
.co-bubble > b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.co-bubble p b { font-weight: 800; color: var(--ink); }
.co-bubble p { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink2); font-weight: 500; }
.co-btns { display: flex; justify-content: space-between; gap: 8px; }
.co-btns .btn { width: auto; flex: none; }
.co-btns .btn.primary { flex: 1; }
.co-skip { color: var(--mute); }
.co-bubble::before { content: ''; position: absolute; left: 50%; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); display: none; }
.co-bubble[data-arrow="up"]::before { display: block; top: -7px; }
.co-bubble[data-arrow="down"]::before { display: block; bottom: -7px; }
.tip-head { display: flex; align-items: center; gap: 12px; }
.tip-head .intro-ic { width: 46px; height: 46px; border-radius: 15px; }

/* ---------- Rivals hub ---------- */
.rv-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 26px; color: #fff; background: #10172e; position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 6px 0 #070b18, var(--shadow-lg); }
.rv-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 100% at 0% 100%, rgba(122,92,255,.55), transparent 60%), radial-gradient(60% 90% at 100% 0%, rgba(52,102,255,.6), transparent 60%); }
.rv-badge { flex: none; width: 78px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 22px 22px 40px 40px; background: linear-gradient(160deg, #ffd75a, #f5a700); color: #3a2600; box-shadow: 0 5px 0 #b77800, 0 12px 24px -8px rgba(245,167,0,.7); }
.rv-badge small { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.rv-badge b { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.rv-name { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.rv-sub { display: block; font-size: 13px; font-weight: 600; color: #c9d2f0; margin-top: 2px; }
.rv-safe { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(16,185,129,.22); color: #7ff0c6; }
.rv-track { display: flex; gap: 4px; margin-top: 14px; }
.rv-track i { flex: 1; height: 14px; border-radius: 5px; background: var(--line2); }
.rv-track i.on { background: linear-gradient(180deg, #ffd75a, #f5a700); box-shadow: 0 2px 0 #c98a00; }
.rv-track i.next { background: repeating-linear-gradient(45deg, var(--line2) 0 4px, #fff 4px 8px); box-shadow: 0 0 0 2px var(--blue) inset; }
.rv-track-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--mute); }
.rv-if { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.rv-card { padding: 12px; border-radius: 18px; background: var(--card); box-shadow: 0 4px 0 var(--line2); border: 2px solid transparent; }
.rv-card small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--mute); }
.rv-card b { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.rv-card.win { border-color: #bfeedb; } .rv-card.win small { color: var(--mint); }
.rv-card.safe { border-color: #bfeedb; background: var(--mint-soft); } .rv-card.safe small { color: var(--mint); }
.rv-card.warn { border-color: #ffe2a6; background: #fff8e6; } .rv-card.warn small { color: #c98a00; }
.rv-card.danger { border-color: #ffc2cd; background: #ffeef1; animation: dotPulse 1.6s ease-in-out infinite; } .rv-card.danger small, .rv-card.danger b { color: var(--red); }
.rv-ladder { display: grid; gap: 4px; }
.rv-rung { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--card); box-shadow: 0 2px 0 var(--line2); font-size: 13.5px; }
.rv-rung b { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--bg); }
.rv-rung span { font-weight: 700; min-width: 0; }
.rv-rung em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--blue); padding: 2px 7px; border-radius: 99px; margin-left: 4px; }
.rv-rung small { font-size: 11.5px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.rv-rung small.c { color: #c98a00; display: inline-flex; align-items: center; gap: 3px; min-width: 62px; justify-content: flex-end; }
.rv-rung.me { background: linear-gradient(135deg, #4b78ff, #7a5cff); color: #fff; box-shadow: 0 3px 0 #2638b8; }
.rv-rung.me b { background: rgba(255,255,255,.22); color: #fff; } .rv-rung.me small { color: #e2e8ff; } .rv-rung.me em { background: #fff; color: var(--blue); }
.rv-rung.past { opacity: .6; }
.rv-rules p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); } .rv-rules p:last-child { margin: 0; }
#toRivals { cursor: pointer; }
/* player picker: the "remove from lineup" row and swap notes */
.srow.top-action b { color: var(--red); }
.srow .ta-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #ffe9ed; color: var(--red); flex: none; }
.srow-note { color: var(--blue); font-weight: 800; }
/* Me tab: redeem a code */
.code-box { display: flex; gap: 8px; align-items: center; }
.code-box .field { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.code-box .btn { flex: none; padding: 14px 16px; }
/* Icon pack: black and gold, with a slow shine */
.pack-art[style*="#1a1a2e"], .pack-big[style*="#1a1a2e"] { box-shadow: 0 0 0 2px #ffcf4d, 0 10px 26px -8px rgba(255,191,31,.7); }
.pack-art[style*="#1a1a2e"] b, .pack-big[style*="#1a1a2e"] b { color: #ffe08a; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.pack-art[style*="#1a1a2e"] .pa-shine, .pack-big[style*="#1a1a2e"] .pa-shine { animation-duration: 2.2s; }

/* ---------- objectives ---------- */
.seg { grid-template-columns: repeat(4, 1fr); }
.seg button { font-size: 13px; padding-left: 2px; padding-right: 2px; white-space: nowrap; }
.seg .badge-dot { right: 6px; }
.objs { display: grid; gap: 8px; margin-bottom: 16px; }
.obj { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.obj .grow { min-width: 0; }
.obj b { display: block; font-size: 14.5px; line-height: 1.25; }
.obj small { color: var(--mute); font-weight: 700; font-size: 12px; }
.obj-bar { height: 7px; border-radius: 99px; background: #eceff7; overflow: hidden; margin: 6px 0 3px; }
.obj-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5b8cff, #2f5ef0); transition: width .5s ease; }
.obj.done { border-color: #b9ead4; background: linear-gradient(135deg, var(--mint-soft), #fff); }
.obj.done .obj-bar i { background: linear-gradient(90deg, #34d399, #10b981); }
.obj.claimed { opacity: .55; box-shadow: none; }
.obj-pack { flex: none; color: #fff; font-size: 11px; font-weight: 800; padding: 6px 9px; border-radius: 10px; box-shadow: 0 6px 12px -6px rgba(11,16,32,.5); }
.owned-packs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 4px; }
.owned { flex: none; display: grid; justify-items: center; gap: 6px; }
.owned .pack-art { width: 72px; }
.owned small { font-weight: 800; font-size: 12px; color: var(--brand); }

/* friends season: compact records strip above your own season view */
.mgr-cards.mini { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.mgr-cards.mini .mgr-card { padding: 8px 10px; border-radius: 14px; gap: 8px; font-size: 13px; }
.mgr-cards.mini .mgr-card .rec { font-size: 14px; }
.mgr-cards.mini .mgr-card .st { font-size: 11px; }
.mgr-card.me { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }

/* sell cards */
.sell-list { display: grid; gap: 6px; }
.sell-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sell-row .grow { min-width: 0; }
.sell-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sell-row small { color: var(--mute); font-weight: 700; font-size: 11.5px; }
.sr-ovr { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: #9aa3b5; }
.sr-ovr.legend { background: linear-gradient(135deg, #a78bff, #ff3d7f); } .sr-ovr.elite { background: linear-gradient(135deg, #ffcf4d, #ff8a1a); }
.sr-ovr.gold { background: linear-gradient(135deg, #f5c542, #d49b00); } .sr-ovr.silver { background: linear-gradient(135deg, #b8c1d1, #7f8aa0); } .sr-ovr.bronze { background: linear-gradient(135deg, #d99a6c, #a0623a); }
.sr-st { color: #f5a700; font-size: 12px; }

/* connections */
.conn-solved { display: grid; gap: 8px; margin-bottom: 8px; }
.conn-group { border-radius: 16px; padding: 12px 10px; text-align: center; color: #0b1020; animation: tabPop .35s ease; }
.conn-group b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.conn-group span { font-size: 12.5px; font-weight: 600; }
.conn-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.conn-tile { aspect-ratio: 1 / .82; border-radius: 14px; background: #eceff7; display: grid; place-items: center; padding: 4px; font-weight: 800; font-size: 11.5px; line-height: 1.15; color: var(--ink); text-align: center; transition: transform .12s, background .15s; overflow-wrap: anywhere; }
.conn-tile:active { transform: scale(.95); }
.conn-tile.on { background: #2f3b5c; color: #fff; }
.conn-ctl { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.conn-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-left: 4px; vertical-align: middle; }
.conn-dot.off { background: #d5dae6; }

/* sign in */
.auth { max-width: 420px; margin: 0 auto; padding-top: 6vh; }
.auth-logo { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(150deg, #5b8cff, #2f5ef0); box-shadow: 0 16px 30px -12px #2f5ef0; }
.auth-logo svg { width: 60px; height: 60px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink2); }
.auth-form .field { width: 100%; }
.auth-msg { min-height: 18px; margin: 0; font-weight: 700; font-size: 13px; color: var(--red); }
.conn-left { text-align: center; font-weight: 700; font-size: 13px; color: var(--ink2); margin-top: 14px; }
.conn-left + div .conn-ctl { margin-top: 10px; }

/* owner analytics dashboard */
.dz-range { grid-template-columns: repeat(3, 1fr); }
.dz-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.dz-tile { padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dz-tile b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.dz-tile span { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.dz-tile small { display: block; font-size: 11.5px; font-weight: 600; color: var(--mute); margin-top: 2px; }
.dz-card { padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 12px; min-width: 0; }
.dz-card h4 { margin: 0 0 10px; font-size: 15px; } .dz-card h4 small { font-weight: 600; color: var(--mute); font-size: 12px; margin-left: 4px; }
.dz-two { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .dz-two { grid-template-columns: 1fr 1fr; gap: 12px; } .dz-tiles { grid-template-columns: repeat(3, 1fr); } }
.dz-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; height: 130px; padding-bottom: 16px; border-bottom: 1px solid var(--line); position: relative; }
.dz-col { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.dz-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #3466ff; min-height: 0; }
.dz-bars.alt .dz-col i { background: #10b981; }
.dz-col:hover i { filter: brightness(1.15); }
.dz-col small { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.dz-bars.wide { gap: 6px; }
.dz-h { display: grid; gap: 7px; }
.dz-hr { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.dz-hl { font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-hb { height: 10px; border-radius: 99px; background: #eef1f8; overflow: hidden; } .dz-hb i { display: block; height: 100%; border-radius: 99px; background: #3466ff; }
.dz-hr b { font-size: 12.5px; color: var(--ink); min-width: 28px; text-align: right; }
.dz-note { margin: 10px 0 0; font-size: 12px; font-weight: 700; color: var(--mute); }
.dz-feed { display: grid; gap: 6px; max-height: 320px; overflow: auto; font-size: 13px; }
.dz-feed span { font-size: 11.5px; font-weight: 700; }
.dz-table { display: grid; gap: 2px; }
.dz-th, .dz-tr { display: grid; grid-template-columns: 1fr 34px 62px 38px 44px; gap: 6px; align-items: center; font-size: 12.5px; text-align: left; padding: 7px 4px; }
.dz-th { font-weight: 800; color: var(--mute); font-size: 11px; text-transform: uppercase; }
.dz-tr { border-radius: 10px; width: 100%; } .dz-tr:nth-child(even) { background: #f6f8fc; }
.dz-tr span:first-child { min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-tr small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 600; }
.dz-err { font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); word-break: break-word; } .dz-err small { display: block; color: var(--mute); }
.dz-kvs { display: grid; }
.dz-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .dz-kv span { color: var(--ink2); font-weight: 600; }
.dz-tip { position: fixed; z-index: 99; padding: 6px 9px; border-radius: 9px; background: #0b1020; color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; max-width: 260px; }
.dz-warn { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: #fff1f2; border: 1px solid #fecdd3; margin-bottom: 12px; } .dz-warn b { color: #e11d48; font-size: 14px; } .dz-warn span { font-size: 12.5px; font-weight: 600; color: var(--ink2); }

/* connections: smoother board */
.conn-solved { gap: 8px; margin-bottom: 8px; }
.conn-board { gap: 8px; }
.conn-tile { aspect-ratio: auto; height: 66px; border-radius: 14px; background: #eef1f7; box-shadow: 0 3px 0 #d6dceb; font-size: 12px; line-height: 1.15; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease; will-change: transform; }
.conn-tile.long { font-size: 10.5px; }
.conn-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 #d6dceb; }
.conn-tile.on { background: #2f3b5c; color: #fff; box-shadow: 0 3px 0 #1b2440; }
.conn-tile.shake { animation: connShake .38s ease; }
@keyframes connShake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.conn-group { min-height: 66px; display: grid; place-content: center; gap: 2px; animation: none; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.conn-group.in { animation: connIn .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes connIn { from { opacity: 0; transform: scale(.9) translateY(6px); } to { opacity: 1; transform: none; } }
.conn-dot { transition: background .3s ease, transform .3s ease; }
.conn-dot.lost { animation: connLost .45s ease; }
@keyframes connLost { 0% { transform: scale(1); background: #0b1020; } 40% { transform: scale(1.6); background: #e11d48; } 100% { transform: scale(1); } }
.conn-ctl .btn:disabled { opacity: .45; }

/* trade-in */
.ti-entry { background: linear-gradient(135deg, #fff4e0, #fff); border-color: #ffd89a; margin-top: 14px; }
.ti-entry .fp-ic { background: linear-gradient(135deg, #ffb020, #ff6a1a); }
.ti-hero { padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #fff4e0, #fff); border: 1px solid #ffd89a; margin-bottom: 12px; }
.ti-hero b { display: block; font-size: 15px; } .ti-hero small { color: var(--ink2); font-weight: 600; font-size: 12.5px; }
.ti-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.ti-slot { aspect-ratio: .72; border-radius: 12px; border: 2px dashed #cdd3e1; display: grid; place-items: center; color: #b6bdcc; font-size: 22px; font-weight: 800; overflow: hidden; padding: 0; background: none; }
.ti-slot.on { border: none; }
.ti-slot .pcard, .ti-pick .pcard { width: 100%; }
.ti-pick { padding: 0; border-radius: 12px; position: relative; transition: transform .12s ease; }
.ti-pick.on { outline: 3px solid #ff6a1a; outline-offset: 2px; transform: scale(.95); }
.ti-odds { padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ti-for { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ti-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.ti-bar i, .ti-legend i { background: #e2e6ef; } .ti-bar i.down, .ti-legend i.down { background: #f87171; } .ti-bar i.same, .ti-legend i.same { background: #94a3b8; } .ti-bar i.up, .ti-legend i.up { background: #22c55e; }
.ti-legend { display: grid; gap: 4px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.ti-legend span { display: flex; align-items: center; gap: 6px; } .ti-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .ti-legend b { margin-left: auto; color: var(--ink); }
.ti-spin { margin-top: 24px; }
.ti-reel { display: grid; gap: 10px; }
.ti-cell { padding: 18px; border-radius: 18px; background: #eef1f7; text-align: center; border: 3px solid transparent; transition: background .12s, border-color .12s, transform .12s; }
.ti-cell small { display: block; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); } .ti-cell b { font-size: 18px; }
.ti-cell.lit { border-color: #0b1020; transform: scale(1.02); background: #fff; }
.ti-cell.won.down { background: #fee2e2; border-color: #f87171; } .ti-cell.won.same { background: #e2e8f0; border-color: #64748b; } .ti-cell.won.up { background: #dcfce7; border-color: #22c55e; animation: tabPop .5s ease; }

.auth-why { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 12px; border-radius: 14px; background: #eef3ff; color: #2f5ef0; font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.acct-cta { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #eef3ff, #fff); border: 1px solid #cfdcff; }
.acct-cta b { display: block; font-size: 14.5px; } .acct-cta small { color: var(--ink2); font-weight: 600; font-size: 12.5px; }

/* transfer market */
.mk-entry { background: linear-gradient(135deg, #eef3ff, #fff); border-color: #cfdcff; margin-top: 14px; }
.mk-entry .fp-ic { background: linear-gradient(135deg, #5b8cff, #2f5ef0); }
.mk-entry + .ti-entry { margin-top: 0; }
.mk-tabs { grid-template-columns: repeat(3, 1fr); }
.mk-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.mk-chips .chip { flex: none; }
.mk-info { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #eef3ff; color: var(--ink2); font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.mk-mine { display: grid; justify-items: end; gap: 4px; } .mk-mine b { font-size: 13px; } .mk-mine small { color: var(--mute); font-weight: 700; }
.mk-price { display: grid; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink2); margin-top: 10px; } .mk-price .field { width: 100%; font-size: 18px; font-weight: 800; text-align: center; }
.mk-news { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mk-chips { scrollbar-width: none; } .mk-chips::-webkit-scrollbar { display: none; }

/* transfer market v2: card grid */
.mk-filters { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-bottom: 8px; }
.mk-filters .field { min-width: 0; padding-left: 10px; padding-right: 10px; }
.mk-filters select.field { font-weight: 700; padding-right: 6px; }
.mk-count { font-size: 12px; font-weight: 800; color: var(--mute); margin: 2px 2px 8px; text-transform: uppercase; letter-spacing: .04em; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
@media (min-width: 520px) { .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-tile { display: grid; justify-items: center; gap: 5px; padding: 0; background: none; border: 0; text-align: center; min-width: 0; transition: transform .12s ease; }
.mk-tile:active { transform: scale(.96); }
.mk-tile .pcard { width: 100%; }
.mk-tag { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 6px 4px; border-radius: 10px; background: linear-gradient(135deg, #5b8cff, #2f5ef0); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 #2346c7; }
.mk-tag.own { background: #e6eaf3; color: var(--ink2); box-shadow: 0 3px 0 #cfd6e4; }
.mk-tag.sell { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 3px 0 #0b8f63; }
.mk-sub { font-size: 10.5px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mk-sub a { color: var(--red); text-decoration: underline; cursor: pointer; }
.mk-tile.mine { opacity: .75; }
.mk-empty { grid-column: 1 / -1; font-weight: 700; margin-top: 24px; }
.mk-sheet-card { width: 150px; margin: 0 auto; }
.mk-price-big { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 28px; font-weight: 800; margin: 10px 0 6px; }
.mk-lbl { font-weight: 800; font-size: 13px; color: var(--ink2); margin: 12px 0 6px; }
.mk-dur { grid-template-columns: repeat(3, 1fr); margin: 0; }

/* what's new */
.upd-list { display: grid; gap: 10px; text-align: left; max-height: 58vh; overflow-y: auto; }
.upd { padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.upd.fresh { background: linear-gradient(135deg, #eef3ff, #fff); border-color: #cfdcff; }
.upd-head { display: flex; align-items: center; gap: 10px; }
.upd-head .mc-ic { width: 36px; height: 36px; border-radius: 12px; }
.upd-head b { display: block; font-size: 15px; } .upd-head small { color: var(--mute); font-weight: 700; font-size: 11.5px; }
.upd-new { font-size: 10px; font-weight: 800; color: #fff; background: #ff3f7d; padding: 3px 7px; border-radius: 99px; letter-spacing: .05em; }
.upd ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.upd li { font-size: 13.5px; line-height: 1.4; color: var(--ink2); font-weight: 600; }

/* great reset + invites */
.gr-banner { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #ff3f7d, #7a5cff); color: #fff; margin-bottom: 12px; box-shadow: 0 10px 22px -12px #7a5cff; }
.gr-banner b { color: #fff; } .gr-banner .grow > b { display: flex; align-items: center; gap: 6px; font-size: 15px; } .gr-banner small { display: block; font-size: 12.5px; font-weight: 600; opacity: .95; margin-top: 3px; line-height: 1.35; }
.gr-box { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #f3efff, #fff); border: 1px solid #ddd2ff; margin: 10px 0; }
.gr-box small { color: var(--mute); font-weight: 700; } .gr-box b { font-size: 26px; } .gr-box .gr-packs { font-size: 18px; color: #7a5cff; }
.gr-tiers { display: grid; gap: 4px; margin: 8px 0 12px; } .gr-tiers div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f4f6fb; font-size: 13px; } .gr-tiers span { font-weight: 800; } .gr-tiers b { text-align: right; }
.inv-hero { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 16px; border-radius: 22px; background: linear-gradient(135deg, #e9fbf3, #fff); border: 1px solid #b9ead4; margin-bottom: 14px; }
.inv-hero b { font-size: 17px; } .inv-hero > small { color: var(--ink2); font-weight: 600; font-size: 13px; }
.inv-big { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34d399, #10b981); }
.inv-code { font-size: 34px; font-weight: 800; letter-spacing: .18em; padding: 8px 18px; border-radius: 16px; background: #fff; border: 2px dashed #10b981; margin: 8px 0; }
.inv-count { color: var(--mute); font-weight: 800; font-size: 12px; }

/* ads */
.ad-entry { background: linear-gradient(135deg, #fff7e6, #fff); border-color: #ffd89a; }
.ad-entry .fp-ic { background: linear-gradient(135deg, #ffb020, #ff6a1a); }
.ad-respin { background: #fff4e0 !important; color: #c25400 !important; }
.ad-fake { position: fixed; inset: 0; z-index: 200; background: rgba(11,16,32,.92); display: grid; place-items: center; }
.ad-box { display: grid; gap: 10px; justify-items: center; color: #fff; text-align: center; padding: 30px; }
.ad-box small { opacity: .7; font-weight: 800; letter-spacing: .1em; } .ad-box b { font-size: 64px; } .ad-box span { font-weight: 600; }
.age-opts { display: grid; gap: 8px; margin-top: 12px; }

/* online rivals teaser */
.rv-soon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 12px; border-radius: 18px; border: 2px dashed #c9d3ea; background: linear-gradient(135deg, #f3f6ff, #fff); }
.rv-soon-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7a5cff, #2f5ef0); }
.rv-soon b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.rv-soon small { color: var(--ink2); font-weight: 600; font-size: 12.5px; }
.soon-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: #ff3f7d; padding: 3px 7px; border-radius: 99px; }

/* head-to-head */
.mode-blurb { font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 1.45; padding: 10px 12px; border-radius: 14px; background: #f4f6fb; margin-top: 8px; }
.hh-wait { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 22px; margin-bottom: 12px; border-radius: 20px; background: linear-gradient(135deg, #eef3ff, #fff); border: 1px solid #cfdcff; }
.hh-wait small { color: var(--mute); font-weight: 800; }
.hh-spin { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5b8cff, #2f5ef0); animation: hhPulse 1.4s ease-in-out infinite; }
@keyframes hhPulse { 50% { transform: scale(1.08); } }
.hh-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.hh-round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.hh-rt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); text-align: center; }
.hh-match { display: grid; gap: 2px; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; }
.hh-match > div { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; } .hh-match > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-match > div.w { color: var(--mint); } .hh-match small { font-size: 10.5px; font-weight: 800; color: var(--mute); }
.hh-match.live { border-color: #ff3f7d; box-shadow: 0 0 0 2px rgba(255,63,125,.15); } .hh-match.live small { color: #ff3f7d; }
.hh-match:disabled { opacity: .75; }
.hh-champ { display: grid; justify-items: center; gap: 4px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #fff6d6, #fff); border: 1px solid #ffe08a; margin-bottom: 12px; } .hh-champ svg { width: 54px; height: 54px; } .hh-champ b { font-size: 18px; }
.hh-live { padding: 14px; border-radius: 22px; background: linear-gradient(160deg, #0f1631, #1d2a5c); color: #fff; }
.hh-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.hh-score small { display: block; font-size: 12px; font-weight: 700; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hh-score b { font-size: 40px; font-weight: 800; }
.hh-score .ball small::after { content: ' 🏈'; }
.hh-clock { font-weight: 800; font-size: 13px; } .hh-clock small { display: block; font-size: 18px; opacity: 1; }
.hh-field { position: relative; margin-top: 12px; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, #1f8f4e 0 10%, #23a058 10% 20%); overflow: hidden; }
.hh-field span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.hh-ball { position: absolute; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: #ffd75a; box-shadow: 0 0 10px #ffd75a; transition: left .5s ease; }
.hh-last { margin-top: 12px; text-align: center; font-weight: 800; font-size: 15px; min-height: 22px; } .hh-last.pop { animation: tabPop .4s ease; }
.hh-role { margin: 14px 0 6px; font-weight: 800; font-size: 15px; text-align: center; } .hh-role.off { color: #2f5ef0; } .hh-role.def { color: #e11d48; }
.hh-timer { height: 6px; border-radius: 99px; background: #e6eaf3; overflow: hidden; margin-bottom: 10px; } .hh-timer i { display: block; height: 100%; width: 100%; background: #2f5ef0; transition: width 1s linear; } .hh-timer i.low { background: #e11d48; }
.hh-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hh-opt { padding: 12px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 3px 0 #dfe4ee; text-align: left; } .hh-opt:active { transform: translateY(2px); box-shadow: none; }
.hh-opt b { display: block; font-size: 15px; } .hh-opt small { color: var(--mute); font-weight: 700; font-size: 11.5px; }
.hh-locked { display: grid; justify-items: center; gap: 4px; padding: 16px; margin-top: 14px; border-radius: 18px; background: #f4f6fb; font-weight: 700; text-align: center; } .hh-locked small { color: var(--mute); }

/* what's new: bigger, simpler */
.upd { padding: 14px 16px; }
.upd-head b { font-size: 17px; }
.upd ul { list-style: none; padding: 0; margin: 10px 0 0; gap: 7px; }
.upd li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.upd li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: #2f5ef0; }
.upd:not(.fresh) li::before { background: #b8c1d6; }

/* head-to-head v2: smooth live match */
.hh-live { padding: 14px 14px 12px; border-radius: 24px; background: linear-gradient(160deg, #0f1631, #1d2a5c); color: #fff; box-shadow: 0 16px 30px -18px #0f1631; }
.hh-side { position: relative; padding: 4px 0; border-radius: 14px; transition: background .3s; }
.hh-side.has { background: rgba(255,255,255,.08); }
.hh-side .hh-pos { position: absolute; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ffd75a; opacity: 0; transition: opacity .3s; box-shadow: 0 0 8px #ffd75a; }
.hh-side.l .hh-pos { right: 8px; } .hh-side.r .hh-pos { left: 8px; } .hh-side.has .hh-pos { opacity: 1; }
.hh-side.bump b { animation: hhBump .5s ease; } @keyframes hhBump { 40% { transform: scale(1.35); color: #ffd75a; } }
.hh-field { position: relative; height: 46px; margin-top: 12px; border-radius: 12px; background: linear-gradient(#25a35a, #1f8f4e); overflow: hidden; }
.hh-field.off { opacity: .4; }
.hh-ez { position: absolute; top: 0; bottom: 0; width: 8%; } .hh-ez.l { left: 0; background: rgba(47,107,255,.85); } .hh-ez.r { right: 0; background: rgba(255,61,127,.85); }
.hh-yl { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.35); }
.hh-fd { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #ffd75a; transition: left .55s cubic-bezier(.3,.8,.3,1); }
.hh-ball { position: absolute; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); transition: left .55s cubic-bezier(.3,.8,.3,1); } .hh-ball svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.hh-ball, .hh-ball svg { background: none; box-shadow: none; }
.hh-dd { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; } .hh-dd b { font-size: 14px; } .hh-dd span { opacity: .75; font-weight: 700; }
.hh-banner { margin-top: 10px; padding: 10px 12px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.08); }
.hh-banner b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; } .hh-banner small { display: block; font-size: 12px; font-weight: 700; opacity: .8; margin-top: 2px; }
.hh-banner.good { background: rgba(34,197,94,.22); } .hh-banner.good b { color: #6ff0a4; }
.hh-banner.bad { background: rgba(239,68,68,.22); } .hh-banner.bad b { color: #ff9a9a; }
.hh-banner.pop { animation: hhPop .45s cubic-bezier(.2,1.4,.4,1); } @keyframes hhPop { from { transform: scale(.85); opacity: .3; } }
.hh-oppline { min-height: 22px; text-align: center; margin: 10px 0 2px; font-size: 13px; font-weight: 700; color: var(--mute); } .hh-oppline .ok { color: var(--mint); }
.hh-role { margin: 6px 0 6px; } .hh-timer { height: 7px; }
.hh-opt { display: grid; gap: 2px; align-content: start; min-height: 86px; transition: transform .1s, background .15s, border-color .15s; }
.hh-opt.off { border-color: #cfdcff; } .hh-opt.def { border-color: #ffd0da; }
.hh-opt .hh-hint { color: var(--ink2); font-weight: 700; font-size: 11.5px; line-height: 1.3; }
.hh-opt:disabled { opacity: .55; } .hh-opt.picked { background: #2f5ef0; color: #fff; } .hh-opt.picked small { color: #fff; }
.hh-locked { margin-top: 6px; }
.hh-tend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--mute); }
.hh-tend b { padding: 3px 8px; border-radius: 99px; background: #f0f2f8; color: var(--ink); font-size: 11.5px; }
.hh-log { display: grid; gap: 5px; margin-top: 12px; } .hh-log div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.hh-log i { width: 8px; height: 8px; border-radius: 50%; background: #ff3f7d; flex: none; } .hh-log i.me { background: #2f5ef0; }

/* head-to-head: excitement */
.hh-banner em { display: block; font-style: normal; font-weight: 800; font-size: 13px; margin-top: 3px; }
.hh-read { color: #ffd75a; } .hh-fire { color: #ffb37a; }
#hhRoot.shake { animation: hhShake .45s ease; }
@keyframes hhShake { 15% { transform: translateX(-8px) rotate(-.6deg); } 35% { transform: translateX(7px) rotate(.5deg); } 55% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }
#hhRoot.tdflash { animation: hhGold 1.1s ease; }
@keyframes hhGold { 0% { box-shadow: 0 0 0 0 rgba(255,215,90,.9); } 30% { box-shadow: 0 0 0 10px rgba(255,215,90,.45), 0 0 60px 10px rgba(255,215,90,.6); } 100% { box-shadow: 0 16px 30px -18px #0f1631; } }
#hhRoot.clutch { background: linear-gradient(160deg, #3a0f2a, #1d2a5c); box-shadow: 0 0 0 2px rgba(255,63,125,.6), 0 16px 30px -18px #0f1631; }
#hhRoot.clutch .hh-clock small { color: #ff8fb0; animation: hhPulse 1s ease-in-out infinite; }
.hh-moment { position: fixed; left: 0; right: 0; top: 38%; z-index: 150; display: grid; justify-items: center; gap: 2px; padding: 18px 10px; background: linear-gradient(90deg, rgba(15,22,49,0), rgba(15,22,49,.95) 15%, rgba(15,22,49,.95) 85%, rgba(15,22,49,0)); color: #fff; pointer-events: none; animation: hhIn .35s cubic-bezier(.2,1.3,.4,1); }
.hh-moment b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; } .hh-moment span { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; opacity: .9; }
.hh-moment.clutch b { color: #ff8fb0; } .hh-moment.half b { color: #ffd75a; }
.hh-moment.out { opacity: 0; transform: scale(1.06); transition: opacity .35s, transform .35s; }
@keyframes hhIn { from { opacity: 0; transform: scaleY(.3); } }

/* spin race */
.rc-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; margin-bottom: 10px; }
.rc-p { padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 1px; transition: background .2s, border-color .2s; }
.rc-p b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-p span { font-size: 11.5px; font-weight: 700; color: var(--mute); }
.rc-p em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mint); } .rc-p em.w { color: var(--mute); font-weight: 700; }
.rc-p.me { border-color: #2f5ef0; box-shadow: 0 0 0 2px rgba(47,94,240,.15); } .rc-p.done { background: #effbf5; }
.rc-spin { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(135deg, #0f1631, #1d2a5c); color: #fff; animation: rcIn .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes rcIn { from { transform: rotateX(80deg) scale(.9); opacity: 0; } }
.rc-spin b { display: block; font-size: 20px; } .rc-spin small { opacity: .75; font-weight: 700; font-size: 12px; }
.rc-sec { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rc-timer { height: 8px; border-radius: 99px; background: #e6eaf3; overflow: hidden; margin: 8px 0 10px; } .rc-timer i { display: block; height: 100%; width: 100%; background: #2f5ef0; transition: width .25s linear; } .rc-timer i.low { background: #e11d48; }
.rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rc-card { position: relative; padding: 0; border-radius: 12px; transition: transform .1s, opacity .2s; } .rc-card .pcard { width: 100%; }
.rc-card:active { transform: scale(.94); }
.rc-tag { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 3px 4px; border-radius: 8px; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(11,16,32,.8); opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-card.taken { opacity: .35; } .rc-card.taken .rc-tag { opacity: 1; background: #e11d48; }
.rc-card.mine { outline: 3px solid #10b981; outline-offset: 2px; } .rc-card.mine .rc-tag { opacity: 1; background: #10b981; }
.rc-card.nofit { opacity: .3; filter: grayscale(.8); } .rc-card.nofit .rc-tag { opacity: 1; }
.rc-card.pending { outline: 3px solid #ffb020; outline-offset: 2px; animation: hhPulse .6s ease-in-out infinite; } .rc-card.pending .rc-tag { opacity: 1; background: #ff8a1a; }
.rc-card:disabled { cursor: default; }
