/* =====================================================================
   CREASE - cricket stadium theme (loaded last; overrides the base styles)
   Night match under floodlights: turf green, leather red, trophy gold, cream kit whites.
   ===================================================================== */
:root {
  --bg: #050b12; --panel: #0c1a1c; --panel2: #10241f; --line: rgba(244, 239, 227, .10); --line2: rgba(242, 193, 78, .38);
  --text: #f4efe3; --muted: #a2b6aa; --dim: #6f887c;
  --volt: #f2c14e; --gold: #ffd479; --cyan: #58d6a8; --pink: #e5384d; --purple: #9d8cff; --ok: #46d37c;
  --turf: #2fbf71; --turf2: #17894a; --leather: #c9202f; --cream: #f4efe3; --pitch: #d2bd8a;
  --cut: none; --radius: 16px; --r-sm: 10px;
  --disp: "Bahnschrift", "Segoe UI Semibold", "Arial Narrow", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .9, .25, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html { color-scheme: dark; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { background: #050b12; text-rendering: optimizeLegibility; }
::selection { background: var(--volt); color: #1a1200; }
::-webkit-scrollbar-thumb { background: #1f3a30; } ::-webkit-scrollbar-thumb:hover { background: var(--volt); }

/* ---------- stadium backdrop ---------- */
.bg { background: #050b12; contain: strict; }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(2, 6, 10, .75) 100%); pointer-events: none; }
.sky { position: absolute; inset: 0; background: radial-gradient(1100px 520px at 50% -12%, rgba(52, 92, 140, .55), transparent 70%), linear-gradient(180deg, #050a12 0%, #09182a 38%, #0b2a24 62%, #082016 100%); }
.floodlight { position: absolute; top: -10%; width: 52vw; height: 96vh; opacity: .5; filter: blur(22px); mix-blend-mode: screen; transform-origin: 50% 0; animation: flicker 7s ease-in-out infinite; background: conic-gradient(from 180deg at 50% 0%, transparent 0 39%, rgba(255, 244, 214, .5) 46% 54%, transparent 61%); will-change: opacity; }
.fl-l { left: -10%; transform: rotate(19deg); } .fl-r { right: -10%; transform: rotate(-19deg); animation-delay: -3s; }
@keyframes flicker { 0%, 100% { opacity: .5; } 45% { opacity: .38; } 50% { opacity: .55; } 70% { opacity: .44; } }
.stands { position: absolute; left: 0; right: 0; top: 31%; height: 24%; opacity: .55; mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
  background: radial-gradient(circle, rgba(255, 255, 255, .6) 0 1px, transparent 1.6px) 0 0 / 15px 13px, radial-gradient(circle, rgba(255, 214, 120, .7) 0 1px, transparent 1.6px) 6px 5px / 23px 17px, linear-gradient(180deg, transparent, rgba(4, 9, 14, .85)); animation: crowd 5s steps(2) infinite; }
@keyframes crowd { 50% { opacity: .35; } }
.outfield { position: absolute; left: -35%; right: -35%; bottom: -16%; height: 62%; transform: perspective(720px) rotateX(60deg); transform-origin: 50% 100%; background: repeating-linear-gradient(90deg, rgba(40, 150, 82, .34) 0 96px, rgba(22, 104, 56, .34) 96px 192px), linear-gradient(180deg, #0d3a23, #0a2a1a); mask-image: linear-gradient(0deg, #000 45%, transparent); -webkit-mask-image: linear-gradient(0deg, #000 45%, transparent); }
.pitchstrip { position: absolute; left: 50%; top: 0; bottom: 0; width: 130px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(214, 190, 130, 0), rgba(214, 190, 130, .42)); border-inline: 2px solid rgba(255, 255, 255, .22); }
.flyball { width: 14px; height: 14px; box-shadow: 0 0 18px 3px rgba(229, 56, 77, .5); top: 62%; }
#fx { opacity: .9; }
.cursor-glow { background: radial-gradient(circle, rgba(255, 230, 170, .1), transparent 65%); }
#wipe { background: linear-gradient(100deg, transparent 0 28%, #1e8f4e 28% 34%, #f4efe3 34% 35%, #17713c 35% 66%, #f4efe3 66% 67%, #1e8f4e 67% 72%, transparent 72%); }

/* ---------- top bar & navigation ---------- */
.topbar { background: linear-gradient(180deg, rgba(5, 12, 16, .95), rgba(5, 12, 16, .84)); border-bottom: 1px solid rgba(242, 193, 78, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -18px #000; }
.topbar::after { height: 2px; background: linear-gradient(90deg, var(--leather), var(--volt) 40%, transparent); }
.brand { font-family: var(--disp); letter-spacing: .3em; } .brand .ball-logo { box-shadow: 0 0 16px rgba(229, 56, 77, .6); }
.season { background: linear-gradient(180deg, #ffd873, #e8a93a); color: #1a1200; border-radius: 6px; clip-path: none; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; transition: color .25s, background .25s; } .mainnav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .85; flex: none; }
.mainnav a:hover { background: rgba(255, 255, 255, .05); } .mainnav a.active { color: var(--volt); } .nav-ind { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--leather), var(--volt)); box-shadow: 0 0 12px rgba(242, 193, 78, .6); }
.user-chip, .session-chip, .energy-chip, .train-chip, .clock-chip { border-radius: 10px; clip-path: none; background: rgba(244, 239, 227, .06); box-shadow: inset 0 0 0 1px var(--line); }
.energy-chip { color: var(--cyan); background: rgba(88, 214, 168, .1); } .train-chip { color: var(--volt); background: rgba(242, 193, 78, .1); } .clock-chip { color: var(--gold); background: rgba(255, 190, 70, .08); }
.user-chip i { border-radius: 8px; clip-path: none; background: linear-gradient(180deg, #ffd873, #e8a93a); }

/* ---------- buttons, inputs ---------- */
.btn { border-radius: 12px; clip-path: none; min-height: 40px; letter-spacing: .1em; }
.btn.primary { background: linear-gradient(180deg, #36cf80 0%, #1b9a55 100%); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); box-shadow: 0 10px 24px -10px rgba(47, 191, 113, .75), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn.primary::before { content: ""; position: absolute; inset: 3px; border: 1.5px dashed rgba(255, 255, 255, .42); border-radius: 9px; pointer-events: none; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 14px 30px -10px rgba(47, 191, 113, .9), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn.ghost { background: rgba(244, 239, 227, .07); box-shadow: inset 0 0 0 1px var(--line); } .btn.ghost:hover:not(:disabled) { background: rgba(244, 239, 227, .13); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .45); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.btn.small { min-height: 34px; } .btn .spin { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
input:not([type=range]):not([type=checkbox]):not([type=color]), textarea, select { border-radius: var(--r-sm); background: rgba(3, 9, 12, .7); border-color: var(--line); border-left-width: 1px; }
input:not([type=range]):focus, textarea:focus, select:focus { border-color: var(--volt); border-left-color: var(--volt); box-shadow: 0 0 0 3px rgba(242, 193, 78, .16); background: rgba(3, 9, 12, .9); }
.field.invalid input, .field.invalid textarea { border-color: var(--pink); } .lbl { letter-spacing: .12em; }
input[type=range]::-webkit-slider-thumb { background: #fff; border-color: var(--leather); transform: none; border-radius: 50%; box-shadow: 0 0 0 3px rgba(229, 56, 77, .25), 0 3px 8px #000; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); } input[type=range] { background: linear-gradient(90deg, var(--leather) var(--p, 20%), rgba(255, 255, 255, .14) var(--p, 20%)); border-radius: 4px; }
.switch i { border-radius: 10px; clip-path: none; } .switch input:checked + i { background: var(--turf); }

/* ---------- chips, tabs, pills (rounded, scoreboard feel) ---------- */
.chip, .tag, .badge, .st, .lg-badge, .rbadge, .fmt-tag, .tagx, .sig { border-radius: 999px; clip-path: none; }
.chip { background: rgba(244, 239, 227, .08); } .chip.role { color: var(--volt); background: rgba(242, 193, 78, .12); }
.tab, .tabs, .tab-ind, .subtab, .cat, .cs, .ob, .lv, .seg3 button, .rf, .sf, .dvb, .lgp, .fmt, .pill, .seg, .seg button, .seg-ind, .step, .step .num, .opt, .lpick, .lopt, .sw, .rx, .icon-btn { border-radius: 10px; clip-path: none; }
.seg3 button, .lv, .rf, .sf, .pill { border-radius: 8px; } .step .num { border-radius: 50%; }
.tabs { background: rgba(0, 0, 0, .35); } .tab-ind { background: linear-gradient(180deg, #ffd873, #e8a93a); } .tab.active { color: #1a1200; }
.subtab { background: rgba(244, 239, 227, .06); transition: background .25s, color .25s, transform .2s var(--ease); } .subtab:hover { transform: translateY(-1px); }
.subtab.on, .seg button.on, .cs.sel, .rf.on, .dvb.on, .fmt.on { background: linear-gradient(180deg, #ffd873, #e8a93a); color: #1a1200; }
.seg-ind { background: linear-gradient(180deg, #ffd873, #e8a93a); } .seg button.on { background: none; }
.cat.on { background: var(--gc); color: #0a1200; } .lv.on { background: var(--gc); } .seg3 button.on, .ob.on, .sf.on { background: var(--cyan); color: #04241c; }
.step.active { background: rgba(242, 193, 78, .14); } .step.active .num { background: var(--volt); color: #1a1200; box-shadow: 0 0 18px rgba(242, 193, 78, .55); }
.pill.on { background: var(--turf); color: #04210f; }

/* ---------- cards & headings ---------- */
.card { border-radius: var(--radius); background: linear-gradient(165deg, rgba(14, 33, 31, .93), rgba(7, 17, 18, .96)); border: 1px solid var(--line); box-shadow: 0 20px 44px -26px #000, inset 0 1px 0 rgba(255, 255, 255, .05); backdrop-filter: none; -webkit-backdrop-filter: none; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; width: auto; height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(242, 193, 78, .55), transparent); transition: none; pointer-events: none; }
.card::after { display: none; } .card:hover { border-color: rgba(242, 193, 78, .26); } .card:hover::before { width: auto; height: 1px; }
.mod::before, .mod::after { display: none; }
h1, h2, h3, h4 { text-wrap: balance; }
.pg-head h2::after, .cr-head h2::after { height: 4px; border-radius: 4px; width: 72px; background: repeating-linear-gradient(90deg, var(--leather) 0 9px, transparent 9px 14px); }
.eyebrow { color: var(--volt); }
.hub-hero, .player-head, .team-banner { background: linear-gradient(120deg, rgba(20, 70, 44, .65), rgba(8, 20, 20, .94) 62%); }
.tile { border-radius: 14px; background: linear-gradient(165deg, rgba(14, 33, 31, .95), rgba(7, 17, 18, .96)); border: 1px solid var(--line); border-top: 3px solid var(--tc); } .tile b { text-shadow: none; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px var(--tc); }
.dpanel h3, .sub-h { letter-spacing: .16em; }
.mbar, .xpbar, .bar2, .bar, .mini div, .sb-track { border-radius: 6px; } .bar { border-radius: 3px; } .mbar i, .xpbar i { border-radius: 6px; }
.xpbar i, .mbar i { background: linear-gradient(90deg, var(--turf2), var(--turf) 60%, #9be58a); box-shadow: 0 0 12px rgba(47, 191, 113, .45); }
.ep-bar { border-radius: 8px; clip-path: none; } .ep-bar i { background: linear-gradient(90deg, #1b9a55, #58d6a8); box-shadow: 0 0 14px rgba(88, 214, 168, .5); }
.run-bar { border-radius: 4px; } .run-bar i { background: linear-gradient(90deg, var(--leather), var(--volt)); }
.skc, .team, .mod, .comp-card, .lskill, .ach, .award, .lg-card, .lpick, .opt, .mcard, .bm, .scoreline div { border-radius: 14px; }
.skc { border-top-width: 3px; } .opt { border-left-width: 1px; } .opt.sel { border-color: var(--volt); }
.role-card { clip-path: none; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(15, 36, 32, .96), rgba(7, 17, 18, .98)); transition: transform .25s var(--ease), border-color .3s, box-shadow .3s; }
.role-card.sel { border-color: var(--volt); background: linear-gradient(165deg, rgba(40, 90, 50, .6), rgba(7, 17, 18, .98)); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18), 0 22px 40px -22px #000; } .role-card.sel .ric { background: var(--volt); color: #1a1200; }
.table th { color: var(--dim); } .table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .018); } .table tr:hover td { background: rgba(242, 193, 78, .06); }
.pnl:has(> table), .pnl:has(> .tbl-wrap) { overflow-x: auto; }
.modal { background: rgba(2, 6, 9, .78); } .modal-card { border-radius: 20px; clip-path: none; background: linear-gradient(165deg, #10231f, #08121a); border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px #000; }
.toast { border-radius: 12px; border-left-width: 4px; background: #0e1f1c; }
.fut { box-shadow: none; } .skeleton { border-radius: 14px; }
.form-banner { border-radius: 10px; }
.loadbar, .loadbar i { border-radius: 4px; } .loader-ball { box-shadow: 0 0 30px rgba(229, 56, 77, .55); }

/* ---------- auth / landing ---------- */
.hero h1 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: .01em; }
.hero h1 .glitch { animation: none; background: linear-gradient(180deg, #fff 30%, #d9cfb4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .glitch::before, .hero h1 .glitch::after { display: none; }
.hero h1 em { background: linear-gradient(90deg, var(--volt), #ff9d5c 55%, var(--leather)); -webkit-background-clip: text; background-clip: text; }
.hero-points li { border-radius: 14px; clip-path: none; background: rgba(244, 239, 227, .06); border-left: 0; border-top: 3px solid var(--turf); } .hero-points li:nth-child(2) { border-top-color: var(--volt); } .hero-points li:nth-child(3) { border-top-color: var(--leather); }
.hero-art i { border-color: rgba(242, 193, 78, .22); } .hero-art i:nth-child(2) { border-color: rgba(88, 214, 168, .22); }
.auth-card { border-color: rgba(242, 193, 78, .25); } .hud-title i { background: var(--volt); } .hud-title .live { color: var(--ok); }
.ticker { border-radius: 0; } .ticker-in span::before { color: var(--leather); }

/* ---------- season banner ---------- */
.season-bar { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(170px, 250px); gap: 26px; align-items: center; padding: 22px 28px; margin-bottom: 6px; background: linear-gradient(180deg, #0f1c2c, #0a1522); }
.sb-left small, .sb-right small { display: block; color: #3ddc97; letter-spacing: .16em; font-weight: 800; font-size: 11.5px; } .sb-left b { display: block; font-family: var(--disp); font-size: clamp(28px, 3.4vw, 40px); color: #fff; text-transform: uppercase; line-height: 1.05; margin: 4px 0 8px; } .sb-left span { color: var(--muted); font-size: 12px; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; }
.sb-day { color: var(--volt); font-weight: 800; letter-spacing: .1em; font-size: 13px; }
.sb-track { height: 8px; background: rgba(255, 255, 255, .08); margin: 8px 0 10px; overflow: hidden; } .sb-track i { display: block; height: 100%; background: linear-gradient(90deg, #1fa860, #46d37c); transition: width 1s var(--ease); }
.sb-cells { display: grid; grid-template-columns: repeat(97, minmax(5px, 1fr)); gap: 2px; padding: 3px 0; }
.cell { display: block; aspect-ratio: 1; border-radius: 2px; background: #394255; position: relative; transition: transform .2s var(--ease), opacity .3s; } .cell.t-league { background: #22c55e; } .cell.t-tournament { background: #3b82f6; } .cell.t-cup { background: #e0b23c; } .cell.t-break { background: #7c5cd6; } .cell.t-none { background: #3a4252; }
.cell.past { opacity: .42; } .cell.now { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; transform: scale(1.35); z-index: 2; border-radius: 3px; animation: nowpulse 1.8s infinite; } @keyframes nowpulse { 50% { outline-color: rgba(255, 255, 255, .35); } }
.cell.mine::after { content: ""; position: absolute; inset: 32%; background: #fff; border-radius: 50%; box-shadow: 0 0 4px rgba(0, 0, 0, .5); } .cell:hover { transform: scale(1.5); z-index: 3; opacity: 1; }
.sb-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; } .sb-legend span { display: inline-flex; align-items: center; gap: 6px; } .sb-legend .cell { width: 11px; height: 11px; aspect-ratio: auto; }
.sb-right { text-align: right; } .sb-right b { display: block; font-size: clamp(22px, 2.4vw, 30px); color: var(--ok); line-height: 1.1; margin: 4px 0 8px; } .sb-right span { display: block; font-weight: 700; color: #fff; font-size: 14px; }
.season-pick { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; } .season-pick .lbl { margin: 0; }
@media (max-width: 1240px) { .season-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; padding: 18px; } .sb-mid { grid-column: 1 / -1; order: 3; } }
@media (max-width: 640px) { .season-bar { grid-template-columns: 1fr; } .sb-right { text-align: left; } .sb-cells { overflow-x: auto; grid-template-columns: repeat(97, 11px); padding: 6px 4px 10px; } }
/* competitions */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; } .comp-card { text-align: left; padding: 16px; display: grid; gap: 6px; cursor: pointer; color: inherit; font: inherit; } .comp-card small { color: var(--dim); letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; } .comp-card b { font-family: var(--disp); font-size: 19px; text-transform: uppercase; } .comp-card span { color: var(--muted); font-size: 12.5px; } .comp-card.on { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(242, 193, 78, .14); } .comp-card em { justify-self: start; } .cw { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.grp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; } .rounds { display: grid; gap: 14px; }
.bracket { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 16px; align-items: flex-start; scroll-snap-type: x proximity; } .bcol { min-width: 200px; flex: 1 0 200px; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; } .bcol h4 { font-size: 13px; letter-spacing: .14em; color: var(--volt); } .bcol h4 small { display: block; color: var(--dim); letter-spacing: 0; font-size: 11px; font-family: var(--font); text-transform: none; margin-top: 2px; }
.bm { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); padding: 9px 11px; display: grid; gap: 5px; transition: border-color .25s, transform .25s var(--ease); } .bm:hover { transform: translateY(-2px); border-color: rgba(242, 193, 78, .4); } .bm.me { border-color: var(--volt); } .bt { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; } .bt b { flex: 1; font-weight: 600; } .bt.win b { color: var(--volt); } .bt span { font-family: var(--disp); } .bm small { color: var(--dim); font-size: 11px; } .bm.tbd { opacity: .5; border-style: dashed; }
.trophy-card { display: grid; justify-items: center; gap: 6px; padding: 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(242, 193, 78, .18), transparent); border: 1px solid var(--line2); text-align: center; } .trophy-card.dim { color: var(--dim); border-style: dashed; } .trophy-card svg { width: 56px; } .trophy-card b { font-family: var(--disp); text-transform: uppercase; }
.sq.tour { background: #3b82f6; } .sq.cupc { background: #e0b23c; } .cd.c-tournament.up .ev { background: rgba(59, 130, 246, .18); border-color: #3b82f6; } .cd.c-cup.up .ev { background: rgba(224, 178, 60, .18); border-color: #e0b23c; }
.comp-head { margin-top: 20px; }
/* tables & standing rows */
.standings tr.promo td:first-child { box-shadow: inset 4px 0 var(--ok); } .standings tr.relegate td:first-child { box-shadow: inset 4px 0 var(--pink); } .standings tr.me td { background: rgba(242, 193, 78, .08); }
.fx { border-radius: 12px; border-left-width: 3px; } .fx.me { border-left-color: var(--volt); background: rgba(242, 193, 78, .06); }

/* ---------- page & view transitions ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page { animation: none; } .page > * { animation: rise .55s var(--ease) both; } .page > *:nth-child(2) { animation-delay: .05s; } .page > *:nth-child(3) { animation-delay: .1s; } .page > *:nth-child(4) { animation-delay: .15s; } .page > *:nth-child(5) { animation-delay: .2s; } .page > *:nth-child(n+6) { animation-delay: .25s; }
.ptab.swap { animation: rise .4s var(--ease) both; } .view-in { animation: rise .6s var(--ease) both; }
::view-transition-old(root) { animation: vtOut .16s ease both; } ::view-transition-new(root) { animation: vtIn .34s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } } @keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
.tile, .dpanel, .mod, .skc, .team, .comp-card, .lgp { animation-fill-mode: both; }
.btn, .subtab, .tile, .card, .role-card, .mod { will-change: auto; }

/* ---------- responsive ---------- */
#app { padding-inline: clamp(12px, 3.4vw, 40px); max-width: 1400px; }
@media (max-width: 1180px) { .topbar { flex-wrap: nowrap; } .mainnav { order: 0; flex-basis: auto; flex: 1; margin: 0 4px; } .mainnav a { padding: 10px 10px; } .mainnav a span { display: none; } .mainnav a.active span { display: inline; } .user-chip { display: none; } }
@media (max-width: 880px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 12, 16, .97); }
  .hub-hero > *, .player-head > * { flex: 1 1 100%; } .hub-hero .fut, .player-head .fut { margin-inline: auto; flex: 0 0 auto; }
  .topbar { padding: 8px 12px; gap: 8px; } .brand span:last-child { letter-spacing: .2em; font-size: 14px; } .topbar-right { margin-left: auto; gap: 8px; } .session-chip { display: none; } .energy-chip small, .train-chip #trainName, .tc-bar { display: none; }
  .mainnav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 55; margin: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; overflow: visible; background: rgba(5, 12, 16, .97); border-top: 1px solid var(--line2); box-shadow: 0 -12px 30px -14px #000; backdrop-filter: blur(10px); }
  .mainnav a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; font-size: 10px; letter-spacing: .05em; border-radius: 12px; } .mainnav a span, .mainnav a.active span { display: block; } .mainnav a svg { width: 23px; height: 23px; }
  .mainnav a.active { background: rgba(242, 193, 78, .13); color: var(--volt); } .nav-ind { display: none; }
  .e-bar, #energyTimer, .clock-chip svg { display: none; } .topbar-right > * { padding-inline: 8px; } #logoutBtn { padding: 6px 10px; font-size: 11px; } .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .creator, .page { padding-top: 16px; } .cr-foot { bottom: 66px; }
  .tiles { grid-template-columns: repeat(2, 1fr); } .hub-hero, .player-head { padding: 18px; gap: 18px; justify-content: center; text-align: center; } .hh-main, .ph-main { min-width: 0; } .lvl { margin-inline: auto; } .hh-actions, .chips-row.inline { justify-content: center; }
  .chat { height: calc(100vh - 330px); min-height: 380px; } .online { position: static; } .cal-top b { min-width: 0; flex: 1; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .tile b { font-size: 30px; } .cd { min-height: 50px; } .rec { grid-template-columns: repeat(3, 1fr); } .pref-grid { grid-template-columns: 1fr; } .ab-grid { grid-template-columns: 1fr; }
  .stepper { width: 100%; } .step { flex: 1; justify-content: center; padding: 6px 8px; } .step .st { display: none; } .sline { display: none; } .cr-head { gap: 12px; }
  .tabs .tab { padding: 10px 4px; } .auth-card { padding: 18px; } .form-card { padding: 18px; } .modal-card { padding: 20px; }
  .pv-top { padding: 14px; } .attr { grid-template-columns: 1fr 1fr 26px 28px; gap: 4px 6px; } .ma { grid-template-columns: 1fr 70px 46px 40px; }
  .lg-pills { gap: 6px; } .lgp { padding: 8px 12px; } .lgp span { display: none; } .tier-name { width: 100%; }
}
@media (min-width: 1700px) { html { font-size: 17px; } #app { max-width: 1560px; } }
@media (prefers-reduced-motion: reduce) { .floodlight, .stands, .flyball, .cell.now { animation: none !important; } .page > *, .ptab.swap { animation: none; } }
@media (hover: none) { .card:hover, .tile:hover, .bm:hover, .subtab:hover { transform: none; } }

.qtag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; } .qtag.tour { background: rgba(59, 130, 246, .18); color: #8db8ff; } .qtag.cupc { background: rgba(224, 178, 60, .18); color: var(--gold); }

/* ---------- team pages: tabs, lineup, tactics, fielding ---------- */
.subtabs.tt { position: sticky; top: 58px; z-index: 20; display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; margin: 14px 0; background: rgba(5, 12, 16, .88); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.subtabs.tt .subtab { position: relative; z-index: 1; background: transparent; } .subtabs.tt .subtab:hover:not(.on) { background: rgba(255, 255, 255, .06); } .subtabs.tt .subtab.on { background: transparent; color: #1a1200; }
.st-ind { position: absolute; left: 0; top: 0; border-radius: 10px; background: linear-gradient(180deg, #ffd873, #e8a93a); transition: transform .35s var(--ease), width .35s var(--ease); z-index: 0; box-shadow: 0 6px 16px -6px rgba(242, 193, 78, .7); pointer-events: none; }
#tbody { transition: opacity .12s ease, transform .12s ease; } #tbody.leaving { opacity: 0; transform: translateY(6px); } .skeleton.slim { height: 160px; }
@media (max-width: 880px) { .subtabs.tt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; top: 52px; } .subtabs.tt::-webkit-scrollbar { display: none; } .subtabs.tt .subtab { flex: none; } }
.lu-bar, .tac-top { position: sticky; top: 122px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 12px; background: rgba(8, 20, 20, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s; }
@media (max-width: 880px) { .lu-bar, .tac-top { top: 110px; } }
.lu-bar > div:first-child small { display: block; color: var(--dim); letter-spacing: .14em; font-size: 10.5px; } .lu-bar b { font-family: var(--disp); font-size: 20px; margin-right: 10px; } .lu-bar.dirty { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(242, 193, 78, .14); } .lu-bar.dirty small { color: var(--volt); }
.lu-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chk-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .chk { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); transition: background .3s, color .3s; } .chk i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; } .chk.ok { color: var(--ok); background: rgba(70, 211, 124, .1); } .chk.bad { color: #ff8a96; background: rgba(229, 56, 77, .12); }
.xi-list li { border-radius: 12px; cursor: grab; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; border: 1px solid transparent; } .xi-list li:hover { background: rgba(242, 193, 78, .06); } .xi-list li.drag { opacity: .4; transform: scale(.98); } .xi-list li.over { border-color: var(--volt); background: rgba(242, 193, 78, .1); transform: translateY(2px); }
.xi-list .empty-xi { cursor: default; text-align: center; padding: 22px; } .small { font-size: 12px; margin: 0 0 8px; }
.sq-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .sq-tools input[type=search] { flex: 1 1 160px; min-width: 0; padding: 9px 12px; } .sq-tools select { width: auto; padding: 8px 10px; } .subtabs.mini { display: flex; gap: 4px; flex-wrap: wrap; } .subtabs.mini .subtab { padding: 6px 11px; font-size: 12px; }
.roster tr.pick { cursor: pointer; transition: background .2s; } .roster tr.pick:hover td { background: rgba(242, 193, 78, .07); } .roster tr.xi td { background: rgba(47, 191, 113, .1); } .roster tr.xi td:first-child { box-shadow: inset 3px 0 var(--turf); }
.pill { transition: background .2s, transform .15s var(--ease); } .pill:active { transform: scale(.92); }
.tac-top .subtabs { display: flex; gap: 6px; } .btn.pulse { animation: pulseBtn 1.6s infinite; } @keyframes pulseBtn { 50% { box-shadow: 0 0 0 6px rgba(47, 191, 113, .22), 0 10px 24px -10px rgba(47, 191, 113, .75); } }
#tacNote { color: var(--volt); font-weight: 600; margin-left: auto; font-size: 13px; }
.tac { padding: 12px 0; border-top: 1px solid var(--line); } .tac:first-of-type { border-top: 0; } .ob { transition: background .2s, color .2s, transform .15s var(--ease); } .ob:active { transform: scale(.95); }
.opt-btns { display: flex; flex-wrap: wrap; gap: 6px; } .sl { display: flex; align-items: center; gap: 12px; } .sl input { flex: 1; } .sl b { min-width: 34px; text-align: right; font-family: var(--disp); color: var(--volt); }
.field-svg .fp { cursor: pointer; } .field-svg .fp circle { transition: r .2s var(--spring), fill .25s; } .field-svg .fp circle { fill: rgba(255, 255, 255, .22); stroke: rgba(255, 255, 255, .5); stroke-width: .006; transition: r .2s var(--spring), fill .25s; } .field-svg .fp:hover circle { fill: rgba(242, 193, 78, .7); r: .05; } .field-svg .fp.on circle { fill: var(--volt); stroke: #fff; }
.ft { transition: transform .3s var(--ease), border-color .3s; } .ft:hover { transform: translateY(-4px); } .fcount { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0; } .fcount .ok { color: var(--ok); } .fcount .bad { color: #ff8a96; } .fe-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; } @media (max-width: 900px) { .fe-grid { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .lu-grid { grid-template-columns: 1fr; } }
.subtabs.tt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .subtabs.tt::-webkit-scrollbar { display: none; } .subtabs.tt .subtab { flex: none; white-space: nowrap; }

/* ---------- selection controls (no native dropdowns anywhere) ---------- */
select.pick-native { display: none !important; }
.pick { max-width: 100%; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); width: fit-content; }
.pick-chips .pk { position: relative; border: 0; background: transparent; color: var(--muted); font: 600 12.5px var(--font, inherit); letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: background .25s var(--ease), color .25s, transform .2s var(--spring), box-shadow .25s; }
.pick-chips .pk:hover:not(:disabled):not([aria-checked=true]) { background: rgba(255, 255, 255, .08); color: var(--text); transform: translateY(-1px); }
.pick-chips .pk:active:not(:disabled) { transform: scale(.94); }
.pick-chips .pk[aria-checked=true] { background: linear-gradient(180deg, #ffd873, #e8a93a); color: #1a1200; box-shadow: 0 6px 16px -6px rgba(242, 193, 78, .75), inset 0 1px 0 rgba(255, 255, 255, .5); animation: pkpop .35s var(--spring); }
@keyframes pkpop { 0% { transform: scale(.86); } 100% { transform: scale(1); } }
.pick.disabled { opacity: .5; pointer-events: none; }
.pick-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 150px; max-width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); color: var(--text); font: 600 14px var(--font, inherit); cursor: pointer; text-align: left; transition: border-color .25s, box-shadow .25s, transform .2s var(--spring), background .25s; }
.pick-btn:hover:not(:disabled) { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(242, 193, 78, .14); transform: translateY(-1px); } .pick-btn:active { transform: scale(.97); }
.pick-btn .pb-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pick-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--volt); stroke-width: 1.8; }
.field .pick-btn { width: 100%; }
.pick-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.pick-overlay.open { visibility: visible; }
.pick-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 9, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; } .pick-overlay.open .pick-backdrop { opacity: 1; }
.pick-screen { position: relative; width: min(720px, 100%); max-height: min(78vh, 640px); display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(165deg, #10261f, #08121a); border: 1px solid var(--line2); box-shadow: 0 40px 90px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .06); opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .22s, transform .3s var(--spring); }
.pick-overlay.open .pick-screen { opacity: 1; transform: none; }
.pick-screen header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .pick-screen small { color: var(--volt); letter-spacing: .24em; font-size: 10.5px; font-weight: 800; } .pick-screen h3 { margin: 2px 0 0; font-family: var(--disp); font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.pick-x { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); font-size: 22px; cursor: pointer; transition: background .2s, transform .2s var(--spring); } .pick-x:hover { background: var(--leather); transform: rotate(90deg); }
.pick-search { width: 100%; padding: 11px 14px; border-radius: 12px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; overflow-y: auto; padding: 4px 4px 8px; margin: 0 -4px; }
.pick-tile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .045); color: var(--text); font: 600 14px var(--font, inherit); text-align: left; cursor: pointer; opacity: 0; transform: translateY(10px); animation: tilein .35s var(--ease) var(--d, 0ms) forwards; transition: border-color .2s, background .2s, box-shadow .25s, transform .2s var(--spring); }
@keyframes tilein { to { opacity: 1; transform: none; } }
.pick-tile:hover:not(:disabled), .pick-tile:focus-visible { border-color: var(--volt); background: rgba(242, 193, 78, .1); box-shadow: 0 10px 22px -12px rgba(242, 193, 78, .6); transform: translateY(-2px); outline: none; }
.pick-tile:active { transform: scale(.96); } .pick-tile:disabled { opacity: .35; cursor: not-allowed; }
.pick-tile i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); flex: none; transition: all .25s var(--spring); }
.pick-tile.on { border-color: var(--volt); background: linear-gradient(180deg, rgba(242, 193, 78, .22), rgba(242, 193, 78, .08)); } .pick-tile.on i { border-color: var(--volt); background: var(--volt); box-shadow: inset 0 0 0 3px #3a2a00, 0 0 12px rgba(242, 193, 78, .7); }
.pick-tile[hidden] { display: none; }
@media (max-width: 560px) { .pick-overlay { place-items: end center; padding: 0; } .pick-screen { width: 100%; max-height: 82vh; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(60px); } .pick-grid { grid-template-columns: 1fr 1fr; } .pick-chips { width: 100%; } .pick-chips .pk { flex: 1 1 auto; padding: 9px 10px; } }
@media (prefers-reduced-motion: reduce) { .pick-tile { animation: none; opacity: 1; transform: none; } .pick-screen { transition: opacity .1s; } }
