@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal-BgDaEnEv.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2) format("woff2-variations");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono: "Geist Mono Variable", ui-monospace, "SF Mono", "Cascadia Mono", monospace;--r-sm: 10px;--r-md: 16px;--r-lg: 24px;--ease: cubic-bezier(.16, 1, .3, 1);--page-max: 1120px;--topbar-h: 64px;--stage: var(--bg);--shadow-float: 0 24px 60px -18px color-mix(in srgb, var(--text) 28%, transparent);--spark: #f2b100}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}#root{min-height:100dvh}h1,h2,p,dl,dd{margin:0}h1{font-size:1.75rem;font-weight:700;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}h2{font-size:1.125rem;font-weight:600;letter-spacing:-.01em}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}img{max-width:100%}.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em}.muted{color:var(--textMuted)}.small{font-size:.875rem}.center{text-align:center}.success{color:var(--success)}.eyebrow{color:var(--textMuted);font-size:.875rem;font-weight:500}.display{font-size:clamp(2.25rem,1.4rem + 3.4vw,4rem);font-weight:800;letter-spacing:-.045em;line-height:.98}.lede{max-width:44ch;color:var(--textMuted);font-size:1.0625rem;line-height:1.55}.pill{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;background:var(--surfaceAlt);color:var(--text);font-size:.75rem;font-weight:600}kbd{display:inline-block;min-width:1.6em;padding:0 6px;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-family:var(--font-mono);font-size:.75rem;line-height:1.5;text-align:center}.icon-img{display:block;object-fit:contain;pointer-events:none;user-select:none}[data-theme-kind=dark] .icon-img{filter:drop-shadow(0 0 1px rgb(255 255 255 / .7))}.icon-spark{color:var(--spark);flex:none}:focus-visible{outline:2px solid var(--text);outline-offset:2px}button,a,label,summary{touch-action:manipulation}.skip-link{position:fixed;top:8px;left:8px;z-index:100;padding:8px 14px;border-radius:var(--r-sm);background:var(--text);color:var(--bg);font-weight:600;translate:0 -200%}.skip-link:focus-visible{translate:0 0}.shell-main:focus,.sheet:focus{outline:none}.btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;padding:10px 22px;border:0;border-radius:999px;background:var(--surfaceAlt);color:var(--text);font-weight:600;letter-spacing:-.01em;cursor:pointer;transition:transform .2s var(--ease),background-color .2s var(--ease)}.btn:active{transform:scale(.98)}.btn.primary{background:var(--accent);color:var(--accentText)}.btn.primary:hover{background:color-mix(in srgb,var(--accent) 86%,var(--text))}.btn.secondary{background:var(--surfaceAlt)}.btn.secondary:hover{background:color-mix(in srgb,var(--surfaceAlt) 85%,var(--text))}.btn.danger{background:var(--danger);color:#fff}.btn.ghost{background:transparent;color:var(--textMuted)}.btn.ghost:hover{color:var(--text)}.btn.big{min-height:56px;font-size:1.0625rem}.btn small{display:inline-flex;align-items:center;gap:4px;font-size:.8125rem;font-weight:500;opacity:.8}.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border:0;border-radius:999px;background:transparent;color:var(--text);cursor:pointer;transition:background-color .2s var(--ease)}.icon-btn:hover{background:var(--surfaceAlt)}.icon-btn:disabled{opacity:.35;cursor:default}.icon-btn.flip svg{transform:scaleX(-1)}.link{border:0;background:none;padding:0;color:var(--text);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.topbar{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.topbar-inner{max-width:var(--page-max);height:var(--topbar-h);margin:0 auto;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));display:flex;align-items:center;gap:24px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:1.125rem;font-weight:800;letter-spacing:-.035em}.brand img{border-radius:8px}.topnav{display:none}.topbar-end{margin-left:auto;display:flex;align-items:center;gap:6px}.streak{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 12px;border-radius:999px;background:var(--surface);color:var(--warning);font-family:var(--font-mono);font-weight:600;font-variant-numeric:tabular-nums}.streak span{color:var(--text)}:root{--premium: #e0a100;--premium-soft: rgba(224, 161, 0, .16)}.premium-chip{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;background:var(--surface);color:var(--premium)}.premium-chip:hover{background:var(--premium-soft)}.name-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.premium-tag{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:999px;background:var(--premium-soft);color:var(--text);font-size:12px;font-weight:700;letter-spacing:.04em}.premium-tag svg{color:var(--premium)}.shell-main{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.tabs{position:fixed;inset:auto 0 0;display:flex;justify-content:space-around;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--border);z-index:20}.tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:76px;padding:6px 10px;border-radius:var(--r-md);color:var(--textMuted);font-size:.75rem;font-weight:600}.tabs a.active{color:var(--text)}.tabs a.active svg{color:var(--text)}.theme-sheet{gap:20px}.theme-group{display:flex;flex-direction:column;gap:10px}.theme-group h3{margin:0;color:var(--textMuted);font-size:.8125rem;font-weight:600}.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:10px}.theme-card{display:flex;flex-direction:column;gap:8px;padding:6px 6px 10px;border:0;border-radius:var(--r-md);background:var(--surface);text-align:left;cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}.theme-card:hover{transform:translateY(-1px)}.theme-card:active{transform:scale(.98)}.theme-card.active{box-shadow:inset 0 0 0 2px var(--text)}.theme-preview{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid;border-radius:12px}.tp-cells{display:grid;grid-template-columns:repeat(3,18px);gap:3px}.tp-cells i{display:grid;place-items:center;height:18px;border-radius:4px;font-size:11px;font-style:normal;font-weight:800}.tp-btn{width:26px;height:14px;border-radius:999px}.theme-card-name{display:flex;align-items:center;justify-content:space-between;padding:0 6px;font-size:.875rem;font-weight:600}.theme-device,.setting-row{width:100%;display:flex;align-items:center;gap:14px;padding:12px 16px;border:0;border-radius:var(--r-md);background:var(--surface);text-align:left;cursor:pointer}.theme-device.active{box-shadow:inset 0 0 0 2px var(--text)}.theme-device>svg{margin-left:auto}.setting-row .theme-name{margin-right:auto}.setting-action{font-size:.875rem;font-weight:600;text-decoration:underline;text-underline-offset:3px}.swatch{flex:none;display:inline-flex;gap:3px;width:40px;height:26px;padding:4px;border:1px solid;border-radius:8px}.swatch span{flex:1;border-radius:4px}.swatch-auto{border-color:var(--border);background:linear-gradient(90deg,#fff 50%,#0f110e 50%)}.page{max-width:var(--page-max);margin:0 auto;padding:28px max(16px,env(safe-area-inset-right)) 32px max(16px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:24px}.page section{display:flex;flex-direction:column;gap:12px}.page-head{display:flex;align-items:flex-start;gap:8px}.page-head:has(.eyebrow:first-child){flex-direction:column}.page-head .display{font-size:clamp(2rem,1.5rem + 2vw,3rem);margin-top:4px}.page-head .icon-btn{margin-top:6px}.center-page{min-height:100dvh;align-items:center;justify-content:center;text-align:center}.big-number{font-size:3rem;font-weight:600}.row{display:flex;gap:10px;flex-wrap:wrap}.hero-stats,.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat-row>div{padding:16px;border-radius:var(--r-md);background:var(--surface)}.hero-stats{padding-top:20px;border-top:1px solid var(--border)}.hero-stats dt,.stat-row dt{display:inline-flex;align-items:center;gap:4px;color:var(--textMuted);font-size:.8125rem}.stat-row dt svg{color:var(--warning)}.hero-stats dd.mono,.stat-row dd.mono,.result-grid strong.mono,.big-number.mono{font-family:var(--font-sans);letter-spacing:-.03em}.hero-stats dd,.stat-row dd{font-size:1.75rem;font-weight:700;line-height:1.2}.home-hero{display:flex;flex-direction:column;gap:16px}.home-hero .display{max-width:13ch}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.hero-actions .btn{flex:1 1 180px}.home-cards{display:grid;gap:12px}.card{display:flex;flex-direction:column;gap:8px;min-height:220px;padding:24px;border-radius:var(--r-lg);background:var(--surface);transition:transform .35s var(--ease)}a.card:hover{transform:translateY(-2px)}a.card:active{transform:scale(.99)}.card.wide{min-height:0}.card-kicker{display:inline-flex;align-items:center;gap:6px;color:var(--textMuted);font-size:.8125rem;font-weight:500}.card-title{font-size:1.5rem;font-weight:700;letter-spacing:-.03em;line-height:1.15}.card-sub{color:var(--textMuted);font-size:.9375rem}.card-foot{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--textMuted);font-size:.875rem}.card-cta{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 18px;border-radius:999px;background:var(--accent);color:var(--accentText);font-weight:600;font-size:.9375rem}.card-daily{background:var(--text);color:var(--bg)}.card-daily .card-kicker,.card-daily .card-sub{color:color-mix(in srgb,var(--bg) 68%,var(--text))}.daily-level{margin-top:8px;align-self:flex-start;padding:4px 12px;border-radius:999px;background:color-mix(in srgb,var(--bg) 14%,transparent);font-size:.875rem;font-weight:600}.bar,.mini-bar{display:block;height:8px;border-radius:99px;background:color-mix(in srgb,var(--text) 10%,transparent);overflow:hidden}.bar>span,.mini-bar>span{display:block;height:100%;border-radius:inherit;background:var(--text);transition:width .6s var(--ease)}.card .bar{margin-top:12px}.mini-bar{height:4px;grid-column:1 / -1;margin-top:6px}.card-tips{min-height:0;gap:12px}.tip-text{margin:0;max-width:52ch;font-size:1.0625rem;line-height:1.55;animation:fade .3s var(--ease)}.card-tips .card-foot{justify-content:flex-end}.tip-next{min-height:40px}.difficulty-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.difficulty{width:100%;display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:14px 18px;border:0;border-radius:var(--r-md);background:var(--surface);text-align:left;cursor:pointer;transition:background-color .2s var(--ease),transform .2s var(--ease)}.difficulty:hover:not(:disabled){background:var(--surfaceAlt)}.difficulty:active:not(:disabled){transform:scale(.99)}.difficulty.locked{cursor:default;color:var(--textMuted)}.difficulty-name{display:inline-flex;align-items:center;gap:6px;font-weight:600}.difficulty-size{grid-row:2;color:var(--textMuted);font-family:var(--font-mono);font-size:.8125rem}.difficulty-extra{grid-row:1 / 3;grid-column:2;align-self:center;color:var(--textMuted);font-size:.8125rem}.confirm{padding:8px 4px 0;font-size:.9rem;color:var(--warning)}.backdrop{position:fixed;inset:0;background:color-mix(in srgb,var(--text) 40%,transparent);z-index:30;animation:fade .2s var(--ease)}.sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%);width:min(560px,100%);max-height:85dvh;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:20px 20px calc(20px + env(safe-area-inset-bottom));border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--bg);box-shadow:var(--shadow-float);z-index:31;animation:sheet-in .35s var(--ease)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.sheet-head h2{font-size:1.375rem;font-weight:700;letter-spacing:-.03em}.sheet-buttons{display:flex;flex-direction:column;gap:8px}.sheet-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.sheet-actions .btn{min-width:120px}.hint-sheet,.debug-sheet{max-height:42dvh;border:1px solid var(--border);border-bottom:0}.hint-lines{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}.hint-lines li{color:var(--textMuted)}.hint-lines li.current{color:var(--text);font-weight:600;animation:fade .3s var(--ease)}.hint-legend{margin:12px 0 0;color:var(--textMuted);font-size:.8125rem}.hint-sheet .sheet-actions{flex-wrap:wrap;margin-top:12px}.hint-sheet .sheet-actions .btn{white-space:nowrap}.hint-sheet .sheet-actions .btn.ghost{min-width:0}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media(min-width:900px){.result-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.result-grid>div{display:flex;flex-direction:column;align-items:flex-start;padding:14px;border-radius:var(--r-md);background:var(--surface)}.result-grid span,.result-grid small{color:var(--textMuted);font-size:.8125rem}.result-grid strong{font-size:1.5rem;font-weight:600}.banner{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:var(--r-md);background:color-mix(in srgb,var(--accent) 30%,var(--bg));font-weight:600}.tip{padding:12px 16px;border-radius:var(--r-md);background:var(--surface);font-size:.9375rem}.practice-nudge{display:grid;gap:10px}.practice-nudge p{margin:0}.game{height:100dvh;display:flex;flex-direction:column;max-width:1280px;margin:0 auto}.game-head{display:flex;align-items:center;gap:8px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}.game-title{display:flex;flex-direction:column;min-width:0;line-height:1.2}.game-title strong{font-size:1.0625rem;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-title span{color:var(--textMuted);font-family:var(--font-mono);font-size:.75rem}.game-meta{margin-left:auto;display:flex;gap:6px}.meta{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;background:var(--surface);font-weight:600}.timer{min-width:70px;justify-content:center}.game-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}.board-area{position:relative;flex:1;min-height:0;background:var(--stage)}.board-scroll{position:absolute;inset:0;overflow:auto;display:flex;padding:8px;overscroll-behavior:contain}.game.hinting .board-scroll{padding-bottom:42dvh}.board{display:grid;margin:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation;font-family:var(--font-sans);font-weight:800;font-variant-numeric:tabular-nums}.board-row{display:contents}.board:focus-visible{outline:none}.board:focus-visible .cell.cursor{position:relative;z-index:1;outline:3px solid var(--text);outline-offset:1px}.board-scroll.zoomable{touch-action:pan-x pan-y}.board-scroll.zoomable.panning{cursor:grabbing;user-select:none}.panel-row{display:flex;align-items:center;gap:12px;padding:6px 12px 0}.panel-row .start-tip{flex:1;padding:0;text-align:left}.zoom{margin-left:auto;display:flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:var(--surface)}.zoom .icon-btn{width:36px;height:36px}.zoom-level{min-width:3.2em;text-align:center;color:var(--textMuted);font-size:.8125rem}.free-note{display:flex;align-items:center;gap:12px;margin:0 12px;padding:12px 12px 12px 16px;border-radius:var(--r-md);background:color-mix(in srgb,var(--accent) 30%,var(--bg));font-size:.875rem;line-height:1.45;animation:fade .3s var(--ease)}.free-note p{margin:0;flex:1}.free-note .btn{flex:none;min-height:36px}.hint-cost{margin:0 0 12px;color:var(--textMuted);font-size:.8125rem}.start-tip{text-align:center;color:var(--textMuted);font-size:.875rem;padding:4px 16px 0}.panel-keys{display:none}.cell{position:relative;display:grid;place-items:center;border:1.5px solid var(--stage);border-radius:24%;line-height:1;cursor:pointer;transition:background-color .15s var(--ease),opacity .25s var(--ease)}.cell.hidden{background:var(--cellHidden);box-shadow:inset 0 -2px 0 var(--cellHiddenEdge)}.cell.hidden:hover{background:color-mix(in srgb,var(--cellHidden) 80%,var(--bg))}.cell.open{background:var(--cellOpen);border:.5px solid var(--cellOpenEdge);border-radius:0;cursor:default;animation:pop .2s var(--ease)}.cell.flag.won{opacity:.8}.cell.safe{color:var(--safeMark)}.cell.wrong-flag{background:var(--danger)}.cell.wrong-flag:after{content:"";position:absolute;inset:18%;background:linear-gradient(45deg,transparent 46%,#fff 46%,#fff 54%,transparent 54%)}.cell.mine-hit{background:var(--mineHit)}.cell.center{box-shadow:0 0 0 2px var(--highlight),0 0 14px var(--highlight);animation:glow 1.8s ease-in-out infinite;z-index:1}.n1{color:var(--num1)}.n2{color:var(--num2)}.n3{color:var(--num3)}.n4{color:var(--num4)}.n5{color:var(--num5)}.n6{color:var(--num6)}.n7{color:var(--num7)}.n8{color:var(--num8)}.board-hint .hint-dim{opacity:.25}.board-hint .hint-area{opacity:.85}.cell.hint-target{z-index:2;box-shadow:0 0 0 3px var(--highlight),0 0 18px var(--highlight)}.cell.hint-clue{z-index:1;box-shadow:inset 0 0 0 2px var(--text)}.hint-lit-mine{background:color-mix(in srgb,var(--danger) 55%,var(--cellHidden))!important}.hint-lit-safe{background:color-mix(in srgb,var(--success) 55%,var(--cellHidden))!important}.clue-letter{position:absolute;top:-6px;left:-6px;min-width:16px;height:16px;padding:0 3px;border-radius:8px;background:var(--text);color:var(--bg);font-family:var(--font-mono);font-size:10px;line-height:16px;text-align:center}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;width:min(560px,100%);margin:0 auto;padding:8px 12px calc(10px + env(safe-area-inset-bottom))}.tool{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:64px;padding:6px 8px;border:0;border-radius:var(--r-md);background:transparent;font-size:.75rem;font-weight:600;cursor:pointer;transition:background-color .2s var(--ease),transform .2s var(--ease)}.tool:hover:not(:disabled){background:var(--surface)}.tool:active:not(:disabled){transform:scale(.97)}.tool:disabled{opacity:.35;cursor:default}.tool-count{position:absolute;top:2px;right:10px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--surfaceAlt);font-family:var(--font-mono);font-size:10px;font-style:normal;line-height:18px}.tool-count.tool-free,.tool-count.tool-price{right:2px;display:inline-flex;align-items:center;gap:1px;white-space:nowrap}.tool-count.tool-free{background:var(--accent);color:var(--accentText)}.tool-modes{display:flex;padding:4px;border-radius:999px;background:var(--surface)}.mode{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:64px;padding:6px 10px;border:0;border-radius:999px;background:transparent;color:var(--textMuted);font-size:.75rem;font-weight:600;cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease)}.mode.active{background:var(--bg);color:var(--text);box-shadow:0 1px 3px color-mix(in srgb,var(--text) 14%,transparent)}.mode-safe.active{color:var(--safeMark)}.credit{display:flex;flex-direction:column;align-items:center;gap:6px;width:fit-content;margin:8px auto 0;padding:8px 12px;border-radius:var(--r-md);text-decoration:none}.credit:hover .muted{color:var(--text)}.credit img{display:block;height:48px;width:auto}.daily-layout,.me-layout{display:flex;flex-direction:column;gap:24px}.daily-main,.me-col{display:flex;flex-direction:column;gap:16px;min-width:0}.calendar{padding:20px;border-radius:var(--r-lg);background:var(--surface)}.calendar-head{display:flex;align-items:center;justify-content:space-between}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;color:var(--textMuted);font-size:.75rem;font-weight:600}.day{position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:var(--r-sm);font-family:var(--font-mono);font-size:.875rem;font-weight:500}a.day{background:var(--bg);transition:transform .2s var(--ease)}a.day:hover{box-shadow:inset 0 0 0 1.5px var(--text)}.day.future,.day.archive{color:var(--textMuted);opacity:.6}.day.tried{box-shadow:inset 0 0 0 1.5px var(--warning)}.day.won{background:var(--accent);color:var(--accentText);opacity:1}.day.today{outline:2px solid var(--text);outline-offset:2px}.day-lock{position:absolute;bottom:2px;right:2px}.table-wrap{overflow-x:auto}.stats{width:100%;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}.stats th,.stats td{padding:10px 6px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}.stats td{font-family:var(--font-mono)}.stats th:first-child{text-align:left;font-weight:600}.stats thead th{color:var(--textMuted);font-size:.75rem;font-weight:500}.theme-name,.toggle>span{display:flex;flex-direction:column;font-weight:600}.theme-name small,.toggle small{color:var(--textMuted);font-weight:400;font-size:.8125rem}.toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:var(--r-md);background:var(--surface);cursor:pointer}.choice{cursor:default}.toggle>span.segmented,.segmented{flex:none;display:inline-flex;flex-direction:row;padding:3px;border-radius:999px;background:var(--surfaceAlt)}.segmented button{min-width:64px;min-height:34px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--textMuted);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease)}.segmented button.active{background:var(--bg);color:var(--text);box-shadow:0 1px 3px color-mix(in srgb,var(--text) 14%,transparent)}.segmented button:focus-visible{outline:2px solid var(--text);outline-offset:2px}.toggle input{appearance:none;flex:none;width:46px;height:28px;margin:0;border-radius:14px;background:var(--surfaceAlt);box-shadow:inset 0 0 0 1px var(--border);position:relative;cursor:pointer;transition:background-color .2s var(--ease)}.toggle input:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0e0f0c33;transition:transform .25s var(--ease)}.toggle input:checked{background:var(--accent)}.toggle input:checked:after{transform:translate(18px)}@media(min-width:900px){.mobile-only{display:none!important}.tabs{display:none}.shell-main{padding-bottom:0}.topnav{display:flex;gap:4px}.topnav a{padding:8px 14px;border-radius:999px;color:var(--textMuted);font-size:.9375rem;font-weight:500;transition:background-color .2s var(--ease),color .2s var(--ease)}.topnav a:hover{color:var(--text)}.topnav a.active{background:var(--surface);color:var(--text)}.page{padding-top:48px;padding-bottom:64px;gap:32px}.home{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start;gap:48px}.home-hero{grid-row:1 / span 2;position:sticky;top:calc(var(--topbar-h) + 48px);gap:20px}.home-events{grid-column:2}.card-daily{min-height:340px;padding:32px}.card-daily .card-title{font-size:2.25rem;letter-spacing:-.04em}.daily-layout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:start;gap:32px}.me-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:start;gap:40px}.sheet.theme-sheet{width:min(620px,calc(100% - 48px))}.sheet{top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(500px,calc(100% - 48px));padding:28px;border-radius:var(--r-lg)}.hint-sheet,.debug-sheet{top:auto;left:auto;right:calc(max(0px,(100vw - 1280px) / 2) + 24px);bottom:24px;transform:none;width:320px;max-height:calc(100dvh - 160px);padding:20px;border:1px solid var(--border)}.game{--stage: var(--surface)}.game.hinting .board-scroll{padding-bottom:8px}.game-head{padding:16px 24px}.game-title strong{font-size:1.25rem}.game-body{flex-direction:row;gap:24px;padding:0 24px 24px}.board-area{border-radius:var(--r-lg)}.board-scroll{padding:24px}.panel-row{padding:0}.game-panel{flex:none;width:320px;display:flex;flex-direction:column;gap:16px}.free-note{display:flex;align-items:center;gap:12px;margin:0 12px;padding:12px 12px 12px 16px;border-radius:var(--r-md);background:color-mix(in srgb,var(--accent) 30%,var(--bg));font-size:.875rem;line-height:1.45;animation:fade .3s var(--ease)}.free-note p{margin:0;flex:1}.free-note .btn{flex:none;min-height:36px}.hint-cost{margin:0 0 12px;color:var(--textMuted);font-size:.8125rem}.start-tip{order:2;padding:0;text-align:left}.toolbar{width:auto;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"mode mode" "undo hint";gap:8px}.tool-count.tool-free,.tool-count.tool-price{right:2px;display:inline-flex;align-items:center;gap:1px;white-space:nowrap}.tool-count.tool-free{background:var(--accent);color:var(--accentText)}.tool-modes{grid-area:mode;display:grid;grid-template-columns:repeat(3,1fr);border-radius:var(--r-md)}.mode{flex-direction:row;justify-content:center;gap:8px;padding:12px 8px;border-radius:12px;font-size:.875rem}.tool{flex-direction:row;justify-content:center;gap:8px;min-height:52px;background:var(--surface);font-size:.9375rem}.tool:hover:not(:disabled){background:var(--surfaceAlt)}.tool-undo{grid-area:undo}.tool-hint{grid-area:hint}.tool-count{position:static}.panel-keys{order:3;display:block;color:var(--textMuted);font-size:.8125rem;line-height:2}}@keyframes sheet-in{0%{translate:0 24px;opacity:0}}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{transform:scale(.85)}}@keyframes glow{50%{box-shadow:0 0 0 2px var(--highlight),0 0 4px var(--highlight)}}[data-motion=off] *,[data-motion=off] *:before,[data-motion=off] *:after{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.building{min-height:100dvh;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left));position:relative}.building-back{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left))}.building-body{max-width:360px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.building-body h1{font-size:1.5rem;margin:12px 0 0}.building-body p{margin:0}.building-body .btn{margin-top:12px}.building-grid{display:grid;grid-template-columns:repeat(3,28px);gap:4px}.building-grid span{aspect-ratio:1;border-radius:6px;background:var(--cellHidden);box-shadow:inset 0 -2px 0 var(--cellHiddenEdge);animation:building-cell 1.8s var(--ease) infinite;animation-delay:calc(var(--i) * .12s)}@keyframes building-cell{40%,60%{background:var(--cellOpen);box-shadow:inset 0 0 0 1px var(--cellOpenEdge)}}.tips-head{justify-content:space-between;width:100%}.tips-close{width:32px;height:32px;margin:-6px -8px -6px 0;color:var(--textMuted)}.card-tips .card-foot .btn{min-height:40px}.timer.stopped{color:var(--textMuted)}.pause-btn{background:var(--surface)}.board-scroll.blurred{filter:blur(24px);pointer-events:none;user-select:none}.paused{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;background:color-mix(in srgb,var(--stage) 72%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:fade .25s var(--ease)}.paused-title{margin:0;font-size:1.5rem;font-weight:700;letter-spacing:-.03em}.paused-time{margin:0 0 12px;color:var(--textMuted);font-size:1rem}.paused .btn{flex-direction:row;align-items:center;gap:8px}.toggle.flash{animation:flash 1.6s var(--ease)}@keyframes flash{0%,40%{background:color-mix(in srgb,var(--accent) 45%,var(--surface))}to{background:var(--surface)}}.lesson-panel{display:flex;flex-direction:column;gap:4px;padding:16px max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));width:min(560px,100%);margin:0 auto}.lesson-panel .sheet-actions{margin-top:12px;flex-wrap:wrap}.lesson-panel .start-tip{margin:0 auto 0 0;padding:0;font-weight:600;color:var(--text)}.lesson-result p{margin:0 0 4px}.lesson-title{display:flex;align-items:center;gap:8px;font-size:1.125rem;font-weight:700}.lesson-result .lesson-title svg{color:var(--accentText);background:var(--accent);border-radius:999px;padding:2px}.game-meta,.game-meta .meta{flex:none}.game-title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:420px){.game-head{gap:4px}.game-meta .meta{padding:0 10px}.timer{min-width:60px}}.practice-list{max-width:760px}.practice-list h2{margin:0;font-size:1.125rem;letter-spacing:-.01em}.practice-items{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}.practice-item{display:flex;align-items:center;gap:14px;min-height:64px;padding:14px 16px;border-radius:var(--r-md);background:var(--surface);color:inherit;text-decoration:none;touch-action:manipulation;transition:transform .2s var(--ease)}.practice-item:hover{transform:translateY(-1px)}.practice-item:active{transform:scale(.99)}.practice-item:focus-visible{outline:2px solid var(--text);outline-offset:2px}.practice-step{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--bg);color:var(--textMuted);font-size:.8125rem}.practice-text{display:flex;flex-direction:column;gap:2px;margin-right:auto;min-width:0}.practice-text span{color:var(--textMuted);font-size:.875rem;line-height:1.45}.practice-item .setting-action{flex:none}.card-practice{gap:6px}.practice-item.locked{cursor:default;opacity:.72}.practice-item.locked:hover{transform:none}.practice-step.done{background:var(--accent);color:var(--accentText)}.practice-lock{flex:none;color:var(--textMuted)}.practice-meta{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.practice-meta .small{display:inline-flex;align-items:center;gap:3px}.setting-row.static{cursor:default}.btn.small-btn{min-height:40px;padding:8px 16px;font-size:.875rem}.name-form{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:var(--r-md);background:var(--surface)}.name-form label{font-weight:600}.name-form .row{flex-wrap:wrap}.text-input{flex:1 1 180px;min-width:0;min-height:48px;padding:10px 14px;border:1px solid var(--border, color-mix(in srgb, var(--text) 14%, transparent));border-radius:var(--r-sm, 10px);background:var(--bg);color:var(--text);font:inherit;font-size:1rem}.text-input:focus-visible{outline:2px solid var(--text);outline-offset:1px}.error-text{color:var(--danger)}.account-signin{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:4px 0}.debug-btn{font-family:var(--mono, ui-monospace, monospace)}.debug-code{margin:0;overflow-wrap:anywhere;user-select:all;font-size:.8125rem}.debug-flag{color:var(--danger)}.debug-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.debug-tools .btn[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--text)}.debug-timer{align-items:center;flex-wrap:wrap;margin-top:10px}.debug-timer .text-input{flex:0 1 110px;min-height:40px}.cell.peek .peek-mine{opacity:.45}.dev-builder{margin-top:10px}.dev-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;align-items:end}.dev-field{display:flex;flex-direction:column;gap:4px;min-width:0}.dev-field .text-input{flex:none}.toggle.compact{padding:8px 0;background:none}a.setting-row{color:inherit;text-decoration:none}.spark-balance{display:inline-flex;align-items:center;gap:4px;font-size:1.125rem;font-weight:600}.solve-rate{margin:0;font-weight:600}.feedback-ask{display:flex;flex-direction:column;gap:10px;margin-top:4px;padding:14px 16px;border-radius:var(--r-md);background:var(--surface)}.feedback-ask p{margin:0;font-size:.9375rem}.feedback-ask .row,.voice-note .row{flex-wrap:wrap;align-items:center}.feedback-form{display:flex;flex-direction:column;gap:8px}.feedback-form label,.voice-label{font-weight:600}.feedback-form .text-input{flex:none}.feedback-form textarea{min-height:120px;resize:vertical;line-height:1.5}.feedback-form .sheet-buttons{margin-top:8px}.voice-note{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:var(--r-md);background:var(--surface)}.voice-time{display:inline-flex;align-items:center;gap:8px;min-width:9ch}.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--danger)}@media(prefers-reduced-motion:no-preference){.rec-dot{animation:rec-pulse 1.2s cubic-bezier(.16,1,.3,1) infinite}}@keyframes rec-pulse{50%{opacity:.35}}.voice-player{flex:1 1 200px;min-width:0;height:40px}.shop-head{flex-direction:row!important;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}.shop-notice{padding:12px 16px;border-radius:var(--r-md);background:var(--surface)}.shop-notice.ok{color:var(--success)}.shop-notice.error{color:var(--danger)}.purchase-done-hero{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 16px;border-radius:var(--r-lg);background:color-mix(in srgb,var(--accent) 30%,var(--bg));text-align:center}.purchase-done-hero strong{display:inline-flex;align-items:center;gap:6px;font-size:1.75rem;font-weight:700;letter-spacing:-.03em}.purchase-done-hero strong.mono{font-size:3rem;line-height:1}.purchase-done-hero span{color:var(--textMuted)}.purchase-done-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.purchase-done-facts>div{padding:12px 16px;border-radius:var(--r-md);background:var(--surface)}.purchase-done-facts dt{color:var(--textMuted);font-size:.8125rem}.purchase-done-facts dd{display:inline-flex;align-items:center;gap:4px;margin:2px 0 0;font-size:1.125rem;font-weight:600}.shop-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:16px 20px;border:1px solid var(--border);border-radius:var(--r-md)}.shop-banner p{max-width:60ch}.shop-plans{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.shop-plan{min-height:0;gap:12px}.shop-plan .card-title{max-width:24ch}.shop-plan .card-title svg{vertical-align:-2px}.shop-allowance{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-weight:600}.shop-allowance>span:first-child{display:inline-flex;align-items:center;gap:4px}.shop-months{margin-top:4px}.shop-buy{gap:10px}.shop-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.shop-bonus{background:color-mix(in srgb,var(--spark) 22%,var(--surface))}.shop-packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none}.shop-pack{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:18px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);color:var(--text);text-align:left;cursor:pointer;touch-action:manipulation;transition:transform .2s var(--ease),border-color .2s var(--ease)}.shop-pack:hover:not(:disabled){border-color:var(--text)}.shop-pack:active:not(:disabled){transform:scale(.98)}.shop-pack:disabled,.shop-buy .btn:disabled{cursor:default;opacity:.55}.shop-pack-sparks{display:inline-flex;align-items:center;gap:4px;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.shop-pack-bonus{color:var(--textMuted)}.shop-pack-price{margin-top:8px;font-weight:600}.shop-facts{gap:6px!important}@media(max-width:760px){.shop-plans{grid-template-columns:1fr}}.admin{min-height:100dvh}.admin-tag{padding:2px 8px;border-radius:999px;background:var(--surfaceAlt);color:var(--textMuted);font-size:.75rem;font-weight:600;letter-spacing:.02em}.admin-who{display:none}.admin .topbar-end .btn{white-space:nowrap}.admin-nav{max-width:var(--page-max);margin:0 auto;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}.admin-nav a{flex:none;padding:10px 12px;border-bottom:2px solid transparent;color:var(--textMuted);font-size:.9375rem;font-weight:600}.admin-nav a:hover{color:var(--text)}.admin-nav a.active{border-bottom-color:var(--text);color:var(--text)}.admin a:focus-visible,.admin button:focus-visible,.chart-svg g:focus-visible .chart-bar{outline:2px solid var(--text);outline-offset:2px}.admin-main{max-width:var(--page-max);margin:0 auto;padding:24px max(16px,env(safe-area-inset-right)) 48px max(16px,env(safe-area-inset-left))}.admin-gate{max-width:480px;margin:12vh auto 0;padding:0 16px;display:flex;flex-direction:column;gap:12px}.admin-page,.admin-stack{display:flex;flex-direction:column;gap:16px;min-width:0}.admin-stack.is-loading{opacity:.6}.admin-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.admin-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.admin-grid{display:grid;gap:16px;min-width:0}.panel{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg)}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tile{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:var(--r-md);background:var(--surface)}.tile-value{font-size:1.75rem;font-weight:600;line-height:1.2}.table-wrap{overflow-x:auto;min-width:0}table.data{width:100%;border-collapse:collapse;font-size:.875rem}table.data th,table.data td{padding:8px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}table.data thead th{color:var(--textMuted);font-weight:500}table.data tbody th{font-weight:600}table.data .num{text-align:right}table.data tbody tr:last-child>*{border-bottom:0}.chart{margin:0;padding:20px;border:1px solid var(--border);border-radius:var(--r-md);min-width:0}.chart-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.chart-title{font-weight:600}.chart-svg{width:100%;height:auto;display:block;overflow:visible}.chart-svg g{outline:none}.chart-bar{fill:color-mix(in srgb,var(--accent) 80%,var(--text) 20%)}.chart-bar.on{fill:color-mix(in srgb,var(--accent) 45%,var(--text) 55%)}.chart-axis{stroke:var(--border);stroke-width:1}.chart-grid{stroke:var(--border);stroke-dasharray:2 4}.chart-tick{fill:var(--textMuted);font-family:var(--font-mono);font-size:11px}.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;background:var(--surfaceAlt);color:var(--text);font-size:.75rem;font-weight:600;overflow-wrap:anywhere}.badge.good{background:color-mix(in srgb,var(--success) 16%,var(--bg));color:var(--success)}.badge.warn{background:color-mix(in srgb,var(--warning) 16%,var(--bg));color:var(--warning)}.badges{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:6px}.player-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.player-head .mono{overflow-wrap:anywhere}.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.facts dt{color:var(--textMuted);font-size:.8125rem}.admin-stack.tight{gap:10px}.panel h3{margin-top:4px;font-size:.9375rem;font-weight:600}.notice{padding:10px 14px;border-radius:var(--r-md);background:color-mix(in srgb,var(--warning) 12%,var(--bg))}.facts dd{font-weight:500;overflow-wrap:anywhere}.field-label{display:block;margin-bottom:4px;color:var(--textMuted);font-size:.8125rem;font-weight:500}.admin .text-input{width:100%;min-height:42px;font-size:.9375rem}.admin .text-input.mono{font-family:var(--font-mono)}.admin textarea.text-input{resize:vertical;line-height:1.5}.admin-search{max-width:560px}.admin-search .row{flex-wrap:nowrap}.players-controls{align-items:flex-end}.players-controls .admin-search{flex:1 1 320px}.player-filters{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-items:end;gap:12px}.player-link{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;background:none;padding:0;font:inherit;text-align:left;cursor:pointer}.more-btn{align-self:center}.inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.inline-form label{flex:1 1 170px}.inline-form label.grow{flex:2 1 180px}.inline-label{display:flex;align-items:center;gap:8px}.inline-label .field-label{margin:0;white-space:nowrap}.push-form{display:grid;gap:16px}.form-grid{display:grid;gap:12px}.asset-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:.875rem}.asset-field input{max-width:100%}.asset-thumb{width:96px;height:64px;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--border)}.problems{margin:0;padding:10px 12px 10px 28px;border-radius:var(--r-sm);background:color-mix(in srgb,var(--danger) 8%,var(--bg));color:var(--danger);font-size:.875rem}.stage-codes{display:flex;flex-direction:column;gap:6px;min-width:0}.stage-codes .mono{overflow-wrap:anywhere}.evcal{position:relative;display:flex;flex-direction:column;gap:6px;padding-top:4px}.evcal-weeks{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));color:var(--textMuted);font-family:var(--font-mono);font-size:.75rem;border-bottom:1px solid var(--border);padding-bottom:4px}.evcal-now{position:absolute;top:0;bottom:0;width:2px;background:var(--danger);opacity:.6;pointer-events:none}.evcal-row{min-width:0}.evcal-bar{display:block;min-height:30px;padding:4px 10px;border:0;border-radius:8px;background:var(--surfaceAlt);color:var(--text);font-size:.8125rem;font-weight:600;text-align:left;cursor:pointer;overflow:hidden}.evcal-bar span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.evcal-bar.live{background:var(--accent);color:var(--accentText)}.event-list,.inbox{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.event-item{width:100%;display:grid;grid-template-columns:1fr;gap:4px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);font:inherit;color:inherit;text-align:left;cursor:pointer}.event-item:hover{background:var(--surface)}.event-item .badge{justify-self:start}.inbox-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.inbox-meta .link{font-weight:400;text-decoration:none;overflow-wrap:anywhere}.inbox-text{white-space:pre-wrap;overflow-wrap:anywhere}.voice{width:100%;max-width:420px}.config-layout{display:grid;gap:16px;min-width:0}.config-list{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.config-list button{flex:none;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);font:inherit;color:inherit;text-align:left;cursor:pointer}.config-list button .small{display:none}.config-list button.active{border-color:var(--text);background:var(--surface)}.config-editor .json{min-height:360px;font-size:.8125rem;tab-size:2}@media(min-width:700px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .span-2{grid-column:span 2}.event-item{grid-template-columns:1fr auto auto auto;align-items:center;gap:16px}}@media(min-width:900px){.admin-who{display:inline;margin-right:8px}.admin-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.config-layout{grid-template-columns:280px minmax(0,1fr);align-items:start}.config-list{flex-direction:column;overflow:visible}.config-list button .small{display:block}}.home-events{display:flex;flex-direction:column;gap:12px}.home-events-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-events-head h2{margin:0;font-size:1.25rem;letter-spacing:-.02em}.card-events-closed .card-sub{max-width:48ch}.event-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}.event-card{position:relative;display:flex;flex-direction:column;border-radius:var(--r-lg);background:var(--surface);overflow:hidden;transition:transform .35s var(--ease)}.event-card:hover{transform:translateY(-2px)}.event-card-hit{position:absolute;inset:0;z-index:0;border:0;background:transparent;border-radius:inherit;cursor:pointer}.event-card-hit:focus-visible{outline:2px solid var(--text);outline-offset:-2px}.event-top{position:relative;height:92px;background:color-mix(in srgb,var(--hue) 16%,var(--surface))}.event-cover{width:100%;height:100%;object-fit:cover;opacity:.9}.event-time,.event-ready{position:absolute;top:12px;padding:3px 10px;border-radius:999px;font-size:.75rem;font-weight:600}.event-time{left:12px;background:color-mix(in srgb,var(--surface) 88%,transparent);color:var(--text)}.event-ready{right:12px;background:var(--accent);color:var(--accentText)}.event-badge{position:absolute;left:20px;bottom:-22px;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--hue) 22%,var(--surface));border:3px solid var(--surface);color:var(--text)}.event-badge.small{position:static;width:34px;height:34px;border-width:0}.event-medal-img{object-fit:contain}.event-body{display:flex;flex-direction:column;gap:6px;padding:32px 20px 20px;flex:1}.event-type{color:var(--textMuted);font-size:.8125rem;font-weight:500}.event-title{font-size:1.25rem;letter-spacing:-.02em;line-height:1.2}.event-value{margin:4px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px}.event-big{font-size:1.75rem;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.event-next{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--textMuted);font-size:.875rem}.event-bar{margin-top:6px}.event-segments{display:flex;gap:4px}.event-segments .bar{flex:1;margin-top:0}.event-actions{position:relative;z-index:1;margin-top:auto;padding-top:12px;display:flex}.event-actions .btn{flex-direction:row;gap:8px;min-height:44px}.reward-chip{display:inline-flex;align-items:center;gap:2px;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--text) 7%,transparent);font-size:.8125rem;font-weight:600;font-variant-numeric:tabular-nums}.btn.primary .reward-chip{background:color-mix(in srgb,var(--accentText) 12%,transparent)}.events-summary{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.events-summary .chip{padding:4px 12px;border-radius:999px;background:var(--surface);font-size:.875rem;font-weight:600}.events-summary .chip-accent{background:var(--accent);color:var(--accentText)}.events-closed{display:flex;align-items:flex-start;gap:14px;max-width:60ch;padding:24px;border-radius:var(--r-lg);background:var(--surface)}.events-closed p{margin:2px 0 0;font-size:1.0625rem;line-height:1.55}.event-hero{position:relative;display:flex;gap:16px;align-items:flex-start;padding:20px;border-radius:var(--r-md);background:color-mix(in srgb,var(--hue) 14%,var(--surface))}.event-hero .event-badge{position:static;flex:none;width:56px;height:56px;border-color:color-mix(in srgb,var(--hue) 14%,var(--surface))}.event-hero p{margin:4px 0 0}.event-sub{margin:20px 0 8px;font-size:1rem}.reward-path{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.reward-path li{position:relative;display:grid;grid-template-columns:32px 1fr auto auto;align-items:center;gap:12px;min-height:52px}.reward-path li:not(:last-child):after{content:"";position:absolute;left:15px;top:40px;bottom:-12px;width:2px;background:var(--border)}.path-node{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surfaceAlt);color:var(--textMuted)}.reward-path .done .path-node{background:color-mix(in srgb,var(--hue) 30%,var(--surface));color:var(--text)}.reward-path .ready .path-node{background:var(--accent);color:var(--accentText)}.path-mark{font-weight:600;font-variant-numeric:tabular-nums}.path-state{color:var(--textMuted);font-size:.875rem;text-align:right}.path-state .btn{min-height:40px;padding:6px 16px}.how-it-works{margin:0;padding:16px 16px 16px 32px;border-radius:var(--r-md);background:var(--surface);color:var(--textMuted);line-height:1.55}.stage-tiles{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.stage-tiles li{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-sm);background:var(--surfaceAlt);font-weight:600;color:var(--textMuted)}.stage-tiles li.done{background:color-mix(in srgb,var(--hue) 30%,var(--surface));color:var(--text)}.stage-tiles li.now{outline:2px solid var(--text);color:var(--text)}.painting{position:relative;flex:none;margin-top:16px;border-radius:var(--r-md);overflow:hidden;background:var(--accent)}.painting img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.painting-tiles{position:relative;display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:2px;padding:2px}.painting-tiles span{aspect-ratio:1;border-radius:3px;background:var(--surfaceAlt);transition:opacity .4s var(--ease)}.painting-tiles span.open{opacity:0}.event-sheet .sheet-buttons .btn{flex-direction:row;gap:8px}@media(max-width:699px){.home-events .event-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc(100% - 40px);overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 4px;scroll-padding:0 16px;scrollbar-width:none}.home-events .event-card{scroll-snap-align:start}}.win-rewards{display:flex;flex-direction:column;gap:8px}.win-rewards .event-sub{margin:4px 0 0}.win-reward{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r-md);background:color-mix(in srgb,var(--hue) 10%,var(--surface))}.win-reward-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.gain-pill{padding:2px 10px;border-radius:999px;background:var(--accent);color:var(--accentText);font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:no-preference){.gain-pill{animation:gain-pop .5s var(--ease)}}@keyframes gain-pop{0%{transform:scale(.6);opacity:0}}@media(prefers-reduced-motion:reduce){.event-card,.painting-tiles span{transition:none}}.legal{max-width:760px;line-height:1.65}.legal-back{flex-direction:row;gap:8px;align-self:flex-start;margin-left:-12px}.legal-intro{max-width:68ch;margin-top:8px;color:var(--textMuted)}.legal-toc{display:flex;flex-wrap:wrap;gap:6px 8px;padding-bottom:20px;border-bottom:1px solid var(--border)}.legal-toc a{padding:4px 10px;border-radius:var(--r-sm);background:var(--surface);font-size:.8125rem}.legal-toc a:hover{background:var(--surfaceAlt)}.legal section{gap:10px;scroll-margin-top:calc(var(--topbar-h) + 16px)}.legal section h2{margin-top:8px}.legal p,.legal ul{max-width:68ch;margin:0}.legal ul{display:flex;flex-direction:column;gap:8px;padding-left:20px}.legal section a,.legal-intro a,.legal-links a,.legal-note a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.legal-links{display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:20px;border-top:1px solid var(--border)}.legal-note{text-align:center}.legal-foot{justify-content:center;padding-top:0;border-top:0}.account-signin p a{text-decoration:underline;text-underline-offset:3px}.how-title{margin:0;font-size:1rem;font-weight:700;letter-spacing:-.01em}.how-skip{min-height:40px;padding:0 14px}.how-panel{gap:16px}.how-device{align-self:flex-start}.how-steps{display:flex;gap:8px;margin:0;padding:0;list-style:none}.how-steps li{flex:1;display:flex;align-items:flex-start;gap:8px;min-width:0;padding-top:10px;border-top:3px solid var(--border);color:var(--textMuted);font-size:.8125rem;font-weight:600;transition:border-color .3s var(--ease),color .3s var(--ease)}.how-steps li.current{border-top-color:var(--text);color:var(--text)}.how-steps li.done{border-top-color:var(--accent);color:var(--text)}.how-step-mark{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--surfaceAlt);font-variant-numeric:tabular-nums}.how-steps li.done .how-step-mark{background:var(--accent);color:var(--accentText)}.how-step-name{min-width:0;line-height:1.25}.how-done{display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;color:var(--textMuted);animation:fade .3s var(--ease)}.how-done svg{flex:none;margin-top:3px;color:var(--accentText);background:var(--accent);border-radius:999px;padding:1px}.how-now{outline:none;animation:fade .3s var(--ease)}.how-now>p{margin:4px 0 0;font-size:1.0625rem;line-height:1.5;text-wrap:pretty}.how-now .how-note{text-align:left;margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--surfaceAlt)}.how-extras{display:grid;gap:12px;margin:12px 0 0;padding:0;list-style:none}.how-extras li{display:grid;gap:2px;padding-left:12px;border-left:2px solid var(--accent)}.how-extras span{color:var(--textMuted);line-height:1.45}.how-link{margin-top:12px}@media(prefers-reduced-motion:reduce){.how-steps li,.how-done,.how-now{transition:none;animation:none}}.stars{display:inline-flex;align-items:center;gap:2px}.star-on{color:var(--premium)}.star-off{color:color-mix(in srgb,var(--textMuted) 55%,transparent)}.twist-home{gap:20px}.twist-hero{display:flex;flex-direction:column;gap:12px}.twist-title{max-width:16ch}.twist-rule{display:inline-block;padding:0 .18em;border-radius:.14em;background:var(--accent);color:var(--accentText)}.twist-stars{gap:4px}.twist-start{min-width:200px}.rule-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:20px;min-height:0;border:0;text-align:left;cursor:pointer;color:var(--text);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}.rule-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px -16px color-mix(in srgb,var(--text) 35%,transparent)}.rule-card:active{transform:scale(.99)}.rule-card:focus-visible,.rule-row:focus-visible,.rule-chip:focus-visible{outline:2px solid var(--text);outline-offset:3px}.rule-card-text{display:flex;flex-direction:column;gap:6px;min-width:0}.rule-card-cta{margin-top:6px;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:.9375rem}.rule-diagram{--cellpx: 22px;display:grid;grid-template-columns:repeat(var(--n),var(--cellpx));grid-auto-rows:var(--cellpx);gap:3px;flex-shrink:0}.diagram-cell{display:grid;place-items:center;border-radius:5px;background:var(--cellHidden);font-family:var(--font-mono);font-size:.75rem;font-weight:700}.diagram-cell.lit{background:color-mix(in srgb,var(--accent) 75%,var(--cellHidden))}.diagram-cell.source{background:var(--cellOpen);box-shadow:inset 0 0 0 1.5px var(--text);color:var(--text)}.diagram-two{font-size:.6875rem}.fog-mark{width:70%;height:70%;border-radius:3px;background:repeating-linear-gradient(135deg,var(--textMuted) 0 2px,transparent 2px 5px);opacity:.55}.rule-diagram.rule-loop .diagram-cell.lit{outline:1.5px dashed color-mix(in srgb,var(--text) 45%,transparent);outline-offset:-3px}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.week-cell{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 2px;border-radius:var(--r-md);background:var(--surface);text-align:center;min-width:0}a.week-cell:hover{box-shadow:inset 0 0 0 1.5px var(--text)}.week-cell.today{box-shadow:inset 0 0 0 2px var(--text)}.week-cell.future{opacity:.55}.week-cell.won{background:var(--accent);color:var(--accentText)}.week-cell.tried{box-shadow:inset 0 0 0 1.5px var(--warning)}.week-day{color:var(--textMuted);font-size:.75rem;font-weight:600}.week-cell.won .week-day{color:inherit;opacity:.75}.week-rule{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;font-weight:600;letter-spacing:-.01em}.week-stars{gap:0}.how-to{padding-top:8px}.how-list{margin:0;padding-left:1.25em;display:grid;gap:6px;max-width:62ch}.how-list li::marker{color:var(--textMuted);font-family:var(--font-mono)}.text-link{text-decoration:underline;text-underline-offset:3px}.main-menu{position:relative}.main-menu-list{position:absolute;right:0;top:calc(100% + 8px);z-index:30;display:flex;flex-direction:column;min-width:220px;padding:6px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg);box-shadow:var(--shadow-float);animation:fade .18s var(--ease)}.main-menu-list a{padding:10px 12px;border-radius:var(--r-sm);font-weight:500}.main-menu-list a:hover,.main-menu-list a.active{background:var(--surface)}.rule-chip{margin-right:6px;padding:0 8px;border:0;border-radius:999px;background:var(--accent);color:var(--accentText);font-family:var(--font-sans);font-size:.75rem;font-weight:700;line-height:1.6;cursor:pointer}.rule-chip:hover{background:color-mix(in srgb,var(--accent) 86%,var(--text))}.cell.open.fog,.demo-cell.open.fog{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--textMuted) 30%,transparent) 0 2px,transparent 2px 6px),var(--cellOpen)}.cell.n-wide{font-size:.8em;letter-spacing:-.06em}.cell.flag2 .flag-count,.demo-cell .flag-count{position:absolute;right:6%;bottom:4%;font-family:var(--font-mono);font-size:.5em;font-weight:800;color:var(--text)}.board.rule-loop{outline:2px dashed color-mix(in srgb,var(--text) 30%,transparent);outline-offset:4px;border-radius:6px}.demo-sheet .demo-line{color:var(--textMuted)}.demo-stage{display:grid;place-items:center;padding:12px 0}.demo-board{position:relative;display:grid;grid-template-columns:repeat(var(--w),var(--cell));grid-auto-rows:var(--cell);gap:2px}.demo-cell{position:relative;display:grid;place-items:center;border-radius:22%;background:var(--cellHidden);box-shadow:inset 0 -2px 0 var(--cellHiddenEdge);font-weight:700;font-size:calc(var(--cell) * .5);transition:background-color .3s var(--ease),box-shadow .3s var(--ease)}.demo-cell.open{border-radius:4px;background:var(--cellOpen);box-shadow:none}.demo-cell.lit{box-shadow:inset 0 0 0 2.5px color-mix(in srgb,var(--accent) 85%,var(--text))}.demo-cell.clue{box-shadow:inset 0 0 0 2.5px var(--text)}.demo-hand{position:absolute;left:0;top:0;pointer-events:none;color:var(--text);filter:drop-shadow(0 2px 3px color-mix(in srgb,var(--bg) 70%,transparent));transform:translate(calc(var(--x) * (var(--cell) + 2px) + var(--cell) * .35),calc(var(--y) * (var(--cell) + 2px) + var(--cell) * .45))}@media(prefers-reduced-motion:no-preference){.demo-hand{animation:demo-tap .9s var(--ease)}}@keyframes demo-tap{0%{opacity:0;translate:8px 10px}45%{opacity:1;translate:0 0}60%{scale:.88}to{scale:1}}.demo-caption{min-height:3.2em;font-size:.9375rem;line-height:1.5}.demo-actions{flex-wrap:wrap}.twist-end-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--textMuted)}.twist-end-head strong,.twist-next strong{color:var(--text)}.share-btn{flex-direction:row;gap:8px}.twist-grid .twist-day{aspect-ratio:auto;min-height:56px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.twist-day-rule{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-sans);font-size:.625rem;font-weight:600;opacity:.8}.rule-list ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.rule-row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;width:100%;padding:14px;border:0;border-radius:var(--r-md);background:var(--surface);color:var(--text);text-align:left;cursor:pointer}.rule-row:hover{box-shadow:inset 0 0 0 1.5px var(--text)}.rule-row>span{display:flex;flex-direction:column;gap:2px}.rule-row .rule-diagram{--cellpx: 11px;gap:2px}.rule-row .diagram-cell{border-radius:3px;font-size:.5rem}@media(max-width:420px){.rule-card{grid-template-columns:1fr}.week-rule{font-size:.6875rem}.week-strip{gap:4px}}@media(min-width:900px){.twist-home{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);column-gap:40px;row-gap:24px;align-items:start}.twist-hero{grid-row:span 2;padding-top:12px}.twist-home .week-strip,.twist-home .how-to{grid-column:1 / -1}.twist-archive{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px;align-items:start}.twist-archive .page-head{grid-column:1 / -1}}.day.none{color:var(--textMuted);opacity:.45}.twist-week-edit{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.twist-admin .field{display:flex;flex-direction:column;gap:4px}.twist-admin .check-row{display:inline-flex;align-items:center;gap:6px}.twist-admin .plain-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}.twist-admin .plain-list li{align-items:center}.admin-preview .demo-cell.mine{background:var(--mineHit);font-size:.5rem}.rule-pick{display:flex;flex-shrink:0;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.rule-pick-btn{flex:none;min-height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--surfaceAlt);color:var(--text);font-weight:600;font-size:.875rem;cursor:pointer}.rule-pick-btn.active{background:var(--accent);color:var(--accentText)}
