:root {
  --bg: #07011a;
  --panel: rgba(16, 5, 44, .78);
  --line: rgba(0, 240, 255, .22);
  --pink: #ff2bd6;
  --cyan: #00f0ff;
  --yellow: #ffe600;
  --green: #3dff8a;
  --red: #ff3860;
  --violet: #9d5cff;
  --text: #ece8ff;
  --muted: #9d93cc;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
b { color: #fff; }
code { font-family: var(--mono); color: var(--yellow); }

/* ---------- Synthwave backdrop ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(157, 92, 255, .35), transparent 70%),
    linear-gradient(#07011a 0%, #110432 55%, #1d0645 100%);
}
.bg .sun {
  position: absolute; left: 50%; bottom: 33vh;
  width: min(70vw, 460px); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(#ffe600 10%, #ff7a3d 45%, #ff2bd6 80%);
  opacity: .28;
  -webkit-mask: linear-gradient(#000 45%, transparent 45%) top/100% 100% no-repeat,
                repeating-linear-gradient(#000 0 12px, transparent 12px 20px);
          mask: linear-gradient(#000 45%, transparent 45%) top/100% 100% no-repeat,
                repeating-linear-gradient(#000 0 12px, transparent 12px 20px);
  filter: blur(.5px);
}
.bg .grid {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 36vh;
  background-image:
    linear-gradient(rgba(255, 43, 214, .75) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 43, 214, .55) 2px, transparent 2px);
  background-size: 70px 70px;
  transform: perspective(220px) rotateX(55deg);
  transform-origin: 50% 100%;
  animation: grid-run 1.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 95%);
          mask-image: linear-gradient(to top, #000 20%, transparent 95%);
  opacity: .5;
}
@keyframes grid-run { to { background-position: 0 70px, 0 0; } }
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 70;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
}

/* ---------- Shell ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1000px; margin: 0 auto; padding: 16px;
}
.brand {
  font-family: var(--pixel); font-size: 12px; text-decoration: none;
  color: var(--cyan); text-shadow: 0 0 8px rgba(0, 240, 255, .8);
  letter-spacing: .05em;
}
.brand span { color: var(--yellow); font-size: 8px; margin: 0 6px; vertical-align: middle; }
.mute {
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; width: 44px; height: 44px; font-size: 18px; cursor: pointer;
}
.mute:hover { border-color: var(--cyan); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding-top: 24px; padding-bottom: 40px; }
.foot .legal { font-size: 12px; opacity: .8; }
.foot a { color: var(--muted); }
/* The floating badge may be hidden because the footer carries Google's required notice. */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 12px; }
.insert-coin {
  font-family: var(--pixel); font-size: 10px; color: var(--yellow); letter-spacing: .2em;
  animation: blink 1.1s steps(1) infinite;
}
.logo { font-family: var(--pixel); font-weight: 400; line-height: 1.15; margin: 18px 0 10px; font-size: clamp(36px, 10vw, 76px); }
.logo span { display: block; }
.logo .l1 { color: var(--cyan); text-shadow: 0 0 10px var(--cyan), 0 0 34px rgba(0, 240, 255, .6), 4px 4px 0 #3a0a6b; }
.logo .l2 { color: var(--yellow); font-size: .3em; margin: .5em 0; text-shadow: 0 0 10px rgba(255, 230, 0, .8); }
.logo .l3 { color: var(--pink); text-shadow: 0 0 10px var(--pink), 0 0 34px rgba(255, 43, 214, .6), 4px 4px 0 #3a0a6b; animation: flicker 4s infinite; }
.tagline { font-size: clamp(17px, 2.6vw, 20px); color: #cfc8f5; text-shadow: 0 2px 10px #07011a, 0 0 2px #07011a; max-width: 520px; margin: 0 auto; }
.tagline b { color: var(--text); }

/* ---------- Cards & form ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 30px);
  margin: 20px 0;
  box-shadow: 0 0 0 1px rgba(255, 43, 214, .12), 0 20px 60px rgba(0, 0, 0, .45), inset 0 0 40px rgba(0, 240, 255, .05);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.card-title { font-family: var(--pixel); font-size: 12px; color: var(--cyan); letter-spacing: .12em; margin: 0 0 16px; font-weight: 400; }
.field { display: block; margin-bottom: 20px; }
.field > span {
  display: block; font-family: var(--pixel); font-size: 10px; letter-spacing: .12em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 10px;
}
.field em { color: var(--muted); font-style: normal; text-transform: none; }
input, select {
  width: 100%;
  background: rgba(0, 0, 0, .4);
  border: 2px solid rgba(0, 240, 255, .28);
  color: var(--text);
  font: 600 18px var(--sans);
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, .2), 0 0 20px rgba(0, 240, 255, .25); }
input::placeholder { color: rgba(236, 232, 255, .35); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--pixel); font-size: 11px;
  padding: 12px 13px; min-width: 56px;
  border: 2px solid rgba(255, 43, 214, .45); border-radius: 10px;
  background: rgba(0, 0, 0, .3); color: var(--text); cursor: pointer;
  transition: transform .1s, background .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--pink); transform: translateY(-2px); }
.chip[aria-checked="true"] { background: var(--pink); color: #1a0026; border-color: var(--pink); box-shadow: 0 0 18px rgba(255, 43, 214, .7); }
.custom-row { display: flex; gap: 10px; margin-top: 12px; }
.custom-row input { flex: 1; min-width: 0; }
.custom-row select { flex: 1; min-width: 0; }
.form-error { color: var(--red); font-weight: 600; margin: 14px 0 0; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font-family: var(--pixel); font-size: 11px; line-height: 1.4; text-transform: uppercase;
  color: #150020; background: var(--yellow);
  border: 0; border-radius: 12px; padding: 13px 16px; cursor: pointer;
  box-shadow: 0 5px 0 #a38b00, 0 0 22px rgba(255, 230, 0, .35);
  transition: transform .08s, box-shadow .08s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a38b00, 0 0 22px rgba(255, 230, 0, .35); }
.btn:disabled { opacity: .55; cursor: default; animation: none; }
.btn.alt { background: var(--cyan); box-shadow: 0 5px 0 #008b96, 0 0 22px rgba(0, 240, 255, .35); }
.btn.alt:active { box-shadow: 0 1px 0 #008b96; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.btn-mega { display: block; width: 100%; font-size: clamp(13px, 3.5vw, 19px); padding: 22px 18px; margin-top: 8px; }
.btn-start {
  background: var(--green);
  box-shadow: 0 6px 0 #11964a, 0 0 34px rgba(61, 255, 138, .55);
  animation: pulse 1.3s ease-in-out infinite;
  font-size: clamp(16px, 4.5vw, 26px); padding: 26px 18px;
}
.btn-start:active { box-shadow: 0 1px 0 #11964a; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.btn-row .btn { flex: 1 1 220px; }

/* ---------- How it works ---------- */
.how h2 { font-family: var(--pixel); font-weight: 400; font-size: 13px; color: var(--pink); text-align: center; letter-spacing: .15em; margin: 36px 0 6px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.steps .n { font-family: var(--pixel); font-size: 22px; color: var(--yellow); text-shadow: 0 0 12px rgba(255, 230, 0, .6); }
.steps h3 { font-family: var(--pixel); font-weight: 400; font-size: 11px; color: var(--cyan); margin: 14px 0 8px; line-height: 1.5; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

.recent ul { list-style: none; padding: 0; margin: 0; }
.recent li a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--text);
}
.recent li:last-child a { border-bottom: 0; }
.recent .rc { font-family: var(--mono); color: var(--yellow); }
.recent .rm { color: var(--muted); font-size: 14px; }

/* ---------- Match header ---------- */
.match { text-align: center; margin-top: 8px; }
.versus {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--pixel); font-size: clamp(13px, 3.8vw, 20px); line-height: 1.4;
}
.versus .p1, .versus .p2 { overflow-wrap: break-word; min-width: 0; max-width: 42%; }
.versus .p1 { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, .8); }
.versus .p2 { color: var(--pink); text-shadow: 0 0 10px rgba(255, 43, 214, .8); }
.versus .vs { color: var(--yellow); font-size: 1.4em; text-shadow: 0 0 14px rgba(255, 230, 0, .8); animation: vs-bump 1.6s ease-in-out infinite; }
.taunt { color: var(--muted); font-style: italic; font-size: 18px; margin: 12px 0 0; overflow-wrap: anywhere; }

/* ---------- Stage ---------- */
.stage { text-align: center; position: relative; overflow: hidden; }
.big-label { font-family: var(--pixel); font-size: 12px; letter-spacing: .25em; color: var(--yellow); margin-bottom: 14px; }
.blink { animation: blink 1s steps(1) infinite; }
.live {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--pixel); font-size: 9px; color: var(--green);
  display: flex; align-items: center; gap: 7px;
}
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: ping 1.4s infinite; }
.live.off { color: var(--red); }
.live.off::before { background: var(--red); animation: none; }

.digits {
  font-family: var(--mono); font-size: clamp(46px, 14vw, 88px); line-height: 1;
  color: var(--cyan); letter-spacing: .02em;
  text-shadow: 0 0 10px var(--cyan), 0 0 36px rgba(0, 240, 255, .55);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 22px;
}
.digits.long { font-size: clamp(34px, 10vw, 72px); }
.warn {
  background: rgba(255, 230, 0, .07); border: 1px dashed rgba(255, 230, 0, .55); color: #fff4a3;
  border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 20px 0 0; text-align: left;
}
.hint { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.ring-wrap { position: relative; width: min(76vw, 330px); aspect-ratio: 1; margin: 18px auto 16px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(255, 255, 255, .07); }
.ring-fg { stroke: var(--cyan); stroke-linecap: round; filter: drop-shadow(0 0 6px var(--cyan)); transition: stroke .3s; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center .digits { font-size: clamp(34px, 11vw, 54px); margin: 0; }
.ring-center .digits.long { font-size: clamp(26px, 8.5vw, 42px); }
.ring-sub { font-family: var(--pixel); font-size: 9px; color: var(--muted); letter-spacing: .2em; margin-top: 12px; }
.danger .ring-fg { stroke: var(--red); filter: drop-shadow(0 0 8px var(--red)); }
.danger .digits { color: var(--red); text-shadow: 0 0 10px var(--red), 0 0 36px rgba(255, 56, 96, .6); animation: throb .5s ease-in-out infinite alternate; }
.waiting { font-size: 19px; margin: 6px 0 0; }
.dots::after { content: ''; animation: dots 1.2s steps(1) infinite; }
.deadline { color: var(--muted); font-size: 15px; margin: 6px 0 0; font-family: var(--mono); }

.detect { padding: 30px 0; }
.detect .big-label { font-size: clamp(14px, 4vw, 22px); color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.scanbar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 24px auto; max-width: 420px; }
.scanbar::after { content: ''; display: block; height: 100%; width: 35%; background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent); animation: scan 0.8s linear infinite; }

/* ---------- Results ---------- */
.result-emoji { font-size: 64px; line-height: 1; display: inline-block; margin-top: 6px; }
.result.win .result-emoji { animation: bounce 1s ease-in-out infinite; }
.result.lose .result-emoji { animation: sway 2s ease-in-out infinite; }
.result-title {
  font-family: var(--pixel); font-weight: 400; line-height: 1.2;
  font-size: clamp(26px, 8vw, 52px); margin: 18px 0 12px; position: relative;
}
.result.win .result-title { color: var(--yellow); text-shadow: 0 0 14px rgba(255, 230, 0, .8), 4px 4px 0 var(--pink); animation: pop .7s cubic-bezier(.2, 1.7, .4, 1) both; }
.result.lose .result-title { color: var(--red); text-shadow: 0 0 14px rgba(255, 56, 96, .8), 4px 4px 0 #3a0a6b; }
.result.win .big-label { color: var(--green); }
.result.lose .big-label { color: var(--red); }
.result-sub { font-size: clamp(17px, 2.8vw, 20px); margin: 0 0 18px; }
.result-sub b { font-family: var(--mono); font-size: 1.15em; }
.result.win .result-sub b { color: var(--green); }
.result.lose .result-sub b { color: var(--red); }
.quip { color: var(--muted); margin: 18px 0 0; }
.result.win { border-color: rgba(61, 255, 138, .45); box-shadow: 0 0 50px rgba(61, 255, 138, .15), inset 0 0 60px rgba(255, 230, 0, .06); }
.result.lose { border-color: rgba(255, 56, 96, .45); box-shadow: 0 0 50px rgba(255, 56, 96, .15), inset 0 0 60px rgba(255, 56, 96, .06); }

.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--cyan); transform: translate(-3px, 0); clip-path: inset(0 0 60% 0); animation: glitch-a 2.2s infinite steps(2); mix-blend-mode: screen; text-shadow: none; }
.glitch::after { color: var(--pink); transform: translate(3px, 0); clip-path: inset(55% 0 0 0); animation: glitch-b 1.7s infinite steps(2); mix-blend-mode: screen; text-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.stat { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; }
.stat span { display: block; font-family: var(--pixel); font-size: 8px; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.stat b { font-family: var(--mono); font-size: 20px; font-weight: 400; white-space: nowrap; }

/* ---------- Share ---------- */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row input { flex: 1 1 240px; min-width: 0; font-family: var(--mono); font-size: 18px; color: var(--yellow); }

/* ---------- Timeline ---------- */
.tl { list-style: none; padding: 0; margin: 0; }
.tl-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 10px 0; position: relative; }
.tl-row:not(:last-child)::before {
  content: ''; position: absolute; left: 20px; top: 52px; bottom: -10px; width: 2px;
  background: linear-gradient(var(--cyan), var(--pink)); opacity: .35;
}
.tl-ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--cyan); background: #0c0322; font-size: 17px;
  box-shadow: 0 0 12px rgba(0, 240, 255, .35);
}
.tl-row.pending { opacity: .5; }
.tl-row.pending .tl-ico { border-style: dashed; border-color: var(--muted); box-shadow: none; }
.tl-row.win .tl-ico { border-color: var(--green); box-shadow: 0 0 16px rgba(61, 255, 138, .6); }
.tl-row.lose .tl-ico { border-color: var(--red); box-shadow: 0 0 16px rgba(255, 56, 96, .6); }
.tl-label { font-family: var(--pixel); font-size: 9px; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; margin-top: 4px; }
.tl-time { font-family: var(--mono); font-size: 21px; line-height: 1.3; margin-top: 6px; overflow-wrap: anywhere; }
.tl-row.win .tl-time { color: var(--green); }
.tl-row.lose .tl-time { color: var(--red); }
.tl-date { color: var(--muted); font-size: 14px; }
.tl-note { color: var(--yellow); font-size: 14px; font-family: var(--mono); }
.tz-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- Overlays & FX ---------- */
.shout {
  position: fixed; inset: 0; z-index: 65; pointer-events: none;
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--pixel); font-size: clamp(40px, 14vw, 130px); line-height: 1.1;
  color: var(--yellow); text-shadow: 0 0 20px rgba(255, 230, 0, .9), 6px 6px 0 var(--pink);
  animation: shout 1s ease-out forwards;
}
.shout.small { font-size: clamp(24px, 7vw, 60px); color: var(--cyan); text-shadow: 0 0 20px var(--cyan), 5px 5px 0 var(--pink); }
.flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: var(--flash, #fff); animation: flash .6s ease-out forwards; }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 62; }
.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97) both; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 66;
  background: var(--yellow); color: #150020; font-family: var(--pixel); font-size: 10px;
  padding: 12px 16px; border-radius: 10px; box-shadow: 0 0 24px rgba(255, 230, 0, .5);
  animation: toast 1.8s ease forwards;
}

/* ---------- Keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes flicker { 0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; } 20%, 22%, 81% { opacity: .35; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes vs-bump { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18) rotate(4deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 138, .8); } 100% { box-shadow: 0 0 0 10px rgba(61, 255, 138, 0); } }
@keyframes throb { to { transform: scale(1.06); } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes pop { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes glitch-a { 0% { clip-path: inset(0 0 70% 0); transform: translate(-4px, -1px); } 25% { clip-path: inset(30% 0 40% 0); transform: translate(3px, 1px); } 50% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 0); } 75% { clip-path: inset(60% 0 10% 0); transform: translate(4px, -1px); } 100% { clip-path: inset(0 0 70% 0); transform: translate(-4px, 0); } }
@keyframes glitch-b { 0% { clip-path: inset(70% 0 0 0); transform: translate(4px, 1px); } 33% { clip-path: inset(20% 0 55% 0); transform: translate(-3px, 0); } 66% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -1px); } 100% { clip-path: inset(70% 0 0 0); transform: translate(4px, 1px); } }
@keyframes shout { 0% { transform: scale(3); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 75% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(.85); opacity: 0; } }
@keyframes flash { from { opacity: .55; } to { opacity: 0; } }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .tl-time { font-size: 18px; }
  .live { position: static; justify-content: center; margin-bottom: 12px; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; text-align: left; }
  .stat span { margin: 0; flex: 0 1 auto; line-height: 1.6; }
  .stat b { font-size: clamp(14px, 4.4vw, 18px); white-space: nowrap; text-align: right; }
  /* stack the matchup: long names get the full width instead of breaking mid-word */
  .versus { flex-direction: column; gap: 6px; }
  .versus .p1, .versus .p2 { max-width: 100%; }
  .versus .vs { font-size: 1.1em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .bg .grid { animation: none; }
}
