:root {
  --bg: #07110d;
  --bg2: #0d1d17;
  --panel: #12251e;
  --panel2: #183229;
  --line: #24453a;
  --text: #eaf5ef;
  --muted: #8fb0a2;
  --acc: #c6ff3d;
  --acc2: #3dffb0;
  --bad: #ff4d6a;
  --gold: #f5c542;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #1b4a33 0%, transparent 60%),
    repeating-linear-gradient(90deg, #08140f 0 80px, #0a1812 80px 160px), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
input {
  font: inherit; color: var(--text); background: var(--bg2); border: 2px solid var(--line);
  border-radius: 10px; padding: 12px 14px; outline: none; width: 100%;
}
input:focus { border-color: var(--acc); }
h1, h2, .brand, .big-code, .qcount, .money, .fc-rating, .fc-name { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: .5px; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--bad); margin: 10px 0 0; }
.credits { text-align: center; color: #5d7d6f; font-size: 11px; padding: 18px 12px 24px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 18px;
  font-weight: 700; transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--acc); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--acc); color: #0b1a10; border-color: var(--acc); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: 14px 22px; font-size: 17px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; }
.icon-btn { background: none; border: none; font-size: 20px; padding: 4px 8px; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line);
  background: #07110dcc; backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.brand { font-size: 26px; cursor: pointer; white-space: nowrap; }
.brand b { color: var(--acc); font-weight: 400; margin-left: 4px; }
.brand .ball { display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tb-mid { flex: 1; text-align: center; }
.qcount { font-size: 22px; color: var(--acc); }
.tb-right { display: flex; align-items: center; gap: 10px; }
.room-pill { background: var(--panel2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; font-size: 12px; color: var(--muted); }
.room-pill b { color: var(--acc); letter-spacing: 2px; }

/* ---------------------------------------------------------------- home */
.home { max-width: 1100px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: .95; margin: 18px 0 10px; }
.hero h1 span { color: var(--acc); display: block; }
.sub { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-cards { position: relative; height: 250px; }
.hero-cards .fan { position: absolute; top: 20px; transition: transform .3s; }
.fan-0 { left: 0; transform: rotate(-14deg) translateY(24px); }
.fan-1 { left: 90px; transform: rotate(-7deg) translateY(6px); }
.fan-2 { left: 180px; transform: rotate(0); z-index: 3; }
.fan-3 { left: 270px; transform: rotate(7deg) translateY(6px); }
.fan-4 { left: 360px; transform: rotate(14deg) translateY(24px); }
.hero-cards .fan:hover { transform: translateY(-14px) scale(1.05); z-index: 5; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.join-panel input#name { font-size: 18px; margin-bottom: 14px; }
.home-btns { display: grid; gap: 10px; }
.join-row { display: flex; gap: 8px; margin-top: 14px; }
.join-row input { text-transform: uppercase; letter-spacing: 4px; font-weight: 800; text-align: center; }
.mode-strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mini-mode { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 14px; }
.mini-mode span { margin-right: 6px; }

/* ---------------------------------------------------------------- lobby */
.lobby { max-width: 1250px; margin: 0 auto; padding: 22px 16px; display: grid; grid-template-columns: 1fr 330px; gap: 22px; }
.lobby h2 { font-size: 34px; margin: 0 0 14px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.mode-card {
  text-align: left; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: transform .12s, border-color .12s, background .12s; min-height: 150px;
}
.mode-card:not([disabled]):hover { transform: translateY(-3px); border-color: #3c6f5d; }
.mode-card.sel { border-color: var(--acc); background: linear-gradient(160deg, #22402f, var(--panel)); box-shadow: 0 0 0 4px #c6ff3d22; }
.mode-card[disabled] { cursor: default; opacity: .75; }
.mode-card.sel[disabled] { opacity: 1; }
.mc-icon { font-size: 30px; }
.mc-name { font-family: 'Bebas Neue'; font-size: 25px; margin: 6px 0 2px; }
.mc-blurb { font-size: 13px; color: var(--muted); line-height: 1.4; }
.side { display: flex; flex-direction: column; gap: 14px; }
.big-code { font-size: 58px; letter-spacing: 8px; color: var(--acc); line-height: 1; margin-bottom: 10px; }
.settings { display: grid; gap: 10px; margin-bottom: 14px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.seg { display: flex; background: var(--bg2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { background: none; border: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--acc); color: #0b1a10; }
.seg button[disabled] { cursor: default; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; }
.plist li:nth-child(odd) { background: #ffffff06; }
.plist li.me { color: var(--acc); }

/* ---------------------------------------------------------------- FC cards */
.fc-card {
  --w: 150px;
  position: relative; width: var(--w); height: calc(var(--w) * 1.4); flex: none;
  clip-path: polygon(50% 0, 86% 3.5%, 100% 11%, 100% 88%, 50% 100%, 0 88%, 0 11%, 14% 3.5%);
  background: linear-gradient(160deg, #fff2b0 0%, #e9c056 32%, #c4952c 62%, #f3d77c 100%);
  color: #2d220a; overflow: hidden; user-select: none;
  filter: drop-shadow(0 6px 14px #0008);
}
.fc-card.tier-silver { background: linear-gradient(160deg, #f4f6f8 0%, #bcc6cf 40%, #8b98a5 70%, #dfe5ea 100%); color: #1f2830; }
.fc-card.tier-elite { background: linear-gradient(160deg, #3b2c10 0%, #0f0f10 40%, #1a1712 70%, #6c5418 100%); color: #f6d670; }
.fc-card.tier-icon { background: linear-gradient(160deg, #fffdf4 0%, #efe3c2 35%, #d8c28a 70%, #fff7e0 100%); color: #5a4212; }
.fc-card.tier-icon::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 12px, #c9a55a18 12px 14px);
}
.fc-shine {
  position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, #ffffff55 50%, transparent 60%);
  transform: translateX(-60%); animation: shine 5s ease-in-out infinite; pointer-events: none; z-index: 4;
}
@keyframes shine { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.fc-top { position: absolute; left: 10%; top: 13%; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.fc-rating { font-size: calc(var(--w) * .27); line-height: .85; }
.fc-rating.hidden-val { color: transparent; background: #0003; border-radius: 6px; min-width: calc(var(--w) * .22); text-align: center; position: relative; }
.fc-rating.hidden-val::after { content: '?'; position: absolute; inset: 0; color: currentColor; }
.tier-gold .fc-rating.hidden-val::after, .tier-silver .fc-rating.hidden-val::after, .tier-icon .fc-rating.hidden-val::after { color: #3a2c0d; }
.tier-elite .fc-rating.hidden-val::after { color: #f6d670; }
.fc-pos { font-weight: 800; font-size: calc(var(--w) * .085); margin-top: 2px; }
.fc-flag { width: calc(var(--w) * .17); margin-top: 6px; border-radius: 2px; box-shadow: 0 1px 3px #0005; }
.fc-photo { position: absolute; right: 4%; top: 7%; width: 70%; height: 57%; z-index: 2; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.fc-photo.blurred img { filter: blur(12px); }
.fc-name {
  position: absolute; left: 0; right: 0; top: 64%; text-align: center; z-index: 3;
  font-size: calc(var(--w) * .145); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8%;
  border-top: 1px solid #0002; padding-top: 3px;
}
.fc-club { position: absolute; left: 10%; right: 10%; top: 78%; text-align: center; font-size: calc(var(--w) * .075); font-weight: 800; text-transform: uppercase; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.fc-price {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 5;
  background: #0b1a10; color: var(--acc); font-family: 'Bebas Neue'; font-size: calc(var(--w) * .13); padding: 0 10px; border-radius: 99px; line-height: 1.3;
}
.fc-badge { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); z-index: 5; font-size: 10px; font-weight: 800; }
.sz-xs { --w: 58px; filter: drop-shadow(0 3px 5px #0009); }
.sz-xs .fc-club, .sz-xs .fc-flag { display: none; }
.sz-xs .fc-pos { font-size: 8px; }
.sz-xs .fc-name { font-size: 10px; font-family: Inter; font-weight: 800; letter-spacing: 0; }
.sz-xs .fc-price { font-size: 11px; padding: 0 5px; bottom: 1%; }
.sz-sm { --w: 100px; }
.sz-md { --w: 150px; }
.sz-lg { --w: 200px; }
.pop { animation: pop .5s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.7); } }
.flip-in { animation: flip .6s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes flip { from { transform: perspective(600px) rotateY(90deg) scale(.8); } }

/* ---------------------------------------------------------------- quiz */
.quiz, .draft, .gridpage { max-width: 1250px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 250px; gap: 20px; align-items: start; }
.timer { grid-column: 1 / -1; height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.timer .bar { height: 100%; background: linear-gradient(90deg, var(--acc2), var(--acc)); transform-origin: left; transition: transform .1s linear; }
.timer .bar.low { background: var(--bad); }
.stage { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.media { min-height: 290px; display: flex; align-items: center; justify-content: center; width: 100%; }
.photo-frame { width: 250px; height: 300px; border-radius: 18px; overflow: hidden; border: 3px solid var(--line); background: #000; box-shadow: 0 10px 30px #0008; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.career { flex-wrap: wrap; gap: 10px; align-content: center; }
.club-chip {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-weight: 800; font-size: 17px; animation: rise .4s both; animation-delay: var(--d);
}
.arrow { color: var(--acc); font-size: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.clues { flex-direction: column; gap: 8px; max-width: 520px; margin: 0 auto; }
.clue { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-weight: 600; opacity: .35; transition: opacity .4s, transform .4s; transform: translateX(-10px); }
.clue em { font-style: normal; }
.clue:not(.show) em { color: var(--muted); letter-spacing: 1px; }
.clue.show { opacity: 1; transform: none; }
.clue span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #0b1a10; font-weight: 800; font-size: 13px; margin-right: 10px; }
.duo { gap: 26px; }
.vs { font-family: 'Bebas Neue'; font-size: 44px; color: var(--acc); }
.text-media { min-height: 60px; }
.tag { background: var(--acc); color: #0b1a10; font-weight: 800; padding: 6px 14px; border-radius: 99px; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.prompt { font-size: clamp(26px, 3.2vw, 40px); text-align: center; margin: 0; max-width: 820px; line-height: 1.05; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 820px; }
.opt {
  position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 56px;
  text-align: left; font-weight: 700; font-size: 17px; min-height: 64px; transition: transform .08s, border-color .12s, background .12s;
}
.opt:not([disabled]):hover { border-color: var(--acc); transform: translateY(-2px); }
.opt .letter { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; background: var(--bg2); border-radius: 8px; font-size: 14px; color: var(--acc); }
.opt.mine { border-color: #7ab8ff; background: #173049; }
.opt.correct { border-color: var(--acc2); background: #134b36; animation: pop .4s; }
.opt.wrong { border-color: var(--bad); background: #4a1623; }
.opt[disabled] { cursor: default; }
.opt .who { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.feedback { min-height: 40px; font-size: 26px; font-family: 'Bebas Neue'; text-align: center; }
.feedback .ok { color: var(--acc2); }
.feedback .no { color: var(--bad); }
.feedback .streak { color: var(--gold); }
.reveal-text { font-family: Inter; font-size: 15px; color: var(--muted); }
.num-answer { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 480px; }
.num-answer.locked { opacity: .7; pointer-events: none; }
.num-display { font-family: 'Bebas Neue'; font-size: 72px; color: var(--acc); line-height: 1; }
#numslider { width: 100%; accent-color: var(--acc); padding: 0; border: none; background: none; }
.num-btns { display: flex; gap: 10px; }
.num-reveal { text-align: center; font-size: 20px; }
.num-reveal b { color: var(--acc); font-size: 34px; }
.guesses { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.guess { background: var(--panel); border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: 14px; }
.guess.ok { border-color: var(--acc2); }

.scoreboard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.sb-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; font-size: 14px; }
.sb-row.me { background: #c6ff3d14; }
.sb-rank { width: 20px; color: var(--muted); font-weight: 800; }
.sb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-row b { font-variant-numeric: tabular-nums; }
.tick { color: var(--acc2); font-weight: 800; }
.delta { font-size: 12px; font-weight: 800; }
.delta.ok { color: var(--acc2); }
.delta.no { color: var(--bad); }

/* ---------------------------------------------------------------- draft */
.draft { grid-template-columns: 1fr 380px; }
.draft-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.draft-head h2 { font-size: 44px; margin: 0; }
.pos-hl { color: var(--acc); }
.budget { text-align: right; }
.money { font-size: 54px; color: var(--acc); line-height: .9; }
.options-cards { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pick { background: none; border: none; padding: 6px; border-radius: 16px; transition: transform .12s; }
.pick:not([disabled]):hover { transform: translateY(-8px) scale(1.03); }
.pick.cant { opacity: .3; filter: grayscale(1); cursor: not-allowed; }
.pick.chosen { transform: translateY(-8px) scale(1.06); background: #c6ff3d22; box-shadow: 0 0 0 3px var(--acc); opacity: 1; filter: none; }
.pick[disabled]:not(.chosen):not(.cant) { opacity: .45; }
.team-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: 'Bebas Neue'; font-size: 22px; }
.team-head span { color: var(--acc); }
.pitch {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1f6b3c 0 10%, #1b6036 10% 20%); border: 2px solid #2e8a52;
}
.pitch.small { aspect-ratio: 4 / 5; }
.pitch-lines i { position: absolute; border: 2px solid #ffffff38; }
.pitch-lines .half { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch-lines .circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-lines .box { left: 25%; right: 25%; height: 14%; }
.pitch-lines .box.top { top: -2px; }
.pitch-lines .box.bot { bottom: -2px; }
.slot { position: absolute; transform: translate(-50%, -50%); }
.slot-empty { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed #ffffff88; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #0003; }
.slot-empty.current { border: 3px solid var(--acc); color: var(--acc); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px #c6ff3d33; } }
.pitch.small .fc-card { --w: 40px; }
.pitch.small .fc-name { font-size: 7px; }
.pitch.small .fc-pos { display: none; }
.rivals { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rival { display: flex; justify-content: space-between; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; }

/* ---------------------------------------------------------------- grid */
.gridpage { grid-template-columns: 1fr 250px; }
.grid-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid-top b { color: var(--acc); font-size: 20px; }
.grid9 { grid-column: 1; display: grid; grid-template-columns: 140px repeat(3, minmax(90px, 170px)); gap: 8px; justify-content: center; }
.corner { display: grid; place-items: center; font-size: 36px; }
.ghead { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.crit { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 800; font-size: 14px; }
.crit-flag { width: 46px; border-radius: 3px; box-shadow: 0 2px 5px #0006; }
.club-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--acc), var(--acc2)); color: #0b1a10; font-family: 'Bebas Neue'; font-size: 20px; }
.gcell {
  position: relative; aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--line); background: var(--panel);
  overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0;
}
button.gcell:hover:not(.filled) { border-color: var(--acc); background: var(--panel2); }
.gcell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.gcell .gname { position: relative; z-index: 1; width: 100%; background: linear-gradient(transparent, #000c 40%); padding: 18px 4px 6px; font-weight: 800; font-size: 14px; }
.gcell .gpts { position: absolute; top: 6px; right: 6px; z-index: 1; background: var(--acc); color: #0b1a10; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 99px; }
.gcell.filled { border-color: var(--acc2); }
.gcell.shake { animation: shake .4s; border-color: var(--bad); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.grid9.small { grid-template-columns: 110px repeat(3, minmax(80px, 140px)); }
.gcell .alts { position: relative; z-index: 1; font-size: 10px; color: var(--muted); padding: 4px; text-align: center; }
.gcell.filled .alts { display: none; }
.gcell.empty { justify-content: center; }
.modal { position: fixed; inset: 0; background: #000a; display: grid; place-items: start center; padding-top: 12vh; z-index: 50; }
.modal-box { width: min(460px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-crit { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 22px; }
.sresults { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.res { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; text-align: left; }
.res:hover { border-color: var(--acc); }
.res img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #000; }
.res span { flex: 1; font-weight: 700; }
.res em { font-style: normal; font-size: 10px; font-weight: 800; background: var(--gold); color: #3a2c0d; padding: 2px 6px; border-radius: 99px; }
.res.used { opacity: .4; }

/* ---------------------------------------------------------------- results */
.results { max-width: 1250px; margin: 0 auto; padding: 22px 16px; }
main.results { display: flex; flex-direction: column; gap: 20px; }
.podium { text-align: center; }
.podium h2 { font-size: 52px; margin: 0 0 6px; color: var(--acc); }
.verdict { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
.standings { list-style: none; padding: 0; margin: 14px auto; max-width: 520px; display: flex; flex-direction: column; gap: 6px; }
.standings li { display: grid; grid-template-columns: 40px 1fr auto 90px; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 17px; text-align: left; }
.standings li.me { border-color: var(--acc); }
.standings li b { font-size: 20px; }
.standings li em { font-style: normal; color: var(--muted); font-size: 12px; text-align: right; }
.res-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.draft-res { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.draft-res .other-teams { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.table td:nth-child(2), .table th:nth-child(2) { text-align: left; }
.table tr.me td { color: var(--acc); font-weight: 800; }
.matches { display: flex; flex-direction: column; gap: 6px; }
.match { background: var(--bg2); border-radius: 10px; padding: 8px 10px; }
.match .score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; }
.match .score span:last-child { text-align: right; }
.match .score b { font-family: 'Bebas Neue'; font-size: 24px; color: var(--acc); }
.scorers { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.scorers .r { margin-left: auto; }
.scorers-list { display: flex; flex-wrap: wrap; gap: 8px; }
.scorers-list span { background: var(--bg2); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.scorers-list b { color: var(--acc); }
.grid-res { max-width: 700px; margin: 0 auto; width: 100%; }

/* ---------------------------------------------------------------- misc */
.center-msg { display: grid; place-items: center; gap: 14px; padding: 80px 16px; text-align: center; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--acc); padding: 10px 18px; border-radius: 99px; z-index: 60; font-weight: 700; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }

@media (max-width: 900px) {
  .home, .lobby, .quiz, .draft, .gridpage, .draft-res { grid-template-columns: 1fr; }
  .hero-cards { height: 210px; transform: scale(.75); transform-origin: left top; }
  .draft-side { order: -1; }
  .draft-side .pitch { max-width: 360px; margin: 0 auto; }
  .grid9 { grid-template-columns: 70px repeat(3, 1fr); gap: 5px; }
  .grid9.small { grid-template-columns: 60px repeat(3, 1fr); }
  .crit { font-size: 11px; }
  .club-badge { width: 36px; height: 36px; font-size: 15px; }
  .crit-flag { width: 34px; }
  .options { grid-template-columns: 1fr; }
  .sz-lg { --w: 150px; }
  .duo { gap: 10px; }
  .topbar { padding: 8px 12px; }
  .brand { font-size: 20px; }
  .qcount { font-size: 16px; }
}

/* ================================================================ v2 modes */
.lobby h2 .count { font-family: Inter; font-size: 14px; letter-spacing: 0; margin-left: 8px; }
.cat-h { font-family: 'Bebas Neue'; font-weight: 400; font-size: 22px; letter-spacing: 1px; color: var(--muted); margin: 22px 0 10px; }
.cat-h:first-of-type { margin-top: 4px; }
.mode-card { min-height: 128px; }
.mode-card.feat { background: linear-gradient(160deg, #1d3a2c, var(--panel)); }
.club-chip.mystery { border-style: dashed; border-color: var(--acc); color: var(--acc); min-width: 90px; text-align: center; }
.cards-row { gap: 18px; flex-wrap: wrap; }
.photo-frame canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
#zoomimg { will-change: transform; }
.mystery-flag { display: grid; place-items: center; height: calc(var(--w) * .12); background: #0003; font-weight: 800; font-size: calc(var(--w) * .08); }
.initials { flex-direction: column; gap: 14px; }
.big-initials { font-family: 'Bebas Neue'; font-size: 110px; line-height: 1; color: var(--acc); letter-spacing: 8px; text-shadow: 0 6px 30px #c6ff3d44; }
.init-clues { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.init-clues span { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 700; }
.init-flag { width: 44px; border-radius: 3px; }
.scramble { gap: 8px; flex-wrap: wrap; }
.tile { width: 58px; height: 68px; display: grid; place-items: center; background: linear-gradient(180deg, #fff6c9, #e4bd55); color: #2d220a;
  font-family: 'Bebas Neue'; font-size: 44px; border-radius: 10px; box-shadow: 0 5px 0 #9c7a26, 0 10px 20px #0007; animation: rise .35s both; animation-delay: var(--d); }
.big-flag { width: min(360px, 80vw); border-radius: 10px; box-shadow: 0 12px 34px #000a; border: 3px solid #fff2; }
.num-label { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }

/* shared player search */
.searchbox { position: relative; flex: 1; }
.searchbox input { font-size: 17px; }
.searchbox .drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border-radius: 12px; max-height: 360px; overflow: auto; box-shadow: 0 14px 30px #000a; }
.searchbox .drop:empty { display: none; }
.searchbox .drop:not(:empty) { padding: 6px; border: 1px solid var(--line); }
.searchbox.shake input { border-color: var(--bad); animation: shake .4s; }
.pad { padding: 10px; }

/* footle */
.footle, .nameall { max-width: 1250px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 250px; gap: 20px; align-items: start; }
.footle-main, .na-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footle-top h2 { font-size: 40px; margin: 0; }
.footle-bar, .na-bar { display: flex; gap: 10px; align-items: center; }
.guess-count { white-space: nowrap; color: var(--muted); }
.guess-count b { color: var(--acc); font-size: 20px; }
.footle-table { display: flex; flex-direction: column; gap: 6px; }
.ft-row { display: grid; grid-template-columns: 1.7fr 1.2fr .6fr 1.3fr .8fr .7fr; gap: 6px; }
.ft-head div { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 800; text-align: center; }
.ft-head div:first-child { text-align: left; }
.ft-player { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 10px; padding: 6px 8px; font-weight: 700; font-size: 14px; min-width: 0; }
.ft-player img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.ft-player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-cell { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 6px; font-weight: 800; font-size: 13px; text-align: center; min-height: 48px; }
.ft-cell.hit { background: #1f9d57; }
.ft-cell.near { background: #b8961f; }
.ft-cell.miss { background: #2a3a34; color: #b9cbc3; }
.ft-cell b { font-size: 16px; }
.ft-flag { width: 24px; border-radius: 2px; }
.flip-row .ft-cell { animation: flipc .5s both; }
.flip-row .ft-cell:nth-child(3) { animation-delay: .08s; } .flip-row .ft-cell:nth-child(4) { animation-delay: .16s; }
.flip-row .ft-cell:nth-child(5) { animation-delay: .24s; } .flip-row .ft-cell:nth-child(6) { animation-delay: .32s; }
@keyframes flipc { from { transform: rotateX(90deg); opacity: .2; } }
.solved { font-family: 'Bebas Neue'; font-size: 28px; color: var(--acc2); }
.footle-reveal { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 0; }
.fr-side h2 { font-size: 40px; margin: 0 0 10px; color: var(--acc); }
.fr-list { display: flex; flex-direction: column; gap: 6px; min-width: 280px; }
.fr-row { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.fr-row.me { border-color: var(--acc); }
.fr-row b { text-align: right; color: var(--acc); }

/* name them all */
.na-head { display: flex; align-items: center; gap: 16px; }
.na-head h2 { font-size: 34px; margin: 0; line-height: 1; }
.na-head .crit span:last-child { display: none; }
.na-count { margin-left: auto; text-align: center; }
.na-count b { display: block; font-family: 'Bebas Neue'; font-size: 60px; color: var(--acc); line-height: .9; }
.na-count span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.na-found { display: flex; flex-wrap: wrap; gap: 8px; }
.na-chip { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid #2f6b50; border-radius: 99px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 14px; }
.na-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.missed { color: var(--muted); font-size: 13px; line-height: 1.7; }
.na-res { max-width: 900px; margin: 0 auto; width: 100%; }

@media (max-width: 900px) {
  .footle, .nameall { grid-template-columns: 1fr; }
  .ft-row { grid-template-columns: 1.4fr 1fr .6fr 1.1fr .8fr .7fr; gap: 3px; }
  .ft-cell { font-size: 10px; padding: 3px; }
  .ft-cell span:not(:only-child) { display: none; }
  .ft-player img { display: none; }
  .ft-player { font-size: 11px; }
  .tile { width: 40px; height: 50px; font-size: 32px; }
  .big-initials { font-size: 72px; }
  .footle-bar, .na-bar { flex-wrap: wrap; }
}

/* ================================================================ auction draft */
.auction { max-width: 1250px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
.lot { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 10px; }
.lot-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lot-fit { font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 99px; background: #4a1623; color: #ffb3c0; }
.lot-fit.ok { background: #134b36; color: var(--acc2); }
.bid-panel { flex: 1; min-width: 280px; max-width: 440px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.cur-bid { display: flex; flex-direction: column; align-items: center; }
.cur-bid b { font-family: 'Bebas Neue'; font-size: 96px; line-height: .9; color: var(--acc); }
.bid-now { font-family: 'Bebas Neue'; font-size: 30px; color: var(--acc2); }
.bid-wait { color: var(--muted); font-size: 17px; }
.bid-wait b { color: var(--text); }
.stepper { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bid-amount { font-family: 'Bebas Neue'; font-size: 54px; min-width: 90px; color: var(--acc); line-height: 1; }
.bid-btns { display: flex; gap: 10px; }
.bid-log { display: flex; flex-direction: column-reverse; gap: 4px; font-size: 13px; color: var(--muted); max-height: 140px; overflow: auto; }
.bid-log .pass { opacity: .6; font-style: italic; }
.stamp { font-family: 'Bebas Neue'; font-size: 84px; line-height: 1; transform: rotate(-8deg); border: 6px solid; padding: 0 18px; border-radius: 12px; animation: pop .45s cubic-bezier(.2, 1.6, .5, 1); }
.stamp.won { color: var(--acc2); } .stamp.lost { color: var(--bad); } .stamp.unsold { color: var(--muted); }
.sold-to { font-size: 18px; }
.sold-to b { color: var(--acc); }
.reveal-bids { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.reveal-bids span { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; animation: rise .4s both; }
.reveal-bids span.win { border-color: var(--acc2); color: var(--acc2); }
.a-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-team { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.a-team.me { border-color: var(--acc); }
.a-team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.a-team-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-money { font-family: 'Bebas Neue'; font-size: 30px; color: var(--acc); }
.pitch.five { aspect-ratio: 4 / 5; margin-top: 8px; }
.pitch.five .fc-card { --w: 50px; }
.pitch.five .fc-name { font-size: 8px; }
.auction-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); gap: 16px; justify-content: center; }
.a-final.winner { border-color: var(--gold); box-shadow: 0 0 0 3px #f5c54233; }
.a-final.me .a-final-head b { color: var(--acc); }
.a-final-head { display: flex; gap: 10px; align-items: center; font-family: 'Bebas Neue'; font-size: 30px; }
.a-final-rating { display: flex; align-items: baseline; gap: 8px; }
.a-final-rating b { font-family: 'Bebas Neue'; font-size: 64px; line-height: 1; color: var(--acc); }
.a-final-rating span { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
@media (max-width: 900px) {
  .auction { grid-template-columns: 1fr; }
  .cur-bid b { font-size: 70px; }
}
