/* Arrow Flow - site-matched dark theme */

.stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg, #16161a);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* HUD */
.hud {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px 16px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim, #8b8b97);
}

.chip strong {
  color: var(--text, #e8e6e3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 26, 0.97);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.overlay.hidden {
  display: none;
}

.overlay h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text, #e8e6e3);
  margin: 0 0 8px;
}

.overlay p {
  font-size: 14px;
  color: var(--text-dim, #8b8b97);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 300px;
}

.overlay button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #16161a;
  background: var(--accent, #f0a050);
  border: none;
  border-radius: 12px;
  padding: 14px 48px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.overlay button:hover {
  opacity: 0.85;
}

.overlay button:focus-visible {
  outline: 2px solid var(--accent2, #e07090);
  outline-offset: 2px;
}
