@import url("fonts/fonts.css");

/* ====================================================================
   Trago 82-0 — World Cup Edition · visual system
   Type:  Oswald (condensed display / scoreboard) + Inter (UI)
   Look:  deep pitch-night base · electric-lime brand · gold = victory
   ==================================================================== */
:root {
  /* calm charcoal-green base + frosted-glass surfaces = modern app, minimal glow */
  --bg: #0c1815;
  --bg-grad:
    radial-gradient(900px 560px at 12% -12%, rgba(52, 229, 136, .06), transparent 60%),
    radial-gradient(820px 640px at 102% 0%, rgba(110, 190, 255, .045), transparent 55%),
    #0c1815;
  --surface: #13231d;             /* solid insets (inputs, key fields) */
  --surface-2: #182a22;
  --surface-3: #20342b;
  --sunk: #0f1d18;
  --glass: rgba(255, 255, 255, .05);    /* frosted card fill */
  --glass-2: rgba(255, 255, 255, .085); /* hover / raised */
  --glass-line: rgba(255, 255, 255, .08);
  --ink: #07140c;                 /* text on bright accents */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f1f6f3;
  --muted: #9fb6ab;
  --accent: #c2f23f;              /* lime brand accent (used sparingly) */
  --accent-press: #b1e62c;
  --green: #45cf90;              /* positive / win — muted */
  --gold: #ffd24a;              /* trophy / champion / perfect — reserved */
  --danger: #e8636f;            /* loss — muted */
  /* position labels: quiet harmonious set (sand · steel · sage · clay) */
  --gk: #d7ab63; --def: #7ba8d0; --mid: #5cc89a; --fwd: #d98a8f;
  --r-sm: 10px; --r: 14px; --r-lg: 22px; --pill: 999px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, .55);
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--ui);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  letter-spacing: .005em;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* crisp inline icons (replace UI-chrome emoji) — inherit text colour */
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: .4em; flex: none; }

/* shared display/label helpers */
.kicker, .panel h2, .squad-head, .stat .k, .rec-title, .rec-cell .rk,
.fx-col-title, .tc-code, .rank-row.rank-head {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
}

/* ---------------- Top bar ---------------- */
header.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding: 14px 22px; flex-wrap: wrap;
  background: rgba(12, 24, 21, .55);
  border-bottom: 1px solid var(--glass-line);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand .logo {
  font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .5px;
  color: var(--text); line-height: 1; padding-left: 14px; position: relative;
}
.brand .logo::before { /* lime tick */
  content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 5px;
  background: var(--accent); border-radius: 2px;
}
.brand .tag { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); font-size: 12px; font-weight: 500; }
.brand .wc { color: var(--text); font-weight: 600; }
.topbar .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.05fr);
  gap: 26px; max-width: 1200px; margin: 26px auto; padding: 0 20px 64px;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* ---------------- Panels ---------------- */
.panel {
  background: var(--glass);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.panel h2 {
  margin: 0 0 14px; font-size: 13px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.panel h2::before { content: ""; width: 4px; height: 15px; background: var(--line-2); border-radius: 2px; }

/* ---------------- Pitch ---------------- */
.pitch-wrap { position: relative; }
.pitch {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(130% 90% at 50% -5%, rgba(255, 255, 255, .05), transparent 55%),
    repeating-linear-gradient(0deg, #1b3a29 0 9%, #173322 9% 18%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .5);
}
.pitch::before, .pitch::after { content: ""; position: absolute; left: 7%; right: 7%; pointer-events: none; }
.pitch::before { top: 50%; height: 2px; background: rgba(255, 255, 255, .28); }
.pitch::after {
  top: 50%; left: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%;
}
.box { position: absolute; left: 26%; width: 48%; height: 13%; border: 2px solid rgba(255, 255, 255, .24); pointer-events: none; }
.box.top { top: 0; border-top: 0; }
.box.bottom { bottom: 0; border-bottom: 0; }
.tokens { position: absolute; inset: 0; }

.token {
  position: absolute; transform: translate(-50%, -50%);
  width: 74px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.token .jersey {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 18px;
  color: var(--ink); border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.token .jersey.ph {
  background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; font-weight: 600;
  border: 2px dashed rgba(255, 255, 255, .22);
}
.token.empty { cursor: pointer; }
.token.empty:hover .jersey { border-color: var(--accent); color: var(--accent); background: rgba(198, 255, 60, .08); }
.token.targeted .jersey { outline: 3px solid var(--accent); outline-offset: 2px; }
.token .tok-name { font-size: 11px; line-height: 1.15; max-width: 82px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.token .tok-name.muted { color: var(--muted); font-weight: 500; }
.token .tok-sub { font-family: var(--display); font-size: 10px; letter-spacing: .06em; color: var(--muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.pos-bg-GK  { background: var(--gk); }
.pos-bg-DEF { background: var(--def); }
.pos-bg-MID { background: var(--mid); }
.pos-bg-FWD { background: var(--fwd); }
.token.filled { animation: pop .25s ease; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

/* ---------------- Team / Year card ---------------- */
.team-card {
  background: var(--glass);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.team-card.spin { animation: reelspin .45s ease; }
@keyframes reelspin {
  0% { transform: translateY(-12px); filter: blur(5px); opacity: 0; }
  100% { transform: translateY(0); filter: blur(0); opacity: 1; }
}
.tc-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.tc-flag { width: 60px; display: grid; place-items: center; }
.tc-flag .flag-emoji { font-size: 42px; line-height: 1; }
.tc-flag .flag-svg { width: 54px; height: 34px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .55); display: block; }
.tc-id { min-width: 0; }
.tc-country { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 22px; line-height: 1.05; letter-spacing: .01em; }
.tc-code { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.tc-year { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: .9; color: var(--text); letter-spacing: 0; }
.tc-meta { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center; min-height: 16px; font-weight: 500; }

/* ---------------- Reroll + draft ---------------- */
.reroll-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reroll-row button {
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--text);
  padding: 11px 18px; border-radius: var(--pill); cursor: pointer; font-weight: 700; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.reroll-row button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--glass-2); }
.reroll-row button:disabled { opacity: .4; cursor: not-allowed; }
.reroll-row .count { color: var(--accent); }
.reroll-note { font-size: 11px; color: var(--muted); }
.squad-head { font-size: 11px; color: var(--muted); margin: 4px 0 10px; font-weight: 600; }

.draft-hint { font-size: 12px; color: var(--muted); margin: 4px 0 10px; min-height: 16px; }
.draft-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.player-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--text);
  border-left: 3px solid var(--line-2); padding: 11px 13px; border-radius: var(--r); cursor: pointer; text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, background .1s ease, box-shadow .1s ease;
}
.player-card:hover { transform: translateY(-2px); background: var(--glass-2); box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .6); }
.player-card:active { transform: translateY(0) scale(.985); }
.player-card.dimmed { opacity: .3; }
/* position already filled — shown for context but not draftable */
.player-card.locked { opacity: .38; cursor: not-allowed; filter: saturate(.4); }
.player-card.locked:hover { transform: none; background: var(--glass); box-shadow: var(--shadow-sm); }
.player-card.locked:active { transform: none; }
.player-card .pc-rating { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--text); min-width: 30px; text-align: center; line-height: 1; }
.player-card .pc-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.player-card .pc-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card .pc-pos { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .04em; display: flex; gap: 8px; align-items: center; text-transform: uppercase; }
.player-card .pc-goals { color: var(--green); font-weight: 700; }
.player-card .pc-apps { color: var(--muted); }
.pos-GK  { border-left-color: var(--gk); } .pos-GK .pc-rating  { color: var(--gk); }
.pos-DEF { border-left-color: var(--def); } .pos-DEF .pc-rating { color: var(--def); }
.pos-MID { border-left-color: var(--mid); } .pos-MID .pc-rating { color: var(--mid); }
.pos-FWD { border-left-color: var(--fwd); } .pos-FWD .pc-rating { color: var(--fwd); }

/* ---------------- Stat strip ---------------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.stat { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); padding: 11px 6px; text-align: center; }
.stat .k { font-size: 10px; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; margin-top: 2px; }
.stat.overall { border-color: var(--glass-line); background: var(--glass); }
.stat.overall .v { color: var(--accent); }
/* stat bars — minimalist monochrome hairline (data-viz: bar length = relative line strength) */
.stat { position: relative; overflow: hidden; }
.sbar { margin-top: 7px; height: 3px; width: 100%; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sbar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .5);
  transition: width .55s cubic-bezier(.4, 0, .2, 1); }
.stat.overall .sbar > i { background: var(--accent); }

/* ---------------- Pills ---------------- */
.progress-pill, .record-pill {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--pill);
  padding: 7px 13px; font-weight: 700; font-size: 13px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.progress-pill { color: var(--text); font-family: var(--display); letter-spacing: .04em; }
.record-pill { color: var(--text); cursor: pointer; }
.record-pill:hover { border-color: var(--accent); }

/* ---------------- Buttons ---------------- */
button.btn {
  background: var(--accent); color: var(--ink); border: 0; border-radius: var(--pill);
  padding: 11px 18px; font-weight: 800; font-size: 14px; cursor: pointer; letter-spacing: .01em;
  box-shadow: 0 12px 26px -14px rgba(194, 242, 63, .5);
  transition: background .12s ease, transform .06s ease, box-shadow .12s ease;
}
button.btn:hover { background: var(--accent-press); }
button.btn:active { transform: translateY(1px); }
button.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-line); font-weight: 700; box-shadow: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
button.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--glass-2); }

/* ---------------- Manager record card ---------------- */
.record-card { margin: 4px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sunk); }
.rec-title { font-size: 11px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec-cell { text-align: center; }
.rec-cell .rv { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
.rec-cell .rk { font-size: 10px; color: var(--muted); margin: 4px 0 2px; }
.cmp { font-size: 10px; font-weight: 700; }
.cmp.above { color: var(--green); }
.cmp.below { color: var(--danger); }
.rec-foot { font-size: 11px; color: var(--muted); margin-top: 12px; text-align: center; }
.rec-reset { color: var(--accent); cursor: pointer; text-decoration: none; border-bottom: 1px solid rgba(198, 255, 60, .4); }
.record-card.guest { text-align: center; }
.record-card.guest .btn { font-size: 13px; }

/* ---------------- Daily strip ---------------- */
.daily-strip { margin: 0 0 16px; padding: 13px; border: 1px solid rgba(255, 201, 77, .45); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 201, 77, .12), rgba(255, 201, 77, .04)); text-align: center; }
.ds-head { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 16px; color: var(--gold); }
.ds-streak { font-size: 12px; color: var(--text); margin-top: 4px; font-weight: 600; }
.ds-ach { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.ds-badge { font-size: 10px; font-weight: 700; background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 4px 10px; }
.ds-locked { font-size: 11px; color: var(--muted); margin-top: 9px; font-style: italic; }

/* ---------------- Profile + rankings ---------------- */
.profile-input {
  width: 100%; margin: 6px 0 16px; padding: 12px 14px; font-size: 16px; font-family: var(--ui);
  background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); text-align: center;
}
.profile-input:focus { outline: none; border-color: var(--accent); }
.rank-table { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; }
.rank-row { display: grid; grid-template-columns: 30px 1fr 46px 32px 32px 44px; align-items: center; gap: 6px;
  padding: 9px 11px; border-radius: var(--r-sm); font-size: 13px; background: var(--sunk); border: 1px solid transparent; }
.rank-row.rank-head { background: transparent; color: var(--muted); font-size: 10px; padding: 2px 11px; }
.rank-row .rn { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row.me { border-color: var(--accent); background: rgba(198, 255, 60, .08); }
.rank-row.demo { opacity: .55; }
.rank-loading { text-align: center; color: var(--muted); padding: 18px; }
.rank-note { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.keybox { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 2px;
  background: var(--sunk); border: 1px solid var(--accent); border-radius: var(--r); padding: 12px; text-align: center;
  color: var(--accent); margin: 8px 0 12px; word-break: break-all; }

/* ---------------- Custom game (year range) ---------------- */
.mode-badge:not(:empty) { font-family: var(--ui); text-transform: none; letter-spacing: 0;
  font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(255, 201, 77, .1);
  border: 1px solid rgba(255, 201, 77, .35); border-radius: var(--pill); padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.cg-presets { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 4px 0 16px; }
.cg-chip { background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); border-radius: var(--pill);
  padding: 7px 13px; font-weight: 700; font-size: 12px; cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease; }
.cg-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--glass-2); }
.cg-chip.sel { border-color: var(--accent); color: var(--accent); background: rgba(198, 255, 60, .12); }
.cg-sub { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 8px; }
.cg-range { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 4px 0 10px; }
.cg-field { display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: var(--muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-align: left; }
.cg-field select { font-family: var(--display); font-size: 22px; font-weight: 600; background: var(--sunk);
  border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); padding: 8px 12px; cursor: pointer; }
.cg-field select:focus { outline: none; border-color: var(--accent); }
.cg-arrow { font-family: var(--display); font-size: 22px; color: var(--muted); padding-bottom: 8px; }
.cg-count { font-size: 12px; color: var(--muted); margin-bottom: 16px; font-weight: 600; }

/* ---------------- Flash + modal ---------------- */
.flash {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #0a1812; border: 1px solid var(--accent); color: var(--text);
  padding: 11px 18px; border-radius: var(--r); opacity: 0; pointer-events: none; font-weight: 600;
  transition: opacity .2s, transform .2s; z-index: 50; box-shadow: var(--shadow);
}
.flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal {
  position: fixed; inset: 0; background: rgba(6, 12, 10, .72); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal.open { display: flex; }
.modal-card {
  width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  background: rgba(26, 40, 33, .82);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 24px; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
.verdict { font-family: var(--display); text-transform: uppercase; font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin-bottom: 6px; }
.v-perfect { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 74, .22); }
.v-undefeated { color: var(--green); }
.v-champion { color: var(--text); }
.v-out { color: var(--danger); }
.record { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 16px; }

.goals { display: flex; flex-direction: column; gap: 7px; margin: 0 auto 16px; max-width: 320px; }
.goal { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 600; font-size: 14px;
  padding: 9px; border-radius: var(--r); border: 1px solid var(--line); }
.goal.done { background: rgba(46, 226, 126, .12); border-color: rgba(46, 226, 126, .5); }
.goal.miss { opacity: .55; }

.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 54px; justify-content: center; gap: 4px; margin: 0 0 14px; }
.tl-row { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tl-stage { font-size: 9px; color: var(--muted); height: 24px; line-height: 1.1; }
.tl-res { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 14px; }
.tl-res.win { background: rgba(46, 226, 126, .2); color: var(--green); }
.tl-res.draw { background: rgba(255, 255, 255, .1); color: var(--text); }
.tl-res.loss { background: rgba(255, 88, 106, .2); color: var(--danger); }
.tl-opp { font-size: 9px; color: var(--muted); margin-top: 2px; }
.tl-cards { display: flex; gap: 2px; margin-top: 3px; min-height: 7px; }
.card-dot { width: 5px; height: 7px; border-radius: 1px; display: inline-block; }
.card-dot.yellow { background: #f5c518; }
.card-dot.red { background: var(--danger); }
.susp-note { font-size: 12px; color: var(--gold); background: rgba(255, 201, 77, .08);
  border: 1px solid rgba(255, 201, 77, .25); border-radius: var(--r-sm); padding: 8px 10px; margin: 0 0 12px; line-height: 1.4; }
.pc-risk { font-size: 9px; margin-left: 2px; }

.result-note { font-size: 14px; color: var(--text); line-height: 1.55; }
.strength-note { font-size: 12px; color: var(--muted); margin: 10px 0 18px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------------- Fixture reveal (knockout bracket) ---------------- */
.fixture-card { width: min(720px, 100%); text-align: left; }
.fixture-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; text-align: center; font-size: 20px; font-weight: 600; }
.fixture { position: relative; margin-bottom: 16px; }
.fx-bracket { position: relative; display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding: 8px 2px 10px; }
.fixture-ball {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent)); box-shadow: 0 0 6px rgba(194, 242, 63, .5);
  transition: transform .55s cubic-bezier(.5, .1, .3, 1); z-index: 4;
}
.fx-col-title { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.fx-group { display: flex; flex-direction: column; gap: 6px; min-width: 150px; padding-right: 14px; border-right: 1px dashed var(--line-2); }
.fx-grow {
  position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px;
  opacity: 0; transform: translateX(8px); transition: opacity .3s ease, transform .3s ease;
}
.fx-grow.show { opacity: 1; transform: none; }
.fx-node { width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.fx-node.win { background: var(--green); border-color: var(--green); }
.fx-node.draw { background: var(--muted); border-color: var(--muted); }
.fx-node.loss { background: var(--danger); border-color: var(--danger); }
.fx-gstage { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; }
.fx-opp { font-size: 9px; color: var(--muted); font-weight: 400; }
.fx-res { width: 24px; height: 24px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 12px; }
.fx-res.win { background: rgba(46, 226, 126, .2); color: var(--green); }
.fx-res.draw { background: rgba(255, 255, 255, .1); color: var(--text); }
.fx-res.loss { background: rgba(255, 88, 106, .2); color: var(--danger); }
.fx-group-foot { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 600; margin-top: 6px; opacity: 0; transition: opacity .3s ease; }
.fx-group-foot.show { opacity: 1; }
.fx-group-foot.adv { color: var(--green); }
.fx-group-foot.out { color: var(--danger); }

.fx-ko { display: flex; align-items: center; padding-top: 20px; }
.fx-ko-node {
  position: relative; min-width: 88px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r);
  padding: 9px 6px; text-align: center; opacity: 0; transform: scale(.9); transition: opacity .3s ease, transform .3s ease;
}
.fx-ko-node.show { opacity: 1; transform: none; }
.fx-ko-node.active { border-color: var(--accent); }
.fx-ko-node:not(:first-child) { margin-left: 26px; }
.fx-ko-node:not(:first-child)::before { content: ""; position: absolute; left: -26px; top: 50%; width: 26px; height: 2px; background: var(--line-2); }
.fx-ko-stage { font-size: 10px; color: var(--muted); display: block; }
.fx-ko-res { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-sm); font-family: var(--display); font-weight: 600; font-size: 12px; margin: 4px 0 2px; }
.fx-ko-res.win { background: rgba(46, 226, 126, .2); color: var(--green); }
.fx-ko-res.draw { background: rgba(255, 255, 255, .1); color: var(--text); }
.fx-ko-res.loss { background: rgba(255, 88, 106, .2); color: var(--danger); }
.fx-ko-opp { font-size: 9px; color: var(--muted); display: block; }
.fx-cards { display: flex; gap: 2px; }
.fx-cards.center { justify-content: center; min-height: 7px; margin-top: 3px; }
.fx-trophy .fx-tro { font-size: 22px; }
.fx-trophy.show { border-color: var(--gold); box-shadow: 0 0 8px rgba(255, 210, 74, .3); }
#fixture-skip { display: block; margin: 0 auto; }

.credit { max-width: 1180px; margin: 0 auto; padding: 6px 18px 30px; font-size: 12px; color: var(--muted); text-align: center; }
.credit a { color: var(--accent); }

/* ---------------- Mobile (≤560px) ---------------- */
@media (max-width: 560px) {
  header.topbar { padding: 9px 12px; gap: 8px; }
  .brand .logo { font-size: 24px; }
  .brand .tag { font-size: 10px; }
  .topbar .actions { width: 100%; gap: 6px; }
  .topbar .actions .btn { padding: 8px 12px; font-size: 12px; }
  .record-pill, .progress-pill { padding: 6px 11px; font-size: 12px; }
  #new-game { order: -1; margin-right: auto; }

  .layout { gap: 14px; margin: 14px auto; padding: 0 12px 48px; }
  .panel { padding: 14px; border-radius: var(--r); }
  .panel h2 { font-size: 12px; }

  .draft-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .player-card { padding: 11px 10px; }
  .player-card .pc-rating { font-size: 22px; }
  .reroll-row { flex-wrap: wrap; }

  .tc-year { font-size: 38px; }
  .tc-country { font-size: 19px; }
  .tc-top { gap: 11px; }
  .stat .v { font-size: 22px; }

  .modal { padding: 12px; }
  .modal-card { padding: 18px 15px; }
  .verdict { font-size: 25px; }
  .timeline { gap: 3px; grid-auto-columns: 44px; }
  .tl-stage { font-size: 8px; height: 22px; }
  .tl-res { width: 26px; height: 26px; font-size: 12px; }
  .rec-grid { gap: 6px; }
  .rec-cell .rv { font-size: 21px; }
  .token .jersey { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 420px) { .brand .tag { display: none; } }
