/* Z&R Box Battles — neon lounge: plum night, pink and orchid light, gold only for champions. */
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/playfair-display-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/playfair-display-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-weight: 900; font-style: normal; font-display: swap; src: url(/static/fonts/playfair-display-cyrillic-900-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-weight: 900; font-style: normal; font-display: swap; src: url(/static/fonts/playfair-display-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: italic; font-display: swap; src: url(/static/fonts/playfair-display-cyrillic-700-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: italic; font-display: swap; src: url(/static/fonts/playfair-display-latin-700-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(/static/fonts/manrope-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(/static/fonts/manrope-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(/static/fonts/great-vibes-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(/static/fonts/great-vibes-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #140a1b;
  --velvet: #1e0f27;
  --velvet-2: #291535;
  --line: #3b2149;
  --line-2: #573070;
  --neon: #ff4fae;
  --neon-soft: #ff8fcf;
  --orchid: #b46dff;
  --gold: #f2c879;
  --gold-hi: #ffe6b0;
  --silver: #d3d6ea;
  --bronze: #dc9d70;
  --ink: #fbebf6;
  --ink-2: #ceb2c8;
  --ink-3: #9a7f97;
  --live: #ff3d7f;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background-color: var(--night);
  background-image: radial-gradient(900px 520px at 8% -8%, rgba(255, 79, 174, .16), transparent 70%), radial-gradient(800px 560px at 96% -6%, rgba(180, 109, 255, .14), transparent 70%);
  background-repeat: no-repeat; font: 400 16px/1.6 var(--sans); font-feature-settings: "lnum" 1, "tnum" 1;
}
img { max-width: 100%; }
a { color: var(--neon-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--neon-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-variant-numeric: lining-nums; font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 700; }
.h3, h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
small { font-size: .82em; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--neon); color: #240518; padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 800; }
.skip:focus { left: 8px; }
main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 72px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 10, 27, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, rgba(255, 79, 174, .55), rgba(180, 109, 255, .55), transparent) 1; }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 18px rgba(255, 79, 174, .45); }
.brand-name { font: 900 1.15rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 11px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--neon); border-radius: 10px 10px 2px 2px; }
.top-r { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { color: var(--ink-2); text-decoration: none; font-weight: 800; font-size: .8rem; border: 1px solid var(--line-2); padding: 5px 9px; border-radius: 8px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #fff; background: rgba(255, 61, 127, .16); border: 1px solid var(--live); padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: .82rem; text-decoration: none; }
.live-pill i, .chip-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 61, 127, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 127, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 61, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 127, 0); } }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--velvet-2); color: var(--ink); font: 800 .92rem/1.1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--neon); color: var(--ink); }
.btn-hot { background: linear-gradient(100deg, var(--neon), #ff79c2 55%, var(--orchid)); border-color: transparent; color: #240518; box-shadow: 0 6px 24px rgba(255, 79, 174, .28); }
.btn-hot:hover { color: #240518; filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-tt { background: #050307; border-color: #050307; color: #fff; box-shadow: -2px -2px 0 rgba(37, 244, 238, .55), 2px 2px 0 rgba(254, 44, 85, .55); }
.btn-tt:hover { color: #fff; border-color: #050307; }
.btn-small { min-height: 34px; padding: 6px 13px; font-size: .84rem; }
.btn-danger { border-color: #8d2a4a; color: #ffb3c9; background: rgba(141, 42, 74, .18); }
.btn-danger.is-armed { background: #b3264f; color: #fff; border-color: #ff5b8a; }
.linklike { background: none; border: 0; padding: 8px 12px; color: var(--ink-3); font: 600 .9rem var(--sans); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--ink); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.chip-live { color: #fff; border-color: var(--live); background: rgba(255, 61, 127, .14); }
.chip-done { color: var(--gold-hi); border-color: rgba(242, 200, 121, .5); }
.chip-soon { color: #e4ccff; border-color: rgba(180, 109, 255, .6); background: rgba(180, 109, 255, .12); }
.chip-test { color: #ffe1a1; border-color: #8a6a2c; background: rgba(138, 106, 44, .2); }
.chip-off { color: var(--ink-3); }
.chip-x2 { color: #240518; background: var(--gold); border-color: var(--gold); padding: 0 6px; }
.badge { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: rgba(255, 79, 174, .12); border: 1px solid rgba(255, 79, 174, .4); font-weight: 800; font-size: .84rem; }
.badge-gold { background: rgba(242, 200, 121, .12); border-color: rgba(242, 200, 121, .55); color: var(--gold-hi); }

/* avatars */
.av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 70% 46%), hsl(calc(var(--h) + 40) 60% 22%)); color: #fff; font-family: var(--sans); font-weight: 800; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-xs { width: 24px; height: 24px; font-size: .58rem; }
.av-s { width: 34px; height: 34px; font-size: .74rem; }
.av-m { width: 56px; height: 56px; font-size: 1rem; }
.av-l { width: 88px; height: 88px; font-size: 1.5rem; }
.av-xl { width: 148px; height: 148px; font-size: 2.6rem; }
.ring-gold { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--gold), 0 0 22px rgba(242, 200, 121, .45); }
.ring-silver { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--silver); }
.ring-bronze { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--bronze); }
.ring-neon { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--neon), 0 0 26px rgba(255, 79, 174, .45); }
.av-s.ring-gold, .av-xs.ring-gold { box-shadow: 0 0 0 1.5px var(--night), 0 0 0 3px var(--gold); }

/* sections */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-note { margin: -8px 0 16px; max-width: 70ch; }
.more { font-weight: 700; white-space: nowrap; }
.page-head { padding-top: 44px; }
.page-head .lead { margin-top: 12px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead, .center .row-btns { margin-left: auto; margin-right: auto; justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-wide { grid-template-columns: 1.4fr 1fr; }
.panel { background: var(--velvet); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.panel > * + * { margin-top: 14px; }
.panel > .form { margin-top: 16px; }
.empty { border: 1px dashed var(--line-2); border-radius: 16px; padding: 26px; color: var(--ink-2); display: grid; gap: 14px; justify-items: start; }
.note { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-weight: 600; }
.note.ok { background: rgba(92, 214, 160, .1); border: 1px solid rgba(92, 214, 160, .45); color: #c7f5df; }
.note.bad { background: rgba(255, 61, 127, .1); border: 1px solid rgba(255, 61, 127, .5); color: #ffd0de; }

/* hero */
.hero { margin-top: 34px; display: grid; gap: 28px; align-items: center; }
.hero-live { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero-champ { grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); }
.hero-welcome { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.hero-emblem { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 0 40px rgba(255, 79, 174, .35)); }
.hero-copy .lead { margin-top: 14px; }
.hero-copy .muted { margin-top: 10px; }
.poster { position: relative; text-align: center; padding: 36px 20px 30px; border-radius: 28px; background: radial-gradient(420px 260px at 50% 20%, rgba(242, 200, 121, .12), transparent 70%), linear-gradient(180deg, var(--velvet-2), var(--velvet)); border: 1px solid var(--line); overflow: hidden; }
.poster::before { content: ''; position: absolute; inset: 10px; border-radius: 20px; border: 1px solid rgba(242, 200, 121, .18); pointer-events: none; }
.poster-ring { position: relative; display: inline-block; margin-top: 18px; }
.crown { position: absolute; left: 50%; top: -34px; width: 64px; transform: translateX(-50%) rotate(-6deg); fill: var(--gold); filter: drop-shadow(0 0 10px rgba(242, 200, 121, .6)); }
.poster-label { margin-top: 22px; color: var(--ink-2); font-weight: 600; }
.sig { font-family: var(--script); font-weight: 400; line-height: 1.05; color: var(--gold-hi); text-shadow: 0 0 22px rgba(242, 200, 121, .35); overflow-wrap: anywhere; }
.poster .sig { font-size: clamp(3rem, 8vw, 5.6rem); margin: 4px 0 6px; }
.poster-meta { color: var(--ink-2); }
.poster .row-btns { justify-content: center; }
.next { background: var(--velvet); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: 0 0 0 1px rgba(180, 109, 255, .08), 0 18px 50px rgba(0, 0, 0, .35); }
.next-label { color: var(--ink-2); font-weight: 600; }
.next h3 { font-size: 1.6rem; }
.next h3 a { color: var(--ink); text-decoration: none; }
.next-when { color: var(--ink); font-weight: 700; }
.countdown { font: 900 1.9rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--neon-soft); letter-spacing: .01em; min-height: 1em; }
.countdown-big { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 16px; }

/* live board */
.live-board { background: linear-gradient(180deg, rgba(255, 79, 174, .07), transparent 40%), var(--velvet); border: 1px solid rgba(255, 79, 174, .45); border-radius: 22px; padding: 20px; box-shadow: 0 0 40px rgba(255, 79, 174, .14); }
.lb-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-weight: 700; }
.lb-timer { margin-left: auto; font: 900 1.4rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--neon-soft); }
.bl-name { display: grid; min-width: 0; }
.bl-name a, .bl-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-name small { color: var(--ink-3); font-weight: 600; }
.bl-name.is-out { opacity: .6; }
.ticker { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ticker li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.ticker .tk-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ticker .gift-img { width: 18px; height: 18px; vertical-align: -4px; margin: 0 3px; }
.ticker li b { color: var(--ink); font-weight: 700; }
.ticker li em { font-style: normal; font-weight: 800; color: var(--neon-soft); }

/* bars (one value per row) */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 230px) 1fr auto; align-items: center; gap: 12px; }
.bar-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-track { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; background: var(--neon); transition: width .6s ease; }
.bar-row.is-gold .bar-fill { background: var(--gold); }
.bar-val { font-weight: 800; min-width: 4ch; text-align: right; }

/* columns (points over time) */
.cols { margin: 0; }
.cols-plot { display: flex; align-items: flex-end; gap: 6px; height: var(--hgt); border-bottom: 1px solid var(--line-2); padding-top: 26px; }
.col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; text-decoration: none; outline-offset: 2px; }
.col-fill { width: min(100%, 46px); height: var(--p); background: var(--neon); border-radius: 4px 4px 0 0; opacity: .85; }
.col-fill.is-mark { background: var(--gold); opacity: 1; }
.col:hover .col-fill, .col:focus-visible .col-fill { opacity: 1; box-shadow: 0 0 16px rgba(255, 79, 174, .5); }
.col-top { position: absolute; bottom: calc(var(--p, 0%) + 4px); font-size: .78rem; font-weight: 800; color: var(--ink-2); pointer-events: none; }
.col-tip { position: absolute; bottom: calc(var(--p) + 26px); left: 50%; transform: translateX(-50%); background: #0b0510; border: 1px solid var(--line-2); padding: 7px 10px; border-radius: 10px; font-size: .8rem; white-space: nowrap; color: var(--ink-2); pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 3; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.col-tip b { color: var(--ink); }
.col:hover .col-tip, .col:focus-visible .col-tip { opacity: 1; }
.cols-axis { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .8rem; margin-top: 8px; }

/* lists */
.blist, .ulist, .rank { list-style: none; margin: 0; padding: 0; }
.brow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.brow:first-child { border-top: 1px solid var(--line); }
.brow-main { display: grid; gap: 2px; text-decoration: none; color: var(--ink); min-width: 0; }
.brow-title { font: 700 1.12rem/1.25 var(--serif); font-variant-numeric: lining-nums tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-main:hover .brow-title { color: var(--neon-soft); }
.brow-date { color: var(--ink-3); font-size: .88rem; }
.brow-champ { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brow-champ span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-num { display: grid; justify-items: end; min-width: 76px; }
.brow-num b { font-weight: 800; }
.brow-num small { color: var(--ink-3); }
.urow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.date-block { display: grid; justify-items: center; width: 62px; padding: 8px 0; border-radius: 14px; background: var(--velvet-2); border: 1px solid var(--line-2); }
.date-block b { font: 900 1.6rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--neon-soft); }
.date-block span { font-size: .78rem; color: var(--ink-2); font-weight: 700; }
.urow-title { font: 700 1.2rem/1.25 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); text-decoration: none; }
.urow-title:hover { color: var(--neon-soft); }
.urow-slots { color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.rank li { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-n { color: var(--ink-3); font-weight: 800; text-align: right; }
.rank li:first-child .rank-n { color: var(--gold); }
.rank-name { display: grid; min-width: 0; }
.rank-name a, .rank-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { color: var(--ink-3); }
.rank-v { font-weight: 800; }
.pname, .fname { color: var(--ink); text-decoration: none; font-weight: 700; }
a.pname:hover, a.fname:hover { color: var(--neon-soft); text-decoration: underline; }

/* totals strip */
.totals dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.totals dl > div { padding: 22px 16px; border-left: 1px solid var(--line); }
.totals dl > div:first-child { border-left: 0; }
.totals dt { color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.totals dd { margin: 4px 0 0; font: 900 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* search, filters */
.search { display: flex; gap: 10px; margin-top: 22px; max-width: 560px; }
.search input { flex: 1; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.filter a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .86rem; }
.filter a[aria-current="true"] { background: var(--ink); color: var(--night); border-color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; align-items: center; }
.pager a, .pager span { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 700; }
.pager [aria-current] { background: var(--velvet-2); color: var(--ink); border-color: var(--line-2); }
.pager .gap { border: 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--velvet); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { color: var(--ink-3); font-size: .82rem; font-weight: 800; background: rgba(0, 0, 0, .14); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.cell-p { display: inline-flex; align-items: center; gap: 9px; }
.cell-p > span { display: grid; }
.place { font: 900 1.05rem var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink-3); width: 56px; }
.place-gold { color: var(--gold); }
.place-silver { color: var(--silver); }
.place-bronze { color: var(--bronze); }
.heat td.num { background: rgba(255, 79, 174, calc(var(--a, 0) * .62)); font-weight: 700; }
.heat td.out-cell { box-shadow: inset 0 0 0 2px var(--neon); }
.heat td.gone { color: var(--ink-3); background: transparent; }
.heat td.total { font-weight: 900; background: transparent; }
.heat tr.is-out th { opacity: .75; }
.feed td { font-size: .94rem; }
.gift-img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.gift-dot { display: inline-block; border-radius: 6px; background: linear-gradient(135deg, var(--neon), var(--orchid)); width: 18px; height: 18px; }
.big-gift { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: var(--velvet); border: 1px solid rgba(242, 200, 121, .35); margin-bottom: 18px; }
.big-gift .gift-img { width: 64px; height: 64px; }
.big-gift-name { font: 700 1.25rem var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.big-gift-pts { font: 900 1.6rem var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.mini-stats > div { background: var(--velvet); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mini-stats dt { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.mini-stats dd { margin: 2px 0 0; font: 900 1.4rem var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* battle page */
.b-head .b-chips { display: flex; gap: 8px; margin-bottom: 14px; }
.podium { list-style: none; margin: 0; padding: 30px 0 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 14px; max-width: 820px; margin-inline: auto; }
.pod { display: grid; justify-items: center; text-align: center; gap: 8px; min-width: 0; }
.pod .sig { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.pod-name { font: 700 1.15rem var(--serif); font-variant-numeric: lining-nums tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-pts { color: var(--ink-2); font-weight: 700; }
.pod-step { display: grid; place-items: center; width: 100%; border-radius: 16px 16px 4px 4px; font: 900 2.2rem var(--serif); font-variant-numeric: lining-nums tabular-nums; margin-top: 6px; }
.pod-1 .pod-step { height: 130px; background: linear-gradient(180deg, rgba(242, 200, 121, .35), rgba(242, 200, 121, .06)); color: var(--gold-hi); border: 1px solid rgba(242, 200, 121, .5); }
.pod-2 .pod-step { height: 92px; background: linear-gradient(180deg, rgba(211, 214, 234, .22), rgba(211, 214, 234, .04)); color: var(--silver); border: 1px solid rgba(211, 214, 234, .35); }
.pod-3 .pod-step { height: 70px; background: linear-gradient(180deg, rgba(220, 157, 112, .25), rgba(220, 157, 112, .04)); color: var(--bronze); border: 1px solid rgba(220, 157, 112, .4); }
.prose { color: var(--ink-2); max-width: 66ch; margin-bottom: 18px; }
.prize { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-radius: 14px; background: rgba(242, 200, 121, .1); border: 1px solid rgba(242, 200, 121, .4); color: var(--gold-hi); font-weight: 800; margin-bottom: 22px; }
.prize span { color: var(--ink-2); font-weight: 600; }
.chips-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list a { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--velvet-2); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 700; }

/* profile */
.profile { display: flex; gap: 34px; align-items: center; padding-top: 48px; }
.profile-copy { min-width: 0; }
.handle { color: var(--neon-soft); font-weight: 700; margin-top: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bio { color: var(--ink-2); margin-top: 12px; max-width: 60ch; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row > div { padding: 18px 14px; border-left: 1px solid var(--line); }
.stat-row > div:first-child { border-left: 0; }
.stat-row dt { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.stat-row dd { margin: 4px 0 0; font: 900 1.8rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.gift-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gift-grid li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--velvet); border: 1px solid var(--line); border-radius: 14px; }
.gift-grid span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* walk of fame */
.fame-head { text-align: center; }
.fame-head .lead { margin-inline: auto; }
.walk { background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .025) 119px 120px), repeating-linear-gradient(0deg, transparent 0 119px, rgba(255, 255, 255, .025) 119px 120px), linear-gradient(180deg, #170b20, #120817); border: 1px solid var(--line); border-radius: 28px; padding: 28px clamp(14px, 3vw, 32px) 36px; }
.stars { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 16px; }
.stars-row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.star { display: grid; justify-items: center; text-align: center; gap: 2px; text-decoration: none; color: var(--ink); min-width: 0; }
.star-box { position: relative; width: 100%; max-width: 190px; aspect-ratio: 200 / 190; display: grid; place-items: center; }
.star-box .av { margin-top: 9%; }
.star-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255, 79, 174, .08); stroke: var(--neon); stroke-width: 2.2; filter: drop-shadow(0 0 8px rgba(255, 79, 174, .55)); }
.star:hover .star-shape, .star:focus-visible .star-shape { fill: rgba(255, 79, 174, .16); stroke: var(--neon-soft); }
.star .sig { font-size: 1.9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; padding: 0 4px; }
.star-meta { font-size: .8rem; color: var(--ink-2); font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-date { font-size: .76rem; color: var(--ink-3); }
.plaques { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.plaque { position: relative; background: linear-gradient(180deg, var(--velvet-2), var(--velvet)); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px 18px; display: grid; gap: 4px; }
.plaque::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.plaque-title { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.plaque-who { font: 700 1.2rem/1.3 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.plaque-who a { color: var(--ink); text-decoration: none; }
.plaque-v { display: flex; align-items: center; gap: 8px; font: 900 1.6rem var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
.legends { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.legend { display: flex; gap: 22px; align-items: center; padding: 22px; border-radius: 22px; border: 1px solid rgba(242, 200, 121, .35); background: radial-gradient(300px 160px at 0% 0%, rgba(242, 200, 121, .1), transparent), var(--velvet); }
.legend .sig { font-size: 2.4rem; }
.fame-teaser .stars { max-width: 860px; }

/* downloads */
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dl-list li { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-list .btn { min-width: 250px; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 500 1rem/1.4 var(--sans); color: var(--ink); background: #160b1e; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; min-height: 42px; width: 100%; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--neon); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--neon); outline-offset: 1px; border-color: transparent; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
legend { font-weight: 800; color: var(--ink-2); padding: 0 6px; }
.pair { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.apply .btn { justify-self: start; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #10071a; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 50%; }
.foot-name { font: 900 1.1rem var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }

/* admin */
.is-admin main { max-width: 1320px; }
.a-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding-top: 30px; }
.a-nav { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; }
.a-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .93rem; }
.a-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.a-nav a[aria-current="page"] { background: var(--velvet-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--neon); }
.a-nav form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.count { background: var(--neon); color: #240518; border-radius: 999px; font-size: .74rem; padding: 1px 8px; font-weight: 900; }
.a-h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; overflow-wrap: anywhere; }
.a-main > * + * { margin-top: 18px; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.a-card { display: grid; gap: 2px; padding: 18px; border-radius: 16px; background: var(--velvet); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.a-card b { font: 900 2rem var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.a-card.is-hot { border-color: var(--neon); box-shadow: 0 0 24px rgba(255, 79, 174, .18); }
.a-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.a-grid > div { display: grid; gap: 18px; }
.a-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.a-tools .search, .a-tools .filter { margin: 0; }
.a-table th small, .a-table td small { display: block; }
.a-table td.msg { max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; }
.acts form { display: flex; flex-wrap: wrap; gap: 6px; }
.acts .row-form { margin-top: 6px; }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-form input { flex: 1; min-width: 160px; }
.panel-danger { border-color: #6b2440; }
.panel-danger form + form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-danger .muted { margin-bottom: 10px; }
.panel-key { border-color: var(--gold); }
.copy-row { display: flex; gap: 10px; margin: 12px 0; }
.copy-row input { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.steps { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); margin: 10px 0 16px; }
.a-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.a-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; color: var(--ink-2); }
.auth { max-width: 420px; margin: 60px auto 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.auth img { border-radius: 50%; box-shadow: 0 0 30px rgba(255, 79, 174, .45); }
.auth h1 { font-size: 2rem; }
.auth .form { width: 100%; text-align: left; margin-top: 6px; }

/* phones and tablets */
@media (max-width: 980px) {
  .hero-live, .hero-champ, .hero-welcome, .split, .split-wide { grid-template-columns: 1fr; }
  .hero-welcome { justify-items: center; text-align: center; }
  .hero-welcome .lead { margin-inline: auto; }
  .totals dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .totals dl > div:nth-child(4) { border-left: 0; }
  .totals dl > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .a-wrap { grid-template-columns: 1fr; }
  .a-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .a-nav a { white-space: nowrap; }
  .a-nav form { margin: 0; border: 0; padding: 0; }
}
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 6px; }
  .nav { order: 3; flex-basis: 100%; min-width: 0; }
  .top-r { margin-left: auto; }
  .brand-name { font-size: 1.02rem; }
  .brand img { width: 38px; height: 38px; }
  .brow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .brow-champ { grid-column: 1; }
  .brow-num:last-child { display: none; }
  .urow { grid-template-columns: auto minmax(0, 1fr); }
  .urow-slots { grid-column: 2; }
  .urow .btn { grid-column: 1 / -1; justify-self: start; }
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .bar-label { grid-column: 1 / -1; }
  .profile { flex-direction: column; text-align: center; padding-top: 32px; gap: 20px; }
  .profile .badges, .profile .row-btns { justify-content: center; }
  .profile .bio { margin-inline: auto; }
  .av-xl { width: 124px; height: 124px; }
  .podium { gap: 8px; }
  .pod .av-xl { width: 96px; height: 96px; font-size: 1.8rem; }
  .pod .av-l { width: 64px; height: 64px; font-size: 1.1rem; }
  .pod-1 .pod-step { height: 96px; } .pod-2 .pod-step { height: 70px; } .pod-3 .pod-step { height: 54px; }
  .totals dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .totals dl > div { border-left: 0; border-top: 1px solid var(--line); }
  .totals dl > div:nth-child(even) { border-left: 1px solid var(--line); }
  .totals dl > div:nth-child(-n+2) { border-top: 0; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .star .sig { font-size: 1.5rem; }
  .legend { flex-direction: column; text-align: center; }
  .search { flex-direction: row; }
  .dl-list .btn { min-width: 0; width: 100%; }
  .copy-row { flex-direction: column; }
  .pair { grid-template-columns: 1fr; }
  th, td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .bar-fill, .col-fill { background: CanvasText; }
  .star-shape { stroke: CanvasText; }
}
