/* Lantern Lights: styles on top of the site stylesheet (/assets/site.css).
   Source: _src/lantern/ln.css, copied to play/lantern-lights/ by build.py. */
.ln { --soft: #F4F5FB; --night: #232A4D; --night-2: #2E3660; --glow: #FFC857; --dim: #6E77A6; }
.ln .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; color: #fff; font-size: 14px; font-weight: 600; }
.ln .crumbs a { color: #fff; text-decoration: none; opacity: 0.9; }
.ln .crumbs a:hover { text-decoration: underline; opacity: 1; }
.ln .crumbs span { opacity: 0.6; }
.ln .page-title { padding-top: 6px; }
.ln-wrap { max-width: 760px; }
.ln-app { margin-top: 24px; display: grid; gap: 12px; }
.ln .btn { justify-content: center; border: 0; cursor: pointer; font-family: inherit; min-height: 46px; }
.ln :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.ln h2 { font-size: 19px; line-height: 1.3; }

.ln-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ln-tab { flex: 1 1 160px; min-height: 46px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.75); color: var(--navy); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.ln-tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.ln-sizes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ln-chip { background: rgba(255, 255, 255, 0.85); color: var(--navy); border: 2px solid transparent; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; min-height: 40px; }
.ln-chip[aria-pressed="true"] { border-color: var(--coral); background: #FFF1EF; }
.ln-bar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ln-bar span { background: rgba(255, 255, 255, 0.88); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.ln-bar b { font-weight: 800; }

.ln-board-wrap { position: relative; width: min(100%, 520px); margin: 0 auto; }
.ln-board { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; padding: 10px; border-radius: 22px; background: var(--night); box-shadow: var(--shadow); }
.ln-cell { aspect-ratio: 1; border: 0; padding: 0; background: var(--night-2); border-radius: 10px; cursor: pointer; display: block; }
.ln-cell:hover { background: #38427A; }
.ln-cell:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.ln-cell svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ln-cell .arms { transform-origin: 50px 50px; transform-box: view-box; transition: transform 0.15s ease; }
.ln-cell line { stroke: var(--dim); stroke-width: 15; stroke-linecap: round; }
.ln-cell .node { fill: var(--dim); }
.ln-cell .lamp { fill: #4A527F; stroke: var(--dim); stroke-width: 4; }
.ln-cell .cap { fill: var(--dim); }
.ln-cell .sun { fill: #FF8A5B; }
.ln-cell .flame { fill: #FFE7A3; }
.ln-cell.lit line { stroke: var(--glow); }
.ln-cell.lit .node { fill: var(--glow); }
.ln-cell.lit .lamp { fill: #FFE08A; stroke: var(--glow); filter: drop-shadow(0 0 6px rgba(255, 200, 87, 0.9)); }
.ln-cell.lit .cap { fill: #E0A93B; }
@media (prefers-reduced-motion: reduce) { .ln-cell .arms { transition: none; } }
.ln-board.won { box-shadow: 0 0 0 4px var(--glow), 0 10px 40px rgba(255, 200, 87, 0.45); }
.ln-win { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88%, 360px); background: rgba(255, 255, 255, 0.96);
  border-radius: 20px; padding: 18px; text-align: center; display: grid; gap: 6px; box-shadow: var(--shadow); }
.ln-win b { font-size: 20px; }
.ln-win span { color: var(--navy-soft); font-size: 14px; }
.ln-win .btn { margin-top: 6px; }
.ln-foot { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--navy); font-weight: 600; font-size: 14px; }
.ln-foot span { background: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 5px 12px; }
#ln-stats { display: contents; }
.ln-help { text-align: center; font-size: 13px; color: var(--navy-soft); }

.ln-static { display: grid; gap: 14px; margin-top: 14px; }
.ln-static ol, .ln-static ul { margin-left: 20px; display: grid; gap: 6px; color: var(--navy-soft); }
.ln-static li::marker { color: var(--coral); font-weight: 700; }
.ln-static p { color: var(--navy-soft); }
.ln-static p + p { margin-top: 10px; }
