/* Lanterns board. Inherits the existing theme tokens (--text, --muted, --line, --accent, --action-text). */
.lanterns { display: grid; justify-items: center; gap: 1.25rem; width: min(100%, 24rem); margin-inline: auto; color: inherit; }
.lanterns-grid { display: grid; gap: .35rem; width: 100%; }
.lanterns-grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
.lanterns-grid[data-columns="5"] { grid-template-columns: repeat(5, minmax(44px, 1fr)); }
.lantern { position: relative; width: 100%; min-width: 44px; min-height: 44px; aspect-ratio: 1; display: grid; place-items: center; margin: 0; padding: 0; font: inherit; line-height: 1; color: var(--muted, currentColor); background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid var(--line, #c2ccbd); border-radius: 4px; cursor: pointer; }
.lantern-glow { display: block; width: 44%; height: 44%; min-width: 14px; min-height: 14px; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
.lantern.is-lit { color: var(--action-text, var(--canvas, #fff)); background: var(--accent, currentColor); border-color: var(--accent, currentColor); }
.lantern.is-lit .lantern-glow { background: currentColor; }
.lantern:hover { border-color: var(--accent, currentColor); }
.lantern:focus-visible { outline: 3px solid var(--text, currentColor); outline-offset: 3px; }
.lantern[aria-current="true"] { box-shadow: 0 0 0 2px var(--text, currentColor); }
.lanterns[data-state="solved"] .lantern { border-color: var(--accent, currentColor); }
.lanterns[data-state="blocked"] .lantern, .lanterns[data-state="waiting"] .lantern { cursor: default; }
.lanterns-tally { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; margin: 0; font-size: .875rem; }
.lanterns-metric { display: inline-flex; align-items: baseline; gap: .5rem; }
.lanterns-label { color: var(--muted, currentColor); }
.lanterns-value { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.lanterns-hint { max-width: 34rem; margin: 0; font-size: .875rem; line-height: 1.5; text-align: center; color: var(--muted, currentColor); }
@media (prefers-reduced-motion: no-preference) {
  .lantern, .lantern-glow { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
}
@media (max-width: 380px) {
  .lanterns { gap: 1rem; width: 100%; }
  .lanterns-grid { gap: .25rem; }
  .lanterns-tally { gap: .3rem 1.1rem; }
}
@media (forced-colors: active) {
  .lantern { border-color: CanvasText; background: Canvas; }
  .lantern-glow { border-color: CanvasText; }
  .lantern.is-lit { background: Highlight; border-color: Highlight; color: HighlightText; }
  .lantern.is-lit .lantern-glow { background: HighlightText; border-color: HighlightText; }
  .lantern[aria-current="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
}
