:root {
  color-scheme: dark;
  --bg: #0c0f14; --paper: #151a22; --paper2: #1c222c; --raise: #232a35;
  --ink: #ebe7df; --muted: #8f97a3; --line: #2a313d; --line2: #20262f;
  --red: #e8384f; --red-d: #c42239; --gold: #e2b347; --blue: #4f8be6; --green: #3db57a; --amber: #e08a2c;
  --hi: rgba(226, 179, 71, .13);
  --head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font-family: var(--body); color: var(--ink); font-size: 14px; line-height: 1.45;
  background: var(--bg) radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0) 0 0/16px 16px; }
button { font: inherit; color: inherit; cursor: pointer; }
main { max-width: 1240px; margin: 0 auto; padding: 18px 20px 90px; }
footer { max-width: 1240px; margin: 0 auto; padding: 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
h1, h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .4em; line-height: 1.05; }
h2 { font-size: 30px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h4 { font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 14px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; } .r { text-align: right; }
.good { color: var(--green); font-weight: 700; } .bad { color: var(--red); font-weight: 700; }
.pad { padding: 14px 16px; }
.kicker { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
a { color: var(--gold); }

/* header */
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 10px 20px;
  background: #07090c; color: var(--ink); border-bottom: 3px solid var(--red); flex-wrap: wrap; }
.logo { background: none; border: 0; color: #fff; font-family: var(--head); font-weight: 900; font-size: 22px; letter-spacing: .06em; padding: 0; }
.logo span { color: var(--gold); margin: 0 2px; }
header nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link { background: none; border: 0; color: var(--ink); opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { opacity: 1; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang button { background: transparent; border: 0; padding: 4px 9px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.lang button.on { background: var(--gold); color: #1a1300; }
.lang button:not(.on):hover { color: var(--ink); }
.runbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rb-name { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 16px; margin-left: -8px; }
.rb-item { display: flex; flex-direction: column; font-size: 13px; line-height: 1.15; }
.rb-item small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.trophies { flex-direction: row; gap: 4px; font-size: 13px; }

/* crest */
.crest { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--head); font-weight: 800;
  font-size: 8.5px; letter-spacing: 0; color: var(--ink); vertical-align: middle; flex-shrink: 0;
  background: radial-gradient(circle, var(--paper) 0 54%, rgba(0,0,0,.45) 55%, transparent 60%), linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.crest.big { width: 46px; height: 46px; font-size: 12px; }
.crest.ext { background: radial-gradient(circle, var(--paper) 0 54%, transparent 55%), #55606f; }

/* buttons */
.btn { border: 1.5px solid #3a4352; background: var(--paper2); padding: 7px 14px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--ink); }
.btn:hover:not(:disabled) { background: var(--raise); border-color: #4a5466; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--red-d); border-color: var(--red-d); }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.big { padding: 11px 20px; font-size: 15px; }
.btn.tiny { padding: 3px 9px; font-size: 12px; border-width: 1px; }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.chip { border: 1px solid var(--line); background: var(--paper2); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 12px; color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.card.flush { padding: 0; overflow: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 28px; }

/* hero */
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; margin: 6px 0 12px; color: #fff; }
.lede { font-size: 17px; max-width: 680px; color: #c3c0b8; }
.continue { display: flex; align-items: center; gap: 16px; margin-top: 18px; max-width: 720px; border-left: 5px solid var(--red); }
.continue .actions { margin-left: auto; display: flex; gap: 8px; }
.sec { font-size: 18px; margin: 28px 0 12px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mode { display: flex; flex-direction: column; text-align: left; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; border-top: 5px solid #3a4352; transition: transform .12s, border-color .12s; }
.mode:hover { transform: translateY(-2px); border-top-color: var(--red); }
.mode-len { font-family: var(--head); font-weight: 900; font-size: 44px; line-height: 1; color: #fff; }
.mode-len small { font-size: 13px; margin-left: 6px; text-transform: uppercase; color: var(--muted); }
.mode-name { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 18px; }
.mode-years { font-size: 12px; color: var(--red); font-weight: 700; }
.mode-blurb { font-size: 13px; color: var(--muted); }
.yz { display: flex; align-items: center; gap: 18px; width: 100%; margin-top: 12px; padding: 18px 20px; border-radius: 10px; border: 1px solid #3a3220; text-align: left;
  background: repeating-linear-gradient(135deg, #17140c 0 14px, #1d1910 14px 28px); color: var(--ink); }
.yz-tag { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: 20px; color: var(--gold); white-space: nowrap; }
.yz-go { margin-left: auto; font-weight: 800; white-space: nowrap; }
.yz:hover { border-color: var(--gold); }
.yz:hover .yz-go { color: var(--gold); }
.cabinet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cab { display: flex; align-items: center; gap: 6px; opacity: .45; }
.cab.has { opacity: 1; }
.cab span { display: flex; gap: 2px; }
.cab i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: inline-block; }
.cab i.on { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.tier-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; font-weight: 900; font-family: var(--head); color: #fff; background: #555; }
.t-S .letter, .tier-mini.t-S { background: linear-gradient(135deg, #f0cc66, #b4801c); color: #1d1400; }
.t-A .letter, .tier-mini.t-A { background: var(--green); }
.t-B .letter, .tier-mini.t-B { background: var(--blue); }
.t-C .letter, .tier-mini.t-C { background: #7d6cb0; }
.t-D .letter, .tier-mini.t-D { background: var(--amber); }
.t-F .letter, .tier-mini.t-F { background: #4b525e; }

/* home: club picker */
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; margin-right: 6px; vertical-align: 2px; }
.sec-club { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.clubpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.cp { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.cp:hover { border-color: #4a5466; background: var(--paper2); }
.cp.on { border-color: var(--gold); background: var(--hi); box-shadow: 0 0 0 1px var(--gold); color: #fff; }
.mode:disabled, .yz:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.mode-club { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.35; }

/* club select */
.phase-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin: 10px 0 18px; flex-wrap: wrap; }
.phase-head > div:first-child { max-width: 760px; }
.phase-head p { margin: 4px 0 0; }
.phase-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.club { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.club:hover { border-color: var(--gold); background: var(--paper2); }
.club .crest { grid-row: 1 / 4; }
.club-name { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 16px; }
.club-ovr { font-size: 12px; font-weight: 700; color: var(--red); }
.club-stars { font-size: 11.5px; color: var(--muted); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-family: var(--head); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.02); }
.tbl.compact td { padding: 4px 8px; }
.tbl tr.me td { background: var(--hi); font-weight: 700; }
.tbl.league tr.ucl td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.tbl.league tr.rel td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl tr.cut td { opacity: .35; text-decoration: line-through; }
.tbl tr.cut td:last-child { opacity: 1; text-decoration: none; }
.tbl tr.gold td { background: rgba(226, 179, 71, .08); }
.tbl tr.tot td { font-weight: 800; border-top: 1px solid var(--muted); }
.sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.hint { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--raise); color: var(--ink); font-size: 10px; cursor: help; }
.xi { font-family: var(--head); font-weight: 900; font-size: 10px; background: var(--ink); color: var(--bg); border-radius: 3px; padding: 1px 4px; }
.pos { display: inline-block; min-width: 34px; text-align: center; font-family: var(--head); font-weight: 800; font-size: 10.5px; border-radius: 3px; padding: 1px 4px; }
.pos-G { background: rgba(224,138,44,.18); color: #f0a95a; } .pos-D { background: rgba(79,139,230,.18); color: #86b0f2; }
.pos-M { background: rgba(61,181,122,.18); color: #6fd3a0; } .pos-F { background: rgba(232,56,79,.18); color: #ff7d8f; }
.rt { display: inline-block; min-width: 28px; text-align: center; font-weight: 800; border-radius: 4px; padding: 1px 4px; font-size: 12.5px; }
.rt.elite { background: linear-gradient(135deg, #f0cc66, #c4912a); color: #1d1400; }
.rt.great { background: rgba(61,181,122,.2); color: #7fe0ad; }
.rt.good { background: rgba(79,139,230,.2); color: #9cc0ff; }
.rt.ok { background: rgba(255,255,255,.07); color: #c9c5bd; }
.rt.low { background: rgba(232,56,79,.16); color: #ff8a9b; }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; opacity: .9; }
.spark circle { fill: var(--gold); }
.spark .ref { stroke: #3a4352; stroke-dasharray: 2 2; }

/* off-season */
.pickmeter { display: flex; align-items: center; gap: 12px; background: var(--paper2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; }
.big-num { font-family: var(--head); font-weight: 900; font-size: 44px; line-height: 1; color: var(--gold); }
.deps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.deps.cols { grid-template-columns: 1fr 1fr; font-size: 12.5px; }
.deps li { display: flex; align-items: center; gap: 6px; }
.warn { background: rgba(232,56,79,.12); border: 1px solid rgba(232,56,79,.4); color: #ff9aa8; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.tabs { display: flex; gap: 4px; margin: 4px 0 -1px; }
.tabs button { border: 1px solid var(--line); border-bottom: 0; background: transparent; padding: 8px 16px; border-radius: 8px 8px 0 0; font-weight: 700; color: var(--muted); }
.tabs button.on { background: var(--paper); color: var(--ink); }
.tabs + .card { border-top-left-radius: 0; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(12,15,20,.92); border-top: 1px solid var(--line); padding: 10px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; z-index: 9; backdrop-filter: blur(6px); }
.trade-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.trade-top select, .pool-tools input, .pool-tools select { font: inherit; padding: 5px 10px; border: 1px solid #3a4352; border-radius: 6px; background: var(--paper2); color: var(--ink); }
.trade-top select { margin-left: 6px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trow { display: grid; grid-template-columns: 18px 40px 1fr 34px 86px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.trow:hover { background: var(--paper2); }
.trow.sel { background: var(--hi); }
.trow input { accent-color: var(--gold); }
.tname { font-weight: 600; font-size: 13px; line-height: 1.2; }
.tname .sub { display: block; }
.trade-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.trade-cols h5 { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--muted); margin: 10px 0 4px; }
.trow.pick { background: rgba(79,139,230,.06); }
.trow.pick.sel { background: var(--hi); }
.pk-badge { display: inline-block; min-width: 34px; text-align: center; font-family: var(--head); font-weight: 900; font-size: 11px; border-radius: 3px; padding: 1px 4px; background: rgba(226,179,71,.2); color: var(--gold); }
.pk-num { font-weight: 800; color: var(--gold); text-align: center; }
.slot .via { font-size: 8.5px; color: var(--gold); font-weight: 800; }
/* league-wide trade market */
.trade-grid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.trade-grid aside .card { margin-bottom: 12px; }
.pad-x { padding: 8px 12px 0; margin: 0; }
.tbl.market tr.pkrow td { background: rgba(226,179,71,.05); }
.tbl.market tr.indeal td { background: var(--hi); }
.deal { border-color: rgba(226,179,71,.4); }
.deal-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; font-size: 12.5px; }
.deal-list li { display: flex; align-items: center; gap: 6px; }
.x-mini { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.x-mini:hover { color: var(--red); }
.mine-list { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; }
.mine-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 6px; text-align: left; background: var(--paper2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color: var(--ink); }
.mine-row:hover { border-color: #4a5466; }
.mine-row.on { border-color: var(--gold); background: var(--hi); }
.dorder { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 3px; font-size: 12.5px; }
.dorder li { display: grid; grid-template-columns: 34px 22px 1fr auto; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 4px; }
.dorder li.me { background: var(--hi); font-weight: 700; }
.dorder .crest { width: 20px; height: 20px; font-size: 7.5px; }
.dn { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.via { color: var(--gold); font-size: 11px; font-weight: 700; }
.order-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.order-strip .strip { padding: 0; flex: 1; min-width: 0; }
.os-label { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.os-no1 { display: inline-flex; align-items: center; gap: 6px; background: var(--hi); border: 1px solid rgba(226,179,71,.5); border-radius: 99px; padding: 3px 10px 3px 8px; font-size: 13px; }
.tmsg { font-weight: 700; } .tmsg.ok { color: var(--green); } .tmsg.no { color: var(--red); }

/* draft */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 12px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); min-width: 44px; }
.slot small { font-size: 10px; color: var(--muted); font-weight: 700; }
.slot.me { border: 2px solid var(--red); background: rgba(232,56,79,.1); }
.slot.now { box-shadow: 0 0 0 2px var(--gold); }
.draft-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.draft-grid aside { position: sticky; top: 78px; }
.pool-tools { display: flex; gap: 6px; align-items: center; padding: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.pool-tools input { flex: 1; min-width: 140px; }
.pool-tools input::placeholder { color: var(--muted); }
.poscount { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.poscount span { background: var(--paper2); padding: 2px 8px; border-radius: 99px; }
.poscount span.bad { background: rgba(232,56,79,.2); }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.plist li { display: flex; align-items: center; gap: 6px; }
.plist.log .crest { width: 20px; height: 20px; font-size: 7.5px; }

/* season */
.season-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: start; }
.legend { padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.lg { width: 10px; height: 10px; display: inline-block; border-radius: 2px; } .lg.ucl { background: var(--blue); } .lg.rel { background: var(--red); margin-left: 8px; }
.feed { list-style: none; margin: 0; padding: 0; }
.res { display: grid; grid-template-columns: 50px 1fr 52px; grid-template-rows: auto auto; column-gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line2); align-items: center; }
.res .comp { grid-row: 1 / 3; font-family: var(--head); font-weight: 800; font-size: 11px; text-transform: uppercase; text-align: center; border-radius: 4px; padding: 3px 0; }
.c-LaLiga { background: var(--raise); color: var(--ink); } .c-UCL { background: var(--blue); color: #fff; } .c-Copa { background: var(--gold); color: #1d1400; }
.res .tag { grid-column: 2; }
.res .opp { grid-column: 2; grid-row: 2; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.res .score { grid-column: 3; grid-row: 1 / 3; text-align: center; font-weight: 900; font-size: 16px; border-radius: 6px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.r-W { background: rgba(61,181,122,.2); color: #7fe0ad; } .r-D { background: rgba(255,255,255,.07); } .r-L { background: rgba(232,56,79,.18); color: #ff8a9b; }
.ties { list-style: none; padding: 0; margin: 0; font-size: 12.5px; display: grid; gap: 4px; }
.ties li { display: flex; align-items: center; gap: 5px; opacity: .6; }
.ties li.es { opacity: 1; font-weight: 600; } .ties li.me { background: var(--hi); border-radius: 4px; }
.ties .crest { width: 20px; height: 20px; font-size: 7.5px; }
.champ { background: var(--hi); border-radius: 8px; padding: 10px; }
.scorers { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.scorers li.me { font-weight: 800; color: var(--gold); }
.pitch { background: repeating-linear-gradient(180deg, #17402a 0 26px, #143923 26px 52px); border: 1px solid #1f4d33; border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.pitch .line { display: flex; justify-content: space-around; }
.pp { display: flex; flex-direction: column; align-items: center; color: #eaf3ec; font-size: 10.5px; gap: 1px; max-width: 70px; text-align: center; }
.pp small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }

/* season end */
.banner { background: linear-gradient(135deg, #f0cc66, #b4801c); color: #1d1400; font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: 26px; padding: 18px 22px; border-radius: 10px; margin-bottom: 16px; text-align: center; }
.awards { display: grid; gap: 8px; margin-bottom: 10px; }
.award { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--paper2); }
.award.mine { background: var(--hi); box-shadow: inset 0 0 0 1px var(--gold); }
.award .ai { font-size: 22px; }
.award small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tbl.hist td { white-space: nowrap; }
.grade { display: flex; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.grade .letter { width: 110px; height: 110px; border-radius: 16px; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 76px; color: #fff; flex-shrink: 0; }
.grade p { margin: 6px 0 0; }

/* modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; max-width: 680px; max-height: 88vh; overflow: auto; padding: 26px 28px; position: relative; }
.modal .x { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 18px; color: var(--muted); }
.modal ol { padding-left: 20px; } .modal li { margin-bottom: 6px; }

/* clickable player names */
.pname { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: inherit; text-align: left; cursor: pointer; }
.pname:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.pp { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.pp:hover small { color: var(--gold); }
.res { cursor: pointer; border-radius: 6px; }
.res:hover { background: rgba(255,255,255,.03); }
.derby { color: #ff9a5a; font-weight: 700; white-space: nowrap; }
.board { margin-top: 6px !important; }

/* match centre */
.match-modal { width: min(620px, 100%); }
.mc { background: var(--paper2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.mc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-head .comp { font-family: var(--head); font-weight: 800; font-size: 11px; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; }
.mc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0 6px; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; }
.mc-num { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mc-num .sc { font-family: var(--head); font-weight: 900; font-size: 44px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.clock { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.clock.live { color: var(--green); }
.clock.live::before { content: '● '; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.mc-ev { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.mc-ev li { animation: pop .35s ease-out; }
.mc-ev li.a { text-align: right; }
.mc-ev .min { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.mc-foot { text-align: center; color: var(--gold); font-weight: 700; margin-top: 6px; min-height: 1em; }
.mc-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* player card */
.player-modal { width: min(720px, 100%); }
.pl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pl-head h2 { margin: 0; }
.pl-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 18px; justify-content: start; }
.pl-stats small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.pl-legend { background: var(--hi); border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }
.pl-chart { overflow-x: auto; background: var(--paper2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.pl-chart svg { display: block; }
.pl-chart .rl { font-size: 9px; fill: var(--ink); font-weight: 700; }
.pl-chart .yl { font-size: 9px; fill: var(--muted); }
.pl-chart .yl.now { fill: var(--gold); font-weight: 800; }
.pl-chart rect.b-elite { fill: #d8aa44; } .pl-chart rect.b-great { fill: #3db57a; } .pl-chart rect.b-good { fill: #4f8be6; } .pl-chart rect.b-ok { fill: #5b6473; }
.pl-chart rect.now { stroke: #fff; stroke-width: 1.5; }
.stints { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.stints li { display: flex; align-items: center; gap: 6px; }

/* lineup editor */
.lineup-modal { width: min(900px, 100%); }
.lu-forms { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.chip:disabled { opacity: .3; cursor: not-allowed; }
.lu-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.lu-pitch { padding: 14px 8px; gap: 14px; min-height: 260px; }
.slotp { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 4px 6px; min-width: 62px; color: #eaf3ec; font-size: 10.5px; cursor: pointer; }
.slotp small { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slotp:hover { border-color: var(--gold); }
.slotp.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); background: rgba(226,179,71,.2); }
.slotp.empty { border-style: dashed; color: rgba(255,255,255,.5); font-size: 18px; justify-content: center; min-height: 40px; cursor: default; }
.lu-stats { display: grid; gap: 8px; }
.lu-stats > div:not(.lu-btns) { display: flex; align-items: baseline; gap: 8px; }
.lu-stats small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); min-width: 90px; }
.lu-stats b { font-size: 20px; font-family: var(--head); }
.lu-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.lu-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.lurow { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 6px; width: 100%; text-align: left; background: var(--paper2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; margin-bottom: 4px; color: var(--ink); }
.lurow:hover { border-color: #4a5466; }
.lurow.on { border-color: rgba(61,181,122,.6); background: rgba(61,181,122,.1); }
.lurow.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: var(--hi); }
.lu-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.lu-name .sub { display: block; overflow: hidden; text-overflow: ellipsis; }
.xi-head { display: flex; align-items: center; gap: 8px; }
.xi-head .btn { margin-left: auto; }

/* stats */
.topstat { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .03em; margin-top: 2px; white-space: nowrap; }
.statbars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.sb { display: grid; grid-template-columns: 90px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; }
.sb .bar { height: 8px; background: var(--paper2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.sb .bar i { display: block; height: 100%; border-radius: 99px; }
.sb .bar i.b-elite { background: #d8aa44; } .sb .bar i.b-great { background: #3db57a; } .sb .bar i.b-good { background: #4f8be6; } .sb .bar i.b-ok { background: #5b6473; }
.sb b { text-align: right; font-variant-numeric: tabular-nums; }

/* extra modes on the home screen */
.extra-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xmode { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.xmode b { display: block; font-family: var(--head); text-transform: uppercase; font-size: 18px; margin-bottom: 2px; }
.xmode .muted { display: block; }
.xmode .yz-go { margin-left: auto; }
.xmode:hover { border-color: var(--gold); }
.wcm { background: linear-gradient(135deg, #12233f, #151a22 60%); }
.bapm { background: linear-gradient(135deg, #2a1838, #151a22 60%); }
.xm-icon { font-size: 34px; }
.xm-rec { display: block; color: var(--gold); margin-top: 4px; }

/* player cards (World Cup / Build-a-player) */
.wc-draft { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.wc-pack { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 12px; }
.bap-pack { grid-template-columns: repeat(3, 1fr); }
.wcard { position: relative; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid; overflow: hidden; }
.wcard.tier-icon { background: linear-gradient(160deg, #3b2f10, #1b1609 70%); border-color: #d8aa44; box-shadow: 0 0 18px rgba(216,170,68,.25); }
.wcard.tier-star { background: linear-gradient(160deg, #152a46, #10161f 70%); border-color: #4f8be6; }
.wcard.tier-gold { background: linear-gradient(160deg, #22262e, #14181f 70%); border-color: #3a4352; }
.wc-top { display: flex; align-items: center; gap: 8px; }
.wc-ovr { font-family: var(--head); font-weight: 900; font-size: 38px; line-height: 1; color: #fff; }
.tier-icon .wc-ovr { color: #f0cc66; }
.wc-pos { font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--muted); }
.nat { margin-left: auto; font-family: var(--head); font-weight: 800; font-size: 11px; background: rgba(255,255,255,.1); border-radius: 4px; padding: 2px 6px; letter-spacing: .05em; }
.nat.you { margin-left: 0; background: var(--gold); color: #1d1400; }
.wc-name { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 17px; line-height: 1.1; margin-top: 4px; }
.wc-era { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.wc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wst { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 6px; background: rgba(0,0,0,.25); border: 1px solid transparent; color: var(--ink); font: inherit; }
.wst b { font-size: 17px; font-variant-numeric: tabular-nums; }
.wst small { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
button.wst { cursor: pointer; }
button.wst:hover:not(:disabled) { border-color: var(--gold); background: rgba(226,179,71,.15); }
button.wst.hot b { color: #f0cc66; }
button.wst.taken { opacity: .25; cursor: not-allowed; }
.wc-pick { margin-top: 8px; }
.wcard { animation: cardIn .45s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) rotateY(70deg) scale(.92); } to { opacity: 1; transform: none; } }
.wcard:hover { transform: translateY(-3px); transition: transform .15s; }
.rar { position: absolute; top: 10px; right: -28px; transform: rotate(35deg); font-size: 9px; font-weight: 900; letter-spacing: .12em; padding: 2px 30px; background: rgba(255,255,255,.1); color: var(--muted); }
.tier-icon .rar { background: #d8aa44; color: #1d1400; }
.tier-star .rar { background: #4f8be6; color: #fff; }
.wcard .wc-top .nat { margin-right: 22px; }
.wc-links { font-size: 11px; color: var(--muted); margin-top: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(0,0,0,.2); }
.wc-links.on { color: #7fe0ad; background: rgba(61,181,122,.12); }
.chem { font-size: 8px; letter-spacing: 1px; color: rgba(255,255,255,.25); }
.chem.c1 { color: #e0b04a; } .chem.c2 { color: #9fd36b; } .chem.c3 { color: #3fe08f; }
.slotp.tier-icon { border-color: rgba(216,170,68,.7); }
.slotp.tier-star { border-color: rgba(79,139,230,.6); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.opt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 8px; background: var(--paper2); border: 1px solid var(--line); color: var(--ink); }
.opt b { font-size: 13px; } .opt small { font-size: 11px; color: var(--muted); }
.opt:hover { border-color: #4a5466; }
.opt.on { border-color: var(--gold); background: var(--hi); }
/* peak-form cards: rated above their estimate */
.wcard.tier-prime { background: linear-gradient(160deg, #3a1450, #12081c 70%); border-color: transparent; box-shadow: 0 0 22px rgba(190,110,255,.45); }
.wcard.tier-prime::before { content: ''; position: absolute; inset: 0; border-radius: 14px; padding: 2px; background: linear-gradient(120deg, #ff5ac8, #ffd45a, #5affc8, #5aa8ff, #c45aff, #ff5ac8); background-size: 300% 300%; animation: primeGlow 3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.wcard.tier-prime::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); background-size: 250% 100%; animation: shine 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes primeGlow { to { background-position: 300% 0; } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.tier-prime .wc-ovr { color: #ffd45a; text-shadow: 0 0 12px rgba(255,212,90,.6); }
.tier-prime .rar { background: linear-gradient(90deg, #ff5ac8, #c45aff); color: #fff; }
.wc-boost { font-weight: 900; font-size: 13px; color: #5affc8; }
.wc-prime { font-size: 11px; font-weight: 700; color: #e6b8ff; }
/* career-best seasons (club game) */
.spark circle.cy { fill: #c45aff; stroke: #ffd45a; stroke-width: 1; }
.cymark { font-size: 11px; margin-right: 2px; filter: drop-shadow(0 0 3px rgba(196,90,255,.8)); }
.pl-chart rect.b-prime { fill: url(#none); fill: #b45cf0; }
.pp.cy small { color: #e6b8ff; }
.cyline { color: #e6b8ff; margin-top: 8px; }
.slotp.tier-prime { border-color: #c45aff; box-shadow: 0 0 8px rgba(196,90,255,.6); }
.c-EURO { background: #1f4fa3; color: #fff; } .c-COPA { background: #b8860b; color: #fff; }
.wc-pitch .slotp { cursor: default; }
.wc-pitch .slotp b { font-size: 14px; }
.slotp.empty.next { border-color: var(--gold); color: var(--gold); font-size: 11px; }
.wc-actions { margin-bottom: 14px; }
.wc-ts { grid-template-columns: repeat(3, auto); display: grid; gap: 14px; margin-bottom: 10px; }
.wc-ties li { opacity: 1; }
.c-WC { background: #2c6e49; color: #fff; }
.bap-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 16px; }
.bap-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; border: 1px dashed var(--line); background: var(--paper); text-align: center; }
.bap-slot b { font-family: var(--head); font-size: 26px; line-height: 1; }
.bap-slot small { font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.bap-slot.on { border-style: solid; border-color: rgba(226,179,71,.6); background: var(--hi); }
.bap-slot.alt { border-color: rgba(79,139,230,.5); background: rgba(79,139,230,.08); }
.bap-slot .muted { font-size: 10.5px; line-height: 1.2; }

/* ---------- divisions ---------- */
.div-title { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; padding: 10px 12px 2px; }
.tbl.league tr.promo td:first-child, .tbl tr.promo td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.tbl tr.rel td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.lg.promo { background: var(--green); }
.divtag { display: inline-block; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 4px; background: rgba(79,139,230,.2); color: #9cc0ff; vertical-align: 1px; }
.divtag.d2 { background: rgba(224,138,44,.2); color: #f0a95a; }
.tbl.hist tr.seg td { color: #c9c5bd; }
.banner.relegated { background: linear-gradient(135deg, #5a1520, #2a0c12); color: #ffb3bd; border: 1px solid #7a2030; display: flex; flex-direction: column; gap: 4px; }
.banner.relegated small { font-family: var(--body); text-transform: none; font-weight: 500; font-size: 13px; color: #e8a0aa; }
.moves { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.moves h4 { margin-top: 0; }
.mv { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 6px 0; font-weight: 600; }
.mv.me { color: var(--gold); }
.injline { color: #ff9aa8; margin-top: 8px; }

/* ---------- match centre: live pitch, commentary, stats ---------- */
.match-modal { width: min(760px, 100%); }
.gameof { font-family: var(--body); text-transform: none; font-size: 13px; font-weight: 700; color: var(--gold); background: var(--hi); border-radius: 99px; padding: 3px 10px; vertical-align: middle; margin-left: 8px; }
.mc-pitch { position: relative; height: 150px; margin: 6px 0 10px; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #1d5a36 0 10%, #1a5232 10% 20%); border: 2px solid rgba(255,255,255,.18); }
.mc-pitch i { position: absolute; border: 2px solid rgba(255,255,255,.28); }
.mp-line { left: 50%; top: 0; bottom: 0; width: 0; border-width: 0 0 0 2px !important; }
.mp-circle { left: 50%; top: 50%; width: 56px; height: 56px; border-radius: 50%; transform: translate(-50%, -50%); }
.mp-box { top: 25%; height: 50%; width: 13%; }
.mp-box.l { left: -2px; border-left: 0 !important; } .mp-box.r { right: -2px; border-right: 0 !important; }
.mp-goal { top: 40%; height: 20%; width: 2%; background: rgba(255,255,255,.25); border: 0 !important; }
.mp-goal.l { left: 0; } .mp-goal.r { right: 0; }
.ball { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #cfcfcf 60%, #888);
  box-shadow: 0 2px 6px rgba(0,0,0,.6); transition: left .3s linear, top .3s linear; left: 50%; top: 50%; z-index: 2; }
.goalflash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; opacity: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, rgba(226,179,71,.55), rgba(0,0,0,.55) 70%); }
.goalflash b { font-family: var(--head); font-weight: 900; font-size: 46px; color: #fff; text-shadow: 0 0 24px #ffd45a, 0 4px 0 #b4801c; letter-spacing: .04em; }
.goalflash span { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #fff; }
.goalflash.show { animation: goalFlash 1.6s ease-out both; }
@keyframes goalFlash { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.08); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.sc.pop { animation: scorePop .5s ease-out; }
@keyframes scorePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: #ffd45a; } 100% { transform: scale(1); } }
.mc-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.mc-comm { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; max-height: 230px; overflow-y: auto; }
.mc-comm li { display: grid; grid-template-columns: 30px 20px 1fr; gap: 4px; align-items: start; padding: 3px 4px; border-radius: 5px; animation: pop .3s ease-out; }
.mc-comm li.goal { background: rgba(226,179,71,.14); font-weight: 700; }
.mc-comm li.rc { background: rgba(232,56,79,.14); }
.mc-comm li.inj { background: rgba(232,56,79,.08); }
.mc-comm li.meta { color: var(--muted); }
.mc-comm .min { color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-stats { display: grid; gap: 6px; align-content: start; font-size: 12.5px; }
.ms-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; text-align: center; gap: 4px; }
.ms-row span { color: var(--muted); font-size: 11.5px; }
.ms-bar { grid-column: 1 / 4; height: 5px; border-radius: 99px; background: rgba(232,56,79,.5); overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: var(--blue); }
.motm { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--hi); text-align: center; }

/* ---------- celebrations ---------- */
.celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(60,45,10,.85), rgba(5,6,9,.93) 70%); animation: fadeIn .4s ease-out; cursor: pointer; }
.celebrate.promo { background: radial-gradient(circle at 50% 40%, rgba(15,60,35,.88), rgba(5,6,9,.93) 70%); }
.celebrate.sad { background: radial-gradient(circle at 50% 40%, rgba(70,15,25,.85), rgba(5,6,9,.95) 70%); }
.celebrate canvas { position: absolute; inset: 0; pointer-events: none; }
.cel-box { position: relative; text-align: center; max-width: 560px; padding: 20px; }
.cel-icon { font-size: 110px; line-height: 1; animation: trophyLift 1.4s cubic-bezier(.2,.9,.3,1.3) both; filter: drop-shadow(0 0 30px rgba(255,212,90,.6)); }
.celebrate.sad .cel-icon { animation: sink 1.2s ease-out both; filter: none; }
@keyframes trophyLift { 0% { transform: translateY(80px) scale(.3) rotate(-15deg); opacity: 0; } 60% { transform: translateY(-14px) scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes sink { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cel-box h1 { font-size: clamp(30px, 5vw, 52px); color: #fff; margin: 18px 0 8px; text-shadow: 0 4px 30px rgba(0,0,0,.6); animation: fadeUp .6s .3s ease-out both; }
.celebrate.gold .cel-box h1 { color: #ffd45a; }
.celebrate.promo .cel-box h1 { color: #7fe0ad; }
.celebrate.sad .cel-box h1 { color: #ff9aa8; }
.cel-box p { color: #c9c5bd; animation: fadeUp .6s .45s ease-out both; }
.cel-box .btn { margin-top: 14px; animation: fadeUp .6s .6s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- screen transitions, header, stadium hero ---------- */
main.enter > * { animation: fadeUp .35s ease-out both; }
main.enter > *:nth-child(2) { animation-delay: .04s; } main.enter > *:nth-child(3) { animation-delay: .08s; } main.enter > *:nth-child(4) { animation-delay: .12s; }
.sndbtn { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 14px; }
.sndbtn:hover { border-color: var(--gold); }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -30px -40px 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 15% 0%, rgba(255,240,200,.10), transparent 70%), radial-gradient(ellipse 40% 60% at 85% 0%, rgba(255,240,200,.10), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(30,90,54,.18)); animation: floodlights 6s ease-in-out infinite alternate; }
@keyframes floodlights { from { opacity: .7; } to { opacity: 1; } }

/* ---------- transfer requests, loans, January, half-time, daily, real history ---------- */
.requests { border-color: rgba(224,138,44,.5); }
.req-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.req-name { flex: 1; min-width: 160px; }
.req-name .sub { display: block; }
.reason { font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: rgba(255,255,255,.07); color: var(--muted); }
.reason.r-retire { color: #c9c5bd; } .reason.r-contract { color: #f0a95a; } .reason.r-sold { color: #7fe0ad; }
.loantag { font-size: 11px; font-weight: 700; color: #9cc0ff; }
td.nowrap { white-space: nowrap; }
.loanback { border-color: rgba(79,139,230,.5); }
.loanline { color: #9cc0ff; margin-top: 6px; }
.loan-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.jan { border-color: rgba(226,179,71,.55); background: linear-gradient(180deg, rgba(226,179,71,.06), transparent 60%), var(--paper); }
.approach { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ht-panel { border: 1px solid rgba(226,179,71,.6); background: var(--hi); border-radius: 10px; padding: 12px; margin-bottom: 10px; animation: fadeUp .3s ease-out; }
.ht-panel h3 { margin-bottom: 6px; }
.ht-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 10px; }
.ht-sub { display: flex; align-items: center; gap: 8px; text-align: left; background: var(--paper2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--ink); }
.ht-sub small { display: block; color: var(--muted); font-size: 11px; }
.ht-sub.on { border-color: var(--green); background: rgba(61,181,122,.14); }
.ht-sub:disabled { opacity: .4; }
.mc-comm li.sub { background: rgba(61,181,122,.08); }
.daily { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 18px; border-color: rgba(226,179,71,.5);
  background: linear-gradient(120deg, rgba(226,179,71,.1), transparent 50%), var(--paper); }
.daily p { margin: 4px 0; }
.dailychip { font-size: 11px; font-weight: 800; background: var(--gold); color: #1d1400; border-radius: 99px; padding: 2px 8px; margin-left: -6px; }
.rh td { vertical-align: middle; }
.reason.r-transfer { color: #9cc0ff; }
.banline { color: #ff7a8a; margin-top: 4px; }
.arrivals { border-color: rgba(61,181,122,.55); background: linear-gradient(180deg, rgba(61,181,122,.07), transparent 60%), var(--paper); }
.lmoves .arrow { color: var(--muted); margin: 0 2px; }
.lmoves .deps li { flex-wrap: wrap; }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 12.5px; }
.news-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.news-list .crest { width: 20px; height: 20px; font-size: 7px; }

/* credit and the link to the sister game */
.credit { margin: -4px 0 6px; font-size: 13px; color: var(--gold); font-weight: 700; }
a.sister { display: flex; align-items: center; gap: 14px; max-width: 720px; margin-top: 14px; text-decoration: none; color: var(--ink);
  border-color: rgba(79,139,230,.6); background: linear-gradient(120deg, rgba(79,139,230,.16), transparent 60%), var(--paper); transition: transform .12s, border-color .12s; }
a.sister:hover { transform: translateY(-2px); border-color: var(--blue); }
a.sister > span:nth-child(2) { display: grid; gap: 2px; }
.sis-i { font-size: 28px; }
a.sister .yz-go { margin-left: auto; color: #9cc0ff; }
footer a { color: #9cc0ff; }

/* awards, record book */
.pitch.tots .pp { display: grid; justify-items: center; gap: 2px; }
.pitch.tots .pp .crest { width: 22px; height: 22px; font-size: 7px; }
.pitch.tots .pp.mine { outline: 2px solid var(--gold); background: rgba(226,179,71,.22); }
.recbook td:first-child { white-space: nowrap; color: var(--muted); width: 1%; padding-right: 14px; }
.duel { border-color: rgba(79,139,230,.6); }
.rb-item.duo-h { padding: 2px 8px; border-radius: 8px; border: 1px solid transparent; }
.rb-item.duo-h.on { border-color: var(--gold); background: var(--hi); }
.rb-item.duo-h > span { display: inline-flex; align-items: center; gap: 4px; }
.tbl tr.me2 td { background: rgba(79,139,230,.12); }
.duel-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; }
.duel-side b.big { display: block; font-family: var(--head); font-size: 34px; font-weight: 900; }
.duel-side.lead b.big { color: var(--gold); }
.duel-vs { font-family: var(--head); font-weight: 900; color: var(--muted); }
.duo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--paper2); border: 1px solid var(--line); }
.duo-bar .duo-p { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 4px; background: transparent; color: var(--ink); font-weight: 700; font-size: 13px; }
.duo-bar .duo-p.on { border-color: var(--gold); background: var(--hi); }
.duo-bar .duo-p small { color: var(--muted); font-weight: 600; }
.pass-banner { text-align: center; padding: 14px; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(90deg, rgba(232,56,79,.18), rgba(79,139,230,.18)); border: 1px solid var(--line); font-weight: 800; font-size: 16px; animation: fadeUp .3s ease-out; }
.duo-setup { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; }
.duo-setup input { background: var(--paper2); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 6px 10px; width: 140px; }
.cp.on2 { border-color: var(--blue); background: rgba(79,139,230,.15); box-shadow: 0 0 0 1px var(--blue); color: #fff; }
.cp .pn { margin-left: auto; font-size: 10px; font-weight: 800; border-radius: 99px; padding: 1px 6px; background: var(--red); color: #fff; }
.cp.on2 .pn { background: var(--blue); }

/* offers for your players */
.offer { border-color: rgba(79,139,230,.55); background: linear-gradient(180deg, rgba(79,139,230,.07), transparent 60%), var(--paper); }
.offer-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line2); }
.offer-row:first-of-type { border-top: 0; }
.offer-row.rejected, .offer-row.walked, .offer-row.gone { opacity: .5; }
.offer-row.accepted { background: rgba(61,181,122,.06); }
.offer-from { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.offer-deal { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.offer-deal small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.offer-arrow { font-size: 20px; color: var(--muted); }
.offer-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .offer-row { grid-template-columns: 1fr; } .offer-btns { justify-content: flex-start; } }

/* penalty shootout */
.so-banner { display: flex; align-items: center; gap: 14px; border-color: rgba(226,179,71,.7); background: linear-gradient(120deg, rgba(226,179,71,.14), transparent 60%), var(--paper); animation: fadeUp .3s ease-out; }
.so-banner > div { flex: 1; } .so-banner p { margin: 4px 0 0; }
.so-ball-i { font-size: 34px; animation: soBounce 1s ease-in-out infinite; }
@keyframes soBounce { 50% { transform: translateY(-6px); } }
.so-modal { max-width: 560px; width: 100%; }
.so-board { display: grid; gap: 6px; margin: 8px 0 14px; }
.so-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; background: var(--paper2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.so-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.so-dot { font-style: normal; width: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.so-dot.g { color: var(--green); } .so-dot.x { color: var(--red); }
.so-n { font-family: var(--head); font-weight: 900; font-size: 22px; min-width: 22px; text-align: right; }
.so-goal { position: relative; height: 170px; margin: 18px 8px 34px; border: 5px solid #f3f1ea; border-bottom: 0; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(61,181,122,.08)); }
.so-goal::after { content: ''; position: absolute; left: -40px; right: -40px; bottom: -3px; height: 3px; background: rgba(255,255,255,.5); }
.so-net { position: absolute; inset: 0; opacity: .25; background:
  repeating-linear-gradient(45deg, transparent 0 9px, rgba(255,255,255,.5) 9px 10px), repeating-linear-gradient(-45deg, transparent 0 9px, rgba(255,255,255,.5) 9px 10px); }
.so-keeper { position: absolute; bottom: 6px; font-size: 44px; transform: translateX(-50%); transition: left .45s cubic-bezier(.2,.8,.3,1), transform .45s; z-index: 2; }
.so-keeper.dl { transform: translateX(-50%) rotate(-55deg); } .so-keeper.dr { transform: translateX(-50%) rotate(55deg); }
.so-ballx { position: absolute; font-size: 26px; transform: translate(-50%, -50%); z-index: 3; }
.so-ballx.fly { animation: soFly .45s ease-out; }
@keyframes soFly { from { left: 50%; top: 118%; transform: translate(-50%, -50%) scale(1.5); } }
.so-zone { position: absolute; top: 0; bottom: 0; width: 33.33%; border: 0; background: transparent; z-index: 4; color: #fff; display: grid; place-items: center; transition: background .15s; }
.so-zone.z0 { left: 0; } .so-zone.z1 { left: 33.33%; } .so-zone.z2 { left: 66.66%; }
.so-zone span { font-size: 26px; font-weight: 900; opacity: .65; display: grid; text-align: center; }
.so-zone small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.so-zone:hover, .so-zone:focus-visible { background: rgba(226,179,71,.22); } .so-zone:hover span { opacity: 1; }
.diving .so-zone:hover { background: rgba(79,139,230,.25); }
.so-flash { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 5; pointer-events: none; animation: soFlash 1.6s ease-out forwards; animation-delay: .35s; opacity: 0; }
.so-flash b { font-family: var(--head); font-size: 40px; font-weight: 900; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0,0,0,.8); }
.so-flash span { font-size: 13px; color: #ddd; }
.so-flash.r-goal b { color: var(--gold); } .so-flash.r-save b { color: #9cc0ff; } .so-flash.r-miss b, .so-flash.r-post b { color: var(--red); }
@keyframes soFlash { 0% { opacity: 0; transform: scale(.7); } 15% { opacity: 1; transform: scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; } }
.so-prompt { text-align: center; font-weight: 700; min-height: 22px; }
.duo-tag { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 8px; background: var(--red); color: #fff; vertical-align: 1px; }
.duo-tag.d1 { background: var(--blue); }

/* achievements */
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--paper2); border: 1px solid var(--line); opacity: .4; filter: grayscale(1); }
.ach.on { opacity: 1; filter: none; border-color: rgba(226,179,71,.5); background: var(--hi); }
.ach b { display: block; font-size: 13px; }
.ach small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.ach-i { font-size: 24px; line-height: 1; }

/* toasts */
#toasts { position: fixed; right: 16px; bottom: 76px; z-index: 60; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--raise); border: 1px solid #3a4352; border-left: 4px solid var(--blue); border-radius: 8px; padding: 10px 14px; min-width: 230px; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: slidein .3s ease-out; transition: opacity .4s, transform .4s; }
.toast.gold { border-left-color: var(--gold); }
.toast.ok { border-left-color: var(--green); }
.toast small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c3440; border-radius: 6px; }

@media (max-width: 1000px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .season-grid, .draft-grid, .grid2, .two, .trade-cols { grid-template-columns: 1fr; }
  .draft-grid aside { position: static; }
  .lu-top { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: 1fr; }
  .wc-draft, .extra-modes { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .mc-cols, .moves { grid-template-columns: 1fr; }
  .daily { grid-template-columns: 1fr; }
  .cel-icon { font-size: 80px; }
  .bap-pack { grid-template-columns: 1fr; }
  .bap-slots { grid-template-columns: repeat(3, 1fr); }
  .statbars { grid-template-columns: 1fr; }
  .lu-groups { grid-template-columns: 1fr 1fr; }
  .cabinet { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  /* phones: same game, just tighter spacing, wrapping bars and side-scrolling tables */
  html { -webkit-text-size-adjust: 100%; }
  main { padding: 12px 10px 140px; }
  header.top { position: static; gap: 8px 12px; padding: 8px 10px; }
  header nav { gap: 10px; flex-wrap: wrap; }
  h2 { font-size: 24px; }
  .card { padding: 12px; }
  .card.flush { -webkit-overflow-scrolling: touch; }
  .tbl { font-size: 12.5px; }
  .phase-head { gap: 12px; margin-bottom: 12px; }
  .phase-head .actions { width: 100%; }
  .phase-head .actions .btn { flex: 1; }
  .cta-bar { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 10px; }
  .cta-bar .btn.big { padding: 9px 14px; font-size: 14px; }
  .tabs { overflow-x: auto; }
  .tabs button { padding: 8px 10px; white-space: nowrap; }
  .deps.cols { grid-template-columns: 1fr; }
  .clubpick { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .overlay { padding: 8px; }
  .modal { padding: 18px 14px; max-height: 94vh; }
  #toasts { left: 10px; right: 10px; bottom: 120px; }
  .toast { min-width: 0; }
  .ht-subs { grid-template-columns: 1fr; }
  .continue { flex-wrap: wrap; }
  .continue .actions { margin-left: 0; }
  .grade { flex-direction: column; align-items: flex-start; padding: 16px; }
  .daily { gap: 10px; }
  input, select, textarea { font-size: 16px; }
  .modes { grid-template-columns: 1fr; }
  .yz { flex-direction: column; align-items: flex-start; }
  .yz-go { margin-left: 0; }
  .yz-tag { white-space: normal; }
  .duel-side b.big { font-size: 26px; }
  .runbar { gap: 10px; font-size: 12px; }
  .pl-stats { grid-template-columns: repeat(2, auto); }
  .mc-num .sc { font-size: 34px; }
  .tbl th, .tbl td { padding: 5px 5px; }
}
