:root{color:#19191b;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--ink:#19191b;--muted:#66666f;--line:#e5e5e2;--paper:#fff;--blue:#244bdf;--yellow:#ffed48;--red:#a22835;background:#f7f7f5;font-family:Inter,PingFang SC,Hiragino Sans GB,Microsoft YaHei,system-ui,sans-serif}*,:before,:after{box-sizing:border-box}body{min-width:300px;margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button,a{transition:background-color .15s,color .15s,border-color .15s,transform .15s}button:active:not(:disabled){transform:scale(.96)}svg{stroke-width:1.9px;flex-shrink:0;width:18px;height:18px}p,h1,h2,figure{margin:0}[hidden]{display:none!important}.app{flex-direction:column;width:100%;min-height:100svh;display:flex}.shell{width:min(1152px,100% - 96px);margin-inline:auto}.masthead{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;min-height:77px;display:flex}.wordmark{color:var(--ink);letter-spacing:.075em;align-items:center;gap:10px;font-size:.9rem;font-weight:850;text-decoration:none;display:inline-flex}.wordmark-accent{color:var(--blue)}.wordmark-icon{grid-template-columns:repeat(2,1fr);gap:2px;width:23px;height:23px;display:grid;transform:rotate(-9deg)}.wordmark-icon i{background:var(--ink);border-radius:2px}.wordmark-icon i:nth-child(2){background:var(--yellow);border:1px solid var(--ink)}.header-actions{align-items:center;gap:10px;display:flex}.hub-link{min-height:42px;color:var(--blue);white-space:nowrap;border-radius:100px;place-items:center;padding:0 10px;font-size:.8125rem;font-weight:670;text-decoration:none;display:inline-grid}.hub-link:hover{background:#eef0f9}.rules-trigger,.sound-trigger{border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}.rules-trigger{background:0 0;border-radius:100px;gap:7px;min-height:42px;padding:0 12px;font-size:.875rem;font-weight:650}.rules-trigger:hover{background:#ededea}.sound-trigger{background:var(--yellow);border-radius:50%;width:42px;height:42px}.sound-trigger:hover{background:#ffe020}.sound-trigger[aria-pressed=false]{background:var(--paper);border-color:var(--line);color:var(--muted)}.game-layout{flex:1;grid-template-columns:minmax(278px,.81fr) minmax(450px,1.45fr);align-items:stretch;gap:clamp(34px,6vw,94px);padding-block:clamp(26px,4.5vh,46px);display:grid}.intro{flex-direction:column;align-items:flex-start;min-width:0;padding:10px 0 2px;display:flex}.category{color:var(--blue);letter-spacing:.09em;align-items:center;gap:7px;font-size:.875rem;font-weight:740;display:flex}.category span{border:2px solid;border-radius:2px;width:9px;height:9px;transform:rotate(-12deg)}h1{letter-spacing:-.075em;padding-top:13px;font-size:clamp(3.8rem,6.2vw,6.15rem);font-weight:900;line-height:1.015}h1 span{display:block}h1 em{color:var(--blue);margin-left:.045em;font-style:normal}.lede{color:#515158;margin-top:16px;font-size:1rem;font-weight:520;line-height:1.62}.settings{gap:11px;width:100%;max-width:366px;margin-block:26px 24px;display:grid}.setting{grid-template-columns:50px 1fr;align-items:center;gap:12px;display:grid}.setting-label{color:#52525b;font-size:.875rem;font-weight:650}.segments{border:1px solid var(--line);background:#ececea;border-radius:11px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;padding:3px;display:grid}.segments button{color:#59595e;background:0 0;border:0;border-radius:7px;height:36px;font-size:.875rem;font-weight:675}.segments button span{opacity:.72;padding:0 2px}.segments button:hover{background:#fafaf8}.segments button[aria-pressed=true]{background:var(--ink);color:var(--paper);box-shadow:0 1px 2px #0002}.difficulty button[aria-pressed=true]{color:var(--blue);background:var(--paper)}.club-card{border:1px solid var(--line);background-color:#efefec;background-image:linear-gradient(#19191b0d 1px,#0000 1px),linear-gradient(90deg,#19191b0d 1px,#0000 1px);background-position:-1px -1px;background-repeat:repeat;background-size:18px 18px;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;border-radius:14px;flex:1;align-items:flex-end;width:100%;max-width:366px;min-height:132px;max-height:220px;display:flex;position:relative;overflow:hidden}.club-progress{z-index:1;flex-direction:column;gap:4px;margin:0 0 17px 18px;display:flex;position:relative}.club-label{color:#585860;align-items:center;gap:5px;font-size:.75rem;font-weight:650;display:flex}.club-label svg{width:14px;height:14px}.club-count{font-variant-numeric:tabular-nums;color:#5f5f65;font-size:.9rem}.club-count strong{color:var(--ink);letter-spacing:-.07em;font-size:1.65rem;font-weight:800;line-height:1}.club-sticker{object-fit:contain;object-position:center bottom;pointer-events:none;width:min(58%,210px);height:calc(100% + 12px);position:absolute;bottom:-7px;right:2px}.game-panel{background:var(--paper);border:1px solid var(--line);border-radius:21px;place-items:center;padding:24px clamp(20px,4vw,50px) 19px;display:grid;box-shadow:0 2px 1px #19191b04,0 10px 32px #19191b04}.play-area{--board-edge:clamp(318px, 45vh, 384px);width:min(100%, var(--board-edge))}.game-heading{justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:15px;display:flex}.game-mode,.dialog-kicker{color:var(--blue);letter-spacing:.03em;font-size:.78rem;font-weight:700;line-height:1.2}.game-heading h2{letter-spacing:-.065em;margin-top:4px;font-size:1.9rem;font-weight:820;line-height:1.17}.game-heading h2 span{font-variant-numeric:tabular-nums}.levels-trigger{background:#f5f5f3;border:1px solid #e9e9e5;border-radius:9px;align-items:center;gap:6px;height:37px;padding:0 10px;font-size:.8125rem;font-weight:680;display:inline-flex}.levels-trigger svg{width:15px;height:15px}.levels-trigger:hover{background:#eaeae7}.board{aspect-ratio:1;grid-template-columns:repeat(var(--size), minmax(0, 1fr));grid-template-rows:repeat(var(--size), minmax(0, 1fr));background:#fcfcfc;border:2px solid #27272b;border-radius:12px;width:100%;display:grid;overflow:hidden}.cell{background:var(--paper);font-variant-numeric:tabular-nums;min-width:0;color:var(--blue);border:1px solid #dedee1;border-top:0;border-left:0;border-radius:0;place-items:center;padding:0;font-size:clamp(1.65rem,3.9vw,2.5rem);font-weight:740;line-height:1;display:grid;position:relative}.board.six .cell{font-size:clamp(1.4rem,3.3vw,1.9rem)}.cell.given{color:#303034;background:#f0f0f0}.cell.peer{background:#f1f4ff}.cell.given.peer{background:#ebedf4}.cell.same{background:#dde6ff}.cell.column-break{border-right:2px solid #27272b}.cell.row-break{border-bottom:2px solid #27272b}.cell.last-column{border-right:0}.cell.last-row{border-bottom:0}.cell:hover:not(.selected):not(.conflict){background:#e9eeff}.cell.conflict{color:var(--red);background:#ffe6e9}.cell.selected{z-index:1;background:var(--yellow);color:var(--ink);box-shadow:inset 0 0 0 2px #a88c00}.cell.selected.conflict{color:var(--red);box-shadow:inset 0 0 0 2px var(--red)}.cell:focus-visible{outline-offset:-5px}.cell:active:not(:disabled){transform:none}.cell .cell-number{pointer-events:none}.board-status{justify-content:space-between;align-items:center;gap:8px;min-height:40px;display:flex}#status{color:#5e5e66;margin:0;font-size:.8rem;font-weight:570}#status.error{color:var(--red)}#status.success{color:var(--blue)}.fill-count{color:#5e5e66;font-variant-numeric:tabular-nums;flex-shrink:0;align-items:center;gap:8px;font-size:.75rem;font-weight:620;display:flex}.fill-meter{background:#ececf0;border-radius:99px;width:52px;height:5px;overflow:hidden}.fill-meter i{width:var(--filled);border-radius:inherit;background:var(--blue);height:100%;transition:width .22s;display:block}.keypad{grid-template-columns:repeat(var(--size), minmax(0, 1fr));gap:6px;display:grid}.number-key{font-variant-numeric:tabular-nums;background:#f3f3f1;border:1px solid #e2e2e0;border-radius:9px;height:clamp(43px,6.9vh,55px);font-size:1.35rem;font-weight:780}.number-key:hover:not(:disabled){background:var(--yellow);border-color:#e3d241}.number-key:active:not(:disabled){background:var(--yellow)}.number-key:disabled{opacity:.52}.game-tools{grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px;display:grid}.game-tools button{color:#494951;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:42px;font-size:.8125rem;font-weight:670;display:flex}.game-tools button:hover:not(:disabled){color:var(--blue);background:#f3f4fa}.game-tools button:disabled{opacity:.52}.game-tools svg{width:16px;height:16px}#hint-count{color:var(--blue);background:#eeeffe;border-radius:20px;place-items:center;min-width:17px;height:17px;font-size:.69rem;display:grid}.footer{border-top:1px solid var(--line);color:#62626a;justify-content:space-between;align-items:center;gap:8px;min-height:53px;font-size:.75rem;display:flex}.footer span{align-items:center;gap:6px;display:inline-flex}.footer svg{width:15px;height:15px}dialog{border:1px solid var(--line);width:min(430px,100% - 32px);color:var(--ink);background:var(--paper);border-radius:19px;max-height:calc(100dvh - 30px);padding:0;overflow:auto;box-shadow:0 16px 80px #16161f26}dialog[open] .dialog-body{animation:.23s cubic-bezier(.18,.8,.28,1.05) pop-in}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#1a1c3059}@keyframes pop-in{0%{opacity:.3;transform:translateY(10px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}.dialog-body{padding:29px;position:relative}.dialog-body h2{letter-spacing:-.05em;margin-bottom:15px;font-size:1.9rem;font-weight:850;line-height:1.12}.dialog-body p:not(.dialog-kicker),.rules-list{color:#56565d;font-size:.94rem;line-height:1.67}.dialog-kicker{margin-bottom:7px}.close-dialog{z-index:1;border:1px solid var(--line);background:#f6f6f4;border-radius:50%;place-items:center;width:36px;height:36px;display:grid;position:absolute;top:13px;right:13px}.close-dialog:hover,.secondary-button:hover{background:#eaeae8}.rules-list{margin:12px 0;padding-left:1.3em}.rules-list strong{color:var(--ink)}.primary-button,.secondary-button{border:1px solid var(--ink);background:var(--yellow);border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 15px;font-size:.9rem;font-weight:720;display:inline-flex}.primary-button:hover{background:#ffe02e}.secondary-button{border-color:var(--line);background:#f7f7f5}#rules-dialog .primary-button{margin-top:20px}.level-list{grid-template-columns:repeat(4,1fr);gap:7px;display:grid}.level-option{aspect-ratio:1.2;border:1px solid var(--line);font-variant-numeric:tabular-nums;background:#f7f7f5;border-radius:9px;place-items:center;gap:2px;min-height:47px;font-size:1rem;font-weight:800;display:grid;position:relative}.level-option:hover{background:#edeffa}.level-option[aria-current=true]{background:var(--yellow);border-color:#bba926}.level-option.complete{color:var(--blue)}.level-option svg{width:13px;height:13px;position:absolute;top:4px;right:4px}.reset-trigger{color:#5e5e66;background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;min-height:40px;margin:9px 0 -8px -7px;padding:7px;font-size:.8rem;display:inline-flex}.reset-trigger:hover{background:#f5f5f3}.reset-trigger svg{width:15px;height:15px}.reset-confirm{padding-top:13px}.reset-confirm p{margin-bottom:8px}.win-body{text-align:center;padding:29px 22px 25px}.win-body h2{margin-bottom:6px;font-size:2.75rem}.win-icon{background:var(--yellow);color:#1e1d18;border:1px solid var(--ink);border-radius:17px;place-items:center;width:64px;height:64px;margin:4px auto 16px;display:grid;transform:rotate(-9deg)}.win-icon svg{width:34px;height:34px}.win-actions{justify-content:center;gap:8px;margin-top:20px;display:flex}#confetti{z-index:4;pointer-events:none;width:100vw;height:100vh;position:fixed;top:0;left:0}@media (width<=900px){.shell{width:calc(100% - 54px)}.game-layout{grid-template-columns:minmax(235px,.76fr) minmax(345px,1.3fr);gap:26px}.game-panel{padding-inline:16px}.setting{grid-template-columns:39px 1fr;gap:7px}}@media (width<=660px){.shell{width:min(100% - 28px,475px)}.masthead{min-height:58px}.header-actions{gap:3px}.hub-link{min-height:38px;padding:0 6px}.rules-trigger,.sound-trigger{min-height:38px}.sound-trigger{width:38px;height:38px}.game-layout{flex:initial;padding-block:14px 16px;display:block}.intro{padding:0}.category{font-size:.73rem}.category span{width:8px;height:8px}h1{padding-top:6px;font-size:clamp(2.5rem,9vw,3.7rem)}h1 span{display:inline}.lede{margin-top:7px;font-size:.81rem;line-height:1.4}.desktop-break{display:none}.settings{grid-template-columns:minmax(106px,.85fr) minmax(150px,1.15fr);gap:8px;max-width:none;margin-block:13px 10px}.setting{grid-template-columns:1fr;gap:3px}.setting-label{font-size:.7rem}.segments{border-radius:8px;gap:2px;padding:2px}.segments button{border-radius:6px;height:34px;font-size:.8rem}.club-card{display:none}.game-panel{border-radius:15px;padding:12px 12px 8px}.play-area{--board-edge:385px}.game-heading{margin-bottom:9px}.game-mode{font-size:.7rem}.game-heading h2{margin-top:3px;font-size:1.5rem}.levels-trigger{height:33px}.board-status{min-height:34px}.cell{font-size:clamp(1.7rem,8vw,2.5rem)}.board.six .cell{font-size:clamp(1.25rem,6vw,1.7rem)}.number-key{height:44px;font-size:1.22rem}.game-tools{margin-top:3px}.game-tools button{min-height:38px}.footer{min-height:43px;font-size:.69rem}.footer .keyboard-note{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
