.shell.sudoku{--dock-rows:3}.sudoku .shell__play{grid-template:"strip status""stage stage"minmax(0,1fr)/auto minmax(0,1fr);display:grid}.sudoku .shell__strip{grid-area:strip}.sudoku .shell__status{grid-area:status}.sudoku .shell__stage{grid-area:stage}.sudoku .shell-status{height:44px;font-size:1rem}.sudoku .shell-status.is-result{font-size:1.2rem}.sudoku .shell__main{order:1}.sudoku .shell-btn{padding:2px;font-size:.75rem}.sudoku .shell-btn__label{white-space:normal;overflow-wrap:anywhere}.sudoku .shell-btn .shell-icon,.sudoku .shell-btn .sudoku-icon{width:18px;height:18px}.sudoku-tool.is-on,.sudoku-tool.is-on:hover:not(:disabled){background:var(--marker)}.sudoku .shell__dock:has(#result-show) :is(#sudoku-notes,#sudoku-hint){display:none}.sudoku-field{border:0;min-width:0;margin:0 0 12px;padding:0}.sudoku-legend{margin-bottom:4px;padding:0;font-weight:700}.sudoku-levels{border:1.5px solid var(--ink);background:var(--paper);border-radius:8px;display:flex;overflow:hidden}.sudoku-levels label{cursor:pointer;flex:1 1 0;min-width:0;position:relative}.sudoku-levels label+label{border-inline-start:1.5px solid var(--ink)}.sudoku-levels input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.sudoku-levels span{text-align:center;justify-content:center;align-items:center;min-height:44px;padding:4px;font-size:.95rem;line-height:1.15;display:flex}.sudoku-levels input:checked+span{background:var(--ink);color:var(--paper);font-weight:700}.sudoku-levels input:not(:checked):hover+span{background:var(--paper-shade)}.sudoku-levels input:focus-visible+span{outline:3px solid var(--focus);outline-offset:-3px}.sudoku-levels input:checked:focus-visible+span{outline-color:var(--marker)}.sudoku-clock{align-items:center;gap:6px;height:44px;display:flex}.sudoku-clock__button{appearance:none;border:1.5px solid var(--ink);background:var(--paper);width:44px;height:44px;color:var(--ink);cursor:pointer;touch-action:manipulation;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover) and (pointer:fine){.sudoku-clock__button:hover:not(:disabled){background:var(--paper-shade)}}.sudoku-clock__button:disabled{color:#70748a;cursor:not-allowed;border-color:#a9acba}.sudoku-clock__time{min-width:3em;font-family:var(--font-hand);font-variant-numeric:tabular-nums;padding-top:4px;font-size:1.3rem;line-height:1}.sudoku-icon{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px;display:block}.sudoku-frame{width:100%;container-type:inline-size}.sudoku-board{aspect-ratio:1;border:2.5px solid var(--board-line-strong);background:var(--paper);touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;grid-template-rows:repeat(9,minmax(0,1fr));grid-template-columns:repeat(9,minmax(0,1fr));width:100%;display:grid;position:relative}.sudoku-cell{appearance:none;border:0;border-inline-end:1px solid var(--board-line);border-bottom:1px solid var(--board-line);width:100%;min-width:0;height:100%;min-height:0;color:var(--x);font-family:var(--font-hand);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border-radius:0;justify-content:center;align-items:center;margin:0;padding:0;font-size:7cqw;line-height:1;display:flex;position:relative}.sudoku-cell:nth-child(9n){border-inline-end:0}.sudoku-cell:nth-child(n+73){border-bottom:0}.sudoku-cell.edge-right:not(:nth-child(9n)){border-inline-end:2.5px solid var(--board-line-strong)}.sudoku-cell.edge-bottom:not(:nth-child(n+73)){border-bottom:2.5px solid var(--board-line-strong)}.sudoku-cell__digit{pointer-events:none;padding-top:.1em}.sudoku-cell.is-given{color:var(--ink);font-family:var(--font-body);font-size:5.6cqw;font-weight:700}.sudoku-cell.is-given .sudoku-cell__digit{padding-top:0}.sudoku-cell.is-hinted{color:var(--focus)}.sudoku-cell.is-hinted:after{content:"";top:8%;background:var(--focus);border-radius:50%;width:14%;height:14%;position:absolute;inset-inline-end:8%}.sudoku-cell.is-related{background:#ffe45c40}.sudoku-cell.is-same{background:#ffe45cbf}.sudoku-cell.is-selected{background:var(--marker);box-shadow:inset 0 0 0 2px var(--ink);z-index:1}@media (hover:hover) and (pointer:fine){.sudoku-board[data-state=playing] .sudoku-cell:not(.is-selected):hover{background:var(--paper-shade)}.sudoku-board[data-state=playing] .sudoku-cell.is-related:not(.is-selected):hover,.sudoku-board[data-state=playing] .sudoku-cell.is-same:not(.is-selected):hover{background:#ffe45c80}}.sudoku-cell.is-wrong{color:#b5152c;background:#ffe1e3}.sudoku-cell.is-wrong .sudoku-cell__digit{text-underline-offset:.08em;-webkit-text-decoration:underline wavy;text-decoration:underline wavy;text-decoration-thickness:.07em}.sudoku-cell.is-wrong.is-selected{background:#ffc9cf}.sudoku-cell:focus-visible{outline:3px solid var(--focus);outline-offset:-3px;z-index:2}.sudoku-notes{width:100%;height:100%;color:var(--ink-soft);font-family:var(--font-body);pointer-events:none;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);padding:3%;font-size:max(.75rem,2.35cqw);font-weight:400;line-height:1;display:grid}.sudoku-notes span{justify-content:center;align-items:center;min-width:0;min-height:0;display:flex}.sudoku-notes .is-match{background:var(--marker);color:var(--ink);border-radius:50%;font-weight:700}.sudoku-board[data-state=won] .sudoku-cell{animation:.42s ease-out both sudoku-wash;animation-delay:calc(var(--wave) * 35ms);cursor:default}@keyframes sudoku-wash{0%{background:0 0}to{background:var(--marker-win)}}.sudoku-board[data-state=making] .sudoku-cell,.sudoku-board[data-state=paused] .sudoku-cell{cursor:default}.sudoku-overlay{z-index:5;background:var(--paper);justify-content:center;align-items:center;padding:8px;display:flex;position:absolute;inset:0}.sudoku-overlay__card{border:1.5px solid var(--ink);border-radius:var(--radius);background:var(--paper);max-width:90%;box-shadow:var(--shadow);text-align:center;flex-direction:column;align-items:center;gap:6px;padding:16px 20px;display:flex}.sudoku-overlay__card h2{font-size:2rem}.sudoku-overlay__card .btn{margin-top:8px}.sudoku-pad{gap:var(--dock-pad);flex:100%;grid-template-columns:repeat(5,minmax(0,1fr));min-width:0;display:grid}.sudoku-key{appearance:none;min-height:var(--dock-row);border:1.5px solid var(--ink);background:var(--paper);color:var(--x);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;padding:2px;transition:transform 80ms;display:flex;position:relative}@media (hover:hover) and (pointer:fine){.sudoku-key:hover:not(:disabled){background:var(--paper-shade)}}.sudoku-key:active:not(:disabled){background:var(--marker);transform:translateY(2px)}.sudoku-key:disabled{color:#70748a;cursor:not-allowed;border-color:#a9acba}.sudoku-key__digit{font-family:var(--font-hand);padding-top:3px;font-size:1.5rem;line-height:1}.sudoku-key__left{min-height:.875rem;color:var(--ink-soft);font-size:.75rem;line-height:.875rem}.sudoku-key.is-done .sudoku-key__digit{opacity:.35}.sudoku-key--erase{color:var(--ink);font-size:.9rem;font-weight:700}.sudoku-pad.is-notes .sudoku-key:not(.sudoku-key--erase){color:var(--ink-soft);border-style:dashed}.sudoku-pad.is-notes .sudoku-key__digit{font-family:var(--font-body);font-size:1.15rem}.sudoku-toggle{margin-top:10px}.sudoku-keys{margin-top:12px}.sudoku-keys h3{font-family:var(--font-body);font-size:.9rem;font-weight:700}.sudoku-keys p{color:var(--ink-soft);margin:2px 0 0;font-size:.85rem;line-height:1.35}@media (hover:none){.sudoku-keys{display:none}}.sudoku-best{margin:8px 0 0}.sudoku-best div{border-bottom:1px solid var(--rule);justify-content:space-between;gap:8px;padding:3px 6px;display:flex}.sudoku-best div.is-current{background:var(--highlight);font-weight:700}.sudoku-best dd{font-variant-numeric:tabular-nums;margin:0}.sudoku-best__note{color:var(--ink-soft);margin:8px 0 0;font-size:.85rem;line-height:1.35}@media (orientation:portrait) and (max-height:600px){.shell.sudoku{--dock-row:44px;--dock-pad:4px}.sudoku .shell__play{gap:4px}.sudoku .shell-btn .shell-icon,.sudoku .shell-btn .sudoku-icon{display:none}.sudoku-key__digit{font-size:1.3rem}.sudoku .shell-status{font-size:.875rem}.sudoku .shell-status.is-result{font-size:1rem}}@media (orientation:landscape) and (max-height:500px){.sudoku .shell__play{grid-template-columns:var(--shell-columns);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"stage strip""stage status""stage dock"}}@media (min-width:900px) and (min-height:501px){.sudoku .shell__play{grid-template:"stage strip""stage status""stage dock"minmax(0,1fr)/minmax(0,1fr) 280px;column-gap:16px}.sudoku .shell__dock{grid-area:dock;align-self:start;max-width:none}.sudoku .shell-status{height:60px;font-size:1.15rem}.sudoku .shell-status.is-result{font-size:1.4rem}}
