:root{--bg:#f6f5f2;--fg:#1f2328;--muted:#6b6f76;--cell-hidden:#c9ccd1;--cell-hidden-hover:#b6bac2;--cell-revealed:#fff;--surface:#fff;--border:#d4d7dc;--accent:#2f6fdf;--found:#dbe7fb;--n1:#2563eb;--n2:#15803d;--n3:#dc2626;--n4:#6d28d9;--n5:#b45309;--n6:#0e7490;--n7:#1f2328;--n8:#6b6f76;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#16181c;--fg:#e8e9eb;--muted:#9aa0a8;--cell-hidden:#3a3f47;--cell-hidden-hover:#474d57;--cell-revealed:#22262c;--surface:#1f2328;--border:#30353d;--found:#1e3354;--n1:#60a5fa;--n2:#4ade80;--n3:#f87171;--n4:#c084fc;--n5:#fbbf24;--n6:#22d3ee;--n7:#e8e9eb;--n8:#9aa0a8}}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0}.app{flex-direction:column;align-items:center;gap:16px;max-width:480px;margin:0 auto;padding:24px 16px;display:flex}.header{text-align:center;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;width:100%;display:grid}.header-side{gap:6px;display:flex}.header-side.end{justify-content:flex-end}.header h1{margin:0;font-size:clamp(1.35rem,6vw,1.75rem)}.date{color:var(--muted);white-space:nowrap;margin:4px 0 0;font-size:clamp(.8rem,3.6vw,1rem)}.hud,.board,.actions,.archive-bar{width:min(100%,340px)}.hud{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;font-size:1.1rem;display:flex}button{font:inherit;color:inherit}.board{grid-template-columns:repeat(var(--cols), 1fr);-webkit-user-select:none;user-select:none;touch-action:manipulation;gap:3px;display:grid}.cell{aspect-ratio:1;background:var(--cell-hidden);cursor:pointer;border:none;border-radius:4px;place-items:center;padding:0;font-size:clamp(18px,7vw,28px);font-weight:700;display:grid}.board.playing .cell.hidden:hover{background:var(--cell-hidden-hover)}.board.loading .cell{cursor:default;animation:1.2s ease-in-out infinite loading}.cell.pending{cursor:progress;animation:.8s ease-in-out infinite loading}@keyframes loading{50%{opacity:.55}}.cell.revealed{background:var(--cell-revealed);box-shadow:inset 0 0 0 1px var(--border);cursor:default}.cell.bomb{background:var(--found);box-shadow:inset 0 0 0 2px var(--accent)}.cell.peeked{opacity:.45;box-shadow:inset 0 0 0 1px var(--border);background:repeating-linear-gradient(135deg, var(--cell-revealed) 0 6px, var(--bg) 6px 12px)}.n1{color:var(--n1)}.n2{color:var(--n2)}.n3{color:var(--n3)}.n4{color:var(--n4)}.n5{color:var(--n5)}.n6{color:var(--n6)}.n7{color:var(--n7)}.n8{color:var(--n8)}.status{text-align:center;min-height:1.5em;margin:0;font-weight:600}.muted{color:var(--muted)}.tagline{text-align:center;max-width:340px;color:var(--muted);margin-top:8px;font-size:.85rem;line-height:1.4}.icon-button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:50%;place-items:center;width:44px;height:44px;font-weight:700;display:grid}.primary,.secondary{cursor:pointer;border-radius:999px;min-height:44px;padding:0 20px;font-weight:700}.primary{background:var(--accent);color:#fff;border:none}.secondary{border:1px solid var(--border);background:var(--surface)}.actions{flex-wrap:wrap;justify-content:center;gap:10px 12px;display:flex}.archive-bar{border:1px solid var(--border);background:var(--surface);border-radius:10px;justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.link-button{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:4px 0;font-weight:700}.dev-reset{border:1px dashed var(--border);color:var(--muted);cursor:pointer;background:0 0;border-radius:6px;padding:4px 10px;font-size:.85rem}.modal{background:var(--surface);width:min(100vw - 32px,400px);max-height:calc(100vh - 48px);color:var(--fg);border:none;border-radius:16px;padding:0;box-shadow:0 12px 40px #00000040}.modal::backdrop{background:#00000073}.modal-body{flex-direction:column;gap:12px;padding:20px;display:flex}.modal-header{justify-content:space-between;align-items:center;display:flex}.modal-header h2{margin:0;font-size:1.25rem}.modal-header .icon-button{border:none;width:36px;height:36px}.modal p{margin:0}.lead{font-weight:600}.rules{flex-direction:column;gap:6px;margin:0;padding-left:20px;display:flex}.modal .primary{align-self:center}.stat-tiles{text-align:center;grid-template-columns:repeat(5,1fr);gap:4px;margin:0;display:grid}.stat-tile{flex-direction:column-reverse;display:flex}.stat-tile dd{font-variant-numeric:tabular-nums;margin:0;font-size:1.6rem;font-weight:700}.stat-tile dt{color:var(--muted);font-size:.75rem}.section-title{margin:8px 0 0;font-size:.95rem}.distribution{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.distribution li{align-items:center;gap:8px;display:flex}.dist-label{text-align:right;font-variant-numeric:tabular-nums;width:3ch}.dist-bar{background:var(--cell-hidden);text-align:right;border-radius:4px;padding:2px 8px;font-size:.85rem;font-weight:700}.dist-bar.today{background:var(--accent);color:#fff}.global-stats{flex-direction:column;gap:2px;display:flex}.players-curve{margin:8px 0 4px}.players-curve svg{width:100%;height:auto;display:block}.curve-area{fill:var(--accent);fill-opacity:.15}.curve-line{fill:none;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round}.curve-axis{stroke:var(--border)}.curve-guide{stroke:var(--muted)}.curve-you-line{stroke:var(--fg);stroke-width:2px}.curve-you-dot{fill:var(--fg);stroke:var(--surface);stroke-width:2px}.curve-you-label{fill:var(--fg);font-size:12px;font-weight:700}.curve-tick{fill:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.curve-caption{justify-content:space-between;gap:8px;font-size:.75rem;display:flex}.curve-readout{color:var(--fg);font-variant-numeric:tabular-nums}.curve-table{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.stats-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:12px;display:flex}.countdown{flex-direction:column;gap:2px;display:flex}.countdown-time{font-variant-numeric:tabular-nums;font-size:1.4rem;font-weight:700}.archive-list{flex-direction:column;gap:4px;max-height:60vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.archive-item{border:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;border-radius:8px;grid-template-columns:4ch 1fr auto;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;display:grid}.archive-item:hover{background:var(--bg)}.archive-item[aria-current=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.archive-number{font-variant-numeric:tabular-nums;font-weight:700}.archive-status{font-size:.9rem}.archive-status.solved{color:var(--accent);font-weight:700}.toast{background:var(--fg);color:var(--bg);z-index:10;border-radius:8px;padding:10px 16px;font-weight:600;position:fixed;top:16px;left:50%;transform:translate(-50%)}
