:root {
  --bg: #050a14;
  --ink: #eef6ff;
  --mut: #8aa3be;
  --cy: #3ad7f5;
  --cy-glow: rgba(58, 215, 245, 0.42);
  --pk: #ff4f7b;
  --ok: #5dff9a;
  --gold: #ffd447;
  --pn: rgba(7, 14, 27, 0.94);
  --top-h: 64px;
  --bot-h: max(22dvh, 178px);
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.4 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, #060c18 0%, #050912 100%);
  border-top: 1px solid #1e3b5c;
}
.px { font-family: var(--display); letter-spacing: 0.04em; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Top HUD (Design A 1:1) ---------- */
#hud {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: env(safe-area-inset-top, 0px) 26px 0;
  background: #060b16;
  border-bottom: 1px solid #254063;
}
#hud-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
#hl {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 28px);
  letter-spacing: 0.04em;
  color: #b4f7ff;
  text-decoration: none;
  white-space: nowrap;
  transform: skewX(-4deg);
  text-shadow:
    0 0 8px rgba(56, 232, 255, 0.9),
    0 0 18px rgba(56, 232, 255, 0.55),
    0 0 2px #fff;
  animation: neon-breathe 3.2s ease-in-out infinite;
}
@keyframes neon-breathe {
  0%, 100% { text-shadow: 0 0 8px rgba(56, 232, 255, 0.85), 0 0 18px rgba(56, 232, 255, 0.5), 0 0 2px #fff; }
  50% { text-shadow: 0 0 14px rgba(56, 232, 255, 1), 0 0 28px rgba(56, 232, 255, 0.8), 0 0 4px #fff; }
}
#pips {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #233554;
  border: 0;
  transition: all 0.25s ease;
}
.pip.done {
  background: #38e8ff;
  box-shadow: 0 0 10px rgba(56, 232, 255, 0.8);
}
.pip.cur {
  position: relative;
  width: 14px;
  height: 14px;
  background: #6bf3ff;
  box-shadow:
    0 0 10px #38e8ff,
    0 0 20px rgba(56, 232, 255, 0.95);
}
.pip.cur::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px dotted rgba(110, 244, 255, 0.95);
  animation: pip-spin 7s linear infinite;
}
@keyframes pip-spin { to { transform: rotate(360deg); } }
#cdh { display: none; }

#sitenav {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 1040px) {
  #sitenav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
.navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1.5px solid #1e314d;
  background: #081120;
  color: #9cb2cc;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.navbtn:hover, .navbtn:focus-visible {
  border-color: #38e8ff;
  color: #e8f7ff;
  box-shadow: 0 0 12px rgba(56, 232, 255, 0.32);
  outline: none;
}
.navbtn.duel {
  border-color: #38e8ff;
  color: #d6e9fb;
  background: #071324;
  box-shadow:
    0 0 10px rgba(56, 232, 255, 0.32),
    inset 0 0 10px rgba(56, 232, 255, 0.08);
}
.navbtn.duel:hover, .navbtn.duel:focus-visible {
  background: #38e8ff;
  color: #041018;
}

#hr {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
#hp, #snd {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1.5px solid #1e314d;
  background: #081120;
  color: #7c95b4;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
#hp:hover, #snd:hover, #hp:focus-visible, #snd:focus-visible {
  border-color: #38e8ff;
  color: #d6f7ff;
  box-shadow: 0 0 10px rgba(56, 232, 255, 0.25);
  outline: none;
}
#scbox {
  position: relative;
  min-width: 134px;
  height: 42px;
  padding: 4px 16px 0;
  border-radius: 10px;
  border: 2px solid #38e8ff;
  background: #060d1b;
  box-shadow:
    0 0 14px rgba(56, 232, 255, 0.36),
    inset 0 0 12px rgba(56, 232, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
#scbox small {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 7px;
  background: #060b16;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #4ce8ff;
  line-height: 1;
}
#sc {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  color: #eef6ff;
  letter-spacing: 0.05em;
}

/* ---------- Full-Width Middle Stage (Design A) ---------- */
#stage {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px));
  z-index: 0;
  width: 100%;
  margin: 0;
  background: #050a14 url("/games/knockout/arena-bg.webp?v=2") center center / contain no-repeat;
  overflow: hidden;
  pointer-events: none;
}
#arena-img {
  display: none;
}
#cv {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  image-rendering: pixelated;
  z-index: 2;
  background: transparent;
}
#callout {
  position: absolute;
  left: 0;
  right: 0;
  top: 24%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
#callout b {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--gold);
  letter-spacing: 0.03em;
  -webkit-text-stroke: 2px #050a14;
  text-shadow: 0 4px 0 #050a14, 0 0 22px rgba(255, 212, 71, 0.55);
}
#callout span {
  display: block;
  margin-top: -2px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 30px);
  color: var(--cy);
  -webkit-text-stroke: 1.5px #050a14;
  text-shadow: 0 3px 0 #050a14, 0 0 18px rgba(58, 215, 245, 0.75);
}
#callout.go { animation: callout 1.65s ease-out forwards; }
@keyframes callout {
  0% { opacity: 0; transform: scale(2.1) rotate(-4deg); }
  14% { opacity: 1; transform: scale(1) rotate(-2deg); }
  80% { opacity: 1; transform: scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: translateY(-14px) rotate(-2deg); }
}
#flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
#flash.go { animation: flash 0.45s ease-out; }
@keyframes flash { 0% { opacity: 0.8; } 100% { opacity: 0; } }
.fl {
  position: absolute;
  left: 55%;
  top: 34%;
  z-index: 5;
  pointer-events: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 3.8vw, 34px);
  text-shadow: 2px 3px 0 #000, 0 0 14px rgba(58, 215, 245, 0.5);
  animation: rise 1.3s ease-out forwards;
}
@keyframes rise {
  0% { opacity: 0; transform: translateY(10px) scale(0.7); }
  15% { opacity: 1; transform: translateY(0) scale(1.15); }
  100% { opacity: 0; transform: translateY(-54px) scale(1); }
}
#timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 5px;
  background: rgba(5, 10, 20, 0.75);
}
#tfill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3ad7f5, #8df0ff);
  box-shadow: 0 0 10px var(--cy);
  transition: width 0.18s linear;
}
#timer.low #tfill {
  background: var(--pk);
  box-shadow: 0 0 12px var(--pk);
  animation: blink 0.5s steps(2) infinite;
}
#tnum {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 7;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(6, 13, 25, 0.88);
  border: 1.5px solid var(--cy);
  color: #fff;
  box-shadow: 0 0 12px rgba(58, 215, 245, 0.35);
}
#timer.low #tnum { border-color: var(--pk); color: #ff9fb8; }
@keyframes blink { 50% { opacity: 0.55; } }

/* ---------- Floating Foreground & Bottom Console (Design A) ---------- */
#wrap {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--top-h) + env(safe-area-inset-top, 0px)) 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
}
#app {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pn {
  position: relative;
  background: var(--pn);
  border: 1.5px solid var(--cy);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(58, 215, 245, 0.25), inset 0 0 20px rgba(58, 215, 245, 0.06);
  padding: 20px 18px 14px;
  margin-top: 14px;
  animation: pin 0.22s ease-out;
}
@keyframes pin { from { transform: translateY(10px); opacity: 0; } }

.badge {
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--cy);
  color: #041018;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(58, 215, 245, 0.55);
}
.q {
  margin: 2px 0 6px;
  text-align: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.35;
  color: #f4f9ff;
}
.mut {
  color: var(--mut);
  font-size: 13px;
  line-height: 1.35;
  margin: 2px 0 8px;
  text-align: center;
}

/* Single-row input + LOCK IN + SKIP (Design A) */
.input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}
.input-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 9px;
  border: 1.5px solid #2a4769;
  background: #040914;
  color: #f4f9ff;
  font: 500 16px/1 var(--body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-row input:focus {
  border-color: var(--cy);
  box-shadow: 0 0 0 2px rgba(58, 215, 245, 0.25);
  outline: none;
}
.input-row input::placeholder { color: #5b7696; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1.5px solid var(--cy);
  background: rgba(12, 26, 46, 0.92);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.btn:hover:not(:disabled), .btn:focus-visible {
  background: var(--cy);
  color: #041018;
  box-shadow: 0 0 14px rgba(58, 215, 245, 0.45);
  outline: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.go {
  background: var(--cy);
  color: #041018;
  border-color: #8df0ff;
  box-shadow: 0 0 16px rgba(58, 215, 245, 0.42);
}
.btn.go:hover:not(:disabled), .btn.go:focus-visible {
  background: #7ceaff;
  color: #041018;
  transform: translateY(-1px);
}
.btn.alt {
  border-color: #2c405c;
  background: #141f33;
  color: #8fa6c0;
}
.btn.alt:hover:not(:disabled), .btn.alt:focus-visible {
  border-color: #4f6c91;
  background: #1c2c47;
  color: #fff;
  box-shadow: none;
}
.btn.full { width: 100%; margin-top: 10px; }

.msg {
  color: var(--pk);
  font-size: 13px;
  min-height: 18px;
  margin: 6px 0 0;
  text-align: center;
}
.msg:empty { display: none; }
.shake { animation: shake 0.35s; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ---------- Home Hero Dock ---------- */
.hero-screen {
  min-height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-dock {
  min-height: calc(var(--bot-h) - 14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 0 2px;
}
.action-dock {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}
.action-dock .btn, .action-dock a.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.14s ease;
}
.action-dock a.dock-btn.duel {
  border: 1.5px solid var(--pk);
  background: rgba(34, 12, 26, 0.92);
  color: #ff9ab4;
  box-shadow: 0 0 12px rgba(255, 79, 123, 0.22);
}
.action-dock a.dock-btn.duel:hover {
  background: var(--pk);
  color: #060c18;
  transform: translateY(-1px);
}
.action-dock a.dock-btn.rk {
  border: 1.5px solid var(--gold);
  background: rgba(30, 23, 8, 0.92);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(255, 212, 71, 0.2);
}
.action-dock a.dock-btn.rk:hover {
  background: var(--gold);
  color: #060c18;
  transform: translateY(-1px);
}
.dock-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: #8fa9c4;
}
.dock-meta .cd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cy);
}

/* ---------- Feedback, Results, Below Fold ---------- */
.big {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-top: 2px;
}
.lab {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  margin: 4px 0 8px;
  letter-spacing: 0.06em;
}
.ladder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  border-radius: 6px;
  border: 1.5px solid var(--tc);
  color: var(--tc);
  padding: 3px 8px;
  opacity: 0.45;
}
.chip.on { opacity: 1; background: var(--tc); color: #041018; }
.chip.all { opacity: 1; }
details { margin: 10px 0; }
summary { cursor: pointer; color: var(--cy); font-weight: 600; font-size: 13px; }
.list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #223854;
}
.list li.got { color: var(--ok); }
.sq { font-size: 22px; letter-spacing: 2px; text-align: center; margin: 8px 0; }
.bell { text-align: center; margin: 12px 0; }
.bell svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.belt { display: inline-block; vertical-align: middle; margin: -2px 5px 0; opacity: 0.45; filter: grayscale(1); }
.belt.on { opacity: 1; filter: none; }
.below-fold {
  margin-top: 32px;
  display: grid;
  gap: 14px;
  background: var(--bg);
  padding-top: 8px;
}
.below-fold .pn { margin-top: 0; }
.ubar.pro1 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pro { margin: 14px 0; padding-top: 12px; border-top: 1px dashed #2a4260; }
.pro .btn { width: 100%; margin-top: 8px; }

/* Customizer */
.cz { margin-top: 10px; border: 1.5px solid #223854; border-radius: 10px; background: #07101f; padding: 10px 12px; }
.cz summary { color: var(--gold); }
.cz p { margin: 6px 0 8px; font-size: 12px; color: var(--mut); }
.czr { display: flex; align-items: center; gap: 10px; margin: 7px 0; flex-wrap: wrap; }
.czl { font-family: var(--display); font-weight: 700; font-size: 11px; color: #8fa6c0; width: 64px; }
.czs { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #35506e; padding: 0; }
.sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--cy); }
.czp { float: right; width: 88px; height: 126px; image-rendering: pixelated; border: 1.5px solid #2a4260; border-radius: 8px; margin: 0 0 6px 12px; }
.cz::after { content: ""; display: block; clear: both; }
.cz .czr { margin-right: 104px; }

/* Modals */
#hpm, #arm {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(3, 7, 14, 0.84);
}
#hpm.on, #arm.on { display: flex; }
#hpb, #arb {
  position: relative; width: min(100%, 500px); max-height: calc(100dvh - 32px);
  overflow: auto; background: #07101f; border: 1.5px solid var(--cy);
  border-radius: 14px; box-shadow: 0 0 30px rgba(58, 215, 245, 0.3);
  padding: 20px;
}
#hpb h2, #arb h2 { font-family: var(--display); font-size: 16px; color: var(--cy); margin: 0 36px 12px 0; }
#hpb ol { margin: 0 0 12px 18px; padding: 0; font-size: 14px; line-height: 1.5; }
#hpb li { margin: 0 0 6px; }
#hpb .tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; font-size: 12px; margin: 8px 0 12px; }
#hpx, #arx {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 8px; background: transparent; border: 1.5px solid #35506e; color: #fff; font-size: 18px; padding: 0;
}
.arl { list-style: none; margin: 0; padding: 0; }
.arl li { margin: 0 0 6px; }
.arl button {
  width: 100%; display: flex; justify-content: space-between; gap: 10px;
  background: #0a1626; border: 1.5px solid #243b57; border-radius: 8px;
  color: #fff; padding: 10px 12px; font-size: 13px; text-align: left;
}
.arl button:hover { border-color: var(--cy); }
.arl button span:last-child { color: var(--cy); font-family: var(--mono); }

/* Footer / Backup */
#bk, #disc, #seo-content, .site-footer {
  position: relative; z-index: 10; background: var(--bg);
}
#seo-content {
  margin: 24px auto 0;
  padding: 22px 20px;
  border: 1px solid #1d314a;
  border-radius: 14px;
  background: rgba(7, 14, 27, 0.96);
  color: #b7cce2;
  font-size: 14px;
  line-height: 1.65;
}
#seo-content h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px);
  color: #8df0ff;
  text-align: left;
  text-shadow: none;
}
#seo-content h2 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: 16px;
  color: #e8f6ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#seo-content h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 14px;
  color: var(--cy);
}
#seo-content a { color: var(--cy); text-decoration: underline; text-underline-offset: 2px; }
#seo-content ol { margin: 0; padding-left: 20px; }
#seo-content li { margin-bottom: 6px; }
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.seo-table th, .seo-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1d314a;
  text-align: left;
}
.seo-table th {
  font-family: var(--display);
  color: #8df0ff;
  font-size: 12px;
  text-transform: uppercase;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.seo-grid > div {
  padding: 12px;
  border: 1px solid #1d314a;
  border-radius: 10px;
  background: rgba(5, 10, 20, 0.7);
}
.seo-grid p { margin: 0; font-size: 13px; }
.seo-faq { margin: 8px 0 0; }
.seo-faq dt { font-weight: 700; color: #eef6ff; margin-top: 10px; }
.seo-faq dd { margin: 3px 0 0; color: #9cb4ce; font-size: 13px; }
body.duel-stage #seo-content { display: none !important; }
@media (max-width: 640px) { .seo-grid { grid-template-columns: 1fr; } }
#bk {
  max-width: 480px; margin: 22px auto 0; text-align: center;
  font-size: 13px; color: #8fa6c0; border: 1px solid #1d314a; border-radius: 10px; padding: 10px 14px;
}
#bk input {
  width: 100%; margin: 8px 0; padding: 8px 10px; border-radius: 8px;
  background: #040914; color: #cfeaff; border: 1.5px solid #2a4260;
}
#bk button {
  padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--cy);
  background: #0a1626; color: var(--cy); font-family: var(--display); font-weight: 700; font-size: 12px;
}
#disc { font-size: 12px; color: #718aa6; text-align: center; margin: 18px auto 0; max-width: 640px; }
#about { max-width: 640px; margin: 16px auto 0; text-align: center; font-size: 13px; color: #8aa0b8; }
#about h2 { font-family: var(--display); font-size: 14px; margin: 0 0 6px; color: #9fe8ff; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 18px auto 28px; font-size: 13px; }
.site-footer a { color: #8fa6c0; text-decoration: none; }
.site-footer a:hover { color: var(--cy); text-decoration: underline; }

/* ---------- 1v1 Duel Stage Mode ---------- */
body.duel-stage #hud, body.duel-stage #bk, body.duel-stage #disc, body.duel-stage #about, body.duel-stage .site-footer { display: none !important; }
body.duel-stage::after { height: max(28dvh, 195px); }
body.duel-stage #stage { top: 0; bottom: max(28dvh, 195px); }
body.duel-stage #wrap { padding: 10px 12px 12px; max-width: 780px; }
body.duel-stage #app { min-height: calc(100dvh - 22px); justify-content: space-between; }
.duel-vs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  margin-bottom: auto; padding: 8px 14px; border-radius: 10px;
  border: 1.5px solid rgba(58, 215, 245, 0.55); background: rgba(6, 13, 25, 0.84);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.duel-corner { font-size: 13px; }
.duel-corner.red b { color: #ff6a7d; }
.duel-corner.blue { text-align: right; }
.duel-corner.blue b { color: #5fa8ff; }
.duel-pill {
  display: inline-block; margin-top: 2px; font-family: var(--display); font-weight: 700;
  font-size: 10px; padding: 2px 7px; border-radius: 999px; border: 1px solid #35506e; color: var(--mut);
}
.duel-pill.ok { border-color: var(--ok); color: var(--ok); }

/* ---------- Mobile Responsive ---------- */
@media (max-width: 720px) {
  :root { --top-h: 54px; --bot-h: max(25dvh, 195px); }
  #hud { padding-inline: 10px; gap: 6px; }
  #hud-left { gap: 8px; }
  #hl { font-size: 14px; }
  #pips { gap: 4px; }
  .pip { width: 7px; height: 7px; }
  .pip.cur { width: 9px; height: 9px; }
  #sitenav { gap: 5px; }
  .navbtn { height: 30px; padding: 0 9px; font-size: 10px; }
  #sitenav .navbtn:nth-child(1), #sitenav .navbtn:nth-child(2) { display: none; }
  #scbox { min-width: 70px; height: 32px; padding: 3px 8px 0; }
  #sc { font-size: 13px; }
  #hp, #snd { width: 30px; height: 30px; font-size: 12px; }
  .pn { padding: 18px 12px 12px; }
  .q { font-size: 15px; }
  .input-row { flex-wrap: wrap; gap: 8px; }
  .input-row input { flex: 1 1 100%; height: 40px; font-size: 15px; }
  .input-row .btn { flex: 1; height: 38px; font-size: 12px; padding: 0 12px; }
  .action-dock { grid-template-columns: 1fr 1fr; gap: 8px; }
  .action-dock .btn.go { grid-column: 1 / -1; height: 44px; }
  .action-dock a.dock-btn { height: 40px; font-size: 11px; }
  .ubar.pro1 { grid-template-columns: 1fr; }
}
