:root {
  --ink: #e8f0ff;
  --dim: #8296b8;
  --gold: #ffcf5c;
  --hot: #ff5c8a;
  --cool: #5cc8ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #05060d;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
}

canvas {
  display: block;
  max-height: 100%;
  max-width: 100%;
  image-rendering: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 13, 0.82);
  backdrop-filter: blur(6px);
}

.overlay.hidden {
  display: none;
}

.panel {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(92, 200, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 26, 48, 0.95), rgba(9, 11, 24, 0.95));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  font-size: 40px;
  letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 207, 92, 0.4);
}

p {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
}

.choices {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.choices:empty {
  display: none;
}

.card {
  padding: 14px 16px;
  border: 1px solid rgba(92, 200, 255, 0.3);
  border-radius: 12px;
  background: rgba(92, 200, 255, 0.06);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(255, 207, 92, 0.1);
  outline: none;
}

.card b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  letter-spacing: 1px;
}

.card span {
  color: var(--dim);
  font-size: 14px;
}

.button {
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #14100a;
  font: inherit;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}

.button:hover {
  background: #ffe19a;
}

.button.hidden {
  display: none;
}

.hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: #5a6a88;
}

kbd {
  padding: 1px 6px;
  border: 1px solid #33405c;
  border-radius: 5px;
  font-family: inherit;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
