/* Shared standalone-game foundation. Each game keeps its own identity while
   this file owns the interaction rhythm, readable controls and theme state. */
:root {
  --game-focus: #1cd7c6;
  --game-control-height: 40px;
  --game-radius-control: 9px;
}

html,
body {
  min-height: 100%;
}

button,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--game-focus) 62%, transparent);
  outline-offset: 3px;
}

[data-theme="white"] {
  color-scheme: light;
}

[data-theme="dark"],
[data-theme="bright"] {
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
