/* Crownz: the royal arena by day. Royal blue, gold and the red and blue kings, drawn chunky with a
   dark outline and a hard drop like the game's own menus. Fonts are self-hosted (SIL Open Font License):
   Lilita One, Nunito. No Supercell artwork is used. */
@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --ink: #0c1a3d;
  --panel: #f3f7ff;
  --panel-2: #e1eafb;
  --line: #c5d2ec;
  --text: #0c1a3d;
  --muted: #4a5b85;
  --on-blue: #dce8ff;
  --gold: #ffcb3d;
  --elixir: #c63fd6;
  --red: #e8304a;
  --blue: #2463db;
  --green: #1f9a25;
  --g-gold: linear-gradient(180deg, #ffe873 0%, #ffc526 52%, #f39a08 100%);
  --g-blue: linear-gradient(180deg, #7cc0ff 0%, #3d8df5 50%, #1f5fd6 100%);
  --g-red: linear-gradient(180deg, #ff9a9d 0%, #f4455a 50%, #c91d38 100%);
  --g-green: linear-gradient(180deg, #a8f582 0%, #46cc40 50%, #1f9a25 100%);
  --g-elixir: linear-gradient(180deg, #ffb8f8, #e04be6 50%, #a41fc0);
  --g-deep: linear-gradient(180deg, #2456c4 0%, #163b98 100%);
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --edge: 3px solid var(--ink);
  --lift: inset 0 3px 0 rgba(255, 255, 255, .85), 0 7px 0 var(--ink), 0 22px 30px rgba(6, 16, 41, .35);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: #1b4fc4 linear-gradient(180deg, #3478ea 0%, #1f55cc 42%, #123a9c 100%) fixed;
  color: #fff; font: 700 16px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
/* the diamond tiling of the menu background */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%);
  background-size: 64px 64px; background-position: 0 0, 32px 32px;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.card :focus-visible, .result :focus-visible { outline-color: var(--blue); }
[hidden] { display: none !important; }

.ico { width: 1.3em; height: 1.3em; flex: none; }
.ico.line { width: 1.1em; height: 1.1em; }
/* white lettering with a dark outline and a hard shadow, the look of every title in the game */
h1, h2, .plate, .btn, .brand-name, .vs, .p-vs, .p-side b, .p-prize b, .p-prize i, .ticker-run span, .callout h3, .splitbar i, .steps li::before, .badge, .round-no b {
  font-family: var(--display); font-weight: 400; color: #fff;
  -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; text-shadow: 0 .1em 0 var(--ink);
}
h1, h2 { line-height: 1.02; letter-spacing: .01em; }
.kicker {
  display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(12, 26, 61, .5); color: var(--gold);
  font: 900 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .14em;
}
.small { font-size: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.row.tight { gap: 6px; justify-content: flex-end; }
.fine { font-size: 13px; color: var(--on-blue); }
.lede { font-size: 19px; line-height: 1.45; max-width: 34em; color: #fff; text-shadow: 0 2px 0 rgba(12, 26, 61, .45); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; text-underline-offset: 4px; }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 900; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, #1b49b6, #10318a); border-bottom: 4px solid var(--ink); box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .12); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-size: 27px; line-height: 1; color: var(--gold); }
.brand-name b { font-weight: 400; color: #fff; }
.hud { display: flex; align-items: center; gap: 10px; }
.navlinks { display: none; gap: 22px; margin-right: 10px; }
.navlinks a { font: 900 13px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--on-blue); padding: 8px 0; border-bottom: 3px solid transparent; }
.navlinks a:hover { color: #fff; border-color: var(--gold); }
.pill { padding: 4px 10px; border: 2px solid var(--on-blue); border-radius: 999px; font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.pill.mock { border-color: var(--gold); color: var(--gold); }
@media (min-width: 900px) { .navlinks { display: flex; } }
@media (max-width: 520px) { .pill:not(.mock), .top .btn.ghost { display: none; } .brand-name { font-size: 23px; } .brand-mark { width: 36px; height: 36px; } .top-in { padding: 0 14px; gap: 10px; } .hud { gap: 8px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  min-height: 50px; padding: 0 22px; border: var(--edge); border-radius: 14px; background: var(--g-gold);
  font-size: 21px; line-height: 1; letter-spacing: .02em; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -5px 0 rgba(0, 0, 0, .16), 0 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s, filter .12s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -5px 0 rgba(0, 0, 0, .16), 0 1px 0 var(--ink); }
.btn.ink { background: var(--g-green); }
.btn.ghost { background: var(--g-blue); }
.btn.sm { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 17px; }
.btn.lg { min-height: 66px; padding: 0 30px; border-radius: 18px; font-size: 30px; }
.btn.wide { width: 100%; }
.btn.wide, .btn.lg { white-space: normal; text-align: center; padding-block: 8px; }
@media (max-width: 520px) { .btn.lg { font-size: 25px; padding-inline: 18px; min-height: 60px; } }
.btn.icon-btn { width: 46px; min-height: 46px; padding: 0; border-radius: 12px; }
.btn .wicon { width: 28px; height: 28px; border-radius: 6px; }
.btn.loading { color: transparent !important; -webkit-text-stroke: 0 transparent; text-shadow: none; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn.loading::after { content: ""; position: absolute; width: 24px; height: 24px; border: 4px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
body.busy .btn:not(.loading) { opacity: .65; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 6px; font: 900 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
input {
  width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: var(--edge); border-radius: 12px; background: #fff; color: var(--text);
  font: 800 16px/1 var(--body); appearance: none; box-shadow: inset 0 4px 0 rgba(12, 26, 61, .1);
}
input::placeholder { color: #93a1c4; }
input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.row > input.grow { width: auto; }
.big-in { height: 70px; font: 400 38px/1 var(--display); letter-spacing: .02em; }
.code-in { font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; }
.code-in::placeholder { letter-spacing: .02em; text-transform: none; }
.segs { display: inline-flex; border: var(--edge); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.segs.wide { display: flex; }
.seg { flex: 1; min-height: 44px; padding: 0 12px; border: 0; border-left: var(--edge); background: none; color: var(--text); cursor: pointer; font: 900 13px/1.1 var(--body); text-transform: uppercase; letter-spacing: .05em; }
.seg:first-child { border-left: 0; }
.seg:hover { background: #cfe0fb; }
.seg.on { background: var(--g-blue); color: #fff; text-shadow: 0 2px 0 rgba(12, 26, 61, .6); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4); }
.divider { display: flex; align-items: center; gap: 12px; font: 900 12px/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: var(--line); }

/* ---------- cards ---------- */
.card { position: relative; min-width: 0; padding: 20px; background: var(--panel); color: var(--text); border: var(--edge); border-radius: 20px; box-shadow: var(--lift); }
.card a { color: #1746b3; }
.card.dark { background: var(--g-deep); color: #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), 0 7px 0 var(--ink), 0 22px 30px rgba(6, 16, 41, .35); }
.card.dark a, .card.dark .linkish { color: var(--gold); }
.plate {
  margin: -20px -20px 18px; padding: 11px 20px 12px; border-bottom: var(--edge); border-radius: 16px 16px 0 0;
  background: var(--g-blue); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45); font-size: 24px; line-height: 1.1; text-align: center;
}
.plate.hot { background: var(--g-red); }
.well { padding: 11px 14px; border-radius: 12px; background: var(--panel-2); color: var(--text); }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--edge); border-radius: 14px; background: #fff1b8; color: var(--text); }
.note > .ico { width: 30px; height: 30px; }
.note.bad { background: #ffdfe2; align-items: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--text); font: 800 12px/1.5 var(--body); white-space: nowrap; }
.chip.yours, .chip.prize { background: var(--g-gold); }
.chip.prize b { font-weight: 900; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mode-tag { display: inline-block; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 8px; background: #cfe4ff; color: var(--text); font: 900 11px/1.5 var(--body); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.mode-tag.m-any { background: var(--g-gold); }
.mode-tag.m-draft { background: #eebbff; }
.mode-tag.m-team { background: var(--g-green); }
.badge {
  display: inline-grid; place-items: center; width: 50px; height: 50px; flex: none; border: var(--edge); border-radius: 13px;
  background: var(--g-blue); font-size: 27px; line-height: 1; text-transform: uppercase; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--ink);
}
.badge.red { background: var(--g-red); }
.badge.none { background: var(--panel-2); border-style: dashed; color: var(--muted); -webkit-text-stroke: 0 transparent; text-shadow: none; box-shadow: none; }
.corner-label { display: block; font: 900 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }

/* ---------- timer: the elixir bar ---------- */
.clock { display: flex; align-items: center; gap: 10px; }
.clock > .ico { width: 30px; height: 30px; }
.clock .bar { flex: 1; height: 20px; border: var(--edge); border-radius: 999px; background: #2a1a4e; overflow: hidden; }
.clock .bar i { display: block; height: 100%; background: var(--g-elixir); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45); transition: width 1s linear; }
.clock time { font: 400 25px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; min-width: 3.1ch; text-align: right; }
.clock.low .bar i { background: var(--g-red); }
.clock.low time { color: var(--red); }

/* ---------- main page ---------- */
#app { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; flex: 1; }
body[data-page="home"] #app { max-width: none; padding: 0; }
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; font-weight: 900; }
.boot .brand-mark { width: 84px; height: 84px; animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.hero { overflow: hidden; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 16px 0 20px; font-size: clamp(46px, 13.5vw, 104px); }
.hero h1 em, .final h2 em { display: block; font-style: normal; color: var(--gold); }
.hero .cta { margin-top: 28px; }
.hero .fine { margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.cta.center { margin-top: 30px; }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 60px 20px 80px; }
  .hero h1 { font-size: clamp(72px, 7.6vw, 104px); }
}

/* the matchup card */
.poster-wrap { position: relative; display: grid; justify-items: center; gap: 0; padding: 10px 10px 14px; }
.rays {
  position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .13) 0 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 76%); mask: radial-gradient(closest-side, #000 18%, transparent 76%);
  animation: spin 120s linear infinite;
}
.p-crowns { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-bottom: -7px; filter: drop-shadow(0 5px 0 rgba(12, 26, 61, .55)); }
.p-crowns .ico { width: 62px; height: 62px; rotate: -12deg; animation: bob 2.6s ease-in-out infinite; }
.p-crowns .ico:nth-child(2) { width: 88px; height: 88px; rotate: 0deg; margin-bottom: 14px; animation-delay: .3s; }
.p-crowns .ico:nth-child(3) { rotate: 12deg; animation-delay: .6s; }
.poster { position: relative; width: min(440px, 100%); overflow: hidden; background: var(--panel); color: var(--text); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 10px 0 var(--ink), 0 34px 44px rgba(6, 16, 41, .5); rotate: -2deg; }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; background: linear-gradient(180deg, #1d4fbf, #123687); color: var(--gold); font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; border-bottom: var(--edge); }
.p-top span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.p-top span:last-child { color: #fff; }
.p-top .ico { width: 15px; height: 15px; }
.p-fight { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.p-side { padding: 22px 16px 24px; min-width: 0; text-align: center; background: var(--g-blue); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35); }
.p-side.red { background: var(--g-red); border-left: var(--edge); }
.p-side span { display: block; font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .14em; color: #fff; text-shadow: 0 2px 0 rgba(12, 26, 61, .5); }
.p-side b { display: block; margin-top: 8px; font-size: clamp(32px, 9vw, 46px); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.p-side b.long { font-size: clamp(20px, 5.4vw, 27px); line-height: 1.85; }
.p-vs { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg; width: 66px; height: 66px; display: grid; place-items: center; border: 4px solid var(--ink); border-radius: 50%; background: var(--g-gold); font-size: 27px; line-height: 1; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--ink); }
.p-prize { padding: 12px 12px 14px; text-align: center; background: var(--g-gold); border-top: var(--edge); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .5); }
.p-prize span { display: block; font: 900 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .3em; color: #7a3d00; }
.p-prize b { font-size: clamp(70px, 20vw, 104px); line-height: 1; -webkit-text-stroke: .1em var(--ink); }
.p-prize i { margin-left: 10px; font-style: normal; font-size: 30px; }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: var(--edge); font: 900 10.5px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.p-foot span { white-space: nowrap; }
.barcode { display: none; }
@media (max-width: 520px) { .poster { width: 94%; rotate: -1.5deg; } .p-crowns .ico { width: 50px; height: 50px; } .p-crowns .ico:nth-child(2) { width: 72px; height: 72px; } }
.poster-btn { position: relative; margin-top: 30px; }
.gate .poster-wrap { display: none; }
@media (min-width: 960px) { .gate .poster-wrap { display: grid; } }

/* the running ribbon */
.ticker { overflow: hidden; background: var(--g-gold); border-block: 4px solid var(--ink); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .5); }
.ticker-track { display: flex; width: max-content; animation: run 44s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-run { display: flex; }
.ticker-run span { display: inline-flex; align-items: center; gap: 18px; margin-right: 18px; padding: 10px 0 12px; font-size: 22px; line-height: 1; white-space: nowrap; }
.ticker-run .ico { width: 22px; height: 22px; }
@keyframes run { to { transform: translateX(-50%); } }

.sec { max-width: var(--wrap); margin: 0 auto; padding: 76px 20px 0; scroll-margin-top: 60px; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { margin: 14px 0 12px; font-size: clamp(36px, 8vw, 62px); }
.sec-head .sub { font-size: 18px; color: var(--on-blue); max-width: 40em; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s, transform .5s; }

.rounds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.rounds li { padding: 20px 22px 24px; background: var(--panel); color: var(--text); border: var(--edge); border-radius: 20px; box-shadow: var(--lift); }
.round-no { display: flex; align-items: center; gap: 12px; font: 900 13px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.round-no b { order: -1; width: 62px; height: 62px; display: grid; place-items: center; border: var(--edge); border-radius: 50%; background: var(--g-blue); font-size: 34px; line-height: 1; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--ink); }
.rounds li:nth-child(2) .round-no b { background: var(--g-red); }
.rounds li:nth-child(3) .round-no b { background: var(--g-gold); }
.rounds h3 { margin: 18px 0 8px; font: 400 28px/1.05 var(--display); }
@media (min-width: 820px) { .rounds { grid-template-columns: repeat(3, 1fr); } }

.modes2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.mode-card { overflow: hidden; background: var(--panel); color: var(--text); border: var(--edge); border-radius: 20px; box-shadow: var(--lift); }
/* the cards lie on arena grass */
.mode-art { min-height: 156px; padding: 26px 14px; display: flex; align-items: center; justify-content: center; gap: 12px; border-bottom: var(--edge); background: linear-gradient(180deg, #8fdb62, #4fb043); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .12); }
.deck { display: flex; gap: 5px; }
.pc { width: 36px; height: 48px; display: grid; place-items: center; border: var(--edge); border-radius: 8px; background: #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--ink); }
.pc .ico { width: 24px; height: 24px; }
.deck.blue .pc { background: var(--g-blue); }
.deck.red .pc { background: var(--g-red); }
.eq { font: 400 40px/1 var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.deck.offer { gap: 10px; }
.deck.offer .pc { width: 54px; height: 72px; border-radius: 10px; }
.deck.offer .pc .ico { width: 36px; height: 36px; }
.pick-b { background: var(--g-blue); translate: 0 -9px; }
.pick-r { background: var(--g-red); translate: 0 9px; }
.mode-copy { padding: 18px 20px 20px; }
.mode-copy h3 { margin: 10px 0 4px; font: 400 32px/1 var(--display); }
.points { display: grid; gap: 22px; margin-top: 34px; }
.points li { display: flex; gap: 14px; }
.points .ico { width: 54px; height: 54px; filter: drop-shadow(0 4px 0 rgba(12, 26, 61, .5)); }
.points h3 { font: 400 22px/1.2 var(--display); text-shadow: 0 2px 0 rgba(12, 26, 61, .6); }
.points p { color: var(--on-blue); }
@media (min-width: 820px) { .modes2 { grid-template-columns: 1fr 1fr; } .points { grid-template-columns: repeat(3, 1fr); } .pc { width: 42px; height: 56px; } .pc .ico { width: 28px; height: 28px; } }

.money-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.money-grid h3 { margin-bottom: 14px; font: 400 27px/1.1 var(--display); display: flex; align-items: center; gap: 10px; }
.money-grid h3 .ico { width: 36px; height: 36px; }
.money-grid .card p + p, .money-grid .card p + a, .money-grid .card a + a { margin-top: 12px; }
.money-grid .card .more { display: flex; }
.splitbar { display: flex; height: 68px; border: var(--edge); border-radius: 16px; overflow: hidden; }
.splitbar i { display: grid; place-items: center; font-style: normal; font-size: 28px; line-height: 1; }
.splitbar .w { flex: 1; background: var(--g-gold); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .5); }
.splitbar .b { width: 24px; background: var(--g-elixir); border-left: var(--edge); }
.splitbar .s { width: 24px; background: var(--g-blue); border-left: var(--edge); }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.split div { padding-left: 12px; border-left: 8px solid var(--gold); border-radius: 4px; }
.split .b { border-color: var(--elixir); }
.split .s { border-color: var(--blue); }
.split b { display: block; font: 400 clamp(28px, 7vw, 44px)/1 var(--display); }
.split span { font-size: 14px; color: var(--muted); }
.card.dark .split span, .card.dark .muted { color: var(--on-blue); }
.ca span { display: block; margin-bottom: 4px; font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--on-blue); }
.ca .linkish { display: inline-flex; align-items: center; gap: 8px; text-align: left; word-break: break-all; font-weight: 800; }
@media (min-width: 820px) { .money-grid { grid-template-columns: 1fr 1fr; } .split-card { grid-column: 1 / -1; } }

.faq { display: grid; gap: 12px; }
.faq details { overflow: hidden; background: var(--panel); color: var(--text); border: var(--edge); border-radius: 16px; box-shadow: inset 0 3px 0 #fff, 0 5px 0 var(--ink); }
.faq summary { position: relative; padding: 16px 54px 16px 18px; font: 900 17px/1.3 var(--body); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--g-gold); font: 400 22px/1 var(--display); }
.faq summary:hover { background: var(--panel-2); }
.faq details[open] summary { background: #d6e6ff; border-bottom: 2px solid var(--line); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 14px 18px 18px; max-width: 62em; }

.final { margin-top: 88px; overflow: hidden; background: linear-gradient(180deg, rgba(12, 26, 61, 0), rgba(12, 26, 61, .45)); }
.final-in { max-width: var(--wrap); margin: 0 auto; padding: 70px 20px 88px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.final h2 { font-size: clamp(38px, 9vw, 84px); max-width: 12em; }
.final p { font-size: 20px; }
.final .fine { font-size: 13px; }

/* ---------- footer ---------- */
.foot { margin-top: 72px; background: linear-gradient(180deg, #10318a, #0a2166); color: var(--on-blue); border-top: 4px solid var(--ink); }
body[data-page="home"] .foot { margin-top: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 44px; display: grid; gap: 26px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand p { margin-top: 4px; font-size: 14px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font: 900 13px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.foot-links a:hover { border-color: var(--gold); }
.foot-legal { display: grid; gap: 8px; font-size: 13px; max-width: 70em; }
.disclaimer { color: #9db3e6; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } .foot-legal { grid-column: 1 / -1; } }

/* ---------- the game ---------- */
.callout { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 18px; background: var(--g-gold); color: var(--text); border: var(--edge); border-radius: 18px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 6px 0 var(--ink); }
.callout > .ico { width: 46px; height: 46px; }
.callout h3 { font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.callout p { margin-top: 4px; font-size: 15px; font-weight: 800; }
.callout.gone { background: var(--panel); }
.callout.gone h3 { color: var(--text); -webkit-text-stroke: 0 transparent; text-shadow: none; }
@media (max-width: 560px) { .callout { flex-wrap: wrap; } .callout > .btn { width: 100%; } }

.gate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 36px; }
.gate-copy h1 { margin: 14px 0 14px; font-size: clamp(44px, 11vw, 84px); }
.gate-copy .lede { margin-bottom: 26px; }
.gate-copy .card { max-width: 520px; }
.gate-copy h1 + .card { margin-top: 24px; }
.gate + .fightcard { margin-top: 44px; }
@media (min-width: 960px) { .gate { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-top: 52px; } }

.who-row { display: flex; align-items: center; gap: 14px; }
.who-row h2 { font-size: 30px; overflow-wrap: anywhere; }
.who-row .chip { margin-top: 6px; }
@media (max-width: 520px) { .who-row { gap: 10px; } .who-row h2 { font-size: 24px; } .who-row .icon-btn { width: 40px; min-height: 40px; } }

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 30px; align-items: start; }
.dash.in-fight { max-width: 720px; margin: 0 auto; }
@media (min-width: 980px) {
  .dash:not(.in-fight) { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "player lobby" "ring lobby" "ring log"; grid-template-rows: auto auto 1fr; }
  .dash:not(.in-fight) .a-player { grid-area: player; }
  .dash:not(.in-fight) .a-ring { grid-area: ring; }
  .dash:not(.in-fight) .a-lobby { grid-area: lobby; }
  .dash:not(.in-fight) .a-log { grid-area: log; }
}
.form-strip { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--line); }
.form-strip span { margin-right: 6px; font: 900 11px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.form-strip i { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; font: 400 15px/1 var(--display); font-style: normal; color: #fff; background: #7f96c9; }
.form-strip .f-W { background: var(--g-green); }
.form-strip .f-L { background: var(--g-red); }
.settings { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--line); }

.list-head { display: flex; align-items: center; gap: 8px; font: 400 22px/1 var(--display); }
.list-head span { padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--gold); font-size: 15px; }
.bouts { display: grid; }
.bout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px solid var(--line); }
.bout:first-child { border-top: 0; padding-top: 2px; }
.bout:last-child { padding-bottom: 2px; }
.who { min-width: 0; }
.who b { display: block; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b i { font-style: normal; font-weight: 700; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.meta i { font-style: normal; }
.prize-col { text-align: right; }
.prize-col b { display: block; font: 400 26px/1 var(--display); color: #c97800; }
.prize-col span { font: 900 10.5px/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.live-dot { width: 14px; height: 14px; margin: 0 18px; border: 2px solid var(--ink); border-radius: 50%; background: #ff4b5e; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.75); } }
.res-tag { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 10px; background: #7f96c9; color: #fff; font: 400 19px/1 var(--display); }
.res-tag.win { background: var(--g-green); }
.res-tag.loss { background: var(--g-red); }
.res-tag.void { background: var(--panel-2); color: var(--muted); }
.bout.done .prize-col b, .pay.plus { color: var(--green); }
.pay { display: inline-flex; align-items: center; gap: 6px; font: 400 22px/1 var(--display); color: var(--text); text-decoration: none; white-space: nowrap; }
a.pay:hover { text-decoration: underline; }
.pay .ico { width: 14px; height: 14px; }
.pay.minus { color: var(--red); }
.score { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; color: var(--blue); --crown: url(#g-blue); --crown-band: #1a46b8; }
.score.red { color: var(--red); --crown: url(#g-red); --crown-band: #a3132f; }
.score .ico { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .bout { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bout > .btn, .bout > .row, .bout > .chip { grid-column: 1 / -1; justify-self: end; }
}

.stake-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.quick { display: flex; gap: 8px; margin-top: 12px; }
.quick .btn { flex: 1; padding: 0 6px; }
.prize-box { display: grid; align-content: center; justify-items: center; padding: 12px 14px 10px; border: var(--edge); border-radius: 16px; background: var(--g-gold); text-align: center; box-shadow: inset 0 4px 0 rgba(255, 255, 255, .55); }
.prize-box span { font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .16em; color: #7a3d00; }
.prize-box b { font: 400 clamp(52px, 13vw, 74px)/1.05 var(--display); color: #fff; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); }
.prize-box i { font: 400 19px/1 var(--display); font-style: normal; color: var(--ink); }
@media (min-width: 560px) { .stake-row { grid-template-columns: 1fr 1fr; } }

.tape { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.corner { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0 10px 14px; overflow: hidden; border: var(--edge); border-radius: 16px; background: linear-gradient(180deg, #d8e9ff, #f3f7ff 70%); text-align: center; min-width: 0; }
.corner.red { background: linear-gradient(180deg, #ffdfe2, #fff5f6 70%); }
.corner .corner-label { justify-self: stretch; margin: 0 -10px 6px; padding: 7px 4px; background: var(--g-blue); border-bottom: var(--edge); color: #fff; text-shadow: 0 2px 0 rgba(12, 26, 61, .55); letter-spacing: .1em; }
.corner.red .corner-label { background: var(--g-red); }
.corner-name { max-width: 100%; font: 400 clamp(21px, 5.2vw, 30px)/1.1 var(--display); overflow-wrap: anywhere; }
.corner-sub { font-size: 13px; color: var(--muted); }
.corner.empty { border-style: dashed; background: var(--panel-2); }
.corner.empty .corner-label { background: #8fa0c4; }
.corner.empty .corner-name { color: var(--muted); }
.vs { align-self: center; z-index: 1; width: 58px; height: 58px; margin: 0 -13px; display: grid; place-items: center; border: var(--edge); border-radius: 50%; background: var(--g-gold); font-size: 23px; line-height: 1; rotate: -8deg; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--ink); }
.tape.live .vs { animation: thump 1.1s ease-in-out infinite; }
@keyframes thump { 50% { scale: 1.14; } }
.fight-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tiles { display: flex; justify-content: center; gap: 7px; }
.tiles span { width: 48px; height: 60px; display: grid; place-items: center; border: var(--edge); border-radius: 12px; background: var(--g-gold); color: var(--text); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--ink); font: 400 34px/1 var(--display); }
@media (max-width: 400px) { .tiles span { width: 40px; height: 52px; font-size: 28px; } }
.watching { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px dashed #7f96c9; border-radius: 12px; background: var(--panel-2); font-size: 14px; font-weight: 800; }
.watching i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #2fc23a; animation: pulse 1.2s ease-in-out infinite; }
.teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; }
.team-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.team-col:last-child .corner-label { color: var(--red); text-align: right; }
.seat { display: flex; align-items: center; gap: 10px; padding: 8px; border: var(--edge); border-radius: 14px; background: #fff; min-width: 0; }
.seat.free { border-style: dashed; background: var(--panel-2); }
.seat .badge { width: 38px; height: 38px; border-radius: 10px; font-size: 20px; }
@media (max-width: 480px) { .seat .badge { display: none; } }

.steps { counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 54px; min-height: 40px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border: var(--edge); border-radius: 50%; background: var(--g-blue); font-size: 21px; line-height: 1; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5); }
.steps h3 { font: 900 17px/1.3 var(--body); padding-top: 8px; }
.steps p, .steps .row, .steps form, .steps .modes { margin-top: 8px; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mode { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 900 13px/1.4 var(--body); }
.mode .ico { width: 18px; height: 18px; }
.mode.no { color: var(--muted); border-color: #a9b7d6; background: var(--panel-2); text-decoration: line-through; }
.ok-line { display: flex; align-items: center; gap: 4px; }
.ok-line .ico { width: 20px; height: 20px; }
.buy-sol { margin-top: -4px; }
.dev { margin-top: 36px; padding: 14px; border: 3px dashed rgba(255, 255, 255, .5); border-radius: 16px; }
.dev h3 { margin-bottom: 12px; font: 900 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; }
.error-card { max-width: 480px; margin: 60px auto 0; }

/* ---------- stats ---------- */
.page-head { padding: 40px 0 26px; }
.page-head h1 { margin: 14px 0 12px; font-size: clamp(44px, 10vw, 84px); }
.page-head p { color: var(--on-blue); max-width: 44em; }
.tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { min-width: 0; padding: 14px 16px 12px; background: var(--panel); color: var(--text); border: var(--edge); border-radius: 16px; box-shadow: inset 0 3px 0 #fff, 0 5px 0 var(--ink); }
.tile b { display: block; font: 400 clamp(30px, 7vw, 46px)/1.05 var(--display); overflow: hidden; text-overflow: ellipsis; }
.tile span { display: block; margin-top: 6px; font: 900 11.5px/1.3 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile.hot { background: var(--g-gold); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 5px 0 var(--ink); }
.tile.hot span { color: #7a3d00; }
.tile.burn b { color: #a41fc0; }
@media (min-width: 820px) { .tiles-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { margin-top: 30px; }
.stat-card h2 { margin-bottom: 6px; font-size: 26px; color: var(--text); -webkit-text-stroke: 0 transparent; text-shadow: none; }
.an-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 30px; }
.an-grid .stat-card { margin-top: 0; }
@media (min-width: 900px) { .an-grid { grid-template-columns: 1fr 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 18px 0 6px; }
.facts div { padding-top: 8px; border-top: 4px solid var(--line); }
.facts b { display: block; font: 400 30px/1.05 var(--display); }
.facts span { font-size: 13px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 4px; }
.links a, .tbl a { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; text-underline-offset: 3px; }
.links .ico, .tbl .ico { width: 14px; height: 14px; }
.tbl-wrap { overflow-x: auto; margin-top: 14px; }
.tbl, .as-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .as-table th { padding: 8px 10px 8px 0; text-align: left; font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 3px solid var(--line); white-space: nowrap; }
.tbl td, .as-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: var(--panel-2); font-size: 14px; color: var(--muted); }
.chart { position: relative; margin-top: 14px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { stroke: var(--ink); stroke-width: 2; }
.chart .tick { font: 800 11px var(--body); fill: var(--muted); }
.chart .hit { outline: none; }
.chart .hit:hover, .chart .hit:focus-visible { fill: rgba(36, 99, 219, .1); }
.tip { position: absolute; top: 0; translate: -50% 0; display: grid; gap: 2px; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.tip i, .legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }
.chart-empty { position: absolute; inset: 30% 0 auto; text-align: center; font-size: 14px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; }
.as-table { margin-top: 10px; font-size: 13px; }
.as-table summary { cursor: pointer; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.hbars { display: grid; gap: 10px; margin-top: 18px; }
.hbars > div { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 10px; font-size: 14px; }
.hbars .track { height: 20px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.hbars .track i { display: block; height: 100%; background: var(--g-blue); }
.hbars b { font: 400 20px/1 var(--display); text-align: right; }

/* ---------- result ---------- */
#overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; overflow: auto; background: radial-gradient(circle at 50% 40%, #1d3f96, #0a1533 75%); }
#overlay::before {
  content: ""; position: fixed; left: 50%; top: 50%; width: 220vmax; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .06) 0 7.5deg, transparent 7.5deg 15deg); animation: spin 140s linear infinite;
}
#overlay.win { background: radial-gradient(circle at 50% 40%, #5aa6ff, #1b4fc4 60%, #0f2f86); }
#overlay.win::before { background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 7.5deg, transparent 7.5deg 15deg); }
.result { position: relative; width: min(470px, 100%); padding: 22px 22px 24px; background: var(--panel); color: var(--text); border: 4px solid var(--ink); border-radius: 26px; box-shadow: inset 0 4px 0 #fff, 0 10px 0 var(--ink), 0 34px 50px rgba(6, 16, 41, .6); text-align: center; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { scale: .8; opacity: 0; } }
.result .kicker { background: var(--panel-2); color: var(--muted); }
.result h1 { margin: 10px 0 16px; font-size: clamp(64px, 19vw, 100px); color: var(--gold); }
#overlay.loss .result h1 { color: #ff6b78; }
#overlay.draw .result h1 { color: #fff; }
.scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.scoreline .vs { all: unset; font: 400 34px/1 var(--display); color: var(--muted); }
.side { min-width: 0; padding: 8px 8px 10px; border: var(--edge); border-radius: 16px; background: linear-gradient(180deg, #d8e9ff, #f3f7ff); }
.side.red { background: linear-gradient(180deg, #ffdfe2, #fff5f6); }
.side span { display: block; font: 900 11px/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side b { display: block; font: 400 58px/1.05 var(--display); color: var(--blue); }
.side.red b { color: var(--red); }
.crown-row { display: flex; justify-content: center; gap: 2px; --crown: url(#g-blue); --crown-band: #1a46b8; }
.crown-row.red { --crown: url(#g-red); --crown-band: #a3132f; }
.crown-row .ico { width: 26px; height: 26px; }
.crown-row .ico.off { opacity: .2; filter: grayscale(1); }
.reward { margin-top: 14px; padding: 10px 12px 8px; border: var(--edge); border-radius: 16px; background: var(--g-gold); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .55); }
.reward span { display: block; font: 900 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .16em; color: #7a3d00; }
.reward b { font: 400 60px/1.05 var(--display); color: #fff; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); }
.reward i { margin-left: 8px; font: 400 22px/1 var(--display); font-style: normal; }
.status { margin: 16px 0; font-size: 15px; }
.status a { color: #1746b3; }
.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; width: 12px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(700deg); } }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; width: max-content; max-width: min(92vw, 520px); padding: 12px 18px;
  background: var(--ink); color: #fff; border: 3px solid #ff6b78; border-radius: 16px; box-shadow: 0 6px 0 rgba(6, 16, 41, .6); font: 800 15px/1.4 var(--body);
  translate: -50% 0; transform: translateY(24px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .2s, opacity .2s, visibility 0s .2s;
}
#toast.ok { border-color: var(--gold); }
#toast.show { transform: none; opacity: 1; visibility: visible; transition: transform .2s, opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
