/* Fantasy Steaua */
:root {
  --navy-950: #070F24;
  --navy-900: #0A1633;
  --navy-800: #0F1F47;
  --navy-700: #182B5E;
  --blue: #1B3FA0;
  --blue-500: #2C55C7;
  --red: #D4132A;
  --red-600: #B30F22;
  --gold: #F2B705;
  --paper: #F3F1EC;
  --paper-2: #EAE6DD;
  --card: #FFFFFF;
  --ink: #0E1525;
  --ink-2: #39415A;
  --muted: #6B7285;
  --line: #E4E0D7;
  --line-2: #D3CEC2;
  --win: #15803D;
  --draw: #7C8293;
  --loss: #C2311F;
  --pitch-a: #2F7F3B;
  --pitch-b: #2A7535;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(14, 21, 37, .04), 0 1px 3px rgba(14, 21, 37, .08);
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  font-feature-settings: "tnum" 1;
  padding-bottom: var(--tabbar-h);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; }
h2 { font-size: 26px; text-transform: uppercase; }
h3 { font-size: 20px; text-transform: uppercase; }
p { margin: 0 0 12px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.top { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 40; }
.top__in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 22px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--gold); font-weight: 800; }
.brand__mark { width: 30px; height: 34px; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 12px; color: rgba(255, 255, 255, .72); font: 600 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.on { color: #fff; border-bottom-color: var(--red); }
.top__user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.top__user a { color: #fff; }
.top__chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; background: var(--navy-800); border-radius: 30px; color: #fff; }
.top__chip:hover { text-decoration: none; background: var(--navy-700); }
.top__chip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font: 700 13px/1 var(--cond); }
.top__chip strong { font: 700 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.stripes { height: 4px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%); }

/* mobile tab bar */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tabbar-h: 64px; }
  .nav, .top__user .hide-m { display: none; }
  .top__in { height: 54px; }
  .brand { font-size: 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--navy-900); z-index: 50; border-top: 1px solid var(--navy-700); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(255, 255, 255, .6); font: 600 11px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on svg { color: var(--gold); }
  .tabbar svg { width: 22px; height: 22px; }
}

/* ---------- page scaffolding ---------- */
main.wrap { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .kicker { margin-bottom: 6px; }
.kicker { font: 700 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.kicker--light { color: var(--gold); }
.section { margin-top: 32px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section-title h2 { font-size: 22px; }
.section-title a { font: 600 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__pad { padding: 18px 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card__head h3 { font-size: 18px; }
.card__foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--red); color: #fff; font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--red-600); text-decoration: none; }
.btn:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--paper-2); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 13px; letter-spacing: .05em; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

label { display: block; font: 600 14px/1.2 var(--body); margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field small { display: block; margin-top: 5px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--ink); font: 16px var(--body);
}
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-500); outline-offset: -1px; border-color: var(--blue-500); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-weight: 500; border-left: 4px solid; background: #fff; box-shadow: var(--shadow); }
.flash--ok { border-color: var(--win); }
.flash--error { border-color: var(--red); }
.flash--info { border-color: var(--blue); }

/* ---------- badges ---------- */
.pos { display: inline-block; min-width: 34px; padding: 3px 5px; border-radius: 3px; font: 700 12px/1 var(--cond); letter-spacing: .06em; text-align: center; color: #fff; }
.pos--GK { background: #B8860B; }
.pos--DEF { background: var(--blue); }
.pos--MID { background: #0F766E; }
.pos--FWD { background: var(--red); }
.res { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 3px; font: 700 14px/1 var(--cond); color: #fff; }
.res--V { background: var(--win); }
.res--E { background: var(--draw); }
.res--Î { background: var(--loss); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 3px; background: var(--paper-2); color: var(--ink-2); font: 600 12px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.tag--live { background: var(--red); color: #fff; }
.tag--gold { background: var(--gold); color: var(--navy-900); }
.ptsbox { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 3px; background: var(--navy-900); color: #fff; font: 700 17px/1 var(--cond); }
.ptsbox--neg { background: var(--loss); }
.ptsbox--zero { background: var(--paper-2); color: var(--muted); }

/* ---------- matchday hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 56px, transparent 56px 112px),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding: 30px 32px 34px; }
.hero__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.fixture__team { font: 800 clamp(30px, 5.4vw, 56px)/.95 var(--cond); text-transform: uppercase; letter-spacing: .005em; }
.fixture__team--home { text-align: right; }
.fixture__team.is-us { color: #fff; }
.fixture__team:not(.is-us) { color: rgba(255, 255, 255, .78); }
.fixture__mid { display: grid; place-items: center; width: 54px; height: 54px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 50%; font: 700 18px/1 var(--cond); color: rgba(255, 255, 255, .8); }
.fixture__mid--score { white-space: nowrap; width: auto; height: auto; padding: 8px 14px; border-radius: 4px; border: 0; background: #fff; color: var(--navy-900); font-size: 34px; }
.hero__when { margin-top: 18px; font: 600 18px/1.2 var(--cond); letter-spacing: .04em; color: rgba(255, 255, 255, .8); text-transform: uppercase; }
.hero__side { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 32px; display: flex; flex-direction: column; justify-content: center; }
.countdown { display: flex; gap: 8px; margin: 10px 0 18px; }
.countdown div { min-width: 64px; padding: 10px 6px 8px; background: rgba(255, 255, 255, .08); border-radius: 4px; text-align: center; }
.countdown b { display: block; font: 700 32px/1 var(--cond); }
.countdown span { display: block; margin-top: 4px; font: 600 11px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero__note { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 12px; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; padding: 22px 18px 26px; gap: 22px; }
  .hero__side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
  .fixture { gap: 10px; }
  .fixture__mid { width: 40px; height: 40px; font-size: 15px; }
  .countdown div { min-width: 0; flex: 1; }
}

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tile { padding: 14px 16px; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile b { display: block; font: 700 34px/1 var(--cond); }
.tile span { display: block; margin-top: 4px; font: 600 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { padding: 10px 12px; text-align: left; font: 700 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--card); }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; }
.t .c { text-align: center; }
.t tbody tr.link { cursor: pointer; }
.t tbody tr.link:hover td { background: #FAF8F4; }
.t tr.me td { background: #FFF8E1; }
.t tr.me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.t .rank { width: 44px; font: 700 18px/1 var(--cond); color: var(--ink-2); }
.t .total { font: 700 20px/1 var(--cond); }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--ink); }
.t th.sorted { color: var(--ink); }
.mgr { font-weight: 600; }
.mgr small { display: block; font-weight: 400; color: var(--muted); }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.player-cell .shirt-sm { flex: none; }
.player-cell strong { display: block; font-weight: 600; line-height: 1.2; }
.player-cell small { color: var(--muted); }
.podium-1 .rank { color: var(--gold); }

/* small shirt (tables, lists) */
.shirt-sm { width: 30px; height: 30px; position: relative; }
.shirt-sm svg { width: 30px; height: 30px; }
.shirt-sm span { position: absolute; inset: 9px 0 0; text-align: center; font: 700 11px/1 var(--cond); color: #fff; }
.shirt-sm.gk span { color: var(--navy-900); }

/* ---------- pitch ---------- */
.pitch {
  position: relative; border-radius: var(--radius); overflow: hidden; padding: 26px 10px 22px; min-height: 440px;
  background: repeating-linear-gradient(180deg, var(--pitch-a) 0 44px, var(--pitch-b) 44px 88px);
  display: flex; flex-direction: column; justify-content: space-around; gap: 10px;
}
.pitch__lines { position: absolute; inset: 12px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 2px; pointer-events: none; }
.pitch__lines::before { content: ""; position: absolute; left: 50%; bottom: -2px; width: 46%; height: 17%; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, .5); border-bottom: 0; }
.pitch__lines::after { content: ""; position: absolute; left: 50%; top: -60px; width: 120px; height: 120px; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.pitch__row { position: relative; display: flex; justify-content: center; gap: clamp(8px, 4vw, 40px); z-index: 1; }
.pitch--sm { min-height: 300px; padding: 18px 6px 14px; }

.slot { width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit; position: relative; }
.slot__shirt { width: 58px; height: 58px; position: relative; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.slot__shirt svg { width: 58px; height: 58px; }
.slot__shirt span { position: absolute; inset: 18px 0 0; font: 700 18px/1 var(--cond); color: #fff; }
.slot.gk .slot__shirt span { color: var(--navy-900); }
.slot__name { margin-top: 4px; max-width: 100%; padding: 4px 6px 3px; background: var(--navy-950); border-radius: 3px 3px 0 0; font: 700 13px/1 var(--cond); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 76px; }
.slot__info { min-width: 76px; padding: 3px 6px; background: #fff; color: var(--ink); border-radius: 0 0 3px 3px; font: 600 12px/1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.slot__info.pts { background: var(--gold); color: var(--navy-950); font-weight: 700; font-size: 14px; }
.slot__x { position: absolute; top: -4px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font: 700 15px/1 var(--body); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.slot--empty .slot__shirt { display: grid; place-items: center; width: 58px; height: 58px; border: 2px dashed rgba(255, 255, 255, .7); border-radius: 50%; filter: none; font: 400 30px/1 var(--body); color: #fff; }
.slot--empty .slot__name { background: rgba(7, 15, 36, .55); }
.slot--empty.is-target .slot__shirt { border-color: var(--gold); color: var(--gold); background: rgba(0, 0, 0, .15); }
.slot--mvp .slot__name::before { content: "★ "; color: var(--gold); }
@media (max-width: 520px) {
  .slot { width: 76px; }
  .slot__shirt, .slot__shirt svg { width: 50px; height: 50px; }
  .slot__shirt span { top: 15px; font-size: 16px; }
  .slot__name, .slot__info { min-width: 66px; font-size: 12px; }
}

/* ---------- team builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.builder__pitch { position: sticky; top: 84px; }
@media (max-width: 900px) { .builder__pitch { position: static; } }
.savebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.savebar__msg { font-size: 14px; color: var(--ink-2); }
.savebar__msg b { display: block; font: 700 18px/1.1 var(--cond); text-transform: uppercase; color: var(--ink); }
.savebar__msg.err b { color: var(--red); }
@media (max-width: 900px) {
  .savebar { position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); margin: 0; border-radius: 0; border-width: 1px 0 0; z-index: 45; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); }
  .builder { padding-bottom: 76px; }
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.filters button { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff; border-radius: 30px; font: 700 13px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.filters button.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filters input { flex: 1 1 140px; height: 32px; border-radius: 30px; font-size: 14px; }
.plist .t td { padding: 8px 10px; }
.plist .t th { padding: 9px 10px; position: sticky; top: 0; }
.plist__scroll { max-height: 640px; overflow-y: auto; }
@media (max-width: 900px) { .plist__scroll { max-height: none; } }
.addbtn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--blue); background: #fff; color: var(--blue); font: 700 20px/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0; }
.addbtn:hover { background: var(--blue); color: #fff; }
.addbtn.in { border-color: var(--red); color: var(--red); }
.addbtn.in:hover { background: var(--red); color: #fff; }
.addbtn:disabled { opacity: .3; cursor: not-allowed; background: #fff; color: var(--blue); }
tr.picked td { background: #F4F7FF; }
.form { display: flex; gap: 3px; }
.form i { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 3px; border-radius: 2px; background: var(--paper-2); font: 700 12px/1 var(--cond); font-style: normal; color: var(--ink-2); }
.form i.hi { background: #DCFCE7; color: var(--win); }
.form i.neg { background: #FEE2E2; color: var(--loss); }
.form i.na { color: var(--line-2); }

/* ---------- match list ---------- */
.mlist { list-style: none; margin: 0; padding: 0; }
.mrow { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mrow:last-child { border-bottom: 0; }
a.mrow:hover { background: #FAF8F4; text-decoration: none; }
.mrow__date { font: 600 14px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.mrow__date small { display: block; color: var(--muted); font-size: 12px; }
.mrow__teams { font-weight: 600; }
.mrow__teams small { display: block; font-weight: 400; color: var(--muted); }
.mrow__right { display: flex; align-items: center; gap: 10px; }
.mrow__score { font: 700 22px/1 var(--cond); min-width: 44px; text-align: right; }

/* ---------- match page ---------- */
.matchhead .fixture__team { font-size: clamp(26px, 4.6vw, 48px); }
.breakdown { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.breakdown li:last-child { border-bottom: 0; }
details.prow summary { list-style: none; cursor: pointer; }
details.prow summary::-webkit-details-marker { display: none; }
.prow__line { display: grid; grid-template-columns: minmax(0, 1fr) 48px 40px 40px 52px; align-items: center; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.prow__line:hover { background: #FAF8F4; }
details[open] .prow__line { background: #FAF8F4; border-bottom-color: transparent; }
.prow__body { padding: 4px 18px 14px 58px; border-bottom: 1px solid var(--line); background: #FAF8F4; }
.prow__head { padding-top: 10px; padding-bottom: 10px; font: 700 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prow__head:hover { background: none; }
.ico-card { display: inline-block; width: 10px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-left: 3px; }
.ico-card.y { background: #FACC15; }
.ico-card.r { background: var(--red); }

/* MVP voting */
.vote { list-style: none; margin: 0; padding: 0; }
.vote li { border-bottom: 1px solid var(--line); }
.vote li:last-child { border-bottom: 0; }
.vote label { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px; margin: 0; cursor: pointer; font-weight: 500; color: var(--ink); overflow: hidden; }
.vote input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.vote__bar { position: absolute; left: 0; top: 0; bottom: 0; background: #FDF1D2; z-index: 0; }
.vote label > *:not(.vote__bar) { position: relative; z-index: 1; }
.vote__n { margin-left: auto; font: 700 16px/1 var(--cond); color: var(--ink-2); }
.mvp-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: linear-gradient(90deg, #FFF6D6, #fff); }
.mvp-card .star { width: 44px; height: 44px; color: var(--gold); flex: none; }
.mvp-card b { display: block; font: 700 24px/1 var(--cond); text-transform: uppercase; }

/* ---------- auth ---------- */
.auth { max-width: 900px; margin: 10px auto 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.auth__side { padding: 34px 32px; color: #fff; position: relative; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 40px, transparent 40px 80px), var(--navy-900); }
.auth__side::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--blue) 0 50%, var(--red) 50% 100%); }
.auth__side h1 { font-size: 40px; margin: 10px 0 16px; }
.auth__side ul { list-style: none; padding: 0; margin: 22px 0 0; }
.auth__side li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); font-size: 15px; }
.auth__side li b { color: var(--gold); font: 700 18px/1.2 var(--cond); min-width: 28px; }
.auth__form { padding: 34px 32px; }
.auth__form h2 { margin-bottom: 20px; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { padding: 24px 20px; }
  .auth__side::after { top: auto; left: 0; width: auto; height: 5px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%); }
  .auth__form { padding: 24px 20px; }
}

/* ---------- rules ---------- */
.rules { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.rules__toc { position: sticky; top: 90px; list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.rules__toc a { display: block; padding: 7px 14px; color: var(--ink-2); font: 600 15px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.rules__body section { padding: 4px 0 26px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.rules__body h2 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.rules__body h2 span { color: var(--red); }
.rules__body ul { padding-left: 20px; margin: 0 0 12px; }
.rules__body li { margin-bottom: 6px; }
.pointtable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.pointtable td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pointtable td:last-child { text-align: right; font: 700 20px/1 var(--cond); width: 80px; }
.pointtable .plus { color: var(--win); }
.pointtable .minus { color: var(--loss); }
.pointtable caption { caption-side: top; text-align: left; padding: 0 0 8px; font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } .rules__toc { display: none; } }

/* ---------- misc ---------- */
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 700 20px/1.2 var(--cond); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.inline-list { display: flex; gap: 8px; flex-wrap: wrap; }
.minis { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; background: var(--paper); border-radius: 30px; font-size: 13px; font-weight: 600; }
.mini .shirt-sm, .mini .shirt-sm svg { width: 24px; height: 24px; }
.mini .shirt-sm span { inset: 7px 0 0; font-size: 9px; }
.mini em { font-style: normal; font: 700 14px/1 var(--cond); color: var(--blue); }
footer.foot { border-top: 1px solid var(--line-2); padding: 22px 0 30px; font-size: 13px; color: var(--muted); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.admin-nav a { padding: 7px 12px; border-radius: 4px; font: 600 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.admin-nav a.on { background: var(--navy-900); color: #fff; }
.stats-edit input[type=number] { width: 56px; height: 34px; padding: 0 4px; text-align: center; font-size: 15px; }
.stats-edit td { padding: 6px 6px; }
.stats-edit th { padding: 8px 6px; text-align: center; }
.log { font: 13px/1.5 ui-monospace, Consolas, monospace; max-height: 380px; overflow: auto; margin: 0; padding: 12px 16px; }
.log .error { color: var(--loss); }
.log .warn { color: #B45309; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.inline-form { display: inline; }
code { font: 13px ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
@media (max-width: 520px) { .hide-xs { display: none; } }
