/* The game stage: canvas, caption, weapon callout, swipe hint, progress pips. Sizes scale with --u (1% of stage width). */
#game { display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
#stage { position: relative; --u: 3.6px; overflow: hidden; background: #120f2a; box-shadow: 0 0 0 2px var(--line); }
#cv { display: block; width: 100%; height: 100%; image-rendering: crisp-edges; image-rendering: pixelated; }
.caption {
  position: absolute;
  top: calc(var(--u) * 3);
  left: calc(var(--u) * 4);
  right: calc(var(--u) * 4);
  padding: calc(var(--u) * 2.6) calc(var(--u) * 3.2);
  background: var(--panel);
  box-shadow: inset 0 0 0 2px var(--line);
  text-align: center;
  transition: opacity 0.18s linear;
  pointer-events: none;
}
.caption.fade { opacity: 0; }
.caption h2 { margin: 0; font-family: var(--body); font-weight: 700; font-size: calc(var(--u) * 6.2); line-height: 1.1; color: var(--gold); text-wrap: balance; }
.caption p { margin: calc(var(--u) * 1.4) 0 0; font-size: calc(var(--u) * 4.1); line-height: 1.3; color: var(--ink); text-wrap: pretty; }
.caption.brand h2 { font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * 7.4); color: var(--teal); text-transform: lowercase; text-shadow: calc(var(--u) * 0.6) calc(var(--u) * 0.6) 0 var(--night); }
.callout {
  position: absolute;
  left: calc(var(--u) * 6);
  right: calc(var(--u) * 6);
  bottom: calc(var(--u) * 8);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 3);
  padding: calc(var(--u) * 2) calc(var(--u) * 3);
  background: var(--panel);
  box-shadow: inset 0 0 0 2px var(--gold);
  pointer-events: none;
  transition: opacity 0.2s linear;
}
.callout.req { box-shadow: inset 0 0 0 2px var(--danger); }
.callout.off { opacity: 0; }
.callout canvas { width: calc(var(--u) * 11); height: calc(var(--u) * 11); flex: none; image-rendering: crisp-edges; image-rendering: pixelated; }
.callout div { min-width: 0; }
.callout small { display: block; font-family: var(--display); font-size: calc(var(--u) * 2.6); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.callout.req small { color: var(--danger); }
.callout strong { display: block; margin-top: calc(var(--u) * 1); font-size: calc(var(--u) * 5.4); line-height: 1.1; font-weight: 700; color: var(--ink); }
.callout.pop { animation: pop 0.22s steps(3); }
@keyframes pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.06); } }
.hint {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--u) * 9);
  text-align: center;
  font-family: var(--display);
  font-size: calc(var(--u) * 3.2);
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--night);
  pointer-events: none;
  transition: opacity 0.3s linear;
}
/* The arrow is decoration: the empty alt text keeps screen readers from reading it, where alt text for content is supported. */
.hint::before { content: "▲"; content: "▲" / ""; display: block; margin-bottom: calc(var(--u) * 1.5); color: var(--gold); animation: nudge 0.8s steps(2) infinite; }
.hint.off { opacity: 0; }
@keyframes nudge { 50% { transform: translateY(calc(var(--u) * -1.6)); } }
.pips { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 3.4); display: flex; justify-content: center; gap: calc(var(--u) * 1.6); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pips li { width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); background: rgba(243, 240, 255, 0.25); }
.pips li.on { background: var(--gold); }
.pips li.done { background: var(--teal); }
.finish { position: absolute; left: calc(var(--u) * 10); right: calc(var(--u) * 10); bottom: calc(var(--u) * 9); font-size: calc(var(--u) * 3.3); }

@media (prefers-reduced-motion: reduce) {
  .hint::before, .callout.pop { animation: none; }
}
