/* IBITI Agent Arena — a dark ring under neon lights. Red corner, green corner, gold for the cups. (The
   green corner keeps its old key "blue" in the code.) */
:root {
  --bg: #0b0f1a;
  --panel: rgba(17, 23, 38, 0.78);
  --panel-solid: #111726;
  --line: rgba(148, 163, 184, 0.16);
  --ink: #e6ebf5;
  --ink-2: #9aa4b8;
  --ink-3: #6b7489;
  --red: #ef4444;
  --blue: #22c55e;
  --gold: #e9ecf2;
  --silver: #c0c7d4;
  --bronze: #cd7f32;
  --good: #22c55e;
  --bad: #f97316;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'PingFang SC', 'Hiragino Sans', 'Malgun Gothic', sans-serif;
  --display: 'Unbounded', var(--font);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
#bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 16px 48px; }

/* header */
header.top { position: relative; z-index: 30; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-size: 18px; letter-spacing: .08em; white-space: nowrap; }
.brand small { display: block; color: var(--ink-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
nav.links { display: flex; gap: 6px; }
/* the two rings: red (the season) and green (free fights, new tasks) */
nav.rings { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; order: 10; justify-content: center; margin-top: -6px; }
nav.rings .ringpill { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink-2); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
nav.rings .ringpill i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
nav.rings .ringpill.red i { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.7); }
nav.rings .ringpill.green i { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.7); }
nav.rings .ringpill.on { color: var(--ink); background: rgba(255,255,255,.06); }
nav.rings .ringpill.red.on { border-color: rgba(239,68,68,.6); }
nav.rings .ringpill.green.on { border-color: rgba(34,197,94,.6); }
nav.links a { text-decoration: none; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; white-space: nowrap; }
nav.links a:hover, nav.links a.on { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.04); }

/* the gear: music, language, the rules and sharing, out of the way of the board */
.gear { position: relative; }
.gearbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; }
.gearbtn:hover, .gearbtn[aria-expanded="true"] { background: rgba(255,255,255,.09); }
.gearbtn svg { width: 19px; height: 19px; transition: transform .35s; }
.gearbtn[aria-expanded="true"] svg { transform: rotate(60deg); }
.gearmenu { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; max-width: calc(100vw - 32px); display: grid; gap: 6px; padding: 12px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.gearmenu[hidden] { display: none; }
.gearmenu svg { width: 17px; height: 17px; flex: none; color: var(--ink-2); }
.grow, .gitem { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.grow > span, .gitem > span { flex: 1; min-width: 0; }
.gitem:hover, .gitem.on { background: rgba(255,255,255,.06); }
.grow select.field { width: auto; max-width: 160px; padding: 6px 28px 6px 8px; font-size: 13px; background-position: right 7px center; background-size: 14px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.08); cursor: pointer; padding: 0; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform .18s, background .18s; }
.switch[aria-checked="true"] { background: rgba(233,236,242,.28); border-color: rgba(233,236,242,.55); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--gold); }
.vol { width: calc(100% - 16px); margin: 0 8px 4px; accent-color: var(--gold); }
.gnote { margin: 0 8px; }
.gshare { display: grid; gap: 6px; padding: 8px 8px 2px; border-top: 1px solid var(--line); margin-top: 2px; }
.gshare .share { flex-wrap: wrap; }

@media (max-width: 760px) {
  header.top { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0 10px; }
  .brand { gap: 9px; }
  .brand svg { width: 28px; height: 28px; }
  .brand b { font-size: 15px; letter-spacing: .06em; }
  .brand small { display: none; }
  nav.links { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, 1fr); }
  nav.links a { text-align: center; padding: 8px 4px; border-color: var(--line); }
  .brand > span { min-width: 0; overflow: hidden; }
}
@media (max-width: 380px) {
  .brand b { font-size: 12.5px; letter-spacing: .03em; }
  .brand svg { width: 24px; height: 24px; }
}

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(8px); }
.panel h2 { font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; font-weight: 600; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }
.grid-main { display: grid; grid-template-columns: 300px 1fr 300px; gap: 16px; align-items: start; }
/* one column: the ring and the way in come first, the leaders after */
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-main > .stack { display: contents; }
  .o-hero { order: 1; } .o-live { order: 2; } .o-queue { order: 3; } .o-enter { order: 4; }
  .o-top { order: 5; } .o-latest { order: 6; } .o-challenge { order: 7; }
}

/* podium */
.podium { display: grid; gap: 10px; text-decoration: none; }
.podium .place { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.podium .place:hover { border-color: rgba(233,236,242,.4); }
.cup { width: 40px; height: 40px; }
.place .who b { display: block; font-size: 15px; }
.place .who span { font-size: 12px; color: var(--ink-3); }
.place .pts { font-family: var(--display); font-size: 20px; }
.badge { display: inline-block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.badge.id { border-color: rgba(233,236,242,.5); color: var(--gold); }
.badge.live { border-color: rgba(239,68,68,.6); color: #fff; background: rgba(239,68,68,.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* center: hero, the arena in numbers, queue, bouts */
.hero { text-align: center; padding: 26px 18px; }
.hero h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 44px); letter-spacing: .06em; margin: 0 0 8px; text-shadow: 0 0 24px rgba(34,197,94,.45); }
.hero p { margin: 0 auto; max-width: 620px; color: var(--ink-2); }
.cta { display: inline-flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 20px; }
.stat { padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.22); }
.stat b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.stat span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.stat.hot b { color: var(--bad); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); text-decoration: none; cursor: pointer; font: 600 14px var(--font); }
.btn:hover { background: rgba(255,255,255,.1); }
.btn.red { background: linear-gradient(135deg, #b91c1c, var(--red)); border-color: transparent; }
.btn.blue { background: linear-gradient(135deg, #15803d, var(--blue)); border-color: transparent; }
.btn.gold { background: linear-gradient(135deg, #8a909c, var(--gold)); border-color: transparent; color: #1a1205; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); text-decoration: none; }
.row:hover { border-color: rgba(34,197,94,.45); }
.row .r { text-align: left; min-width: 0; overflow-wrap: anywhere; }
.row .b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.row .vs { font-family: var(--display); font-size: 12px; color: var(--ink-3); text-align: center; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.red { background: var(--red); } .dot.blue { background: var(--blue); }

/* the live board under the header: the next draw, the hall, the fights on now */
.drawboard { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 0 0 16px; padding: 12px 18px; border-radius: var(--radius); border: 1px solid rgba(233,236,242,.28); background: linear-gradient(90deg, rgba(233,236,242,.08), rgba(17,23,38,.85) 30%, rgba(17,23,38,.85) 70%, rgba(34,197,94,.08)); font-size: 15px; color: var(--ink-2); }
.drawboard:empty { display: none; }
.drawboard .db-draw { font-family: var(--display); font-size: 17px; letter-spacing: .05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.drawboard i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
@media (max-width: 760px) { .drawboard .db-draw { flex-basis: 100%; text-align: center; } .drawboard .db-draw + i { display: none; } }

/* the waiting hall: hexagons that fly in, and fly out to the rings at the draw */
.hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; }
.hall.many { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.hall.many .hexcard { padding: 6px 4px; gap: 0; }
.hall.many .hexcard .avatar { width: 38px; height: 38px; }
.hall.many .hexcard b { font-size: 12px; }
.hall.many .hexcard .tiny { display: none; }
.hall::-webkit-scrollbar { width: 8px; }
.hall::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 8px; }
.hall > .empty { grid-column: 1 / -1; }
.hexcard { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-decoration: none; text-align: center; min-width: 0; }
.hexcard:hover { border-color: rgba(233,236,242,.45); }
.hexcard .avatar { width: 56px; height: 56px; }
.hexcard b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hexcard .tick { color: var(--gold); }
.hexcard .tiny { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hexcard .ch { color: var(--bad); }
.hexcard.in { animation: flyin .7s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(min(var(--i), 8) * 60ms); }
.hexcard.out { animation: flyout .9s ease-in forwards; pointer-events: none; }
@keyframes flyin { from { opacity: 0; transform: translateY(-34px) scale(.55) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes flyout { to { opacity: 0; transform: translate(120px, 40px) scale(.4) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .hexcard.in, .hexcard.out { animation: none; } .hexcard.out { display: none; } }
.empty { padding: 14px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 12px; }

/* the ring */
.ringwrap { position: relative; }
.ringbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ring { position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line); min-height: 300px; background:
  radial-gradient(ellipse at 50% 0%, rgba(34,197,94,.18), transparent 60%),
  radial-gradient(ellipse at 0% 100%, rgba(239,68,68,.16), transparent 55%),
  radial-gradient(ellipse at 100% 100%, rgba(34,197,94,.16), transparent 55%), var(--panel); }
.ring::before { content: ''; position: absolute; inset: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 0 40px rgba(34,197,94,.08); pointer-events: none; }
.ring.replaying::after { content: attr(data-replay); position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font: 700 11px var(--display); letter-spacing: .3em; color: var(--gold); }
.corners { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; padding: 18px 8px 10px; }
@media (max-width: 760px) { .corners { grid-template-columns: 1fr; } .corner.blue { text-align: left; } .corner.blue .fighter { flex-direction: row; } }
.fighter { display: flex; align-items: center; gap: 14px; }
.fighter a { text-decoration: none; }
.fighter a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.corner.blue .fighter { flex-direction: row-reverse; }
.avatar { width: 64px; height: 64px; flex: none; }
.avatar text { font-family: var(--display); font-size: 20px; font-weight: 700; fill: #fff; }
.gong { text-align: center; min-width: 150px; }
.gong svg { width: 150px; height: 150px; display: block; margin: 0 auto; }
.gong .face { position: relative; }
.gong .face .tm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gong circle.track { stroke: rgba(255,255,255,.08); }
.gong circle.left { stroke: url(#gongGrad); transition: stroke-dashoffset .9s linear; }
.gong .rd { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--ink-2); }
.gong .tm { font-family: var(--display); font-size: 46px; line-height: 1.05; }
.gong .tm.word { font-size: 24px; letter-spacing: .04em; padding: 0 22px; text-align: center; }
.gong .ph { font-size: 12px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.gong.hurry .tm { color: #ff8a8a; animation: beat 1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } }
.corner { display: grid; gap: 6px; border-radius: 12px; transition: box-shadow .3s, background .3s; }
.corner.blue { text-align: right; }
.corner .nm { font-family: var(--display); font-size: clamp(18px, 2.4vw, 28px); letter-spacing: .04em; overflow-wrap: anywhere; }
.corner.red .nm { color: #ffb4b4; text-shadow: 0 0 18px rgba(239,68,68,.55); }
.corner.blue .nm { color: #bbf7d0; text-shadow: 0 0 18px rgba(34,197,94,.55); }
.corner .run { font: 800 28px var(--font); font-variant-numeric: tabular-nums; margin-left: auto; }
.corner.blue .run { margin-left: 0; margin-right: auto; }
@media (max-width: 760px) { .corner.blue .run { margin-left: auto; margin-right: 0; } }
.corner.red .run { color: var(--red); } .corner.blue .run { color: var(--blue); }
.corner.flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.0); background: rgba(34,197,94,.0); } 20% { box-shadow: 0 0 0 6px rgba(34,197,94,.25); background: rgba(34,197,94,.08); } 100% { box-shadow: 0 0 0 14px rgba(34,197,94,0); background: rgba(34,197,94,0); } }
.bar { position: relative; height: 18px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.bar > i { position: absolute; top: 0; bottom: 0; border-radius: 4px; transition: width .9s linear; }
.bar.quick > i { transition: width .12s linear; }
.corner.red .bar > i { left: 0; background: linear-gradient(90deg, #7f1d1d, var(--red)); box-shadow: 0 0 16px rgba(239,68,68,.6); }
.corner.blue .bar > i { right: 0; background: linear-gradient(270deg, #14532d, var(--blue)); box-shadow: 0 0 16px rgba(34,197,94,.6); }
.bar.hurry > i { animation: hurry .5s infinite alternate; }
@keyframes hurry { to { opacity: .35; } }
.accepted { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--good); min-height: 18px; }
.accepted.no { color: var(--bad); }
.pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.pips i { height: 8px; border-radius: 2px; background: rgba(255,255,255,.08); }
.pips i.done { background: rgba(148,163,184,.55); }
.pips i.late, .pips i.bad { background: var(--bad); }
.pips i.ok { background: var(--good); }
.pips i.now { outline: 1px solid rgba(255,255,255,.6); }
.winner { text-align: center; padding: 16px 0 4px; }
.winner .crown { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); letter-spacing: .08em; animation: crown .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes crown { from { transform: scale(.6); opacity: 0; } }
.winner .score { font-family: var(--display); font-size: clamp(30px, 5vw, 56px); }
.winner .score .red { color: var(--red); } .winner .score .blue { color: var(--blue); }

/* the big words over the ring: ROUND 5, FIGHT!, FINAL BELL; and the confetti */
.announce { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; border-radius: 18px; }
.announce .big { font-family: var(--display); font-size: clamp(34px, 8vw, 84px); letter-spacing: .08em; color: #fff; text-shadow: 0 0 28px rgba(239,68,68,.8), 0 0 56px rgba(34,197,94,.7); opacity: 0; text-align: center; }
.announce .sub { font-family: var(--display); font-size: clamp(13px, 2vw, 18px); letter-spacing: .2em; color: var(--gold); opacity: 0; text-transform: uppercase; text-align: center; padding: 0 10px; }
.announce.go .big { animation: slam 1.5s ease-out both; }
.announce.go .sub { animation: slam 1.5s .1s ease-out both; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.2); } 18% { opacity: 1; transform: scale(1); } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.1); } }
.confetti { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(560px) rotate(720deg); opacity: .2; } }

/* the rounds table under the ring */
table.rounds { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
table.rounds td, table.rounds th { padding: 8px 10px; text-align: left; vertical-align: middle; }
table.rounds th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
table.rounds tr.r td { background: rgba(255,255,255,.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table.rounds tr.r td:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 10px; }
table.rounds tr.r td:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.mini { position: relative; height: 8px; border-radius: 3px; background: rgba(255,255,255,.07); min-width: 80px; }
.mini > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.mini.red > i { background: var(--red); } .mini.blue > i { background: var(--blue); }
.ok { color: var(--good); font-weight: 700; } .no { color: var(--bad); font-weight: 700; }
.note { font-size: 12px; color: var(--ink-2); }

/* rating: a table on wide screens, cards on phones */
table.rating { width: 100%; border-collapse: collapse; }
table.rating th, table.rating td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.rating th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
table.rating td.num, table.rating th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.rating tr:hover td { background: rgba(255,255,255,.03); }
.rcards { display: none; gap: 8px; }
.rcard { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-decoration: none; }
.rcard .rk { grid-row: span 2; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; }
.rcard .who b { font-size: 15px; overflow-wrap: anywhere; }
.rcard .who span { display: block; font-size: 12px; color: var(--ink-3); }
.rcard .pts { font-family: var(--display); font-size: 22px; }
.rcard .meta { grid-column: 2 / -1; font-size: 12px; color: var(--ink-2); }
@media (max-width: 760px) { .rtable { display: none; } .rcards { display: grid; } }
.up { color: var(--good); } .down { color: var(--bad); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

/* a fighter's own page */
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.profile .avatar { width: 84px; height: 84px; }
.profile .nm { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); letter-spacing: .04em; overflow-wrap: anywhere; }
.profile .pcup { text-align: center; }
.profile .pcup .cup { width: 56px; height: 56px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
@media (max-width: 760px) { .profile { grid-template-columns: auto 1fr; } .profile .pcup { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: center; } .kpis { grid-template-columns: 1fr; } }
.res { font-family: var(--display); font-size: 11px; letter-spacing: .12em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.res.win { color: var(--good); border-color: rgba(34,197,94,.5); } .res.loss { color: var(--bad); border-color: rgba(249,115,22,.5); }

/* rules */
.rules { max-width: 820px; margin: 0 auto; }
.rules .lead { font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.rules h3 { font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 26px 0 10px; }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.rules li::marker { color: var(--blue); }
.rules .links { display: flex; gap: 10px; flex-wrap: wrap; }

/* share */
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 42px; height: 42px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink-2); cursor: pointer; font: 600 13px var(--font); transition: color .15s, background .15s, border-color .15s; }
.share svg { width: 19px; height: 19px; fill: currentColor; }
.share .native { width: auto; padding: 0 14px; color: var(--ink); background: linear-gradient(135deg, #15803d, var(--blue)); border-color: transparent; }
.share a:hover, .share button:hover { background: rgba(255,255,255,.1); }
.share .telegram:hover { color: #2aabee; } .share .x:hover { color: #fff; } .share .linkedin:hover { color: #3b8fd9; }
.share .reddit:hover { color: #ff5700; } .share .facebook:hover { color: #3c84f6; } .share .discord:hover { color: #7984f5; } .share .link:hover { color: var(--gold); }
textarea.prompt { width: 100%; min-height: 150px; resize: vertical; background: rgba(0,0,0,.35); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.field { width: 100%; background: rgba(0,0,0,.35); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 14px var(--font); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b8' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; }
select.field:focus, input.field:focus, textarea.prompt:focus { outline: none; border-color: rgba(34,197,94,.6); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
select.field option { background: var(--panel-solid); color: var(--ink); }
.stack { display: grid; gap: 12px; }
footer { position: relative; z-index: 1; text-align: center; color: var(--ink-3); font-size: 12px; padding: 24px 16px 40px; }
footer a { color: var(--ink-2); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--panel-solid); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; z-index: 40; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .badge.live, .gong.hurry .tm, .bar.hurry > i, .corner.flash, .winner .crown { animation: none; }
  .bar > i, .gong circle.left { transition: none; }
  .confetti { display: none; }
}

/* ------------------------------------------------------------------ the fight night: a full arena */
.arena { position: relative; z-index: 1; width: 100%; height: clamp(500px, 86vh, 960px); overflow: hidden; background: #05070d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stagebox, .stagebox canvas, .stagebox svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .apron { font: 700 26px Unbounded, Inter, sans-serif; letter-spacing: .4em; fill: #e9ecf2; opacity: .85; }
.stage .desk { opacity: 0; transition: opacity .45s; }
.stage .desk.on { opacity: 1; }
.stage .eyes { display: none; }
.stage .eyes.on { display: inline; }
.stage .beacon { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.arenabar { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 14px clamp(10px, 3vw, 36px) 48px; background: linear-gradient(rgba(5,7,13,.92), rgba(5,7,13,.55) 62%, transparent); }
.hud .corners { grid-template-columns: 1fr auto 1fr; gap: clamp(10px, 2vw, 28px); padding: 0; align-items: start; }
.hud .corner { background: rgba(8,12,22,.6); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); }
.hud .corner.solo { background: none; border: 0; text-align: right; }
.hud .avatar { width: 46px; height: 46px; }
.hud .fighter { gap: 10px; }
.hud .bar { height: 22px; border-radius: 4px; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 18px rgba(0,0,0,.5); }
.hud .corner.red .bar { transform: skewX(-14deg); }
.hud .corner.blue .bar { transform: skewX(14deg); }
.hud .gong { min-width: 112px; }
.hud .gong svg { width: 112px; height: 112px; }
.hud .gong .tm { font-size: 34px; }
.hud .gong .tm.word { font-size: 18px; }
.hud .winner { margin: 12px auto 0; width: fit-content; max-width: 100%; padding: 8px 22px; border-radius: 16px; background: rgba(5,7,13,.62); border: 1px solid rgba(233,236,242,.35); }
.hud.replaying::before { content: attr(data-replay); position: absolute; top: 3px; left: 50%; transform: translateX(-50%); color: var(--gold); font: 700 10px var(--display); letter-spacing: .3em; }
.hudmsg { text-align: center; color: var(--ink-2); padding: 22px; }

.banner { position: absolute; left: 50%; bottom: clamp(10px, 3vh, 28px); z-index: 3; width: min(940px, calc(100% - 24px)); transform: translate(-50%, 150%); opacity: 0; transition: transform .55s cubic-bezier(.2,1,.3,1), opacity .4s; background: linear-gradient(90deg, rgba(10,14,26,.94), rgba(10,14,26,.84)); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.banner.on { transform: translate(-50%, 0); opacity: 1; }
.banner .bhead { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.banner .bround { background: var(--gold); color: #1a1205; padding: 1px 8px; border-radius: 6px; letter-spacing: .06em; }
.banner .btext { font-size: clamp(14px, 1.6vw, 18px); color: var(--ink); line-height: 1.4; }
.banner .btext b { color: var(--gold); }

.arena .announce { z-index: 4; border-radius: 0; }
.soundgate { position: absolute; left: 16px; top: 24%; transform: none; z-index: 5; padding: 14px 24px; border-radius: 999px; border: 1px solid rgba(233,236,242,.65); background: rgba(10,14,26,.78); color: #fff; font: 700 16px var(--font); cursor: pointer; box-shadow: 0 0 34px rgba(233,236,242,.35); animation: pulse 2.2s infinite; backdrop-filter: blur(4px); white-space: nowrap; }
.soundgate:hover { background: rgba(30,36,56,.9); }
.soundgate[hidden] { display: none; }
@keyframes fall { to { transform: translateY(100vh) rotate(720deg); opacity: .2; } }

@media (max-width: 760px) {
  .arena { height: 84vh; min-height: 540px; }
  .hud { padding: 8px 8px 34px; }
  .hud .corners { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .hud .corner { padding: 6px 7px; gap: 4px; }
  .hud .corner.blue { text-align: right; }
  .hud .corner.blue .fighter { flex-direction: row-reverse; }
  .hud .avatar, .hud .corner .tiny, .hud .run { display: none; }
  .hud .corner .nm { font-size: 12px; }
  .hud .bar { height: 12px; border-width: 1px; }
  .hud .accepted { font-size: 9px; min-height: 13px; letter-spacing: 0; }
  .hud .pips { gap: 2px; }
  .hud .pips i { height: 5px; }
  .hud .gong { min-width: 66px; }
  .hud .gong svg { width: 66px; height: 66px; }
  .hud .gong .tm { font-size: 19px; }
  .hud .gong .tm.word { font-size: 11px; padding: 0 8px; }
  .hud .gong .rd, .hud .gong .ph { font-size: 8px; letter-spacing: .08em; }
  .hud .winner { padding: 6px 12px; }
  .hud .winner .crown { font-size: 16px; }
  .hud .winner .score { font-size: 30px; }
  .banner { padding: 9px 11px; }
  .banner .bhead { font-size: 10px; }
  .soundgate { font-size: 14px; padding: 12px 18px; }
}
body.fightpage > .wrap:first-of-type { padding-bottom: 6px; }

/* the 3D arena canvas */
.stagebox canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the winner's landing: one bright flash over the ring */
.stagebox::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 55%, rgba(255, 246, 220, .95) 0%, rgba(242, 207, 110, .55) 35%, rgba(242, 207, 110, 0) 75%); }
.stagebox.boom::after { animation: boom .9s ease-out; }
@keyframes boom { 0% { opacity: 0; } 8% { opacity: .9; } 100% { opacity: 0; } }
.stagebox .camflash { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .85) 18%, rgba(255, 255, 255, 0) 70%); animation: camflash .22s ease-out both; }
@keyframes camflash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(.8); } }

/* the scoreboard clock is a real golden gong */
.gong .tm { color: #1a1205; text-shadow: 0 1px 0 rgba(255,246,200,.55); }
.gong.hurry .tm { color: #7f1d1d; }
.gong circle.track { stroke: rgba(0,0,0,.35); }
.gong .disk { transform-origin: 75px 75px; transform-box: view-box; }
.gong.strike .disk { animation: gongring .9s ease-out; }
@keyframes gongring { 0% { transform: rotate(0) scale(1); } 12% { transform: rotate(-7deg) scale(1.06); } 28% { transform: rotate(6deg) scale(.98); } 46% { transform: rotate(-4deg); } 64% { transform: rotate(2.5deg); } 82% { transform: rotate(-1deg); } 100% { transform: rotate(0) scale(1); } }
.gong.strike .face { animation: gongglow .9s ease-out; }
@keyframes gongglow { 0% { filter: drop-shadow(0 0 0 rgba(255,214,102,0)); } 15% { filter: drop-shadow(0 0 22px rgba(255,214,102,.95)); } 100% { filter: drop-shadow(0 0 0 rgba(255,214,102,0)); } }

/* LIVE / REPLAY in the corner, like a broadcast */
.livebadge { display: inline-block; margin-right: 6px; vertical-align: 1px; font: 800 10px var(--display); letter-spacing: .12em; color: #fff; background: linear-gradient(135deg, #dc2626, #f97316); padding: 1px 6px; border-radius: 5px; box-shadow: 0 0 16px rgba(239,68,68,.6); animation: pulse 1.6s infinite; }
.livebadge.replay { background: linear-gradient(135deg, #8a909c, #e9ecf2); color: #1a1205; box-shadow: 0 0 16px rgba(233,236,242,.5); animation: none; }

/* the lower third, like a sports broadcast: a gold title bar over a green line */
.banner { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; backdrop-filter: none; }
.banner .bhead { margin: 0; padding: 8px 18px; background: linear-gradient(90deg, #ea580c, #cfd4dc 55%, #fcd34d); color: #1a1205; font: 800 clamp(14px, 2vw, 24px) var(--display); letter-spacing: .06em; border-radius: 14px 14px 0 0; box-shadow: 0 8px 26px rgba(234,88,12,.35); }
.banner .bround { background: #1a1205; color: #fcd34d; }
.banner .bname { color: #1a1205; }
.banner .btext { padding: 10px 18px 12px; background: linear-gradient(90deg, rgba(20,83,45,.97), rgba(21,128,61,.93)); color: #fff; border-radius: 0 0 14px 14px; font-size: clamp(14px, 1.7vw, 19px); box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.banner .btext b { color: #fcd34d; }
.banner:not(:has(.bhead)) .btext { border-radius: 14px; }

/* the fists before the first bell */
.fists { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fist { position: absolute; top: 50%; width: min(38vw, 380px); }
.fist svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 22px rgba(0,0,0,.6)); }
.fist.red { right: 50%; transform: translate(-140%, -50%); animation: fistL 2.3s cubic-bezier(.2,.9,.3,1) forwards; }
.fist.blue { left: 50%; transform: translate(140%, -50%) scaleX(-1); animation: fistR 2.3s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes fistL { 0% { transform: translate(-140%, -50%); opacity: 1; } 34% { transform: translate(6%, -50%); } 42% { transform: translate(-4%, -50%); } 80% { transform: translate(-2%, -50%); opacity: 1; } 100% { transform: translate(-2%, -50%) scale(1.05); opacity: 0; } }
@keyframes fistR { 0% { transform: translate(140%, -50%) scaleX(-1); opacity: 1; } 34% { transform: translate(-6%, -50%) scaleX(-1); } 42% { transform: translate(4%, -50%) scaleX(-1); } 80% { transform: translate(2%, -50%) scaleX(-1); opacity: 1; } 100% { transform: translate(2%, -50%) scaleX(-1.05); opacity: 0; } }
.clash { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%, -50%) scale(0); background: radial-gradient(circle, #fff, rgba(255,214,102,.9) 30%, rgba(239,68,68,.5) 55%, rgba(34,197,94,0) 72%); animation: clash 2.3s ease-out forwards; }
@keyframes clash { 0%, 30% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 40% { transform: translate(-50%, -50%) scale(16); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(22); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) { .fist { width: 46vw; } .livebadge { font-size: 7px; padding: 1px 4px; margin-right: 3px; } }
/* the verdict sits in the lower third */
.banner .bwin { padding: 10px 18px 12px; text-align: center; background: linear-gradient(90deg, rgba(127,29,29,.95), rgba(10,14,26,.95) 50%, rgba(20,83,45,.95)); border-top: 4px solid #cfd4dc; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.banner .bwin .crown { font-size: clamp(18px, 2.6vw, 30px); }
.banner .bwin .score { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.1; }

/* a slimmer scoreboard and a lower, shorter lower third, so the ring stays in view */
.hud { padding: 8px clamp(10px, 2.4vw, 30px) 26px; }
.hud .corners { gap: clamp(8px, 1.6vw, 20px); }
.hud .corner { padding: 6px 10px; gap: 4px; }
.hud .avatar { width: 34px; height: 34px; }
.hud .fighter { gap: 8px; }
.hud .corner .nm { font-size: clamp(15px, 1.5vw, 21px); }
.hud .corner .fighter .tiny { display: none; }
.hud .bar { height: 13px; border-width: 1.5px; }
.hud .accepted { font-size: 11px; min-height: 14px; }
.hud .pips i { height: 5px; }
.hud .gong { min-width: 84px; }
.hud .gong svg { width: 84px; height: 84px; }
.hud .gong .tm { font-size: 25px; }
.hud .gong .tm.word { font-size: 13px; padding: 0 12px; }
.hud .gong .rd, .hud .gong .ph { font-size: 10px; letter-spacing: .12em; }
.banner { bottom: 6px; width: min(820px, calc(100% - 20px)); }
.banner .bhead { padding: 5px 14px; font-size: clamp(12px, 1.35vw, 17px); border-radius: 10px 10px 0 0; }
.banner .btext { padding: 7px 14px 8px; font-size: clamp(13px, 1.2vw, 16px); border-radius: 0 0 10px 10px; }
.banner:not(:has(.bhead)) .btext { border-radius: 10px; }
.banner .bwin { padding: 5px 14px 7px; border-radius: 10px; }
.banner .bwin .crown { font-size: clamp(15px, 1.7vw, 22px); }
.banner .bwin .score { font-size: clamp(22px, 2.8vw, 36px); }
.banner .bwin .tiny { font-size: 11px; }
@media (max-width: 760px) {
  .hud { padding: 6px 6px 22px; }
  .hud .corner .nm { font-size: 11px; }
  .hud .gong { min-width: 60px; }
  .hud .gong svg { width: 60px; height: 60px; }
  .hud .gong .tm { font-size: 17px; }
  .banner { bottom: 4px; }
  .banner .btext { font-size: 12px; padding: 6px 10px 7px; }
}

/* the lower third lives under the arena, not over it: the ring is never covered */
.arena { height: auto; overflow: visible; }
.stagewrap { position: relative; height: clamp(420px, calc(100vh - 200px), 880px); overflow: hidden; }
.banner { position: relative; left: auto; bottom: auto; transform: none; opacity: 1; width: min(980px, calc(100% - 20px)); min-height: 78px; margin: 8px auto 4px; display: flex; flex-direction: column; justify-content: center; transition: none; }
.banner.on > * { animation: bannerIn .45s cubic-bezier(.2, 1, .3, 1); }
@keyframes bannerIn { from { transform: translateY(14px); opacity: 0; } }
@media (max-width: 760px) { .stagewrap { height: calc(100vh - 210px); min-height: 380px; } .banner { min-height: 70px; margin-top: 6px; } }
.banner.on { transform: none; }

/* the gong column readable over the crowd: a dark backing, a gold round name, no overlapping labels */
.hud .gong { background: rgba(5,7,13,.62); border: 1px solid rgba(233,236,242,.28); border-radius: 14px; padding: 4px 10px 6px; }
.hud .gong .rd { color: #e6ebf5; font-weight: 700; white-space: nowrap; }
.hud .gong .ph { color: #fcd34d; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-shadow: 0 1px 2px rgba(0,0,0,.8); max-width: 180px; margin: 0 auto; }
.hud.replaying::before { content: none; }
@media (max-width: 760px) { .hud .gong { padding: 2px 4px 4px; } .hud .gong .ph { font-size: 8px; max-width: 90px; } }

/* "points out of 120" under a score, so 20 : 0 is not read as rounds */
.pts-cap { display: block; font-size: 11px; line-height: 1.2; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
.banner .bwin .pts-cap { margin: -2px 0 4px; font-size: 12px; color: rgba(255,255,255,.72); }

/* the rating's three groups: the podium, places 4–10, everyone else */
.rating tr.grp td, .rgrp { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 16px 10px 6px; border: 0; background: none; }
.rating tr.top td { background: rgba(233,236,242,.06); }
.rcard.top { border-color: rgba(233,236,242,.35); background: rgba(233,236,242,.06); }
.rcard.rest { opacity: .9; }

/* ---- the look: a clean display face with Cyrillic, readable sizes and contrast, glass panels ---- */
:root {
  --bg: #06080e;
  --panel: rgba(15, 20, 34, 0.74);
  --panel-solid: #0e1322;
  --line: rgba(255, 255, 255, 0.10);
  --ink: #f3f6fc;
  --ink-2: #c1c9db;
  --ink-3: #939db3;
  --radius: 20px;
}
html, body { font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.tiny { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.note, .pts-cap, .place .who span, .rcard .who span, .rcard .meta { font-size: 13px; }
.brand b { font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand small { font-size: 11px; letter-spacing: .16em; color: var(--ink-3); }
nav.links a { font-size: 15px; font-weight: 600; padding: 8px 14px; }
nav.links a.on { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.panel { background: linear-gradient(180deg, rgba(24,30,50,.78), rgba(11,15,27,.8)); border-color: rgba(255,255,255,.09); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.35); backdrop-filter: blur(16px) saturate(130%); }
.panel h2 { font: 700 12px var(--font); letter-spacing: .16em; color: var(--ink-2); margin-bottom: 16px; }
@media (min-width: 1101px) { .grid-main { gap: 20px; grid-template-columns: 320px 1fr 320px; } } /* (a phone keeps its one column, set above) */
.stack { gap: 16px; }

.hero { padding: 40px 24px 28px; }
.hero h1 { font: 800 clamp(34px, 5vw, 62px)/1.04 var(--display); letter-spacing: -.01em; margin-bottom: 16px; text-shadow: none; background: linear-gradient(100deg, #ff6b6b 0%, #ffffff 46%, #6aa8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(34,197,94,.28)); }
.hero p { font-size: 17px; line-height: 1.55; color: #d3dae8; max-width: 660px; }
.cta { gap: 12px; margin-top: 26px; }
.btn { padding: 11px 18px; border-radius: 12px; font: 600 15px var(--font); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.cta .btn { padding: 15px 28px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.btn.red { background: linear-gradient(135deg, #dc2626, #ff5a5a); box-shadow: 0 10px 30px rgba(239,68,68,.35); }
.btn.blue { background: linear-gradient(135deg, #15803d, #4ade80); box-shadow: 0 10px 30px rgba(34,197,94,.35); }
.btn.gold { background: linear-gradient(135deg, #cfd4dc, #ffffff); box-shadow: 0 10px 30px rgba(233,236,242,.3); }
.stats { gap: 12px; margin-top: 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px 10px 14px; border-radius: 16px; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.stat b { font-weight: 800; font-size: clamp(18px, 1.55vw, 24px); letter-spacing: -.01em; white-space: nowrap; }
.stat span { font-size: 13px; color: var(--ink-2); letter-spacing: 0; margin-top: 4px; }

.drawboard { font-size: 16px; padding: 14px 22px; border-radius: 999px; color: var(--ink); background: linear-gradient(90deg, rgba(233,236,242,.14), rgba(14,19,34,.9) 28%, rgba(14,19,34,.9) 72%, rgba(34,197,94,.14)); border-color: rgba(233,236,242,.38); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.drawboard .db-draw { font-weight: 700; font-size: 17px; letter-spacing: 0; }
.podium .place, .row, .hexcard, .rcard { border-radius: 14px; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.podium .place { padding: 12px 14px; }
.place .who b { font-size: 16px; }
.place .pts, .rcard .pts { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.row { padding: 12px 14px; font-size: 15px; }
.row .vs { font: 700 14px var(--font); letter-spacing: 0; color: var(--ink); }
.badge { font-size: 11px; padding: 3px 8px; }
.hexcard b { font-size: 14px; }
.empty { color: var(--ink-2); font-size: 15px; }
textarea.prompt { font-size: 13px; line-height: 1.5; border-radius: 12px; padding: 12px; }
.field { font-size: 15px; padding: 11px 12px; border-radius: 12px; }
table.rating th, table.rounds th { font-size: 12px; color: var(--ink-2); }
table.rating td { font-size: 15px; }
.rating tr.grp td, .rgrp { font: 700 12px var(--font); letter-spacing: .14em; color: var(--ink-2); }
.res { font: 700 12px var(--font); letter-spacing: .06em; padding: 3px 10px; }
.rules h3 { font: 800 16px var(--display); letter-spacing: 0; text-transform: none; }
.rules ul { color: #d3dae8; font-size: 16px; }
.profile .nm { font-weight: 800; letter-spacing: -.01em; }
footer { font-size: 13px; color: var(--ink-3); }
.toast { font-size: 15px; padding: 12px 18px; border-radius: 12px; border-color: rgba(233,236,242,.4); box-shadow: 0 18px 50px rgba(0,0,0,.6); }

/* over the ring: every caption on a solid backing, nothing under 13 px */
.hud { background: linear-gradient(rgba(3,5,10,.95), rgba(3,5,10,.78) 68%, transparent); }
.hud .corner { background: rgba(7,10,19,.86); border-color: rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.hud .corner .nm { font-weight: 800; letter-spacing: 0; color: #fff; font-size: clamp(15px, 1.5vw, 21px); }
.hud .corner.red .nm { color: #ffd0d0; } .hud .corner.blue .nm { color: #d3e3ff; }
.corner .run { font: 800 28px var(--display); }
.hud .accepted { font-size: 13px; min-height: 17px; letter-spacing: .02em; }
.hud .gong { background: rgba(4,6,12,.88); border-color: rgba(233,236,242,.4); }
.hud .gong .rd { font: 800 12px var(--display); letter-spacing: .02em; color: #fff; }
.hud .gong .ph { font: 700 13px var(--font); letter-spacing: .04em; text-transform: none; color: #ffffff; }
.gong .tm { font-weight: 800; letter-spacing: -.01em; }
.hudmsg { width: min(760px, calc(100% - 24px)); margin: 14px auto 0; padding: 22px 28px 24px; border-radius: 20px; background: rgba(5,8,16,.93); border: 1px solid rgba(233,236,242,.45); box-shadow: 0 24px 60px rgba(0,0,0,.65); backdrop-filter: blur(16px); color: var(--ink); font-size: 18px; line-height: 1.5; }
.hudmsg b { display: block; font: 800 clamp(22px, 2.6vw, 36px)/1.15 var(--display); color: #fff; margin-bottom: 10px; }
.hudmsg .tiny { font-size: 16px; color: #d6ddeb; }
.hudmsg .cta { margin-top: 16px; }
.announce .big { font-weight: 800; letter-spacing: 0; }
.announce .sub { font: 800 clamp(15px, 2vw, 22px) var(--display); letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.soundgate { animation: none; background: rgba(6,9,18,.94); border-color: rgba(233,236,242,.8); font: 700 16px var(--font); box-shadow: 0 0 0 0 rgba(233,236,242,.5), 0 14px 40px rgba(0,0,0,.6); animation: gate 2.2s infinite; }
@keyframes gate { 50% { box-shadow: 0 0 0 10px rgba(233,236,242,0), 0 14px 40px rgba(0,0,0,.6); } }
.livebadge { font: 800 11px var(--font); letter-spacing: .08em; padding: 2px 7px; }
.winner .crown, .winner .score { font-weight: 800; letter-spacing: 0; }
.banner .bhead { font-weight: 800; letter-spacing: 0; text-transform: none; }
.banner .btext { font-size: clamp(15px, 1.3vw, 18px); }
.banner .bwin .tiny { font-size: 14px; color: #e3e9f5; }
.banner .bwin .pts-cap { font-size: 13px; }
@media (max-width: 760px) {
  .hero { padding: 26px 14px 20px; }
  .hero p { font-size: 16px; }
  .cta .btn { padding: 13px 20px; font-size: 15px; }
  .drawboard { border-radius: 18px; font-size: 15px; }
  .hud .corner .nm { font-size: 12px; }
  .hud .accepted { font-size: 10px; min-height: 13px; }
  .hud .gong .rd { font-size: 8px; } .hud .gong .ph { font-size: 9px; }
  .hudmsg { padding: 16px 16px 18px; font-size: 16px; }
  .hudmsg .tiny { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .soundgate { animation: none; } .btn:hover { transform: none; } }

/* the ring with nobody in it: the arena's state in the lower third, with fights to watch again */
.banner .bidle { padding: 12px 18px 14px; }
.banner .bidle .crown { font-size: clamp(18px, 2.2vw, 28px); animation: none; }
.banner .bidle .crown span { color: #ffffff; font-variant-numeric: tabular-nums; }
.banner .bidle .tiny { font-size: 15px; color: #e3e9f5; max-width: 760px; margin: 4px auto 0; }
.idlelinks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.idlelinks .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
@media (max-width: 760px) { nav.links { grid-template-columns: repeat(4, 1fr); } .banner .bidle .tiny { font-size: 13px; } }
@media (max-width: 760px) { .brand b { font-size: 13px; letter-spacing: 0; } }
@media (max-width: 380px) { .brand b { font-size: 11px; } }
.stat { min-width: 0; overflow: hidden; }
.stat b.long { font-size: clamp(13px, 1.05vw, 17px); line-height: 1.75; }
@media (max-width: 760px) { .stat b.long { font-size: 17px; } }

/* the ring page: the header (and its settings menu) stays above the arena */
body.fightpage > .wrap:first-of-type { z-index: 6; }
/* the replay and its speed */
.replaybox { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.speed { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.speed select.field { width: auto; padding: 7px 30px 7px 10px; font-size: 14px; background-position: right 8px center; background-size: 14px; }

/* the season's line: until when it runs, or its winners */
.seasonbox { margin: 0 0 16px; padding: 12px 20px; border-radius: 16px; border: 1px solid rgba(233,236,242,.3); background: rgba(233,236,242,.06); font-size: 15px; line-height: 1.5; text-align: center; }
.seasonbox a { color: var(--ink); text-decoration: none; font-weight: 600; }
.seasonbox a.more { color: var(--gold); margin-left: 8px; }
.seasonrow { margin-top: 14px; }
.seasonrow .badge { font-size: 13px; padding: 5px 12px; text-transform: none; letter-spacing: 0; }
.certbox { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.certbox img { width: min(480px, 100%); aspect-ratio: 3 / 2; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
/* the jury's cards under the rounds table */
.cards { margin-top: 14px; }
.cards h3 { font: 800 17px var(--display); margin: 0 0 12px; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.jcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.03); min-width: 0; }
.jcard .chead { margin-bottom: 10px; font-size: 16px; }
.jrow { font-size: 14px; line-height: 1.5; margin: 6px 0; overflow-wrap: anywhere; }
.jrow > span:first-child { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.jrow code, .cardpage { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.jrow code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }
.jrow code.no { color: var(--bad); }
.jcard details { margin-top: 10px; }
.jcard summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.cardpage { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow: auto; margin: 10px 0 0; padding: 12px; border-radius: 10px; background: rgba(0,0,0,.4); border: 1px solid var(--line); color: var(--ink); }
table.rounds tr.off td { opacity: .55; }

/* the task in plain words, on top of a round's cards */
.plain { margin: 0 0 16px; padding: 14px 18px; border: 1px solid rgba(252,211,77,.32); border-left: 4px solid #fcd34d; border-radius: 12px; background: rgba(252,211,77,.07); }
.plain b { display: block; margin-bottom: 6px; font: 700 13px var(--display); color: #fcd34d; }
.plain p { margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; color: var(--ink); }

/* while the browser holds the theme back: a button in sight, bottom left */
.musicgate { position: fixed; left: 16px; bottom: 16px; z-index: 60; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(233,236,242,.8); background: rgba(6,9,18,.94); color: #fff; font: 700 15px var(--font); cursor: pointer; box-shadow: 0 0 0 0 rgba(233,236,242,.5), 0 14px 40px rgba(0,0,0,.6); animation: gate 2.2s infinite; }
.musicgate:hover { background: rgba(30,36,56,.95); }
@media (prefers-reduced-motion: reduce) { .musicgate { animation: none; } }

/* a fight in the arena's lists: each name whole on one line, the cup beside it */
.row.bout .r, .row.bout .b { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow-wrap: normal; }
.row.bout .b { justify-content: flex-end; }
.row.bout .dot, .row.bout .wcup { flex: none; }
.row.bout .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* a result in the arena's list: a small scoreboard, one fighter a line */
.row.result { display: block; }
.row.result .line { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 2px 0; }
.row.result .dot, .row.result .wcup { flex: none; }
.row.result .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row.result .pts { margin-left: auto; flex: none; font: 800 18px var(--display); font-variant-numeric: tabular-nums; }
.row.result .cap { margin-top: 2px; text-align: right; font-size: 12px; color: var(--ink-3); }

/* a card in plain words: what the agent did, what it chose, what it should have chosen */
.jwhy { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid #22c55e; background: rgba(34,197,94,.07); }
.jwhy.no { border-left-color: #f97316; background: rgba(249,115,22,.07); }
.jwhy > b { display: block; margin-bottom: 4px; font: 700 13px var(--display); color: var(--ink-2); }
.jwhy p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.jlabel { margin: 8px 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.jtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.jtable th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.jtable td { padding: 5px 6px; color: var(--ink); overflow-wrap: anywhere; }
.jtable tr.ok td { background: rgba(34,197,94,.12); }
.jtable tr.no td { background: rgba(249,115,22,.10); }
.jtable td.diff { color: #fff; background: rgba(239,68,68,.55) !important; font-weight: 700; border-radius: 4px; }
.jline { white-space: pre-wrap; padding: 6px 8px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.jline.ok { background: rgba(34,197,94,.12); }
.jline.no { background: rgba(249,115,22,.10); }

/* a chosen or right line as column: value pairs; what differs is marked */
.jrec { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.jrec.ok { background: rgba(34,197,94,.12); }
.jrec.no { background: rgba(249,115,22,.10); }
.jrec > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jrec span { min-width: 110px; font-size: 12px; color: var(--ink-3); }
.jrec b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.jrec.no b.diff { color: #fff; background: rgba(239,68,68,.6); padding: 0 6px; border-radius: 5px; }
.jrec.ok b.diff { color: #fff; background: rgba(34,197,94,.55); padding: 0 6px; border-radius: 5px; }

/* the judge's chain on a card, and the losses of the whole fight */
.jchain { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.jchain.ok { border-left: 4px solid #22c55e; }
.jchain.warn { border-left: 4px solid #cfd4dc; }
.jchain.bad { border-left: 4px solid #ef4444; background: rgba(239,68,68,.08); }
.jverdict { font: 700 15px var(--font); margin-bottom: 6px; color: var(--ink); }
.jchain details { margin-top: 6px; }
.jorder { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.jcase { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.jcase a { color: #fcd34d; }
.losses { margin: 12px 0 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(239,68,68,.4); background: rgba(239,68,68,.06); }
.losses > b { display: block; margin-bottom: 8px; font: 700 14px var(--display); color: #fca5a5; }
.lossrow { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.loss { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.loss > b { font: 800 22px var(--display); }
.loss.bad > b { color: #f87171; }
.loss.ok > b { color: #4ade80; }

/* ================================================================== the arena look (2026-11-23)
   Every page in the front page's style: the dark arena behind, a dark header band, metal titles,
   strict panels with cut corners, red and green accents, steel instead of gold. Nothing cartoonish:
   places are numbers, no cups, no medals. */
:root {
  --bg: #07080c;
  --panel: rgba(10, 12, 17, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef1f6;
  --ink-2: #b4bcc9;
  --ink-3: #7c8492;
  --red: #ff3b3b;
  --green: #22e07a;
  --gold: #e9ecf2; /* steel, not gold */
  --radius: 0px;
  --cut: 14px;
  --display: 'Unbounded', var(--font);
}
html { background: var(--bg); }
body { background: transparent; }
#bg { display: none; }
/* the arena, far behind: blurred and dark, the robots out of focus */
body::before { content: ''; position: fixed; inset: -40px; z-index: -1; pointer-events: none; background: url(home/arena.jpg) 50% 35% / cover no-repeat; filter: blur(16px) brightness(.34) saturate(.9); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 50% at 50% 0%, rgba(255,255,255,.05), transparent 70%), linear-gradient(180deg, rgba(7,8,12,.2), rgba(7,8,12,.75)); }

/* ---- the header: one thin line across the whole screen, the brand in the left corner, the rings in the
   middle, the pages and the gear in the right corner. Clear at the top of the page so the picture behind
   shows whole; once the page scrolls, a light dark glass so the words stay readable. */
header.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 10px 28px; margin: 0 calc(50% - 50vw) 14px; width: auto; border-bottom: 1px solid transparent; transition: border-color .3s; }
header.top::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7,8,12,.55), rgba(7,8,12,0)); transition: background .3s, backdrop-filter .3s; }
header.top.scrolled { border-bottom-color: rgba(255,255,255,.08); }
header.top.scrolled::before { background: rgba(7,8,12,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
header.top .brand { margin-right: auto; }
header.top nav.rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; order: 0; grid-column: auto; }
header.top nav.links { order: 1; }
header.top .gear { order: 2; }
header.top nav.rings .ringpill { background: rgba(7,8,12,.35); backdrop-filter: blur(4px); }
/* not room for the rings in the middle: they go on a line of their own under the bar */
@media (max-width: 1240px) {
  header.top { flex-wrap: wrap; row-gap: 6px; }
  header.top nav.rings { position: static; transform: none; order: 3; flex: 1 1 100%; justify-content: center; }
}
.brand svg { width: 40px; height: 40px; color: #e8ebf2; }
.brand > span { display: flex; flex-direction: column; line-height: 1; border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; }
.brand b { font: 900 italic 22px var(--display); letter-spacing: .02em; transform: skewX(-8deg); transform-origin: left; }
.brand small { font-size: 10px; letter-spacing: .34em; color: var(--ink-2); margin-top: 6px; }
nav.links { gap: 0; }
nav.links a { font: 600 12px var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); padding: 6px 18px; border: 0; border-left: 1px solid rgba(255,255,255,.16); border-radius: 0; background: none; }
nav.links a:first-child { border-left: 0; }
nav.links a:hover { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.55); background: none; }
nav.links a.on { background: none; color: #fff; box-shadow: inset 0 -2px 0 #fff; }
/* a phone: the four links share the row; tighter letters so the longest word fits */
@media (max-width: 760px) { nav.links a { min-width: 0; padding: 8px 2px; font-size: 11px; letter-spacing: .05em; text-align: center; overflow: hidden; text-overflow: ellipsis; } }
.gearbtn { border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }

/* ---- panels: strict, cut corners, a thin edge */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0; box-shadow: none; backdrop-filter: blur(10px); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.panel h2 { font: 800 italic 15px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 12px; }
.panel h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); }

/* ---- titles: brushed metal, leaning forward */
.hero h1 { font: 900 clamp(28px, 3.4vw, 54px)/1.02 var(--display); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: -.01em; transform: skewX(-8deg); background: linear-gradient(180deg, #ffffff 0%, #d6dae2 30%, #7f8796 55%, #e6e9ef 75%, #a2a9b5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 26px rgba(0,0,0,.75)); }
.hero p { color: var(--ink-2); }

/* ---- buttons: square, cut, letter-spaced; red and green, steel for the rest */
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .16em; font: 700 12px var(--font); padding: 12px 20px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: none; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn:hover { background: rgba(255,255,255,.12); transform: none; }
.btn.red { background: linear-gradient(180deg, #e3262f, #a3121a); border-color: #ff5a5a; box-shadow: none; }
.btn.red:hover { background: linear-gradient(180deg, #ff3b44, #b8141d); }
.btn.blue { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.55); box-shadow: none; }
.btn.blue:hover { background: #fff; color: #000; }
.btn.gold { background: #eef1f6; color: #07080c; border-color: #fff; box-shadow: none; }
.btn.gold:hover { background: #fff; }
.cta .btn { padding: 14px 26px; font-size: 12px; border-radius: 0; }
.btn.small { padding: 8px 14px; font-size: 11px; }

/* ---- numbers and tiles */
.stat { border-radius: 0; background: rgba(255,255,255,.03); border: 1px solid var(--line); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.stat b { font: 800 italic 26px var(--display); }
.stat span { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.stat.hot b { color: var(--red); }

/* ---- the live board and the season's line: steel, not gold */
.drawboard { border-radius: 0; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(90deg, rgba(255,59,59,.12), rgba(10,12,17,.9) 30%, rgba(10,12,17,.9) 70%, rgba(34,224,122,.12)); box-shadow: none; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.drawboard .db-draw { color: #fff; font: 800 italic 16px var(--display); letter-spacing: .02em; }
.seasonbox { border-radius: 0; border: 1px solid rgba(255,255,255,.12); background: rgba(10,12,17,.8); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.seasonbox .more, .seasonbox a { color: #fff; }

/* ---- places: a number, never a cup */
.placeno { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; font: 900 italic 18px var(--display); color: #fff; border: 1px solid rgba(255,255,255,.28); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.placeno.p1 { border-color: #fff; background: rgba(255,255,255,.12); }
.podium .place { border-radius: 0; background: rgba(255,255,255,.03); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.podium .place:hover { border-color: rgba(255,255,255,.35); }
.place .pts { font: 800 italic 22px var(--display); }

/* ---- small things */
.badge { border-radius: 0; letter-spacing: .14em; }
.badge.id { border-color: rgba(255,255,255,.45); color: #fff; }
.field { border-radius: 0; background: rgba(0,0,0,.45); }
.tabs .btn.gold { background: #fff; color: #000; }
table.rating th { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.wrap { position: relative; z-index: 1; }
.wcup { font: 800 9px var(--font); letter-spacing: .18em; color: #07080c; background: #fff; padding: 2px 6px; margin-left: 6px; }
.medal { font: 900 italic 18px var(--display); color: #fff; }
/* the music button the browser asks for, and the ring's sound gate: steel, square */
.soundgate { border-radius: 0; border-color: rgba(255,255,255,.6); box-shadow: none; animation: none; text-transform: uppercase; letter-spacing: .14em; font: 700 12px var(--font); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.musicgate { border-radius: 0; border-color: rgba(255,255,255,.6); box-shadow: none; animation: none; text-transform: uppercase; letter-spacing: .14em; font: 700 12px var(--font); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }

@media (max-width: 760px) {
  header.top { padding: 8px 14px; gap: 8px; }
  header.top nav.links { order: 3; flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  header.top nav.rings { order: 4; }
}

/* small words read clearly on the dark: a little lighter grey, no thinning */
:root { --ink-2: #ccd3e1; --ink-3: #a7b0c2; }
html, body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }

/* the music button waits small in a corner; on the ranking it goes to the right, the robot sits on the left */
.musicgate { padding: 9px 14px; font-size: 11px; }
body.rankpage .musicgate { left: auto; right: 16px; }
/* the ring's sound button sits below the corner banner, not on it */
.soundgate { top: 56%; }

/* moving between the arena's pages: a short cross-fade instead of a blank flash (browsers without it
   simply load the next page) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* the registration panel: reached from the Arena button and the rings' cards, lit for a moment */
#enter { scroll-margin-top: 92px; }
#enter.spot { animation: enterspot 2.4s ease-out 1; }
@keyframes enterspot { 0%, 30% { box-shadow: 0 0 0 2px rgba(242,207,110,.9), 0 0 40px rgba(242,207,110,.35); } 100% { box-shadow: 0 0 0 0 rgba(242,207,110,0); } }
@media (prefers-reduced-motion: reduce) { #enter.spot { animation: none; outline: 2px solid rgba(242,207,110,.8); } }
