:root{
  --bg: #0b0b10;
  --bg-2: #0f0f16;
  --panel: #12121b;
  --ink: #e9e9f0;
  --muted: #9aa0a6;
  --accent: #a100ff;    /* matches your site */
  --accent-2: #6ee7d8;  /* soft mint for contrast */
}

/* page */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(80vmax 60vmax at 20% -10%, rgba(161,0,255,.18), transparent 60%),
    radial-gradient(60vmax 50vmax at 120% 120%, rgba(110,231,216,.12), transparent 60%),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

/* layout */
.arcade{
  width: min(820px, 96vw);
  display: grid;
  gap: 16px;
}
.arcade__header{
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.arcade__header h1{
  font-weight: 700; letter-spacing: .5px; margin: 0;
}
.arcade__header h1 span{ filter: drop-shadow(0 2px 6px rgba(161,0,255,.6)); }

.hud{ display: flex; gap: 10px; flex-wrap: wrap; }

/* badges */
.badge{
  background: #1a1b26;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.06);
}
.badge--muted{ color: var(--muted); }

/* game card */
.card{
  position: relative;
  background: linear-gradient(180deg, var(--panel), #13131f);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 18px 18px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.card__glow{
  content:"";
  position: absolute; inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 90deg, rgba(161,0,255,.35), rgba(110,231,216,.25), rgba(161,0,255,.35));
  filter: blur(18px);
  z-index: 0; opacity: .35; pointer-events: none;
}
#gameCanvas{
  position: relative; z-index: 1;
  display: block; width: min(740px, 90vw); height: auto;  /* responsive without breaking grid math */
  background: #0d0e12;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.35);
}

/* controls */
.controls{
  margin-top: 12px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.btn{
  border: 0; outline: none; cursor: pointer;
  background: linear-gradient(180deg, #1f0a2a, #241b36);
  color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(161,0,255,.35) inset, 0 6px 16px rgba(161,0,255,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(161,0,255,.6) inset, 0 8px 20px rgba(161,0,255,.35); }

.toggle{ display: inline-flex; align-items: center; gap: 6px; color: var(--muted); user-select: none; }
.toggle input{ accent-color: var(--accent); }

.hint{
  font-family: 'Press Start 2P', system-ui, sans-serif;
  font-size: .7rem; color: var(--muted); opacity: .85;
}

/* small */
@media (max-width: 520px){
  .hint{ display: none; }
}
