/* KFC: Kock Fight Club broadcast look: near-black navy, RED / BLUE corners, gold money, condensed display type, sharp corners,
   slanted headers, live dots, tickers. Animations use transform and opacity only. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url('/fonts/chakra-petch-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url('/fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #050816; --bg2: #0a1026; --panel: #0d1531; --panel2: #121c3f; --line: #1f2b57; --line2: #2b3a73;
  --text: #e9eefc; --dim: #8b97c2; --dim2: #5d6896;
  --red: #ff3b3b; --red2: #b3132b; --blue: #2f8cff; --blue2: #1252b8; --gold: #ffc531; --gold2: #c98a00; --green: #33e08a;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --mono: 'Chakra Petch', ui-monospace, monospace;
  --slant: 14px; --ease: cubic-bezier(.2, .9, .25, 1); --snap: cubic-bezier(.3, 1.6, .5, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { overflow-x: clip; }
body { font: 500 17px/1.35 var(--display); letter-spacing: .01em; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(255,59,59,.10), transparent 60%), radial-gradient(1200px 500px at 85% -10%, rgba(47,140,255,.12), transparent 60%), var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.red { color: var(--red); } .blue { color: var(--blue); } .gold { color: var(--gold); } .dim { color: var(--dim); }
.hide { display: none !important; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: stretch; height: 54px; background: linear-gradient(#0b1230, #070b1d); border-bottom: 2px solid var(--line); }
.brand { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 30px 0 16px; background: linear-gradient(100deg, #141d45, #0a1029 80%); clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); text-transform: uppercase; border-right: 0; }
.brand::after { content: ''; position: absolute; left: 0; right: var(--slant); bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }
.brand .mark { font: 800 italic 35px/.84 var(--display); letter-spacing: .03em; color: var(--gold); text-shadow: 2px 2px 0 #05060e; }
.nav { display: flex; align-items: stretch; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: flex; align-items: center; padding: 0 14px; font: 800 italic 17px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover { color: #fff; } .nav a:hover::after, .nav a.on::after { transform: scaleX(1); } .nav a.on { color: #fff; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font: 800 italic 14px/1 var(--display); letter-spacing: .1em; color: #fff; background: #1a0a12; padding: 6px 10px; border: 1px solid var(--red2); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
.live-dot.off::before { background: var(--dim2); animation: none; }
.badge-demo { font: 800 italic 13px/1 var(--display); letter-spacing: .12em; background: var(--gold); color: #1a1200; padding: 6px 10px; transform: skewX(-12deg); }
.badge-demo span { display: inline-block; transform: skewX(12deg); }

/* ── ticker ── */
.ticker { position: relative; height: 32px; overflow: hidden; background: #0a0f24; border-bottom: 1px solid var(--line); display: flex; }
.ticker .tag { flex: none; z-index: 2; display: flex; align-items: center; padding: 0 18px 0 12px; background: var(--gold); color: #1a1200; font: 800 italic 15px/1 var(--display); letter-spacing: .08em; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.ticker .track { display: flex; gap: 38px; align-items: center; white-space: nowrap; padding-left: 30px; animation: tick 60s linear infinite; font: 600 15px/1 var(--display); color: var(--dim); }
.ticker .track b { color: #fff; font-weight: 800; } .ticker .track .amt { color: var(--gold); font-family: var(--mono); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── layout ── */
.wrap { max-width: 1500px; margin: 0 auto; padding: 18px 18px 40px; }
.grid-live { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); }
.panel > .body { padding: 14px; }
.hd { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 22px 0 14px; margin: -1px 0 0 -1px; width: max-content; max-width: 100%;
  background: linear-gradient(90deg, #1d2a5e, #16214b); clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); font: 800 italic 19px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.hd::before { content: ''; width: 5px; height: 18px; background: var(--gold); transform: skewX(-14deg); }
.hd.red-hd { background: linear-gradient(90deg, var(--red), var(--red2)); } .hd.red-hd::before { background: #fff; }
.hd.blue-hd { background: linear-gradient(90deg, var(--blue), var(--blue2)); } .hd.blue-hd::before { background: #fff; }
.hd .sub { font: 600 14px/1 var(--display); color: var(--dim); letter-spacing: .02em; text-transform: none; font-style: normal; }
.page-title { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 16px; }
.page-title h1 { margin: 0; font: 800 italic clamp(40px, 6vw, 72px)/0.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.page-title h1 em { color: var(--gold); font-style: italic; }
.page-title .bar { flex: 1; height: 6px; margin-bottom: 10px; background: repeating-linear-gradient(-55deg, var(--line2) 0 8px, transparent 8px 16px); }

/* ── stage + HUD ── */
.stage { position: relative; aspect-ratio: 16 / 9; background: #02040c; border: 1px solid var(--line2); overflow: hidden; }
.stage .arena-host, .stage canvas.fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 10px 12px; gap: 10px; }
.fighter { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; }
.fighter.b { grid-template-columns: 1fr 64px; text-align: right; }
.fighter.b .pic { order: 2; }
.pic { position: relative; width: 64px; height: 64px; background: #0b1130; border: 2px solid var(--red); overflow: hidden; }
.fighter.b .pic { border-color: var(--blue); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic .flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.pic.hit .flash { animation: flash .28s ease-out; }
.nameplate { font: 800 italic 22px/1 var(--display); text-transform: uppercase; text-shadow: 0 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nameplate small { font: 600 13px/1 var(--display); color: var(--dim); font-style: normal; text-transform: none; margin: 0 6px; }
.hpbar { position: relative; height: 16px; margin-top: 6px; background: #1a0d17; border: 1px solid #000; transform: skewX(-18deg); overflow: hidden; }
.fighter.b .hpbar { transform: skewX(18deg); background: #0b1230; }
.hpbar .trail, .hpbar .fill { position: absolute; inset: 0; transform-origin: left center; }
.fighter.b .hpbar .trail, .fighter.b .hpbar .fill { transform-origin: right center; }
.hpbar .trail { background: #fff; transition: transform .6s .35s var(--ease); }
.hpbar .fill { background: linear-gradient(180deg, #ff7a7a, var(--red) 50%, #c4162a); transition: transform .12s linear; }
.fighter.b .hpbar .fill { background: linear-gradient(180deg, #7ab8ff, var(--blue) 50%, #1758c4); }
.hpbar.low .fill { animation: lowhp .6s infinite alternate; }
.hpnum { font: 700 13px/1 var(--mono); color: var(--dim); margin-top: 4px; }
.fighter.shake { animation: shake .35s; }
.clock { min-width: 96px; text-align: center; background: #000c; border: 1px solid var(--line2); padding: 4px 10px 6px; }
.clock .t { font: 700 30px/1 var(--mono); }
.clock .l { font: 800 italic 12px/1 var(--display); letter-spacing: .14em; color: var(--gold); margin-top: 3px; }
.hud-odds { position: absolute; top: 96px; left: 12px; right: 12px; display: flex; justify-content: space-between; font: 700 14px/1 var(--mono); }
.hud-odds span { background: #000a; padding: 4px 8px; }
.lower3 { position: absolute; left: 6%; right: 6%; bottom: 18px; display: flex; align-items: stretch; opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .3s var(--ease); }
.lower3.show { opacity: 1; transform: none; }
.lower3 .who { flex: none; display: flex; align-items: center; padding: 0 18px 0 12px; background: var(--gold); color: #140d00; font: 800 italic 15px/1 var(--display); letter-spacing: .1em; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.lower3 .txt { flex: 1; padding: 10px 14px; background: linear-gradient(90deg, #0b1231f2, #0b1231c0); border-bottom: 3px solid var(--gold); font: 600 20px/1.2 var(--display); }
.lower3.red .txt { border-color: var(--red); } .lower3.blue .txt { border-color: var(--blue); }
.banner { position: absolute; left: 0; right: 0; top: 38%; display: flex; justify-content: center; opacity: 0; }
.banner .b { position: relative; overflow: hidden; padding: 10px 60px; font: 800 italic clamp(46px, 9vw, 120px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #fff; background: var(--red); clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); text-shadow: 0 4px 0 #0006; }
.banner.blue .b { background: var(--blue); } .banner.gold .b { background: var(--gold); color: #1a1200; text-shadow: none; }
.banner .b::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, #fff8, transparent); }
.banner.show { animation: smash .6s var(--snap) forwards; }
.banner.show .b::after { animation: sweep 1.2s .4s ease-out; }
.banner.out { animation: fadeout .4s forwards; }
.stamp { position: absolute; right: 8%; top: 22%; padding: 6px 18px; border: 5px solid var(--gold); color: var(--gold); font: 800 italic 54px/1 var(--display); letter-spacing: .06em; transform: rotate(-12deg) scale(0); opacity: 0; }
.stamp.show { animation: stamp .45s var(--snap) forwards; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-ctl { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; pointer-events: auto; }
.stage-ctl button { background: #000b; border: 1px solid var(--line2); padding: 6px 10px; font: 800 italic 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.stage-ctl button.on { border-color: var(--gold); color: var(--gold); }
.stage .between { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: radial-gradient(closest-side, #0c1640cc, #02040cee); text-align: center; }
.stage .between .k { font: 800 italic 16px/1 var(--display); letter-spacing: .2em; color: var(--gold); }
.stage .between .v { font: 800 italic clamp(40px, 7vw, 86px)/1 var(--display); text-transform: uppercase; }

/* ── fight card ── */
.fightcard { position: relative; overflow: hidden; }
.fc-row { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 8px; padding: 14px; }
.fc-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.fc-side .pic { width: 92px; height: 92px; }
.fc-side .nm { font: 800 italic 22px/1 var(--display); text-transform: uppercase; text-align: center; min-height: 22px; }
.fc-side .nk { font: 600 14px/1 var(--display); color: var(--dim); text-align: center; }
.fc-side .meta { font: 600 13px/1 var(--mono); color: var(--dim); }
.vs { position: relative; text-align: center; font: 800 italic 54px/1 var(--display); color: var(--gold); text-shadow: 0 0 22px #ffc53166; }
.fc-row.slam .fc-side.r { animation: inL .55s var(--ease) both; }
.fc-row.slam .fc-side.b { animation: inR .55s var(--ease) both; }
.fc-row.slam .vs { animation: vs .6s .35s var(--snap) both; }
.fightcard .flashbg { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.fightcard.slam .flashbg { animation: flash .5s .45s ease-out; }
.fightcard.slam { animation: shake .4s .5s; }
.statrows { padding: 0 14px 12px; display: grid; gap: 5px; }
.statrow { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 8px; align-items: center; font: 800 italic 12px/1 var(--display); letter-spacing: .1em; color: var(--dim); text-align: center; }
.statrow .bar { height: 7px; background: #0a0f26; overflow: hidden; }
.statrow .bar i { display: block; height: 100%; transform: scaleX(0); transition: transform .8s var(--ease); }
.statrow .bar.r i { background: var(--red); transform-origin: right; margin-left: auto; }
.statrow .bar.b i { background: var(--blue); transform-origin: left; }
.countdown { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); background: #070c22; }
.countdown .lbl { font: 800 italic 15px/1 var(--display); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.digits { display: flex; gap: 3px; perspective: 300px; }
.digits span { display: inline-block; min-width: 26px; padding: 4px 0; text-align: center; font: 700 30px/1 var(--mono); background: #121a3d; border: 1px solid var(--line2); }
.digits span.sep { min-width: 10px; background: none; border: 0; }
.digits span.flip { animation: flip .35s var(--ease); }
.countdown.closing { background: #2a0710; }
.countdown.closing .digits span { color: var(--red); border-color: var(--red); animation: pulsebox .5s infinite alternate; }
.countdown.closing .lbl { color: var(--red); }
.odds-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.odds-row > div { padding: 8px 14px; } .odds-row > div + div { text-align: right; border-left: 1px solid var(--line); }
.odds-row .o { font: 700 28px/1 var(--mono); } .odds-row .k { font: 800 italic 12px/1 var(--display); letter-spacing: .12em; color: var(--dim); }
.odds-row .o.tick { animation: tickup .45s var(--ease); }
.pundit { padding: 8px 14px 12px; font: 600 14px/1.2 var(--display); color: var(--dim); }
.hype { display: inline-flex; gap: 3px; vertical-align: middle; }
.hype i { width: 10px; height: 14px; background: #1b2550; transform: skewX(-18deg); }
.hype i.on { background: var(--gold); box-shadow: 0 0 10px #ffc53188; }
.tagline { position: absolute; top: 0; right: 0; padding: 6px 16px 6px 22px; background: var(--gold); color: #140d00; font: 800 italic 14px/1 var(--display); letter-spacing: .1em; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }

/* tug of war */
.tug { position: relative; height: 30px; display: flex; margin: 0 14px 12px; background: #0a0f26; overflow: visible; }
.tug .r, .tug .b { position: absolute; top: 0; bottom: 0; }
.tug .r { left: 0; width: 100%; background: linear-gradient(90deg, var(--red2), var(--red)); transform-origin: left; transition: transform .9s var(--ease); }
.tug .b { right: 0; width: 100%; background: linear-gradient(270deg, var(--blue2), var(--blue)); transform-origin: right; transition: transform .9s var(--ease); }
.tug .lab { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 8px; font: 700 14px/1 var(--mono); z-index: 2; text-shadow: 0 1px 0 #000; }
.tug .lab.l { left: 0; } .tug .lab.rr { right: 0; }
.spark { position: absolute; width: 6px; height: 6px; background: var(--gold); pointer-events: none; z-index: 3; }

/* bet slip */
.slip { position: relative; }
.slip.enter { animation: wipeIn .5s var(--ease) both; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-btn { position: relative; padding: 12px 8px; background: #0b1130; border: 2px solid var(--line2); text-align: center; transform: skewX(-8deg); transition: transform .2s var(--ease), box-shadow .25s, border-color .2s, background .2s; }
.side-btn > * { transform: skewX(8deg); display: block; }
.side-btn .k { font: 800 italic 14px/1 var(--display); letter-spacing: .14em; color: var(--dim); }
.side-btn .n { font: 800 italic 20px/1.05 var(--display); text-transform: uppercase; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-btn .o { font: 700 15px/1 var(--mono); margin-top: 4px; color: var(--gold); }
.side-btn.r:hover, .side-btn.r.on { border-color: var(--red); } .side-btn.b:hover, .side-btn.b.on { border-color: var(--blue); }
.side-btn.r.on { background: #3a0b16; box-shadow: 0 0 24px #ff3b3b77, inset 0 0 18px #ff3b3b44; transform: skewX(-8deg) scale(1.03); }
.side-btn.b.on { background: #0a2250; box-shadow: 0 0 24px #2f8cff77, inset 0 0 18px #2f8cff44; transform: skewX(-8deg) scale(1.03); }
.field { margin-top: 12px; }
.field label { display: block; font: 800 italic 13px/1 var(--display); letter-spacing: .12em; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
.amount { display: flex; align-items: center; background: #070c22; border: 2px solid var(--line2); }
.amount input { flex: 1; min-width: 0; padding: 10px 12px; background: none; border: 0; outline: 0; color: var(--gold); font: 700 26px/1 var(--mono); }
.amount .sym { padding: 0 12px; font: 800 italic 16px/1 var(--display); color: var(--dim); }
.amount.pop { animation: pop .3s var(--snap); }
.chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chips button { flex: 1; padding: 7px 0; background: #121a3d; border: 1px solid var(--line2); font: 700 13px/1 var(--mono); }
.chips button:hover { border-color: var(--gold); color: var(--gold); }
input.text { width: 100%; padding: 10px 12px; background: #070c22; border: 2px solid var(--line2); color: var(--text); font: 600 16px/1 var(--mono); outline: 0; }
input.text:focus, .amount:focus-within { border-color: var(--gold); }
.payways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; border: 1px solid var(--line2); }
.payways button { padding: 9px 4px; background: #0b1130; border: 0; border-right: 1px solid var(--line2); font: 800 italic 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.payways button:last-child { border-right: 0; } .payways button.on { background: var(--gold); color: #140d00; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border: 0; background: var(--gold); color: #140d00; font: 800 italic 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: transform .15s var(--ease), filter .2s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); } .btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { filter: grayscale(1) brightness(.6); cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.red { background: var(--red); color: #fff; } .btn.blue { background: var(--blue); color: #fff; } .btn.ghost { background: #1a2350; color: #fff; }
.slipnote { margin-top: 8px; font: 600 14px/1.25 var(--display); color: var(--dim); }
.status-steps { display: flex; gap: 4px; margin-top: 12px; }
.status-steps .st { flex: 1; padding: 7px 4px; text-align: center; background: #0a0f26; border-bottom: 3px solid var(--line2); font: 800 italic 12px/1 var(--display); letter-spacing: .08em; color: var(--dim2); text-transform: uppercase; transition: color .2s, border-color .3s; }
.status-steps .st.on { color: #fff; border-color: var(--gold); }
.status-steps .st.on.ok { border-color: var(--green); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
.lockstamp { position: absolute; left: 50%; top: 40%; z-index: 5; padding: 8px 20px; border: 5px solid var(--green); color: var(--green); background: #05160ecc; font: 800 italic 40px/1 var(--display); letter-spacing: .06em; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(2.6); }
.lockstamp.show { animation: lockslam 1.8s var(--snap) forwards; }
.slip.bad { animation: shake .45s; }
.slip .msg { margin-top: 10px; padding: 10px 12px; font: 600 15px/1.25 var(--display); border-left: 4px solid var(--gold); background: #0a0f26; }
.slip .msg.err { border-color: var(--red); color: #ffd0d0; } .slip .msg.ok { border-color: var(--green); }
.coin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, var(--gold) 45%, var(--gold2)); pointer-events: none; z-index: 6; }
.wallet-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); font: 600 14px/1 var(--display); color: var(--dim); }
.wallet-line b { color: var(--gold); font-family: var(--mono); }
.qrbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.qrbox .qr { flex: none; width: 150px; height: 150px; background: #fff; padding: 6px; }
.qrbox .qr img, .qrbox .qr svg { width: 100%; height: 100%; display: block; }
.copy { font: 600 12px/1.3 var(--mono); color: var(--dim); word-break: break-all; }

/* feeds and lists */
.feed { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 7px 14px; border-bottom: 1px solid #16204a; font: 600 15px/1.2 var(--display); animation: feedIn .45s var(--ease) both; }
.feed li .t { font: 500 12px/1 var(--mono); color: var(--dim2); }
.feed li .a { font: 700 14px/1 var(--mono); color: var(--gold); }
.feed li.big { animation: feedIn .45s var(--ease) both, goldflash 1.2s .2s; }
.feed li .sd { display: inline-block; width: 8px; height: 8px; margin-right: 6px; transform: skewX(-14deg); }
.feed li .sd.red { background: var(--red); } .feed li .sd.blue { background: var(--blue); }
.results { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; scrollbar-width: thin; }
.res { flex: none; width: 170px; background: #0a0f26; border: 1px solid var(--line); border-top: 3px solid var(--line2); padding: 8px; transition: transform .2s var(--ease), border-color .2s; }
.res.red { border-top-color: var(--red); } .res.blue { border-top-color: var(--blue); }
.res:hover { transform: translateY(-3px); border-color: var(--gold); }
.res .w { font: 800 italic 17px/1.05 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .m { font: 600 13px/1.2 var(--display); color: var(--dim); }
.burnbox { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.odo { display: flex; font: 700 30px/1 var(--mono); color: var(--gold); overflow: hidden; height: 36px; }
.odo .d { position: relative; width: .66em; height: 36px; overflow: hidden; }
.odo .d .col { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.odo .d .col span { height: 36px; line-height: 36px; text-align: center; }
.odo .c { width: .35em; text-align: center; line-height: 36px; }
.flame { position: relative; width: 26px; height: 34px; flex: none; }
.flame i { position: absolute; left: 50%; bottom: 0; width: 22px; height: 30px; margin-left: -11px; background: radial-gradient(circle at 50% 75%, #fff2a8, #ffb300 35%, #ff4d00 70%, transparent 72%); border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; transform-origin: 50% 100%; animation: flick .5s infinite alternate; }
.flame.burst i { animation: flick .5s infinite alternate, flameup .8s var(--snap); }
.mybets .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 14px; border-bottom: 1px solid #16204a; font: 600 14px/1.2 var(--display); animation: feedIn .4s var(--ease) both; }
.mybets .row .s { font: 800 italic 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; background: #1a2350; }
.mybets .row .s.won_paid, .mybets .row .s.won, .mybets .row .s.confirmed, .mybets .row .s.fed { background: #0e3b25; color: var(--green); }
.mybets .row .s.lost { background: #2a0a12; color: #ff9a9a; }
.mybets .row .s.late_refunded, .mybets .row .s.duplicate_refunded, .mybets .row .s.refunded, .mybets .row .s.below_min_refunded, .mybets .row .s.expired { background: #2b2205; color: var(--gold); }
.empty { padding: 14px; color: var(--dim2); font: 600 15px/1.3 var(--display); }

/* result overlay */
.resultcard { position: absolute; right: 16px; bottom: 76px; width: min(360px, 60%); background: #0b1231f0; border: 1px solid var(--gold); padding: 14px; transform-origin: 50% 50%; opacity: 0; transform: perspective(700px) rotateY(80deg); pointer-events: none; }
.resultcard.show { animation: flipin .7s var(--ease) forwards; }
.resultcard .w { font: 800 italic 34px/1 var(--display); text-transform: uppercase; }
.resultcard .rowx { display: flex; justify-content: space-between; margin-top: 8px; font: 600 16px/1 var(--display); color: var(--dim); }
.resultcard .rowx b { font: 700 20px/1 var(--mono); color: var(--gold); }
.resultcard .burned { display: flex; align-items: center; gap: 6px; }

/* cards (roster) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ccard { position: relative; display: block; background: linear-gradient(180deg, #121c42, #0b1230); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; animation: cardIn .5s var(--ease) both; }
.ccard:hover { border-color: var(--gold); box-shadow: 0 12px 30px #0008, 0 0 0 1px var(--gold), 0 0 28px #ffc53133; }
.ccard .top { position: relative; height: 150px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ccard .top::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, var(--c1) 0 52%, var(--c2) 52% 100%); opacity: .28; }
.ccard .top img { position: relative; width: 140px; height: 140px; object-fit: contain; }
.ccard .lv { position: absolute; left: 0; top: 10px; padding: 4px 12px 4px 8px; background: var(--gold); color: #140d00; font: 800 italic 14px/1 var(--display); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.ccard .cond { position: absolute; right: 8px; top: 10px; }
.ccard .info { padding: 10px 12px 12px; }
.ccard .nm { font: 800 italic 24px/1 var(--display); text-transform: uppercase; }
.ccard .nk { font: 600 14px/1.2 var(--display); color: var(--dim); }
.ccard .line { display: flex; justify-content: space-between; margin-top: 8px; font: 700 14px/1 var(--mono); }
.formbar { height: 6px; margin-top: 8px; background: #0a0f26; overflow: hidden; }
.formbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); transform-origin: left; transform: scaleX(0); transition: transform 1s .2s var(--ease); }
.condb { display: inline-block; padding: 4px 8px; font: 800 italic 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; background: #0e3b25; color: var(--green); transform: skewX(-12deg); }
.condb.tired { background: #2b2205; color: var(--gold); } .condb.sick { background: #3a0b16; color: #ff9a9a; } .condb.injured_pride { background: #2a1440; color: #d7a6ff; }
.champ { display: inline-block; padding: 3px 8px; background: linear-gradient(90deg, var(--gold), #fff1a8, var(--gold)); color: #140d00; font: 800 italic 12px/1 var(--display); letter-spacing: .1em; }

/* tables */
.tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.tabs button { position: relative; padding: 10px 18px; background: none; border: 0; font: 800 italic 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.tabs button.on { color: #fff; } .tabs button.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 3px; background: var(--gold); }
table.t { width: 100%; border-collapse: collapse; font: 600 15px/1.2 var(--display); }
table.t th { text-align: left; padding: 8px 10px; font: 800 italic 13px/1 var(--display); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; border-bottom: 1px solid var(--line2); }
table.t td { padding: 8px 10px; border-bottom: 1px solid #16204a; vertical-align: middle; }
table.t tr { transition: transform .5s var(--ease); }
table.t tbody tr { animation: feedIn .4s var(--ease) both; }
table.t td.n { font-family: var(--mono); text-align: right; } table.t th.n { text-align: right; }
table.t .rank { font: 800 italic 24px/1 var(--display); color: var(--dim2); width: 44px; }
table.t tr:nth-child(1) .rank { color: var(--gold); } table.t tr:nth-child(2) .rank { color: #d6def5; } table.t tr:nth-child(3) .rank { color: #e0965a; }
table.t .who { display: flex; align-items: center; gap: 10px; } table.t .who img { width: 38px; height: 38px; background: #0b1130; }
.tx { font: 500 13px/1 var(--mono); color: var(--blue); } .tx:hover { text-decoration: underline; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { position: relative; padding: 12px 14px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-left: 4px solid var(--gold); animation: cardIn .5s var(--ease) both; }
.tile .k { font: 800 italic 13px/1 var(--display); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.tile .v { font: 700 28px/1.1 var(--mono); margin-top: 6px; }
.tile.red { border-left-color: var(--red); } .tile.blue { border-left-color: var(--blue); }
.scroll-x { overflow-x: auto; }

/* profile */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.bigpic { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bigpic::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--c1) 0 55%, var(--c2) 55%); opacity: .3; }
.bigpic img { position: relative; width: 280px; height: 280px; object-fit: contain; animation: inL .6s var(--ease) both; }
.radar svg { width: 100%; max-width: 330px; display: block; margin: 0 auto; }
.radar .shape { transform-origin: 150px 150px; animation: radar .9s .2s var(--snap) both; }
.diary { list-style: none; margin: 0; padding: 0; }
.diary li { display: grid; grid-template-columns: 38px 92px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #16204a; font: 600 15px/1.25 var(--display); animation: popIn .4s var(--snap) both; }
.diary .ic { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: #1a2350; font: 800 italic 12px/1 var(--display); color: var(--gold); transform: skewX(-10deg); }
.diary .when { font: 500 12px/1.2 var(--mono); color: var(--dim2); }
.diary .fd { font: 700 13px/1 var(--mono); } .diary .fd.up { color: var(--green); } .diary .fd.down { color: #ff8a8a; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font: 600 15px/1.2 var(--display); }
.kv .k { color: var(--dim); font: 800 italic 13px/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; }

/* bracket */
.bracket { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 26px; align-items: center; min-width: 760px; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; height: 100%; }
.round h3 { margin: 0 0 4px; font: 800 italic 16px/1 var(--display); letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.match { position: relative; background: #0b1230; border: 1px solid var(--line2); animation: cardIn .5s var(--ease) both; }
.match .slot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font: 800 italic 16px/1.1 var(--display); text-transform: uppercase; transition: opacity .4s, background .4s; }
.match .slot + .slot { border-top: 1px solid var(--line); }
.match .slot img { width: 30px; height: 30px; }
.match .slot.win { background: linear-gradient(90deg, #ffc53133, transparent); } .match .slot.lose { opacity: .4; }
.match .slot.tbd { color: var(--dim2); }
.match.live { border-color: var(--red); box-shadow: 0 0 18px #ff3b3b55; }
.match.live::after { content: 'LIVE'; position: absolute; right: -1px; top: -18px; padding: 3px 8px; background: var(--red); font: 800 italic 11px/1 var(--display); letter-spacing: .14em; }
.match .slot.adv { animation: advance .7s var(--snap); }
.champbox { text-align: center; padding: 16px; border: 2px solid var(--gold); background: radial-gradient(closest-side, #ffc53122, transparent); }
.champbox img { width: 120px; height: 120px; }
.champbox .nm { font: 800 italic 28px/1 var(--display); text-transform: uppercase; color: var(--gold); }

/* footer */
.foot { margin-top: 30px; border-top: 2px solid var(--line); background: #040713; }
.foot .in { max-width: 1500px; margin: 0 auto; padding: 18px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; font: 600 14px/1.3 var(--display); color: var(--dim); }
.age { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--red); color: var(--red); font: 800 italic 18px/1 var(--display); border-radius: 50%; }
.foot .law { display: flex; align-items: center; gap: 10px; }

/* toasts and modals */
.toasts { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 240px; max-width: 360px; padding: 12px 14px; background: #0d1531f5; border: 1px solid var(--line2); border-left: 5px solid var(--gold); font: 600 15px/1.25 var(--display); animation: toastIn .4s var(--ease) both; }
.toast.err { border-left-color: var(--red); } .toast.ok { border-left-color: var(--green); }
.toast.out { animation: toastOut .3s forwards; }
.modal-bg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: #02040bcc; animation: fadein .2s both; }
.modal { position: relative; width: min(460px, 92vw); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--gold); animation: wipeIn .45s var(--ease) both; }
.modal .body { padding: 16px; }
.modal-bg.out { animation: fadeout .25s forwards; } .modal-bg.out .modal { animation: wipeOut .25s forwards; }
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: flex; }
.wipe i { flex: 1; background: var(--red); transform: translateX(-120%) skewX(-14deg); }
.wipe i:nth-child(2) { background: var(--gold); } .wipe i:nth-child(3) { background: var(--blue); }
.wipe.in i { animation: wipeCover .32s var(--ease) forwards; }
.wipe.in i:nth-child(2) { animation-delay: .04s; } .wipe.in i:nth-child(3) { animation-delay: .08s; }
.wipe.out i { transform: translateX(0) skewX(-14deg) scaleX(1.3); animation: wipeUncover .4s var(--ease) forwards; }
.wipe.out i:nth-child(2) { animation-delay: .05s; } .wipe.out i:nth-child(3) { animation-delay: .1s; }
.prose { max-width: 860px; font: 500 18px/1.5 var(--display); }
.prose h2 { font: 800 italic 30px/1 var(--display); text-transform: uppercase; margin: 26px 0 10px; }
.prose h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gold); margin-top: 8px; transform: skewX(-20deg); }
.prose code { font: 500 15px/1 var(--mono); background: #111a3c; padding: 2px 6px; }
.prose li { margin: 4px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #16204a; font: 600 16px/1.25 var(--display); animation: popIn .35s var(--snap) both; }
.check .ok { color: var(--green); font: 800 italic 16px/1 var(--display); } .check .bad { color: var(--red); font: 800 italic 16px/1 var(--display); }
.check .d { font: 500 12px/1.3 var(--mono); color: var(--dim2); word-break: break-all; }

/* keyframes */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
@keyframes lowhp { from { opacity: 1; } to { opacity: .55; } }
@keyframes smash { 0% { opacity: 0; transform: scale(2.4) rotate(-4deg); } 60% { opacity: 1; transform: scale(.94) rotate(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(560%); } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes inL { from { opacity: 0; transform: translateX(-70%) skewX(-12deg); } to { opacity: 1; transform: none; } }
@keyframes inR { from { opacity: 0; transform: translateX(70%) skewX(12deg); } to { opacity: 1; transform: none; } }
@keyframes vs { 0% { opacity: 0; transform: scale(3.2) rotate(-14deg); } 70% { opacity: 1; transform: scale(.9) rotate(2deg); } 100% { opacity: 1; transform: scale(1); } }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .2; } 100% { transform: rotateX(0); opacity: 1; } }
@keyframes pulsebox { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes tickup { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wipeIn { from { opacity: 0; transform: translateX(40px) skewX(-10deg); } to { opacity: 1; transform: none; } }
@keyframes wipeOut { to { opacity: 0; transform: translateX(-40px) skewX(-10deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lockslam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(2.6); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(.92); } 26% { transform: translate(-50%, -50%) rotate(-10deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(1); } }
@keyframes feedIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes goldflash { 0% { background: #ffc53155; } 100% { background: transparent; } }
@keyframes flick { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.9, 1.08) rotate(3deg); } }
@keyframes flameup { 0% { transform: scale(1); } 40% { transform: scale(1.6, 1.9); } 100% { transform: scale(1); } }
@keyframes flipin { 0% { opacity: 0; transform: perspective(700px) rotateY(80deg); } 100% { opacity: 1; transform: perspective(700px) rotateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes radar { from { opacity: 0; transform: scale(0) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes advance { 0% { transform: translateX(-30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) skewX(-8deg); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }
@keyframes wipeCover { from { transform: translateX(-120%) skewX(-14deg) scaleX(1.3); } to { transform: translateX(0) skewX(-14deg) scaleX(1.3); } }
@keyframes wipeUncover { from { transform: translateX(0) skewX(-14deg) scaleX(1.3); } to { transform: translateX(130%) skewX(-14deg) scaleX(1.3); } }

/* mobile */
@media (max-width: 1100px) { .grid-live { grid-template-columns: 1fr; } .profile { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 10px 10px 30px; }
  .brand { padding: 0 20px 0 10px; } .brand .mark { font-size: 25px; } .topbar { height: 48px; }
  .topbar .right .live-dot { display: none; }
  .nav a { padding: 0 9px; font-size: 15px; }
  .pic { width: 44px; height: 44px; } .fighter { grid-template-columns: 44px 1fr; } .fighter.b { grid-template-columns: 1fr 44px; }
  .nameplate { font-size: 15px; } .nameplate small { display: none; } .hpbar { height: 11px; } .hpnum { display: none; }
  .clock { min-width: 62px; padding: 3px 6px; } .clock .t { font-size: 20px; } .hud-top { padding: 6px; gap: 6px; }
  .hud-odds { top: 64px; font-size: 11px; }
  .lower3 { left: 2%; right: 2%; bottom: 8px; } .lower3 .txt { font-size: 14px; padding: 6px 8px; } .lower3 .who { font-size: 11px; padding: 0 12px 0 6px; }
  .stamp { font-size: 30px; } .resultcard { right: 6px; bottom: 48px; width: 70%; padding: 8px; } .resultcard .w { font-size: 22px; }
  .stage-ctl button { padding: 4px 6px; font-size: 11px; }
  .fc-side .pic { width: 70px; height: 70px; } .fc-side .nm { font-size: 18px; } .vs { font-size: 40px; }
  .diary li { grid-template-columns: 30px 1fr auto; } .diary .when { grid-column: 2; grid-row: 2; }
  .bigpic { height: 230px; } .bigpic img { width: 210px; height: 210px; }
  table.t { font-size: 14px; } table.t td, table.t th { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker .track { animation: none; }
}
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr !important; } }

/* fixes after the first screenshots */
.nav { min-width: 0; flex: 1 1 auto; }
.topbar .right { flex: none; }
.stage .between { inset: auto; left: 50%; bottom: 60px; transform: translateX(-50%); padding: 10px 26px 12px; gap: 4px; background: linear-gradient(180deg, #0b1231ee, #070b1dee); border: 1px solid var(--line2); border-bottom: 3px solid var(--gold); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.stage .between .v { font-size: clamp(30px, 4.6vw, 56px); }
.stage .between .k { font-size: 13px; }
@media (max-width: 1100px) {
  .grid-live > .col { display: contents; }
  #stage { order: 1; } #slip { order: 2; } .grid-live .grid-2 { order: 3; } .grid-live aside .panel { order: 4; }
}
@media (max-width: 640px) { .stage .between { bottom: 40px; padding: 6px 16px 8px; } .stage .between .dim { display: none; } .badge-demo { font-size: 11px; padding: 5px 7px; } }
.more { display: block; width: 100%; padding: 10px; background: #0b1130; border: 0; border-top: 1px solid var(--line); font: 800 italic 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 1100px) { .grid-live { grid-template-columns: minmax(0, 1fr); } }
.lockstamp { display: none; } .lockstamp.show { display: block; }
.banner { top: auto; bottom: 22%; }
.banner .b { font-size: clamp(30px, 5.4vw, 74px); white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; padding: 8px 46px; }
.stamp.hide-soft { animation: fadeout .5s forwards; }
.odo { height: auto; overflow: visible; }
.odo .dg { display: inline-block; min-width: .62em; text-align: center; }
.hud-odds.off { display: none; }
@media (max-width: 640px) { .hud-odds { display: none; } }

/* KFC: Kock Fight Club + styles */
.brand .kfc { margin-top: 3px; color: #fff; font: 800 italic 12px/1 var(--display); letter-spacing: .16em; white-space: nowrap; }
@media (max-width: 640px) { .brand .kfc { font-size: 8.5px; letter-spacing: .1em; margin-top: 2px; } }
.kfc-words { align-self: flex-end; margin-bottom: 8px; font: 800 italic 18px/1 var(--display); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; white-space: nowrap; }
.styleb { display: inline-block; padding: 3px 8px 3px 7px; font: 800 italic 11px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #33406f; transform: skewX(-12deg); white-space: nowrap; vertical-align: middle; border-left: 3px solid #fff3; }
.styleb.big { font-size: 15px; padding: 5px 12px; }
.styleb.kungfu { background: #b3261e; border-color: #ffd54f; } .styleb.karate { background: #f5f5f5; color: #111; border-color: #111; }
.styleb.muaythai { background: #1f5fd1; border-color: #ffd700; } .styleb.boxing { background: #c62828; border-color: #fff; }
.styleb.wrestling { background: #7b1fa2; border-color: #ff80ab; } .styleb.sumo { background: #283593; border-color: #fff; }
.styleb.judo { background: #1565c0; border-color: #fff; } .styleb.capoeira { background: #2e7d32; border-color: #ffd600; }
.styleb.taekwondo { background: #0f2c5c; color: #fff; border-color: #4fc3f7; } .styleb.ninjutsu { background: #0d0d12; border-color: #8c8c9c; }
.styleb.dizzyfist { background: #ef6c00; border-color: #fdd835; } .styleb.mma { background: #37474f; border-color: #ff3b3b; }
.nameplate .styleb { margin: 0 6px; font-size: 10px; }
.fc-side .styleb { margin-top: 2px; }
.ccard .stylerow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font: 600 13px/1 var(--display); color: var(--dim); }
.belt { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: linear-gradient(90deg, #6b4a00, var(--gold), #fff1a8, var(--gold), #6b4a00); color: #140d00; font: 800 italic 12px/1 var(--display); letter-spacing: .1em; border-radius: 2px; }
.belt::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #c62828; box-shadow: 0 0 0 2px #140d00; }
.chips-f { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chips-f button { background: none; border: 0; padding: 0; opacity: .55; transition: opacity .2s, transform .2s; }
.chips-f button.on, .chips-f button:hover { opacity: 1; transform: translateY(-2px); }
.master-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.master-card img { width: 96px; height: 96px; background: #0b1130; border: 2px solid var(--gold); }
.train-stage { position: relative; aspect-ratio: 16 / 9; background: #02040c; border: 1px solid var(--line2); overflow: hidden; }
.train-still { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; background: radial-gradient(closest-side, #16224f, #03050d); }
.train-still img { width: 70%; max-width: 260px; animation: popIn .5s var(--snap) both; }
.train-still .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: #0b1231e6; border-top: 3px solid var(--gold); font: 600 16px/1.25 var(--display); }
.train-still .scene { position: absolute; left: 12px; top: 12px; }
.diary li.train { cursor: pointer; } .diary li.train:hover { background: #121c42; }
.diary li.train .ic { background: var(--gold); color: #140d00; }
.watch { display: inline-flex; gap: 6px; align-items: center; font: 800 italic 12px/1 var(--display); letter-spacing: .1em; color: var(--gold); }
.fighter.b .nameplate small { margin-right: 8px; }

/* Big Boss Rooster + the warm red diner neon (DESIGN 11.5): only on the tournament page and the champion moment */
.boss { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 12px 14px; }
.boss.big { grid-template-columns: 150px 1fr; }
.boss img { width: 88px; height: 88px; background: radial-gradient(closest-side, #3a0a12, #0b1130); border: 2px solid var(--gold); }
.boss.big img { width: 150px; height: 150px; }
.boss .q { font: 700 italic 19px/1.25 var(--display); min-height: 48px; }
.boss.big .q { font-size: 26px; }
.boss .who { margin-top: 6px; font: 800 italic 14px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.boss .who span { display: block; color: var(--dim); font: 600 12px/1.3 var(--display); letter-spacing: .04em; text-transform: none; }
.hd.boss-hd { background: linear-gradient(90deg, var(--gold2), var(--gold)); color: #140d00; }
.hd.boss-hd::before { background: #140d00; }
:root { --neon: #ff2a3d; --neon-soft: #ff6b5a; }
body.neon .page-title h1 em, body.neon .kfc-words { color: var(--neon-soft); text-shadow: 0 0 6px #ff2a3d, 0 0 18px #ff2a3daa, 0 0 34px #ff2a3d66; animation: neonflick 6s infinite; }
body.neon .panel { border-color: #5a1420; box-shadow: 0 0 0 1px #ff2a3d22, 0 0 24px #ff2a3d1f; }
body.neon .hd { background: linear-gradient(90deg, #7a0f1d, #3a0a12); }
body.neon .hd::before { background: var(--neon-soft); box-shadow: 0 0 8px var(--neon); }
body.neon .page-title .bar { background: repeating-linear-gradient(-55deg, #ff2a3d88 0 8px, transparent 8px 16px); filter: drop-shadow(0 0 6px #ff2a3d); }
body.neon .champbox, .resultcard.neon, .champbox.neon { border-color: var(--neon); box-shadow: 0 0 10px #ff2a3d, 0 0 30px #ff2a3d88, inset 0 0 22px #ff2a3d44; background: radial-gradient(closest-side, #ff2a3d22, transparent), #0b1231f0; }
.resultcard.neon .w { text-shadow: 0 0 8px #ff2a3d; }
@keyframes neonflick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } 97% { opacity: 1; } }

/* devnet test banner (NETWORK=devnet): big, striped, impossible to miss */
.devnet-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 20px; color: #120b00;
  background: repeating-linear-gradient(-45deg, #ffcc33 0 22px, #ffb000 22px 44px); border-bottom: 3px solid #120b00; }
.devnet-banner > b { font: 900 italic 26px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.devnet-banner > .dim { color: #3a2a00; font-weight: 600; }
.devnet-banner .faucet { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.devnet-banner .faucet input { min-width: 280px; background: #fff8e0; color: #120b00; border-color: #120b00; }
.devnet-banner .faucet .out { font-weight: 700; }
.devnet-banner .faucet .out a { color: #120b00; text-decoration: underline; }
@media (max-width: 640px) { .devnet-banner > b { font-size: 19px; } .devnet-banner .faucet input { min-width: 0; flex: 1; } }
/* admin launch panel */
.launch .kv2 { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.launch .kv2 .k { color: var(--dim, #8c95b8); }
.launch .mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.launch .line { padding: 6px 10px; margin: 4px 0; border-left: 4px solid; }
.launch .line.bad { border-color: #ff3b3b; background: rgba(255, 59, 59, .1); }
.launch .line.warn { border-color: #ffb000; background: rgba(255, 176, 0, .1); }
.launch .line.good { border-color: #2fd07a; background: rgba(47, 208, 122, .1); }
.launch .big { font: 800 22px/1.1 var(--display); }

/* ── phone bet flow (2026-11-30): sticky PICK A SIDE bar, the bet slip as a bottom sheet ── */
.pickbar, .sheet-x, .sheet-bg { display: none; }
@media (max-width: 820px) {
  body.has-pickbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .pickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #0b1231f2, #060a1cfa); border-top: 2px solid var(--gold); box-shadow: 0 -8px 24px #0009; }
  .pickbar[hidden], body.sheet-open .pickbar { display: none; }
  .pickbar .pk { min-height: 58px; min-width: 0; display: grid; grid-template-rows: auto auto; grid-template-columns: 1fr auto; align-items: center; column-gap: 6px; padding: 6px 10px; border: 0; color: #fff; text-align: left; font: inherit; cursor: pointer; }
  .pickbar .pk.r { background: linear-gradient(135deg, #b81f2c, #ff3b3b); clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
  .pickbar .pk.b { background: linear-gradient(225deg, #1554c0, #2f8cff); clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); text-align: right; }
  .pickbar .pk .k { font: 800 italic 11px/1 var(--display); letter-spacing: .14em; opacity: .85; }
  .pickbar .pk .n { grid-row: 2; font: 800 italic 18px/1.05 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pickbar .pk .o { grid-row: 1 / 3; grid-column: 2; font: 700 17px/1 var(--mono); color: #fff; }
  .pickbar .pk.b .k, .pickbar .pk.b .n { grid-column: 2; } .pickbar .pk.b .o { grid-column: 1; }
  .pickbar .pk-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; }
  .pickbar .pk-mid .l { font: 800 italic 10px/1.1 var(--display); letter-spacing: .1em; color: var(--gold); text-align: center; }
  .pickbar .pk-mid .t { font: 700 20px/1 var(--mono); color: #fff; }
  .pickbar.closing .pk-mid .t { color: var(--red); }
  .pickbar.off .pk { filter: grayscale(.7) brightness(.7); }
  body.sheet-open { overflow: hidden; }
  body.sheet-open .sheet-bg { display: block; position: fixed; inset: 0; z-index: 58; background: #000a; }
  body.sheet-open #slip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; margin: 0; border-top: 3px solid var(--gold); box-shadow: 0 -12px 40px #000c; padding-bottom: env(safe-area-inset-bottom); animation: sheetUp .28s var(--ease) both; }
  body.sheet-open #slip .hd { position: sticky; top: 0; z-index: 2; }
  body.sheet-open #slip .hd { width: 100%; clip-path: none; height: 52px; }
  body.sheet-open .sheet-x { display: inline-block; margin-left: auto; padding: 8px 16px; min-height: 40px; background: #070b1dcc; border: 1px solid #fff5; color: #fff; font: 800 italic 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
  /* the confirm button sits in thumb reach: sticky at the bottom of the open sheet */
  body.sheet-open #btnConfirm { position: sticky; bottom: 0; z-index: 2; min-height: 54px; font-size: 20px; box-shadow: 0 -6px 16px #0d1531; }
  .side-btn { min-height: 64px; } .chips button { min-height: 44px; min-width: 44px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* wallet choices on phones without an injected wallet */
.wallet-open { margin-top: 10px; padding: 10px 12px; background: #0a0f26; border-left: 4px solid var(--gold); font: 600 15px/1.3 var(--display); }
.wallet-open .row2 { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wallet-open a.btn { flex: 1 1 140px; text-align: center; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* reconnect banner (never a popup) */
.net-banner { position: fixed; left: 50%; top: 10px; z-index: 90; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 20px); padding: 9px 16px; background: #1a0d17f2; border: 1px solid var(--red); border-left: 4px solid var(--red); color: #fff; font: 700 15px/1.2 var(--display); letter-spacing: .03em; transform: translate(-50%, -160%); transition: transform .25s var(--ease); pointer-events: none; }
.net-banner.show { transform: translate(-50%, 0); }
.net-banner.ok { border-color: var(--green); background: #0b1f17f2; }

/* accessibility: a visible focus ring for keyboard users everywhere */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input.text:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.amount input:focus-visible { outline: 0; } /* the amount box shows focus with its gold border */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { body.sheet-open #slip { animation: none; } .net-banner { transition: none; } }
@media (max-width: 820px) {
  /* pick bar: odds next to RED / BLUE, the name gets the whole second line */
  .pickbar .pk { grid-template-columns: auto 1fr; }
  .pickbar .pk .k { grid-column: 1; grid-row: 1; } .pickbar .pk .o { grid-column: 2; grid-row: 1; font-size: 15px; text-align: right; }
  .pickbar .pk .n { grid-column: 1 / 3; grid-row: 2; font-size: 17px; }
  .pickbar .pk.b .k { grid-column: 2; text-align: right; } .pickbar .pk.b .o { grid-column: 1; text-align: left; } .pickbar .pk.b .n { grid-column: 1 / 3; }
}
@media (max-width: 640px) {
  /* the subtitle needs the bottom of the stage: sound and camera buttons go to the top right, under the HUD */
  .stage-ctl { top: 62px; bottom: auto; }
}
.own-wallet { margin-top: 8px; border-left: 4px solid var(--gold); padding: 8px 10px; background: #0a0f26; }

/* owner 2026-11-30: page content appears at once, no entry animations on page change */
.ccard, .diary li, .check, .lb tr, table tbody tr, table.t tbody tr, .train-still img, .bigpic img, .radar .shape, .match, .tile, .mybets .row { animation: none !important; }
