/* Pong — arcade (design/Jeu - Pong). The landscape field sits on the shared arcade
   surface: a warm deep-ink band, the same in light and dark. Score is drawn on the
   field; the header (.lz-stats, taken over by the game) carries the match state.
   Controls + keyboard hint sit below the band on the page ground. Scoped .pg-root. */

.pg-root { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); inline-size: 100%; color: var(--color-text); user-select: none; -webkit-user-select: none; }

.pg-stage {
  inline-size: 100%; box-sizing: border-box;
  background: #211d19; border-block: 1px solid #12100d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: var(--space-4) 0; display: flex; justify-content: center;
}
.pg-play { position: relative; inline-size: 100%; max-inline-size: 900px; padding-inline: var(--space-4); box-sizing: border-box; }
.pg-canvas { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 900 / 520; touch-action: none; }

.pg-overlay {
  position: absolute; inset: 0 var(--space-4);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  background: rgba(18, 16, 13, 0.55); text-align: center; padding: 20px;
}
.pg-overlay.show { display: flex; }
.pg-overlay-msg { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.1rem, 3.4vw, 1.6rem); color: #f2efe6; }
.pg-primary {
  font: inherit; font-family: var(--font-heading); font-weight: 600; cursor: pointer;
  min-block-size: 46px; padding: 0 26px; border-radius: var(--radius-md);
  color: #211d19; background: var(--color-accent-400); border: 1px solid var(--color-accent-400);
}
.pg-primary:active { transform: translateY(1px); }

/* Controls + hint below the band, on the page ground (theme-following). */
.pg-controls { display: flex; align-items: stretch; gap: var(--space-2); justify-content: center; inline-size: 100%; max-inline-size: 460px; }
.pg-pad { display: flex; gap: var(--space-2); }
.pg-btn {
  font: inherit; min-block-size: 52px; padding: 0 var(--space-4); border-radius: var(--radius-md); cursor: pointer;
  color: var(--color-neutral-800); background: transparent; border: 1px solid var(--color-neutral-400);
  touch-action: manipulation; box-sizing: border-box;
}
.pg-btn[data-pg="toggle"] { flex: 1; font-family: var(--font-heading); font-weight: 600; border-color: var(--color-accent); color: var(--color-accent-700); }
.pg-btn:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.pg-btn:active { transform: translateY(1px); }
.pg-dir { inline-size: 64px; padding: 0; display: grid; place-items: center; font-size: 1.05rem; }
:root[data-theme="dark"] .pg-btn { color: #d7d3d3; border-color: #56514b; }
:root[data-theme="dark"] .pg-btn[data-pg="toggle"] { color: var(--color-accent-400); border-color: var(--color-accent-400); }

.pg-hint { text-align: center; font-size: 12px; color: var(--color-neutral-600); max-inline-size: 560px; }
.lz-variants.pg-inline { margin: 0; }

@media (prefers-reduced-motion: reduce) { .pg-btn:active, .pg-primary:active { transform: none; } }
