/* Mini-game: Catch the Order */
.game {
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  backdrop-filter: blur(8px);
  padding: clamp(10px, 2vw, 18px);
  max-width: 920px; margin-inline: auto;
}
.hud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: 0 .4rem .7rem; font-weight: 700;
}
.hud__item { display: flex; align-items: baseline; gap: .4rem; }
.hud__item small { opacity: .8; font-weight: 400; font-size: .85rem; }
.hud__item b { font: 800 1.35rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.hud__lives { letter-spacing: .12em; color: var(--accent); font-size: 1.3rem; text-shadow: 0 0 10px rgba(255, 106, 61, .5); }
.hud__combo { color: var(--gold); min-width: 2.6em; }

.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, #0a52d9, var(--blue-night));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: ew-resize; }
.stage.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 700px) { .stage { aspect-ratio: 4 / 5; } }

.overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  padding: 1.2rem; text-align: center;
  background: rgba(1, 40, 120, .72); backdrop-filter: blur(4px);
}
.overlay h3 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.overlay p { max-width: 34ch; opacity: .92; }
.overlay .big { font: 800 clamp(2.6rem, 10vw, 4.4rem)/1 system-ui, sans-serif; color: var(--gold); }
.overlay .record { color: var(--gold); font-weight: 800; }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; padding-top: .8rem; font-size: .9rem; opacity: .9; }
