/* Gettoweb – demospel op de gamificationpagina */
.game {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--green-950);
  box-shadow: 0 2px 6px rgba(14, 36, 34, 0.08), 0 32px 64px -28px rgba(14, 36, 34, 0.45);
}
.game { scroll-margin-top: calc(var(--header-h) + 16px); }
.game canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  /* nooit hoger dan het scherm, zodat het bakje onderaan altijd zichtbaar is */
  max-height: calc(100vh - var(--header-h) - 40px);
  max-height: calc(100svh - var(--header-h) - 40px);
  touch-action: none;
}
.game-overlay.is-vergrendeld { pointer-events: none; }
.game canvas:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; border-radius: var(--radius-xl); }

.game-hud {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.game-hud strong { color: var(--lime); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--white);
  background: rgba(7, 53, 50, 0.9);
}
.game-overlay[hidden] { display: none; }
.game-overlay h3 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.125rem); }
.game-overlay p { max-width: 40ch; color: rgba(255, 255, 255, 0.86); }
.game-overlay .btn-row { justify-content: center; margin-top: 6px; }
.game-overlay .game-final {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  line-height: 1;
  color: var(--lime);
}

@media (max-width: 599px) {
  .game canvas { aspect-ratio: 4 / 5; }
}
