/* $DDD 6ix Arena — GTA-era SA vibe · Toronto · .io */
@import url("/games/shared/economy/shop.css?v=20260806-storefix2");

:root {
  --bg: #0b0a08;
  --panel: #14110c;
  --ink: #f5ecd8;
  --muted: #a89878;
  --gold: #ffd24a;
  --gold-dim: #c9a227;
  --mint: #9dccff;
  --pink: #ff7eb6;
  --violet: #a87eff;
  --sa-green: #a8d08d;
  --line: rgba(255, 210, 74, 0.18);
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body.ddd-io {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  /* SA-era Maple dusk page wash: orange haze + teal floor */
  background:
    radial-gradient(ellipse 55% 42% at 78% 8%, rgba(255, 150, 60, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 38% at 12% 95%, rgba(40, 140, 140, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 40%, rgba(90, 40, 90, 0.1), transparent 60%),
    linear-gradient(180deg, #1a0e14 0%, #0b0a08 45%, #081018 100%);
  line-height: 1.5;
}
a { color: var(--gold); }
a:hover { color: var(--mint); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; z-index: 99; background: var(--gold); color: #111; padding: 8px 12px; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px), 3vw) 12px max(16px, env(safe-area-inset-left, 0px), 3vw);
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: grid; gap: 2px; }
.brand .mark {
  font-weight: 800; letter-spacing: 0.04em; color: var(--gold);
  font-size: 1.25rem; text-shadow: 0 0 20px rgba(255,210,74,0.35);
}
.brand .sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.top nav {
  display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.top nav a {
  color: var(--muted); text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.top nav a:hover { color: var(--ink); }
.radio-dock {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.radio-eq {
  display: inline-flex; align-items: flex-end; gap: 3px;
  height: 18px; width: 18px; margin-right: 2px;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}
.radio-eq[data-on="true"] { opacity: 1; }
.radio-eq i {
  display: block; width: 3px; border-radius: 1px;
  background: var(--sa-green);
  height: 6px;
  transform-origin: bottom center;
}
.radio-eq[data-on="true"] i:nth-child(1) { animation: radio-eq 0.55s ease-in-out infinite alternate; }
.radio-eq[data-on="true"] i:nth-child(2) { animation: radio-eq 0.42s ease-in-out 0.08s infinite alternate; height: 12px; }
.radio-eq[data-on="true"] i:nth-child(3) { animation: radio-eq 0.5s ease-in-out 0.04s infinite alternate; height: 9px; }
.radio-eq[data-on="true"] i:nth-child(4) { animation: radio-eq 0.38s ease-in-out 0.12s infinite alternate; height: 14px; }
@keyframes radio-eq {
  from { transform: scaleY(0.35); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}
.music-btn {
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--sa-green);
  font: 600 12px var(--mono); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.music-btn:hover {
  border-color: rgba(168, 208, 141, 0.45);
  color: var(--ink);
}
.music-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sa-green);
}
.music-btn:active { transform: scale(0.97); }
.music-btn.ghost { color: var(--muted); min-width: 44px; padding: 0 12px; }
.music-btn.radio-open {
  color: var(--mint);
  border-color: rgba(157, 204, 255, 0.28);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.music-btn.radio-open:hover { color: var(--ink); border-color: rgba(157, 204, 255, 0.55); }
.music-btn[aria-pressed="true"] {
  background: rgba(168, 208, 141, 0.18);
  border-color: var(--sa-green);
  color: var(--sa-green);
  box-shadow: 0 0 18px rgba(168, 208, 141, 0.12);
}
.radio-now {
  margin: 0;
  padding: 8px max(16px, env(safe-area-inset-right, 0px), 3vw) 8px max(16px, env(safe-area-inset-left, 0px), 3vw);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 20, 16, 0.72);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  min-height: 40px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.radio-now[data-on="true"] {
  color: var(--ink);
  border-bottom-color: rgba(168, 208, 141, 0.28);
  background:
    linear-gradient(90deg, rgba(168, 208, 141, 0.1), transparent 42%),
    rgba(9, 20, 16, 0.85);
}
.radio-now:empty { display: none; }
.radio-now__badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(168, 152, 120, 0.35);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}
.radio-now[data-on="true"] .radio-now__badge {
  color: #0b120e;
  background: var(--sa-green);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(168, 208, 141, 0.35);
}
.radio-now__line {
  flex: 1 1 12rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radio-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(207, 240, 236, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(12, 28, 26, 0.85), rgba(207, 240, 236, 0.06));
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.35;
}
.radio-promo strong { color: var(--sa-green); }
.radio-promo a { color: var(--mint); }
.radio-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(207, 240, 236, 0.45);
  background: rgba(207, 240, 236, 0.12);
  color: #cff0ec !important;
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background 140ms ease, border-color 140ms ease;
}
.radio-promo__btn:hover {
  background: rgba(207, 240, 236, 0.22);
  border-color: rgba(207, 240, 236, 0.7);
}
.radio-promo__btn.ghost {
  background: transparent;
  border-color: rgba(157, 204, 255, 0.4);
  color: #9dccff !important;
}
.radio-promo__meta {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.82rem;
}

.lore-card {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 210, 74, 0.08), rgba(0, 0, 0, 0.35));
}
.lore-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--gold);
}
.lore-card p { margin: 0 0 8px; color: var(--ink); text-wrap: pretty; }
.lore-card .lore-fine { margin: 0; color: var(--muted); }

.layout {
  max-width: 1180px; margin: 0 auto;
  padding: 28px max(16px, 3vw) 48px;
  display: grid; gap: 28px;
}
.hero-copy { max-width: 40rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--gold); background: rgba(0,0,0,0.35);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #f44;
  box-shadow: 0 0 0 0 rgba(255,68,68,0.5); animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}
.hero-copy h1 {
  margin: 0; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 0.95;
  letter-spacing: -0.03em; font-weight: 700;
}
.hero-copy h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold);
}
.lede { color: var(--muted); margin: 14px 0 0; font-size: 1.05rem; }
.tagline {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  font-size: 1.2rem; margin: 10px 0 0;
}
.tagline em { color: var(--mint); }
.bullets {
  margin: 18px 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem;
}
.bullets li { margin: 6px 0; }
.bullets strong { color: var(--ink); }

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}
.mode-btn {
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255, 60, 60, 0.4);
  background: rgba(20, 6, 8, 0.85);
  color: #ffb0b0;
  padding: 0.45rem 0.85rem;
  font: 700 0.78rem var(--mono);
  letter-spacing: 0.06em;
}
.mode-btn:hover { filter: brightness(1.1); border-color: #ff4040; }
.mode-btn.is-on {
  background: linear-gradient(90deg, #ff2020, #a01010);
  color: #fff;
  border-color: #ff4040;
  box-shadow: 0 0 16px rgba(255, 40, 40, 0.35);
}
.mode-btn--horde.is-on {
  background: linear-gradient(90deg, #ff4040, #801010);
  border-color: #ff4040;
  box-shadow: 0 0 16px rgba(255, 40, 40, 0.4);
}
.mode-btn--bureau {
  border-color: rgba(232, 165, 75, 0.45);
  color: #ffd8a0;
}
.mode-btn--bureau.is-on {
  background: linear-gradient(90deg, #e8a54b, #8a5a18);
  color: #1a1004;
  border-color: #e8a54b;
  box-shadow: 0 0 16px rgba(232, 165, 75, 0.4);
}
.mode-btn--wokenet {
  border-color: rgba(168, 126, 255, 0.45);
  color: #d8c0ff;
}
.mode-btn--wokenet.is-on {
  background: linear-gradient(90deg, #a87eff, #4a2080);
  color: #fff;
  border-color: #a87eff;
  box-shadow: 0 0 16px rgba(168, 126, 255, 0.4);
}
.mode-btn--random.is-on {
  background: linear-gradient(90deg, #5eead4, #1a6a60);
  color: #041210;
  border-color: #5eead4;
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.35);
}
.team-pick .mode-btn {
  min-width: 5.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.drop-bar .join { margin-top: 0.5rem; }
.join {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
}
.join label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.join input {
  min-height: 48px; min-width: 180px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #000; color: var(--ink); font: 600 15px var(--sans);
}
.cta {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 4px;
  background: linear-gradient(90deg, #ffd24a, #ff914d); color: #111;
  font: 800 14px var(--sans); cursor: pointer; letter-spacing: 0.02em;
  box-shadow: 0 0 0 0 rgba(255, 210, 74, 0.4);
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.cta:hover { filter: brightness(1.06); animation: none; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 74, 0.35); }
  50% { box-shadow: 0 0 24px 4px rgba(255, 210, 74, 0.25); }
}
.fine { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); max-width: 42rem; }
.status { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--sa-green); }
.status[data-kind="live"] { color: var(--mint); }
.status[data-kind="hot"] { color: var(--pink); }
.status[data-kind="win"] { color: var(--gold); font-weight: 700; }

.contest-banner {
  margin-top: 20px; padding: 16px 18px;
  border: 1px solid rgba(255, 210, 74, 0.35);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 210, 74, 0.1), rgba(168, 126, 255, 0.08));
}
.contest-banner h2 {
  margin: 0 0 8px; font-size: 1.15rem; color: var(--gold);
}
.contest-banner p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.contest-banner strong { color: var(--ink); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px; align-items: start;
}
.stage--with-club {
  align-items: stretch;
}
.play-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.play-stack .canvas-wrap {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-width: 1px;
}
.play-stack .chat-mount--docked {
  margin: 0;
}
.play-stack .chat-mount--docked .gchat {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.legend .hint-club {
  margin-top: 8px;
  color: #5eead4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.canvas-wrap {
  position: relative;
  border: 3px solid var(--gold-dim);
  border-radius: 2px;
  overflow: hidden;
  background: #0a0806;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,210,74,0.2),
    inset 0 0 0 1px rgba(255, 160, 60, 0.12);
}
.canvas-wrap::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 56px rgba(40, 20, 10, 0.4);
  /* gfxdense1-corner */
  background:
    linear-gradient(135deg, rgba(255, 200, 80, 0.4) 0 10px, transparent 10px) top left / 28px 28px no-repeat,
    linear-gradient(225deg, rgba(255, 200, 80, 0.4) 0 10px, transparent 10px) top right / 28px 28px no-repeat,
    linear-gradient(45deg, rgba(255, 200, 80, 0.28) 0 10px, transparent 10px) bottom left / 28px 28px no-repeat,
    linear-gradient(315deg, rgba(255, 200, 80, 0.28) 0 10px, transparent 10px) bottom right / 28px 28px no-repeat;
}
#arena-canvas {
  display: block; width: 100%; height: auto;
  touch-action: none; cursor: crosshair;
  image-rendering: auto;
}
.sa-chrome {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; pointer-events: none;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255, 210, 74, 0.72); text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 12px rgba(255, 180, 60, 0.35);
  background: linear-gradient(180deg, rgba(12, 8, 4, 0.55), transparent);
  border-bottom: 1px solid rgba(255, 180, 60, 0.18);
}
.sa-chrome::after {
  content: "★★★★★";
  letter-spacing: 0.2em;
  color: rgba(255, 60, 50, 0.45);
  font-size: 10px;
}

.side {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel); padding: 14px;
}
.side h2 {
  margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); font-family: var(--mono);
}
.player-row,
.board li[data-player] {
  cursor: pointer;
}
.player-row:hover .nm,
.board li[data-player]:hover .nm {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.board {
  list-style: none; margin: 0; padding: 0;
  max-height: 280px; overflow: auto;
}
.board li {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}
.board li.me { color: var(--gold); background: rgba(255, 210, 74, 0.06); }
.board li.down { opacity: 0.4; }
.board .rk { color: var(--muted); font-family: var(--mono); }
.board .st { color: var(--pink); font-style: normal; font-weight: 700; font-size: 10px; }
.canvas-wrap:focus-within {
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 2px rgba(255,210,74,0.45);
}
.legend { margin-top: 12px; font-size: 11px; color: var(--muted); }
.legend .g { color: var(--gold); }
.legend .c { color: #4aa3ff; }
.legend .a { color: #e8c45a; }
.legend .h { color: #ff7eb6; }
.legend .s { color: var(--violet); }
.legend .mp { color: #5eead4; }
.mp-peers-h {
  margin: 16px 0 8px !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em;
  color: #5eead4 !important;
}
.mp-peers .empty { display: block; color: var(--muted); font-size: 11px; padding: 6px 0; }
.link-out {
  display: inline-block; margin-top: 14px; font-size: 12px;
  font-family: var(--mono); color: var(--mint);
}

/* Multiplayer room seed UI */
.mp-room {
  margin: 16px 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.08), rgba(0, 0, 0, 0.35));
}
.mp-room__title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  font-family: var(--mono);
}
.mp-room__lede {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.mp-room__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.mp-room__row label {
  display: grid;
  gap: 4px;
  flex: 1 1 120px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mp-room__row input {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #5eead4;
  min-height: 44px;
}
.mp-room__btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: color-mix(in oklab, #5eead4 22%, transparent);
  color: #e8fffa;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.mp-room__btn:hover { filter: brightness(1.08); }
.mp-room__btn.ghost {
  background: transparent;
  color: #5eead4;
}
.mp-room__status {
  margin: 10px 0 0;
  font-size: 12px;
  font-family: var(--mono);
  color: #9cf;
}
.mp-room__status[data-kind="live"] { color: #5eead4; }
.mp-room__status[data-kind="err"] { color: #ff8a8a; }
.mp-room__status[data-kind="ok"] { color: var(--muted); }

.contest-panel {
  margin-top: 28px; padding: 20px;
  border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,0.35);
}
.contest-pill {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: #111; background: var(--gold); border-radius: 999px; font-weight: 700;
}
.contest-panel h2 { margin: 0 0 8px; color: var(--gold); }
.contest-lede { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }
.contest-board {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.contest-board li {
  display: grid; grid-template-columns: 36px 1fr auto 28px; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25); font-size: 13px;
}
.contest-board li:nth-child(-n+3) { background: rgba(255, 210, 74, 0.08); }
.contest-board li.empty { display: block; color: var(--muted); }
.contest-board .rk { font-family: var(--mono); color: var(--gold); }
.contest-board .sc { font-family: var(--mono); font-weight: 700; }
.contest-board .prize { color: var(--gold); }
.contest-claim { margin: 14px 0 8px; font-size: 0.9rem; color: var(--ink); }
.contest-links { font-size: 0.85rem; }
.contest-fine { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); }

.foot {
  border-top: 1px solid var(--line); padding: 28px max(16px, 3vw) 40px;
  text-align: center; color: var(--muted); font-size: 0.85rem;
}
.foot p { margin: 0 0 8px; }

/* Mobile combat pads — fire + melt + dash (WASD still keyboard / drag canvas) */
.io-touch {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 36px;
  z-index: 5;
  gap: 10px;
  pointer-events: none;
}
.io-pad {
  pointer-events: auto;
  min-width: 72px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  backdrop-filter: blur(6px);
}
.io-pad:active,
.io-pad.held {
  background: rgba(255, 210, 74, 0.22);
  border-color: var(--gold-dim);
  color: var(--gold);
}
.io-pad.fire { color: #ffe566; }
.io-pad.melt { color: var(--pink); }
.io-pad.dash { color: var(--mint); }
@media (max-width: 900px), (pointer: coarse) {
  .io-touch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .top nav { width: 100%; margin-left: 0; }
  .radio-dock {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .music-btn#music-toggle { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pill .dot { animation: none; }
  .cta { animation: none; }
  .music-btn, .radio-now, .radio-eq { transition: none; }
  .music-btn:active { transform: none; }
  .radio-eq[data-on="true"] i,
  .radio-eq[data-on="true"] i:nth-child(1),
  .radio-eq[data-on="true"] i:nth-child(2),
  .radio-eq[data-on="true"] i:nth-child(3),
  .radio-eq[data-on="true"] i:nth-child(4) {
    animation: none !important;
    transform: none;
    height: 10px;
    opacity: 0.85;
  }
}

.mp-room--moshpit .mp-room__row { display: none; }
.mp-room--moshpit .mp-room__title { color: #5eead4; }
.mp-peers-h { margin-top: 14px !important; color: #5eead4 !important; font-size: 0.75rem !important; letter-spacing: 0.1em; text-transform: uppercase; }


/* gfxdense4-scan — soft CRT/SA glass (very light, web-first) */
.canvas-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.55) 2px,
    rgba(0, 0, 0, 0.55) 3px
  );
}


/* gfxdense5-focus */
.canvas-wrap:focus-within {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 210, 74, 0.55),
    0 0 28px rgba(255, 210, 74, 0.18);
}
body.wetdrool-arena .canvas-wrap:focus-within {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 126, 182, 0.55),
    0 0 28px rgba(255, 126, 182, 0.2);
}


/* gfxdense7-war — subtle red rim when arena has focus (machine hunt feel) */
.canvas-wrap:focus-within {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(255, 60, 60, 0.35),
    0 0 32px rgba(255, 40, 60, 0.12),
    0 0 0 1px rgba(255, 210, 74, 0.25);
}


/* gfxdense8-faction legend chips (if page injects) */
.faction-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.faction-legend span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  background: rgba(0,0,0,0.35);
}
.faction-legend .hz { color: #ff6a6a; border-color: rgba(255,40,40,0.4); }
.faction-legend .cb { color: #9dccff; border-color: rgba(74,163,255,0.45); }
.faction-legend .wn { color: #e0c0ff; border-color: rgba(168,126,255,0.45); }


/* gfxdense9-foilbar */
.canvas-wrap {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 210, 74, 0.2),
    inset 0 -3px 0 rgba(255, 210, 74, 0.35);
}

/* Fullscreen arena shell */
body.is-fs-play { overflow: hidden; }
.canvas-wrap.is-fullscreen,
body.is-fs-play .canvas-wrap.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9000;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  background: #050608;
}
body.is-fs-play .canvas-wrap.is-fullscreen canvas {
  width: 100% !important;
  height: 100% !important;
}
.fs-fab {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 5;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  color: #f5f0e6;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.fs-fab:hover { border-color: #ffd24a; color: #ffd24a; }
body.wetdrool-arena .fs-fab:hover { border-color: #ff7eb6; color: #ff7eb6; }
body.is-fs-play .top,
body.is-fs-play .radio-now,
body.is-fs-play .foot,
body.is-fs-play .hero-copy { /* keep chrome out of the way when native FS may not hide all */
}


/* gfxdense10-scan-soft — lighter than prior scan; SA glass */
.canvas-wrap {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 18%,
    transparent 82%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* gfxdense11 — foil rim + radar-adjacent chrome plate */
.canvas-wrap {
  box-shadow:
    inset 0 0 0 1px rgba(232, 196, 90, 0.22),
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.45);
}
body.wetdrool-arena .canvas-wrap {
  box-shadow:
    inset 0 0 0 1px rgba(255, 126, 182, 0.28),
    inset 0 0 48px rgba(40, 0, 30, 0.4),
    0 8px 28px rgba(20, 0, 16, 0.55);
}
.hud-chip,
.stat-chip,
[data-hud] {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

/* gfxdense12 — SA glass corner ticks + subtle film grain (CSS only, no FPS hit) */
.canvas-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 10px 10px 0 -8px rgba(255, 210, 74, 0.35),
    inset -10px 10px 0 -8px rgba(255, 210, 74, 0.25),
    inset 10px -10px 0 -8px rgba(255, 210, 74, 0.2),
    inset -10px -10px 0 -8px rgba(255, 210, 74, 0.2);
  opacity: 0.85;
  z-index: 2;
}
body.wetdrool-arena .canvas-wrap::after {
  box-shadow:
    inset 10px 10px 0 -8px rgba(255, 126, 182, 0.45),
    inset -10px 10px 0 -8px rgba(255, 126, 182, 0.3),
    inset 10px -10px 0 -8px rgba(255, 100, 160, 0.25),
    inset -10px -10px 0 -8px rgba(255, 100, 160, 0.25);
}


/* gfxdense13 — top HUD glass bevel */
.canvas-wrap {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 14%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.18) 100%);
}


/* gfxdense14 — radar-side chrome pulse bar */
.canvas-wrap {
  outline: 1px solid rgba(255, 210, 74, 0.12);
}
body.wetdrool-arena .canvas-wrap,
.wetdrool-arena .canvas-wrap {
  outline-color: rgba(255, 126, 182, 0.18);
}
