/* Lights Out: the windows (as buttons over the building), the wasted-light meter and the
   stars (frame in ../game.css). */
.game { width: min(100%, 550px, calc((100svh - 240px) * 600 / 760 + 30px)); }
@media (max-width: 520px) { .game { width: 100%; } }
.board { background: #0b1428; cursor: default; }

.lights__win {
  position: absolute; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .1s ease;
}
.lights__win img { position: static; display: block; width: 100%; height: auto; }
.lights__win:active { transform: scale(.96); }
.lights__win:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.lights__win.is-click { animation: lights-click .25s ease; }
@keyframes lights-click { 40% { transform: scale(.92); } }
.lights__win:disabled { cursor: default; }

.lights__meter {
  position: absolute; left: 3%; right: 3%; top: 2.2%; display: flex; align-items: center; gap: 10px;
  font: 400 clamp(.85rem, 2.6vw, 1.1rem)/1 var(--comic); letter-spacing: .05em; color: #fff; text-transform: uppercase;
  pointer-events: none;
}
.lights__bar { flex: 1; height: 16px; background: #26323a; border: 3px solid #fff; border-radius: 999px; overflow: hidden; }
.lights__fill { height: 100%; width: 0; background: var(--sun); border-radius: 999px; transition: background .3s; }
.lights__fill.is-high { background: #e2574c; }

@media (prefers-reduced-motion: reduce) {
  .lights__win, .lights__win.is-click { transition: none; animation: none; }
}
