.tps-sudoku{--tps-ink:#1b2430;--tps-muted:#5a6573;--tps-line:#c3ccd6;--tps-box:#1b2430;--tps-bg:#ffffff;--tps-peer:#eef3f9;--tps-same:#d5e3f6;--tps-select:#b7d3fb;--tps-user:#1a56b0;--tps-wrong:#c0261f;--tps-wrong-bg:#fde8e6;--tps-accent:#1a56b0;container-type:inline-size;box-sizing:border-box;max-width:34rem;margin:1.5em auto 2em;color:var(--tps-ink);font-family:inherit;line-height:1.3;-webkit-tap-highlight-color:#fff0}.tps-sudoku *,.tps-sudoku *::before,.tps-sudoku *::after{box-sizing:border-box}.tps-sudoku [hidden]{display:none!important}.tps-sudoku .tps-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.tps-sudoku button,.tps-sudoku select{margin:0;font:inherit;font-size:.95rem;letter-spacing:normal;text-transform:none;text-shadow:none;box-shadow:none;touch-action:manipulation}.tps-sudoku .tps-btn,.tps-sudoku select{min-height:44px;padding:.5em .9em;border:1px solid var(--tps-line);border-radius:8px;background:var(--tps-bg);color:var(--tps-ink);cursor:pointer;line-height:1.2}.tps-sudoku .tps-btn:hover:not(:disabled){border-color:var(--tps-accent)}.tps-sudoku .tps-btn[aria-pressed="true"]{background:var(--tps-accent);border-color:var(--tps-accent);color:#fff}.tps-sudoku .tps-primary{background:var(--tps-accent);border-color:var(--tps-accent);color:#fff}.tps-sudoku .tps-small{min-height:36px;padding:.3em .7em;font-size:.85rem}.tps-sudoku button:disabled,.tps-sudoku select:disabled{cursor:default;opacity:.55}.tps-sudoku button:focus-visible,.tps-sudoku select:focus-visible,.tps-sudoku input:focus-visible{outline:3px solid #f2a900;outline-offset:2px}.tps-sudoku .tps-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.6rem}.tps-sudoku .tps-bar-top .tps-field{flex:1 1 8rem;display:flex}.tps-sudoku .tps-bar-top select{width:100%}.tps-sudoku .tps-bar-top .tps-btn{flex:1 1 7rem}.tps-sudoku .tps-actions .tps-btn{flex:1 1 0%;padding-left:.4em;padding-right:.4em}.tps-sudoku .tps-status{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:40px;margin-bottom:.4rem;color:var(--tps-muted);font-size:.9rem}.tps-sudoku .tps-status{flex-wrap:wrap}.tps-sudoku .tps-mode{font-weight:600;color:var(--tps-ink)}.tps-sudoku .tps-mistakes,.tps-sudoku .tps-btn{white-space:nowrap}.tps-sudoku .tps-timer-wrap{margin-left:auto}.tps-sudoku .tps-timer-wrap{display:inline-flex;align-items:center;gap:.4rem}.tps-sudoku .tps-timer{font-variant-numeric:tabular-nums;min-width:3.2em;text-align:right}.tps-sudoku .tps-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.6rem;padding:.6rem;border-radius:8px;background:#fff6dd;border:1px solid #ecd28b}.tps-sudoku .tps-confirm-text{flex:1 1 100%;font-size:.9rem}.tps-sudoku .tps-board-wrap{position:relative;margin-bottom:.7rem}.tps-sudoku .tps-board{display:grid;grid-template-columns:repeat(9,1fr);aspect-ratio:1 / 1;width:100%;border:2px solid var(--tps-box);border-radius:6px;overflow:hidden;background:var(--tps-bg);user-select:none;-webkit-user-select:none}.tps-sudoku .tps-row{display:contents}.tps-sudoku .tps-cell{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;width:100%;height:100%;padding:0;border:0;border-right:1px solid var(--tps-line);border-bottom:1px solid var(--tps-line);border-radius:0;background:var(--tps-bg);color:var(--tps-user);font-size:1.5rem;font-size:clamp(1rem, 6.2cqi, 1.9rem);font-weight:500;font-variant-numeric:tabular-nums;line-height:1;cursor:pointer}.tps-sudoku .tps-cell:disabled{opacity:1}.tps-sudoku .tps-row>.tps-cell:last-child{border-right:0}.tps-sudoku .tps-row:last-child>.tps-cell{border-bottom:0}.tps-sudoku .tps-row>.tps-cell:nth-child(3),.tps-sudoku .tps-row>.tps-cell:nth-child(6){border-right:2px solid var(--tps-box)}.tps-sudoku .tps-row:nth-child(3)>.tps-cell,.tps-sudoku .tps-row:nth-child(6)>.tps-cell{border-bottom:2px solid var(--tps-box)}.tps-sudoku .tps-cell.is-given{color:var(--tps-ink);font-weight:700}.tps-sudoku .tps-cell.is-peer{background:var(--tps-peer)}.tps-sudoku .tps-cell.is-same{background:var(--tps-same)}.tps-sudoku .tps-cell.is-selected{background:var(--tps-select)}.tps-sudoku .tps-cell.is-wrong{color:var(--tps-wrong);background:var(--tps-wrong-bg)}.tps-sudoku .tps-cell.is-wrong.is-selected{background:#f9cdc8}.tps-sudoku .tps-cell.is-hinted{color:#1f7a3a}.tps-sudoku .tps-cell:focus-visible{outline:3px solid #f2a900;outline-offset:-3px;z-index:1}.tps-sudoku .tps-notes{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;padding:6%;color:var(--tps-muted);font-size:.6rem;font-size:clamp(0.45rem, 2cqi, 0.72rem);font-weight:500}.tps-sudoku .tps-notes span{display:flex;align-items:center;justify-content:center}.tps-sudoku .tps-board.is-paused .tps-cell{color:#fff0}.tps-sudoku .tps-board.is-paused .tps-notes{visibility:hidden}.tps-sudoku .tps-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgb(255 255 255 / .7);border-radius:6px}.tps-sudoku .tps-overlay-box{max-width:22rem;padding:1.1rem 1.2rem;text-align:center;background:#fff;border:1px solid var(--tps-line);border-radius:10px;box-shadow:0 6px 24px rgb(27 36 48 / .18)}.tps-sudoku .tps-overlay-title{margin:0 0 .4rem;font-size:1.4rem;font-weight:700}.tps-sudoku .tps-overlay-text{margin:0 0 1rem;color:var(--tps-muted)}.tps-sudoku .tps-pad{display:grid;grid-template-columns:repeat(9,1fr);gap:.3rem;margin-bottom:.7rem}.tps-sudoku .tps-key{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;padding:.2rem 0;border:1px solid var(--tps-line);border-radius:8px;background:var(--tps-bg);color:var(--tps-user);cursor:pointer}.tps-sudoku .tps-key-d{font-size:1.35rem;font-weight:600;line-height:1.1}.tps-sudoku .tps-key-left{min-height:1em;font-size:.7rem;color:var(--tps-muted)}.tps-sudoku .tps-key.is-done{opacity:.35}.tps-sudoku .tps-key:hover:not(:disabled){border-color:var(--tps-accent)}.tps-sudoku .tps-option{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-size:.9rem;cursor:pointer}.tps-sudoku .tps-option input{width:20px;height:20px;margin:0;accent-color:var(--tps-accent)}.tps-sudoku .tps-noscript{padding:.8rem;border-radius:8px;background:#fff6dd}@media (max-width:380px){.tps-sudoku .tps-pad{grid-template-columns:repeat(5,1fr)}.tps-sudoku .tps-status{font-size:.82rem}.tps-sudoku .tps-mode{flex:1 1 100%}}@media (prefers-reduced-motion:no-preference){.tps-sudoku .tps-cell{transition:background-color 0.12s ease}.tps-sudoku .tps-board.is-solved .tps-cell{animation:tps-pop 0.5s ease both}}@keyframes tps-pop{50%{background:#dff3e4}}@media print{.tps-sudoku .tps-bar,.tps-sudoku .tps-pad,.tps-sudoku .tps-option,.tps-sudoku .tps-status{display:none}}