/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.grid{display:grid}.table{display:table}}:root{--page:#eef6ff;--card:#fff;--ink:#111b36;--muted:#64748b;--line:#dbe4ef;--line-strong:#1f2d46;--blue:#2563eb;--blue-dark:#1d4ed8;--blue-soft:#eaf4ff;--blue-softer:#f4f9ff;--green:#23b64b;--green-soft:#e7f9ec;--red:#ef4444;--red-soft:#fee2e2;--shadow:0 18px 45px #23467824;--button-shadow:0 8px 20px #1e407821}*{box-sizing:border-box}html{background:radial-gradient(circle at 20% 0%, #fffffff2, transparent 34rem), linear-gradient(180deg, #f8fbff 0%, var(--page) 100%);min-height:100%}body{min-height:100%;color:var(--ink);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}@media (width>=431px){html,body{overflow:hidden}}button,select{font:inherit}button{-webkit-tap-highlight-color:transparent}.game-nav-actions{z-index:50;top:max(12px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));gap:8px;display:flex;position:fixed}.game-nav-action{min-height:40px;color:var(--ink);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffc;border:1px solid #dbe4efd1;border-radius:999px;justify-content:center;align-items:center;gap:7px;padding:0 13px;font-size:13px;font-weight:900;text-decoration:none;display:inline-flex;box-shadow:0 12px 28px #2346782e}.game-nav-action--share{background:linear-gradient(180deg, #fff, var(--blue-soft));color:var(--blue-dark);border-color:#2563eb5c}@media (width<=520px){.game-nav-action{width:40px;min-width:40px;padding:0}.game-nav-action span:last-child{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}}.nested-game-actions{z-index:90;top:max(12px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));pointer-events:auto;align-items:flex-start;gap:8px;display:flex;position:fixed}.nested-game-home-button,.nested-game-share-button{color:#f8fafc;white-space:nowrap;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#070c14c7;border:1px solid #ffffff1f;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:8px 14px;font-size:.875rem;font-weight:800;line-height:1.25rem;text-decoration:none;display:inline-flex;box-shadow:0 12px 28px #0000003d}.nested-game-share-button:hover,.nested-game-share-button[aria-expanded=true],.nested-game-home-button:hover{color:#67e8f9;background:#070c14f0;border-color:#22d3ee4d}.nested-game-action-icon{flex:none;width:18px;height:18px}.nested-game-share-menu{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#070c14f5;border:1px solid #94a3b838;border-radius:12px;gap:4px;min-width:162px;padding:8px;display:none;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 42px #00000057}.nested-game-share-menu.is-open{display:grid}.nested-game-share-option{color:#e2e8f0;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;min-height:36px;padding:8px 10px;font-size:.82rem;font-weight:800;text-decoration:none;display:flex}.nested-game-share-option:hover{color:#67e8f9;background:#22d3ee24}@media (width<=520px){.nested-game-actions{top:max(8px, env(safe-area-inset-top));right:max(8px, env(safe-area-inset-right));gap:6px}.nested-game-home-button,.nested-game-share-button{min-height:36px;padding:7px 10px;font-size:.78rem}}button:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #2563eb52}.game-shell{justify-content:center;align-items:center;min-height:100dvh;max-height:100dvh;padding:clamp(6px,1.15vh,12px);display:flex;overflow:hidden}.loading-shell{align-items:center}.loading-card{background:var(--card);width:min(100%,420px);box-shadow:var(--shadow);text-align:center;border-radius:26px;padding:28px;font-size:18px;font-weight:800}.phone-stage{width:100%;min-width:0;max-width:min(540px,100dvh - 250px)}.game-header{grid-template-columns:58px 1fr auto;align-items:center;gap:12px;min-height:clamp(46px,7vh,64px);padding:0 8px clamp(5px,1vh,10px);display:grid}.game-header h1{text-align:center;letter-spacing:0;margin:0;font-size:clamp(30px,5.8vh,44px);font-weight:900;line-height:1}.header-actions{gap:10px;display:flex}.icon-button{color:#4a556f;width:48px;height:48px;box-shadow:var(--button-shadow);cursor:pointer;background:#fffffff0;border:0;border-radius:15px;justify-content:center;align-items:center;transition:transform .16s,box-shadow .16s,color .16s;display:inline-flex}.icon-button:active{transform:translateY(1px)scale(.98)}.icon-button.crown{color:#f59e0b}.top-icon,.metric-icon,.tool-icon,.new-game-icon{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;width:26px;height:26px}.game-card{min-width:0;box-shadow:var(--shadow);background:#fffffff5;border:1px solid #dce7f5e0;border-radius:24px;padding:clamp(8px,1.3vh,14px)}.info-bar{grid-template-columns:minmax(110px,1fr) auto minmax(92px,1fr);align-items:center;gap:clamp(6px,1vw,10px);min-width:0;margin-bottom:clamp(6px,1vh,10px);display:grid}.stage-card{background:linear-gradient(#f8fbff 0%,#eef6ff 100%);border:1px solid #dce9fb;border-radius:15px;margin-bottom:clamp(6px,1vh,10px);padding:clamp(6px,1vh,9px);box-shadow:inset 0 1px #fffc}.stage-summary{grid-template-columns:54px 1fr 54px;align-items:center;gap:6px;display:grid}.stage-summary p,.stage-summary strong,.stage-summary span{text-align:center;text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.stage-summary p{color:var(--blue);margin:0;font-size:13px;font-weight:900}.stage-summary strong{color:var(--ink);margin-top:1px;font-size:clamp(15px,2.1vh,18px);font-weight:900;line-height:1.15}.stage-summary span{color:var(--muted);margin-top:3px;font-size:12px;font-weight:800}.stage-nav{min-height:36px;color:var(--blue);cursor:pointer;background:#fff;border:0;border-radius:10px;font-size:13px;font-weight:900;box-shadow:0 6px 14px #1e40781a}.stage-nav:disabled{cursor:not-allowed;opacity:.4}.stage-track{scrollbar-width:none;gap:6px;margin-top:clamp(5px,.8vh,8px);padding:2px 1px 4px;display:flex;overflow-x:auto}.stage-track::-webkit-scrollbar{display:none}.stage-dot{color:#587093;cursor:pointer;background:#fff;border:0;border-radius:999px;flex:0 0 clamp(24px,3.2vh,29px);height:clamp(24px,3.2vh,29px);font-size:12px;font-weight:900;box-shadow:0 5px 12px #1e40781a}.stage-dot.current{background:var(--blue);color:#fff}.stage-dot.locked{color:#9aa7b8;cursor:not-allowed;box-shadow:none;background:#e7edf5}.difficulty-pill{background:var(--green-soft);min-width:0;min-height:clamp(36px,5vh,44px);color:var(--green);border:1px solid #23b64b38;border-radius:12px;align-items:center;gap:9px;padding:0 12px;display:flex;box-shadow:inset 0 0 0 1px #ffffffbf}.difficulty-pill select{min-width:0;color:var(--green);letter-spacing:0;cursor:pointer;background:0 0;border:0;font-size:20px;font-weight:850}.difficulty-bars{grid-template-columns:repeat(3,1fr);align-items:end;gap:3px;width:26px;height:24px;display:grid}.difficulty-bars i{background:var(--green);border-radius:4px 4px 2px 2px;display:block}.difficulty-bars i:first-child{height:9px}.difficulty-bars i:nth-child(2){height:15px}.difficulty-bars i:nth-child(3){height:22px}.info-metric{white-space:nowrap;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:clamp(36px,5vh,44px);font-size:clamp(16px,3.8vw,22px);font-weight:800;display:flex}.info-metric span{text-overflow:ellipsis;min-width:0;overflow:hidden}.metric-icon{width:clamp(22px,3.2vh,27px);height:clamp(22px,3.2vh,27px)}.metric-icon.timer{color:var(--blue)}.metric-icon.mistakes{color:var(--red)}.board-wrap{justify-content:center;padding:0;display:flex}.sudoku-board{aspect-ratio:1;border:2px solid var(--line-strong);background:#fff;border-radius:7px;grid-template-columns:repeat(9,minmax(0,1fr));width:min(100%,100dvh - 470px);min-width:280px;max-width:500px;display:grid;overflow:hidden;box-shadow:0 10px 24px #23467814}.sudoku-cell{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0;min-height:0;color:var(--blue);cursor:pointer;background:#fff;border-radius:0;justify-content:center;align-items:center;transition:background .14s,box-shadow .14s,color .14s;display:flex;position:relative}.sudoku-cell:nth-child(3n){border-right:2px solid var(--line-strong)}.sudoku-cell:nth-child(9n){border-right:0}.sudoku-cell:nth-child(n+19):nth-child(-n+27),.sudoku-cell:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid var(--line-strong)}.sudoku-cell:nth-child(n+73){border-bottom:0}.sudoku-cell.related{background:var(--blue-softer)}.sudoku-cell.same-number{background:#dcecff}.sudoku-cell.selected{z-index:2;background:var(--blue-soft);box-shadow:inset 0 0 0 3px var(--blue)}.sudoku-cell.wrong{color:var(--red);background:var(--red-soft);animation:.52s wrong-pulse}.cell-value{font-size:clamp(21px,5.1vh,36px);font-weight:760;line-height:1}.sudoku-cell.fixed .cell-value{color:#101b34;font-weight:850}.notes-grid{color:#5d77a8;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);place-items:center;width:72%;height:72%;font-size:clamp(8px,2.1vw,13px);font-weight:800;line-height:1;display:grid}.number-pad{flex-wrap:wrap;justify-content:center;gap:clamp(7px,1.1vh,11px);padding:clamp(9px,1.25vh,13px) 6px;display:flex}.number-key{width:calc(20% - 9.6px);min-width:46px;max-width:105px;min-height:clamp(38px,5.7vh,54px);color:var(--blue);box-shadow:var(--button-shadow);cursor:pointer;background:#fff;border:0;border-radius:13px;font-size:clamp(26px,5vh,40px);font-weight:850;line-height:1;transition:transform .15s,box-shadow .15s,background .15s}.number-key:active:not(:disabled),.tool-button:active:not(:disabled),.new-game-button:active{transform:translateY(1px)scale(.985)}.number-key:disabled,.tool-button:disabled{cursor:not-allowed;opacity:.46}.tool-bar{background:#fff;border:1px solid #dde7f4f2;border-radius:14px;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;display:grid;overflow:hidden;box-shadow:0 8px 22px #1e407814}.tool-button{color:#3e4961;cursor:pointer;background:#fff;border:0;border-right:1px solid #e3eaf3;grid-template-rows:28px auto 18px;place-items:center;gap:2px;min-width:0;min-height:clamp(50px,6.4vh,62px);padding:6px 6px 5px;transition:background .15s,color .15s,transform .15s;display:grid}.tool-button:last-child{border-right:0}.tool-button span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:clamp(12px,3vw,15px);font-weight:780;line-height:1.1;overflow:hidden}.tool-button small{color:#647084;background:#d7dce4;border-radius:5px;padding:2px 6px;font-size:11px;font-weight:900;line-height:1.1}.tool-button.active{color:var(--blue);background:#f5f9ff}.tool-button.active small,.hint-count{background:var(--blue)!important;color:#fff!important}.new-game-button{background:linear-gradient(180deg, #2d78f0 0%, var(--blue-dark) 100%);color:#fff;cursor:pointer;border:0;border-radius:10px;justify-content:center;align-items:center;gap:12px;width:100%;min-height:clamp(40px,5.4vh,50px);margin-top:clamp(8px,1.2vh,13px);font-size:clamp(18px,3.2vh,23px);font-weight:860;transition:transform .15s,box-shadow .15s;display:inline-flex;box-shadow:0 10px 22px #2563eb47}.new-game-icon{width:clamp(24px,3.6vh,29px);height:clamp(24px,3.6vh,29px)}.mobile-keyboard-input{opacity:0;pointer-events:none;border:0;width:1px;height:1px;padding:0;position:fixed;bottom:0;left:0}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0f172a47;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.game-modal{text-align:center;background:#fff;border-radius:24px;width:min(100%,380px);padding:26px;box-shadow:0 28px 70px #0f172a47}.game-modal h2{margin:0;font-size:30px;font-weight:900;line-height:1.15}.game-modal p{color:var(--muted);margin:10px 0 18px;font-weight:700}.game-modal dl{gap:8px;margin:0;display:grid}.game-modal dl div{background:#f6f9fd;border-radius:12px;justify-content:space-between;align-items:center;min-height:42px;padding:0 14px;display:flex}.game-modal dt,.game-modal dd{margin:0;font-weight:800}.game-modal dt{color:var(--muted)}.game-modal dd{color:var(--ink)}.modal-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;display:grid}.modal-actions button:only-child{grid-column:1/-1}.primary-action,.secondary-action{cursor:pointer;border:0;border-radius:12px;min-height:48px;font-weight:850}.primary-action{color:#fff;background:var(--blue)}.secondary-action{color:var(--ink);background:#edf4ff}.header-panel-backdrop{z-index:30}.header-action-modal{text-align:left;width:min(100%,430px);max-height:min(680px,100dvh - 40px);overflow-y:auto}.header-action-title-row{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.header-action-title-row p{color:var(--blue);margin:0 0 4px;font-size:14px;font-weight:850}.header-action-title-row h2{margin:0;font-size:26px}.panel-close-button{width:38px;height:38px;color:var(--muted);cursor:pointer;background:#f1f6ff;border:0;border-radius:12px;font-size:28px;font-weight:500;line-height:1}.progress-card{background:linear-gradient(135deg,#eff6ff 0%,#e5f7ed 100%);border:1px solid #d9e8fb;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;min-height:62px;margin-bottom:14px;padding:0 16px;display:flex}.progress-card strong{color:var(--ink);font-size:25px;font-weight:900;line-height:1}.progress-card span{color:var(--muted);font-size:14px;font-weight:800}.stage-panel-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.stage-panel-button{min-height:58px;color:var(--ink);cursor:pointer;background:#fff;border:1px solid #dce7f5;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:3px;display:flex;box-shadow:0 10px 24px #3a54801a}.stage-panel-button.selected{border-color:var(--blue);color:var(--blue);background:#eff6ff}.stage-panel-button:disabled{cursor:not-allowed;color:#a8b4c7;box-shadow:none;background:#f4f7fb}.stage-panel-button span{font-size:18px;font-weight:900;line-height:1}.stage-panel-button small{font-size:11px;font-weight:850}.settings-action-list{gap:10px;display:grid}.settings-action{min-height:66px;color:var(--ink);cursor:pointer;text-align:left;background:#fff;border:1px solid #dce7f5;border-radius:16px;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;display:flex;box-shadow:0 12px 28px #3a54801a}.settings-action:disabled{cursor:not-allowed;opacity:.52;box-shadow:none}.settings-action.danger{color:#b42318;background:#fff7f7;border-color:#ffd6d6}.settings-action span{gap:4px;display:grid}.settings-action strong{font-size:16px;font-weight:900;line-height:1.1}.settings-action small{color:var(--muted);font-size:13px;font-weight:700;line-height:1.3}.settings-action em{min-width:52px;color:var(--blue);text-align:center;background:#eaf2ff;border-radius:999px;padding:7px 10px;font-size:13px;font-style:normal;font-weight:900}@keyframes wrong-pulse{0%,to{transform:scale(1)}42%{transform:scale(.96)}}@media (width<=430px){html,body{overflow-x:hidden}.game-shell{align-items:flex-start;min-height:100dvh;max-height:none;padding:10px 8px;overflow-y:auto}.phone-stage{max-width:640px}.game-header{grid-template-columns:48px 1fr auto;gap:8px;padding-inline:2px}.icon-button{border-radius:14px;width:45px;height:45px}.header-actions{gap:8px}.game-card{border-radius:22px;padding:14px}.info-bar{grid-template-columns:minmax(118px,1.1fr) minmax(88px,.85fr) auto;gap:7px}.difficulty-pill{min-height:44px;padding:0 9px}.info-metric{gap:5px;min-height:44px;font-size:16px}.metric-icon{width:25px;height:25px}.difficulty-pill select{font-size:18px}.number-pad{display:none}.number-key{width:calc(20% - 8px);min-width:0}.tool-button{min-height:68px}.stage-card{margin-bottom:10px;padding:9px}.stage-summary{grid-template-columns:48px 1fr 48px;gap:6px}.stage-summary strong{font-size:17px}.stage-summary span{font-size:11px}.stage-dot{flex-basis:28px;height:28px}.sudoku-board{width:100%;min-width:0;max-width:none}}@media (width>=431px){.number-pad{flex-wrap:nowrap;gap:8px;padding:8px 4px}.number-key{width:calc(11.1111% - 7.11111px);min-width:0;max-width:none}}@media (width<=350px){.game-card{padding:10px}.game-header h1{font-size:32px}.header-actions{gap:5px}.icon-button{width:40px;height:40px}.top-icon{width:23px;height:23px}.tool-button{padding-inline:3px}}
