:root{color-scheme:light;--page:#f7f6f2;--surface:#fffefa;--ink:#263d33;--muted:#758078;--green:#234d3d;--green-hover:#183e2f;--line:#e1e5dc;--board-line:#dce1d8;--strong-line:#6c7f70;--sage:#eaf0e3;--selected:#d8e7cb;--related:#f1f4eb;--accent:#bbd19b;--red:#ba4c48;--red-bg:#fae9e5;--shadow:0 12px 40px #203c3010;--serif:Georgia,'Times New Roman',serif;--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font:14px/1.55 var(--sans);-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{cursor:default;opacity:.36}button,select,a{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #8aa66f;outline-offset:4px}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.site-header{height:94px;max-width:1320px;margin:auto;padding:0 52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;gap:12px;align-items:center;white-space:nowrap;font-size:23px;font-weight:650;line-height:1.12;letter-spacing:-.7px}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;font-weight:600;letter-spacing:3px;margin-top:8px;color:var(--muted)}.brand-mark{width:37px;height:37px;display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.brand-mark i{background:var(--green);border-radius:2px}.brand-mark i:nth-child(5){background:#a9c487}.main-nav{height:100%;display:flex;align-items:stretch;gap:35px}.nav-item{position:relative;font-size:13px;font-weight:500;padding:0 2px;color:var(--muted);white-space:nowrap}.nav-item:hover{color:var(--green)}.nav-item.active{color:var(--green);font-weight:650}.nav-item.active:after{content:'';position:absolute;bottom:-1px;height:3px;left:0;right:0;background:var(--green);border-radius:3px 3px 0 0}.header-actions{display:flex;gap:20px;align-items:center}.language-button{font-size:13px;color:var(--ink);display:flex;align-items:center;gap:9px}.language-button span{font-size:15px;color:var(--muted)}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;transition:background .15s}.icon-button:hover{background:var(--sage)}.icon-button svg{width:18px;height:18px}main{max-width:1200px;margin:auto;padding:0 34px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:39px 0 34px}.eyebrow{display:flex;gap:8px;align-items:center;font-size:9px;letter-spacing:1.7px;font-weight:600;color:var(--muted)}.tiny-leaf{font-size:16px;line-height:1;color:#819864}.intro h1{font-family:var(--serif);font-weight:400;font-size:43px;letter-spacing:-1.8px;line-height:1.2;margin:12px 0 10px}.intro p{color:var(--muted);font-size:13px}.today-tag{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--muted);padding:10px 12px;border:1px solid var(--line);border-radius:7px;align-self:flex-end;margin-bottom:5px;white-space:nowrap}.today-tag svg{height:15px;width:15px}.play-layout{display:grid;grid-template-columns:240px minmax(0,1fr)212px;gap:30px;align-items:start}.left-rail{padding-top:48px}.daily-card{background:var(--green);border-radius:13px;padding:24px 22px;color:#f6f8ed;overflow:hidden;position:relative}.daily-card:after{content:'';position:absolute;width:180px;height:180px;border:1px solid #ffffff0c;border-radius:50%;top:-80px;right:-80px;pointer-events:none}.card-label{display:flex;align-items:center;gap:8px;font-size:8px;letter-spacing:1.7px;color:#d2dfc4;font-weight:600}.card-label svg{width:18px;height:18px}.daily-card h2{font-family:var(--serif);font-weight:400;font-size:30px;line-height:1.13;letter-spacing:-.6px;margin:21px 0 15px}.daily-card p{color:#c6d5c6;font-size:11.5px;line-height:1.8;max-width:180px}.daily-week{display:flex;justify-content:space-between;margin:24px 0;gap:3px}.daily-week>div,.daily-week>span,.day{display:flex;align-items:center;flex-direction:column;gap:7px;flex:1;font-size:9px;color:#b9ccbd}.daily-week .day-label,.daily-week small{font-size:9px;color:#bdcdbd}.daily-week .day-number,.daily-week strong,.daily-week b{font-weight:400;font-size:10px;width:23px;height:23px;border:1px solid #ffffff24;border-radius:50%;display:grid;place-items:center}.daily-week .today .day-number,.daily-week .today strong,.daily-week .today b,.daily-week .current .day-number,.daily-week .current strong{border-color:#b7cd9b;background:#b7cd9b;color:#234d3d}.daily-week .completed .day-number,.daily-week .completed strong,.daily-week .done strong{background:#ffffff15;color:#e1efcf}.daily-week svg{width:13px;height:13px}.daily-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:7px;background:#f0f3e7;color:#294b38;border:1px solid transparent;border-radius:6px;padding:13px 11px;font-size:11px;font-weight:600;transition:background .15s,transform .15s}.daily-button svg{width:16px;height:16px}.daily-button:hover{background:white;transform:translateY(-1px)}.daily-foot{display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;color:#b9cdb9;margin-top:15px}.live-dot,.online-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#b2c994;flex-shrink:0}.how-card{border-bottom:1px solid var(--line);padding:26px 7px 23px}.small-heading{display:flex;align-items:center;gap:8px}.small-heading svg{width:16px;height:16px;color:var(--muted)}.small-heading h3{font-size:12px;font-weight:600;letter-spacing:-.1px}.how-card p{font-size:11px;line-height:1.9;color:var(--muted);margin:13px 0}.text-button{font-size:11px;font-weight:600;display:flex;align-items:center;gap:16px;padding:0}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.quiet-note{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:24px;color:var(--muted);font-size:10px}.quiet-note svg{width:15px;height:15px;color:#8d9c7c}.game-column{min-width:0}.game-toolbar{height:48px;display:flex;align-items:flex-start;justify-content:space-between;gap:6px;padding-top:3px}.difficulty-control{display:flex;align-items:center;gap:8px;min-width:0}.difficulty-control label{color:var(--muted);font-size:11px}.difficulty-control select{border:0;background:transparent;color:var(--ink);font-weight:600;font-size:11px;padding:0 2px;height:24px;cursor:pointer;max-width:95px}.difficulty-control select option{background:var(--surface);color:var(--ink)}#mode-badge{font-size:8px;background:var(--sage);color:var(--green);padding:3px 5px;border-radius:3px;letter-spacing:.8px}.game-meta{display:flex;gap:19px;align-items:center;min-height:26px;font-size:11px;color:var(--muted)}.mistakes-meta{display:flex;gap:7px;white-space:nowrap}.mistakes-meta strong{color:var(--ink);font-weight:600}.timer-meta{display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums;color:var(--ink)}.timer-meta>svg{width:14px;height:14px;color:var(--muted)}#timer{min-width:35px}.pause-button{width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;margin-left:2px}.pause-button svg{width:12px;height:12px;stroke-width:2.4}.pause-button:hover{background:var(--sage)}.board-shell{position:relative;border:1.5px solid var(--strong-line);border-radius:5px;overflow:hidden;background:var(--surface);box-shadow:0 4px 12px #263d3305}.sudoku-board{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr));aspect-ratio:1;width:100%;user-select:none}.cell{border-radius:0;padding:0;border-right:1px solid var(--board-line);border-bottom:1px solid var(--board-line);background:var(--surface);font-family:var(--sans);font-size:clamp(21px,2.2vw,30px);font-weight:400;line-height:1;display:grid;place-items:center;position:relative;min-height:0;min-width:0;color:var(--ink);outline:none;transition:background .09s}.cell:nth-child(9n){border-right:0}.cell:nth-child(n+73){border-bottom:0}.cell.box-right{border-right:1.5px solid var(--strong-line)}.cell.box-bottom{border-bottom:1.5px solid var(--strong-line)}.cell.given{font-weight:500}.cell.related{background:var(--related)}.cell.same-number{background:#e0eacf}.cell.user-value{color:#457744}.cell.hinted{color:#467153}.cell.selected{background:var(--selected);box-shadow:inset 0 0 0 2px #78965e;z-index:1}.cell:focus-visible{outline:0;box-shadow:inset 0 0 0 2.5px var(--green);z-index:2}.cell:hover:not(.selected){background:var(--sage)}.cell.conflict{color:var(--red);background:var(--red-bg)}.cell.selected.conflict{box-shadow:inset 0 0 0 2px #bd716b}.cell:disabled{opacity:1}.cell-notes{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%;padding:4px;pointer-events:none}.cell-notes span{display:grid;place-items:center;font-size:clamp(8px,.82vw,11px);font-weight:400;line-height:1;color:var(--muted)}.board-overlay{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--surface);padding:25px}.overlay-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:var(--sage);color:var(--green);margin-bottom:24px}.overlay-icon svg{width:28px;height:28px}.board-overlay h2{font:400 32px/1.2 var(--serif);letter-spacing:-1px}.board-overlay p{margin:12px 0 25px;color:var(--muted);font-size:12px}.board-overlay .primary-button{padding:13px 20px;gap:20px}.progress-line{display:flex;gap:12px;align-items:center;margin:14px 0 22px;font-size:9px;color:var(--muted)}.progress-track{height:3px;flex:1;background:var(--line);border-radius:5px;max-width:120px;overflow:hidden}.progress-track span{display:block;height:100%;border-radius:5px;background:#97ac7b;transition:width .2s}.saved-label{margin-left:auto;display:flex;align-items:center;gap:4px;white-space:nowrap}.saved-label svg{height:12px;width:12px;color:#819864}.game-actions{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 8px 20px}.tool-button{position:relative;min-width:48px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;font-size:10px;color:var(--muted);padding:5px 6px;border-radius:6px;transition:background .15s}.tool-button>svg,.tool-icon>svg{width:21px;height:21px;color:#687968}.tool-button:hover:not(:disabled){background:var(--sage);color:var(--green)}.tool-button.active,.tool-button[aria-pressed=true]{background:var(--sage);color:var(--green)}.tool-button.active svg,.tool-button[aria-pressed=true] svg{color:var(--green)}.tool-icon{position:relative;display:flex}.notes-state{position:absolute;right:-21px;top:-5px;font-size:6px;font-weight:700;letter-spacing:.3px;padding:1px 3px;border-radius:3px;line-height:1.5;background:var(--line);color:var(--muted)}.tool-button[aria-pressed=true] .notes-state{background:var(--green);color:#fff}.hint-count{position:absolute;top:1px;right:0;font-size:7px;line-height:13px;min-width:13px;height:13px;border-radius:50%;background:var(--sage);color:var(--green)}.tool-divider{width:1px;height:24px;background:var(--line);margin:0 4px 8px}.number-pad{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}.number-button{background:#edf0e7;min-width:0;border:1px solid #e7ebdf;border-radius:7px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 0;color:var(--green);transition:background .12s,transform .12s}.number-value{font-size:27px;line-height:1.2;font-weight:400}.number-remaining{font-size:8px;color:#87917e;line-height:1}.number-button:hover:not(:disabled){background:#dfe8d2;transform:translateY(-2px)}.number-button:active:not(:disabled){transform:translateY(0);background:#ceddbd}.number-button.active{background:#d8e7cb;border-color:#93ab78}.number-button.complete{opacity:.35}.keyboard-tip{display:flex;align-items:center;justify-content:center;gap:5px;margin:17px 0 0;font-size:9px;color:#8c9489}.keycap{display:inline-flex;min-width:15px;height:15px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:3px;font-size:8px;padding:0 3px;color:var(--muted)}.tip-dot{margin:0 5px}.right-rail{padding-top:48px}.primary-button{display:flex;align-items:center;justify-content:center;gap:12px;border-radius:7px;background:var(--green);color:#fffdf4;min-height:45px;padding:11px 16px;font-size:12px;font-weight:500;border:1px solid var(--green);transition:background .15s,transform .15s}.primary-button:hover:not(:disabled){background:var(--green-hover);transform:translateY(-1px)}.primary-button svg{width:17px;height:17px}.new-game{width:100%;justify-content:space-between}.new-game>svg{display:none}.new-game>span[aria-hidden]{font-size:21px;font-weight:300;line-height:1}.session-card{margin-top:23px;border:1px solid var(--line);padding:20px 17px 0;border-radius:9px;background:#fffefa66}.session-card .small-heading{gap:8px;margin-bottom:23px}.session-card .small-heading h3{font-size:12px}.stat-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin-bottom:17px}.stat-row strong{font-size:15px;line-height:1;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}.stat-row small{font-size:9px;font-weight:400;color:var(--muted)}.practice-note{border-top:1px solid var(--line);margin:19px -17px 0;padding:13px 10px;text-align:center;font-size:9px;color:var(--muted)}.focus-card{margin-top:24px;padding:17px 9px 20px}.focus-illustration{height:75px;display:block;position:relative;width:115px;margin:0 0 22px 4px}.focus-illustration:after{content:'';position:absolute;height:1px;width:106px;bottom:0;left:-1px;background:#cbd4bf}.focus-illustration span{position:absolute;border:1px solid #b9c7a4;border-radius:50% 50% 0 0;bottom:0;width:53px;height:59px;left:0;background:#e7eddd;transform:rotate(-13deg);transform-origin:bottom center}.focus-illustration span:nth-child(2){left:30px;width:56px;height:75px;transform:none;background:#d7e2c5;border-color:#aabf8d}.focus-illustration span:nth-child(3){left:67px;width:41px;height:49px;transform:rotate(15deg);background:#b9cba1;border-color:#9bb47e}.focus-card .eyebrow{font-size:8px;letter-spacing:1.8px}.focus-card h3{font-family:var(--serif);font-size:24px;font-weight:400;line-height:1.15;letter-spacing:-.4px;margin:12px 0}.focus-card p{font-size:11px;line-height:1.85;color:var(--muted);max-width:180px}.restart-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:12px 5px;margin-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.restart-button svg{width:13px;height:13px}.restart-button:hover{color:var(--green)}footer{max-width:1132px;margin:43px auto 0;padding:20px 0 25px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);font-size:9px;color:#899185}footer>span{display:flex;align-items:center;gap:7px}.footer-dot{color:#aab0a3}.online-dot{width:4px;height:4px;background:#95a884}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:17px;width:min(500px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:25px 30px 30px;box-shadow:0 24px 100px #102b3330;overflow-y:auto}dialog::backdrop{background:#1a302d70;backdrop-filter:blur(4px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-eyebrow{font-size:8px;letter-spacing:2px;color:var(--muted);font-weight:600}.modal-top .icon-button{width:30px;height:30px}.modal-top .icon-button svg{width:14px;height:14px}#modal-content h2{font:400 31px/1.2 var(--serif);letter-spacing:-.6px;margin:0 0 14px}#modal-content p{font-size:13px;color:var(--muted);line-height:1.8;margin:10px 0 17px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:27px}.modal-actions button{min-height:42px;padding:11px 19px}.secondary-button{border:1px solid var(--line);border-radius:7px;background:transparent;font-size:12px;min-height:42px;padding:10px 16px;color:var(--ink)}.secondary-button:hover{background:var(--sage)}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:17px 0;font-size:13px}.settings-row:last-child{border-bottom:0}.settings-row small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}.settings-row select{background:var(--page);border:1px solid var(--line);border-radius:6px;padding:7px 10px;color:var(--ink);max-width:160px}.switch{width:38px;height:23px;flex-shrink:0;border-radius:20px;background:#d0d7cb;position:relative;padding:3px;border:0;appearance:none;cursor:pointer}.switch:after{content:'';display:block;position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:left .15s}.switch[aria-checked=true],.switch[aria-pressed=true],.switch:checked{background:var(--green)}.switch[aria-checked=true]:after,.switch[aria-pressed=true]:after,.switch:checked:after{left:18px}.settings-row input[type=checkbox]:not(.switch){width:18px;height:18px;accent-color:var(--green)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:22px 0}.stats-tile{text-align:center;background:var(--sage);border-radius:8px;padding:18px 7px}.stats-tile strong{display:block;font-size:25px;font-weight:500;margin-bottom:4px}.stats-tile span,.stats-tile small{font-size:10px;color:var(--muted)}.level-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;margin:20px 0}.level-table th{font-size:10px;color:var(--muted);font-weight:500;padding:10px 5px;border-bottom:1px solid var(--line)}.level-table td{padding:12px 5px;border-bottom:1px solid var(--line)}.level-table td:not(:first-child),.level-table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.help-list{padding-left:21px;margin:18px 0 23px;color:var(--muted);font-size:13px;line-height:1.8}.help-list li{padding-left:3px;margin:10px 0}.help-list li::marker{color:var(--green);font-weight:600}.help-list strong{color:var(--ink)}.shortcut-list{display:grid;gap:9px;background:var(--page);padding:15px 17px;border:1px solid var(--line);border-radius:8px;font-size:11px;color:var(--muted)}.shortcut-list>div{display:flex;justify-content:space-between;gap:15px}.shortcut-list kbd{font:10px var(--sans);border:1px solid var(--line);border-radius:3px;padding:2px 5px;background:var(--surface);color:var(--ink)}.win-icon{width:65px;height:65px;margin:0 auto 20px;border-radius:50%;background:var(--sage);display:grid;place-items:center;color:var(--green);font-size:30px}.win-icon svg{width:30px;height:30px}.win-summary{display:flex;justify-content:center;gap:30px;background:var(--sage);padding:20px;border-radius:8px;margin:20px 0}.win-summary>div{display:flex;flex-direction:column;align-items:center;gap:6px}.win-summary strong{font-size:23px;font-weight:500}.win-summary span,.win-summary small{font-size:10px;color:var(--muted)}.celebration{text-align:center}.celebration .modal-actions{justify-content:center}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--green);color:#fffef5;border:1px solid #ffffff20;border-radius:9px;padding:12px 20px;font-size:12px;line-height:1.6;z-index:100;box-shadow:var(--shadow);animation:toast-in .2s ease-out}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--page);z-index:200;padding:30px;text-align:center;font-size:20px}.loading .sudoku-board{opacity:.4}body[data-theme=dark]{color-scheme:dark;--page:#17231e;--surface:#1e2d25;--ink:#e3e9dc;--muted:#a0af9e;--green:#bad09e;--green-hover:#cee0b7;--line:#344237;--board-line:#38473c;--strong-line:#859980;--sage:#2e4130;--selected:#445d39;--related:#26372b;--accent:#adc68e;--red:#f09890;--red-bg:#553935;--shadow:0 12px 40px #0004}body[data-theme=dark] .daily-card{background:#2b4d36;color:#f2f5ec}body[data-theme=dark] .brand-mark i{background:#bad09e}body[data-theme=dark] .brand-mark i:nth-child(5){background:#5b7c43}body[data-theme=dark] .primary-button{color:#1c3220}body[data-theme=dark] .session-card{background:#1e2d2566}body[data-theme=dark] .cell.same-number{background:#385031}body[data-theme=dark] .cell.user-value,body[data-theme=dark] .cell.hinted{color:#c0dc9c}body[data-theme=dark] .cell.selected{box-shadow:inset 0 0 0 2px #a4bf86}body[data-theme=dark] .cell.conflict{color:var(--red);background:var(--red-bg)}body[data-theme=dark] .cell.selected.conflict{box-shadow:inset 0 0 0 2px #e49185}body[data-theme=dark] .number-button{background:#2c3c2c;border-color:#3b4e33}body[data-theme=dark] .number-button:hover:not(:disabled){background:#3f5635}body[data-theme=dark] .number-button.active{background:#445d39}body[data-theme=dark] .number-remaining{color:#a4b697}body[data-theme=dark] .focus-illustration{opacity:.75}body[data-theme=dark] .toast{background:#39543a;color:#f0f5e7}body[data-theme=dark] .tool-button>svg,body[data-theme=dark] .tool-icon>svg{color:#a5b39d}body[data-theme=dark] .switch[aria-checked=true]:after,body[data-theme=dark] .switch[aria-pressed=true]:after,body[data-theme=dark] .switch:checked:after{background:#263d2d}html[lang=hi] .intro h1{font-family:var(--sans);font-size:36px;line-height:1.5;letter-spacing:-.8px}html[lang=hi] .daily-card h2,html[lang=hi] .focus-card h3,html[lang=hi] #modal-content h2{font-family:var(--sans);line-height:1.5;font-size:25px}html[lang=hi] .eyebrow{letter-spacing:.5px}html[lang=hi] .card-label{letter-spacing:.5px;font-size:10px}html[lang=hi] .daily-card p{line-height:1.9}html[lang=hi] .main-nav{gap:25px}html[lang=hi] .difficulty-control{gap:4px}
:root{--muted:#657167}.number-remaining{color:#65705d}.keyboard-tip,footer{color:var(--muted)}.daily-week .complete b{background:#ffffff16;border-color:#b7cd9b;color:#dcebc9}.daily-week .today.complete b{background:#b7cd9b;color:#234d3d}.number-button.exhausted{opacity:.42}.level-options{display:grid;gap:9px;margin:22px 0 14px}.level-option{display:flex;align-items:center;gap:13px;min-height:64px;border:1px solid var(--line);border-radius:9px;padding:12px 15px;cursor:pointer;transition:background .15s,border-color .15s}.level-option:hover{background:var(--page)}.level-option:has(input:checked){background:var(--sage);border-color:#91a87d}.level-option input{appearance:none;width:17px;height:17px;flex-shrink:0;margin:0;border:1px solid #9aa88f;border-radius:50%;background:var(--surface);display:grid;place-items:center}.level-option input:checked:after{content:'';width:9px;height:9px;border-radius:50%;background:var(--green)}.level-option>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.level-option b{font-size:13px;font-weight:600}.level-option small{font-size:10px;color:var(--muted)}.level-dots{margin-left:auto;font-size:10px;letter-spacing:3px;color:#849c6a;white-space:nowrap}.hint-preview{display:flex;flex-direction:column;align-items:center;background:var(--sage);border-radius:10px;padding:20px;margin:22px 0;gap:8px}.hint-preview span{font-size:11px;color:var(--muted)}.hint-preview strong{font:400 55px/1.2 var(--serif);color:var(--green)}.hint-preview small{font-size:11px;color:var(--muted)}#modal-content .fine-print{font-size:10px;line-height:1.8;margin:16px 0 0;color:var(--muted)}#modal-content .modal-description{font-size:13px;line-height:1.8}.recent-list{padding:0;list-style:none;margin:14px 0 8px}.recent-list li{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.recent-list li small{font-size:9px;color:var(--muted);background:var(--sage);padding:3px 6px;border-radius:4px;margin-left:5px}.recent-list li b{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.shortcut-list dt{font-size:10px;color:var(--ink);white-space:nowrap}.shortcut-list dd{margin:0;text-align:right}.settings-row b{font-weight:500}#modal-content>h3{font-size:12px;font-weight:600;margin-top:23px}.win-icon+ #modal-title{text-align:center}.win-icon~.modal-description{text-align:center}
@keyframes toast-in{from{opacity:0;bottom:20px}to{opacity:1;bottom:28px}}
@media(min-width:1440px){.site-header{max-width:1400px;height:100px}main{max-width:1244px;padding:0 42px}.intro{padding-top:43px;padding-bottom:39px}.intro h1{font-size:47px}.play-layout{grid-template-columns:250px minmax(0,1fr)225px;gap:34px}.daily-card{padding:27px 24px}.daily-card h2{font-size:33px}.daily-card p{font-size:12px}.daily-button{font-size:11.5px}footer{max-width:1160px;margin-top:47px}}
@media(max-width:1100px){.site-header{padding:0 28px}.main-nav{gap:24px}main{padding:0 25px}.play-layout{grid-template-columns:205px minmax(0,1fr)185px;gap:22px}.intro h1{font-size:38px}.daily-card{padding:22px 17px}.daily-card h2{font-size:28px}.daily-button{font-size:10px;padding:12px 9px}.daily-card p{font-size:11px}.card-label{font-size:7px;letter-spacing:1.3px}.daily-week{gap:1px}.daily-week .day-number,.daily-week strong,.daily-week b{width:21px;height:21px}.game-meta{gap:10px}.difficulty-control{gap:4px}.difficulty-control label{font-size:10px}.game-toolbar{gap:3px}.session-card{padding:19px 13px 0}.practice-note{margin-left:-13px;margin-right:-13px;font-size:8px}.stat-row{font-size:9px}.focus-card h3{font-size:23px}.cell{font-size:26px}.number-pad{gap:5px}.number-button{min-height:59px}.number-value{font-size:25px}.progress-line{gap:7px;font-size:8px}.tool-button{min-width:42px;font-size:9px}footer{margin-left:25px;margin-right:25px;font-size:8px}}
@media(max-width:920px){.site-header{height:82px}.brand{font-size:20px}.brand-mark{width:31px;height:31px}.main-nav{gap:19px}.nav-item{font-size:12px}.header-actions{gap:12px}.intro{padding:32px 0 28px}.intro h1{font-size:36px}.intro p{font-size:12px}.today-tag{font-size:10px}.play-layout{grid-template-columns:190px minmax(0,1fr);gap:24px}.right-rail{grid-column:1;padding-top:0;grid-row:2;margin-top:-10px}.game-column{grid-column:2;grid-row:1 / span 2}.left-rail{grid-column:1;grid-row:1}.right-rail .new-game{min-height:43px}.session-card{margin-top:18px}.focus-card{display:none}.quiet-note{display:none}.how-card{padding-bottom:15px}.right-rail .restart-button{margin-top:18px}.game-toolbar{height:44px}.left-rail{padding-top:44px}.cell{font-size:29px}.number-button{min-height:63px}.progress-line{font-size:9px}.game-actions{padding-left:5px;padding-right:5px}.tool-button{min-width:45px}.session-card .small-heading{margin-bottom:17px}footer{margin-top:34px}}
@media(max-width:760px){.site-header{height:auto;padding:18px 20px 0;gap:15px;flex-wrap:wrap}.brand{font-size:22px;flex:1}.brand-mark{width:33px;height:33px}.brand small{font-size:7px;margin-top:6px}.header-actions{gap:14px}.main-nav{order:3;width:100%;height:43px;gap:30px;justify-content:center;margin-top:5px}.nav-item{font-size:12px}.icon-button{height:34px;width:34px}.language-button{font-size:12px}main{max-width:610px;padding:0 22px}.intro{padding:27px 0 25px;align-items:flex-start}.intro h1{font-size:35px;letter-spacing:-1.3px;max-width:390px;margin-top:10px}.intro .eyebrow{font-size:8px;letter-spacing:1.4px}.intro p{font-size:12px}.today-tag{display:none}.play-layout{display:flex;flex-direction:column;gap:25px}.game-column{width:100%;order:0}.left-rail{width:100%;padding:0;order:2;display:grid;grid-template-columns:1fr 1fr;gap:18px}.right-rail{display:grid;grid-template-columns:1fr 1fr;width:100%;padding:0;order:1;gap:12px;margin:0}.right-rail .new-game{grid-column:1;min-height:44px}.right-rail .restart-button{grid-column:2;border:1px solid var(--line);border-radius:7px;min-height:44px;margin:0;font-size:11px}.right-rail .session-card{grid-column:1/-1;grid-row:2;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:17px 18px;border-radius:8px}.session-card .small-heading{grid-column:1/-1;margin:0 0 6px}.session-card .stat-row{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin:0;font-size:10px}.session-card .stat-row strong{font-size:19px}.session-card .practice-note{display:none}.game-toolbar{height:43px;align-items:flex-start;padding-top:0}.difficulty-control label{font-size:11px}.difficulty-control select{font-size:12px;max-width:100px}.difficulty-control{gap:8px}.game-meta{font-size:11px;gap:18px}.cell{font-size:clamp(25px,5.4vw,34px)}.cell-notes span{font-size:clamp(9px,1.9vw,12px)}.progress-line{margin:14px 0 18px;font-size:9px}.progress-track{max-width:150px}.game-actions{padding:0 10px 19px}.tool-button{font-size:10px;min-width:50px}.number-button{min-height:64px}.number-value{font-size:28px}.number-pad{gap:7px}.keyboard-tip{margin-top:15px}.daily-card{padding:21px 20px}.daily-card h2{font-size:28px;margin-top:16px}.daily-card p{font-size:11px;max-width:none}.daily-week{margin:19px 0}.daily-button{font-size:10px}.card-label{font-size:8px;letter-spacing:1.5px}.how-card{padding:20px 6px;border:0}.how-card .small-heading h3{font-size:12px}.how-card p{font-size:11px;margin:17px 0}.how-card .text-button{font-size:11px}.quiet-note{display:none}footer{max-width:566px;margin:29px auto 0;padding:19px 22px 23px;flex-direction:column;align-items:center;gap:9px;font-size:9px;border-top:0}html[lang=hi] .intro h1{font-size:31px}html[lang=hi] .daily-card h2{font-size:24px}}
@media(max-width:420px){.site-header{padding:16px 16px 0}.brand{font-size:20px;gap:10px}.brand-mark{width:30px;height:30px;gap:2px}.header-actions{gap:10px}.language-button{font-size:11px}.main-nav{gap:24px;height:42px;margin-top:2px}.nav-item{font-size:11px}main{padding:0 16px}.intro{padding:24px 0 23px}.intro h1{font-size:31px;letter-spacing:-1.15px;max-width:315px;line-height:1.12;margin-top:12px}.intro .eyebrow{font-size:7px;letter-spacing:1.1px}.intro p{font-size:11px;max-width:290px;line-height:1.7}.game-toolbar{height:41px}.difficulty-control{gap:4px}.difficulty-control label{font-size:10px}.difficulty-control select{font-size:11px;padding-left:0;max-width:80px}.game-meta{gap:9px;font-size:10px}.timer-meta{gap:4px}.timer-meta>svg{width:12px;height:12px}.mistakes-meta{gap:4px}.pause-button{width:22px;height:22px;margin-left:1px}.cell{font-size:25px}.cell-notes{padding:2px}.cell-notes span{font-size:9px}.number-pad{gap:4px}.number-button{min-height:55px;border-radius:5px;padding:6px 0;gap:4px}.number-value{font-size:25px}.number-remaining{font-size:7px}.game-actions{padding:0 3px 17px}.tool-button{min-width:43px;font-size:9px;padding:4px 5px}.tool-button>svg,.tool-icon>svg{width:20px;height:20px}.tool-divider{margin-left:2px;margin-right:2px}.notes-state{right:-17px;font-size:6px}.hint-count{right:-1px}.progress-line{font-size:8px;gap:8px;margin:12px 0 15px}.progress-track{max-width:100px}.saved-label{gap:3px}.keyboard-tip{font-size:8px;gap:4px}.tip-dot{margin:0 3px}.left-rail{gap:13px}.daily-card{padding:19px 15px}.card-label{font-size:7px;letter-spacing:1px;gap:5px}.card-label svg{width:15px;height:15px}.daily-card h2{font-size:26px}.daily-card p{font-size:10px}.daily-week .day-number,.daily-week strong,.daily-week b{width:18px;height:18px;font-size:9px}.daily-week small{font-size:8px}.daily-button{font-size:9px;gap:2px;padding:11px 7px}.daily-button svg{width:14px;height:14px}.daily-foot{font-size:8px;gap:4px}.how-card{padding:17px 0}.how-card .small-heading{gap:5px}.how-card .small-heading h3{font-size:11px}.how-card .small-heading svg{width:14px;height:14px}.how-card p{font-size:10px;line-height:1.9}.how-card .text-button{font-size:10px;gap:10px}.right-rail .session-card{padding:16px}.session-card .stat-row{font-size:9px}.session-card .stat-row strong{font-size:18px}dialog{padding:21px 22px 25px}#modal-content h2{font-size:28px}.modal-actions{gap:8px}.modal-actions button{padding:10px 15px}.stats-grid{gap:6px}.stats-tile{padding:15px 6px}.stats-tile strong{font-size:22px}.stats-tile span{font-size:9px}.board-overlay h2{font-size:29px}.board-overlay p{font-size:11px}.overlay-icon{margin-bottom:20px;width:55px;height:55px}#mode-badge{font-size:6px;padding:2px 3px}html[lang=hi] .intro h1{font-size:28px}html[lang=hi] .main-nav{gap:21px}html[lang=hi] .difficulty-control label{font-size:9px}html[lang=hi] .game-meta{font-size:9px}html[lang=hi] .daily-card h2{font-size:22px}html[lang=hi] .card-label{font-size:8px}}
@media(max-width:760px){.left-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.right-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-card,.how-card,.session-card{min-width:0}.modal-actions{flex-wrap:wrap}}
@media(max-width:420px){.daily-week .day-number,.daily-week strong,.daily-week b{width:17px;height:17px}.level-option{padding:11px 12px;gap:10px}.level-dots{letter-spacing:2px;font-size:9px}.shortcut-list dt{font-size:9px}.shortcut-list dd{font-size:10px}.modal-actions button{font-size:11px}html[lang=hi] .level-option b{font-size:12px}html[lang=hi] .level-option small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* The series rail stays visible in every game mode. */
.main-nav { gap: clamp(16px, 2.4vw, 34px); }
.intro { padding-top: 28px; padding-bottom: 26px; }
.intro h1 { margin: 6px 0; }
.series-card h2 { margin: 18px 0 0; font-size: 42px; font-variant-numeric: tabular-nums; }
.series-card h2 small { font: 400 17px var(--sans); color: #d2dfc4; }
.series-card > p { margin-top: 3px; }
.series-track { height: 5px; margin: 18px 0 24px; border-radius: 4px; background: #ffffff24; overflow: hidden; }
.series-track span { display: block; height: 100%; border-radius: inherit; background: #c0d998; }
.stage-chip { border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: var(--green); background: var(--surface); font-size: 11px; font-weight: 650; white-space: nowrap; }
.stage-chip:hover { background: var(--sage); }
#mode-badge { text-transform: uppercase; }
.stats-link { width: 100%; margin-top: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.daily-mini { margin-top: 24px; padding: 0 3px; }
.daily-mini .daily-week { margin: 15px 0; }
.daily-mini .day-item { color: var(--muted); }
.daily-mini .day-item b { color: var(--muted); border-color: var(--line); }
.daily-mini .day-item.today b, .daily-mini .day-item.complete b { background: var(--sage); border-color: #8b9d7b; color: var(--ink); }
.daily-mini .text-button { gap: 7px; }
.daily-mini .text-button svg { height: 14px; width: 14px; }
.daily-mini > small { display: block; margin-top: 8px; font-size: 9px; color: var(--muted); }
.stage-groups, .stage-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stage-groups { margin: 20px 0; }
.stage-group { min-height: 35px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--muted); }
.stage-group[aria-pressed="true"] { background: var(--green); color: var(--surface); border-color: var(--green); }
.stage-options { margin: 12px 0 10px; }
.stage-option { border: 1px solid var(--line); border-radius: 8px; min-height: 56px; padding: 6px; background: var(--surface); display: flex; justify-content: center; align-items: center; gap: 4px; }
.stage-option b { font-size: 18px; font-weight: 550; }
.stage-option small { font-size: 11px; color: var(--muted); }
.stage-option.cleared { background: var(--sage); }
.stage-option.current { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.stage-option:disabled { opacity: .58; background: var(--page); }
.stage-option:not(:disabled):hover, .stage-group:hover:not([aria-pressed="true"]) { background: var(--sage); }
#modal-content .map-key { font-size: 10px; }
#modal-content .history-location { font-weight: 600; font-size: 11px; color: var(--green); margin-top: 0; }
.record-list { padding: 0; margin: 12px 0; list-style: none; }
.record-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.record-list li > div { display: flex; flex-direction: column; gap: 3px; }
.record-list li > div + div { align-items: flex-end; text-align: right; }
.record-list strong, .record-list b { font-size: 13px; font-weight: 550; }
.record-list span, .record-list small { font-size: 10px; color: var(--muted); }
.record-list .finished { color: var(--green); font-weight: 600; }
.record-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.record-pager span { color: var(--muted); font-size: 11px; }
@media (min-width: 921px) {
  main { max-width: 1130px; }
  .site-header { height: 78px; }
  .left-rail, .right-rail { padding-top: 40px; }
  .game-toolbar { height: 40px; }
}


@media (max-width: 760px) {
  .main-nav { gap: clamp(15px, 4.7vw, 26px); }
  .intro { padding: 20px 0 17px; }
  .intro h1 { font-size: 31px; max-width: none; }
  .intro .eyebrow { letter-spacing: 1px; }
  .left-rail { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .series-card h2 { font-size: 32px; }
  .series-card h2 small { font-size: 13px; }
  .series-track { margin: 12px 0 16px; }
  .right-rail .daily-mini { display: none; }
  .right-rail .stats-link { grid-column: 1 / -1; margin: 0; padding: 8px 0 0; }
}
@media (max-width: 420px) {
  .stage-chip { font-size: 10px; padding: 3px 5px; }
  .game-toolbar #mode-badge { font-size: 7px; }
  .series-card .daily-button { font-size: 10px; }
  .stage-group { font-size: 10px; }
  .stage-options { gap: 4px; }
  .stage-option { min-height: 46px; }
  .record-pager .secondary-button { min-height: 34px; padding: 6px 9px; }
}

/* The Ludo edition uses the four piece colors and raised edges of the Pannu games table. */
body {
  --page: #eef4ff; --surface: #fff; --ink: #203557; --muted: #526581;
  --green: #255fc9; --green-hover: #18499f; --line: #cbd9ed; --sage: #deebff;
  --board-line: #c3d2e6; --strong-line: #5b789f; --selected: #ffe59a; --related: #e5effd;
  --piece-red: #ed5360; --piece-gold: #f5c947; --piece-green: #2ab67c; --piece-blue: #3988ed;
  --rim: conic-gradient(from -45deg, var(--piece-red) 0deg 90deg, var(--piece-gold) 90deg 180deg, var(--piece-green) 180deg 270deg, var(--piece-blue) 270deg 360deg);
  --serif: var(--sans);
  background: radial-gradient(ellipse at 7% 0%, #d8e8ff 0, transparent 46%), linear-gradient(150deg, #f9fbff, var(--page) 55%, #e4edfb);
}
.site-header { border-bottom: 2px solid #bdcfe9; box-shadow: 0 2px 0 #dce7f6; }
.brand-mark { padding: 4px; width: 39px; height: 39px; border: 1px solid #a8c4e8; border-radius: 10px; background: linear-gradient(#fff, #e2ecfb); box-shadow: inset 0 1px #fff, 0 3px #a4bada, 0 6px 9px #284f8218; gap: 2px; }
.brand-mark i { background: linear-gradient(145deg, #6babff, #276bc3); box-shadow: inset 0 1px #ffffff60, 0 1px #2056a3; border-radius: 2px; }
.brand-mark i:nth-child(3n+1) { background: linear-gradient(#ff8b87, var(--piece-red)); }
.brand-mark i:nth-child(3n+2) { background: linear-gradient(#ffe789, var(--piece-gold)); }
.brand-mark i:nth-child(3n) { background: linear-gradient(#79ddb2, var(--piece-green)); }
.brand-mark i:nth-child(5) { background: linear-gradient(#6bacff, var(--piece-blue)); }
.brand small { color: #516b90; }
.main-nav { align-items: center; gap: 7px; }
.nav-item { height: 34px; border-radius: 8px; padding: 0 13px; color: #365b8a; font-weight: 600; }
.nav-item.active { color: #653f07; background: linear-gradient(#fff4b9, #ffdc74); box-shadow: inset 0 1px #fff8cb, 0 3px #d5af5e; }
.nav-item.active:after { display: none; }
.nav-item:hover:not(.active) { background: #dbeaff; }
.header-actions { gap: 12px; }
.header-actions .account-button { background: linear-gradient(#fff, #e1edff); border: 1px solid #b8cce8; color: #244f89; box-shadow: inset 0 1px #fff, 0 2px #aabfdb; }
#records-status[data-sync="error"] { color: #a13e39; }
#records-status[data-sync="pending"] { color: #765213; }
.icon-button, .today-tag, .stage-chip { background: linear-gradient(#fff, #e3edfc); border-color: #b7cce8; box-shadow: inset 0 1px #fff, 0 2px #aabfdb; color: #244f89; }
.intro { position: relative; align-items: center; border: 3px solid transparent; border-radius: 18px; padding: 19px 25px; margin: 20px 0 24px; background: linear-gradient(115deg, #2862c6, #163d83 72%, #12346f) padding-box, var(--rim) border-box; box-shadow: inset 0 1px #b4d5ff55, 0 5px #153566, 0 12px 22px #183e6d1c; }
.intro .eyebrow { color: #ffe486; font-weight: 750; text-transform: uppercase; letter-spacing: 1.5px; }
.intro h1 { color: white; font-weight: 720; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.8px; margin: 4px 0; text-shadow: 0 2px #10316e; }
.intro p { color: #e0ecff; }
.intro-side { display: flex; align-items: center; gap: 18px; }
.intro .today-tag { align-self: center; margin: 0; border-radius: 8px; color: #203557; }
.ludo-pieces { display: grid; grid-template-columns: repeat(2, 23px); gap: 6px; transform: rotate(-9deg); }
.ludo-pieces i { display: block; width: 23px; height: 23px; border-radius: 50%; border: 1px solid #ffffff87; background: radial-gradient(circle at 32% 24%, #ffffffa1 0 8%, transparent 23%), var(--tile); box-shadow: inset 0 2px 1px #ffffff60, inset 0 -2px 1px #0002, 0 3px var(--edge), 0 4px 6px #08245780; }
.ludo-pieces i:nth-child(1) { --tile: var(--piece-red); --edge: #943542; }
.ludo-pieces i:nth-child(2) { --tile: var(--piece-gold); --edge: #987020; }
.ludo-pieces i:nth-child(3) { --tile: var(--piece-green); --edge: #1c704e; }
.ludo-pieces i:nth-child(4) { --tile: var(--piece-blue); --edge: #184f97; }
.series-card { border: 2px solid transparent; background: radial-gradient(at 20% 4%, #2d609b, #1c457b 65%, #173864) padding-box, var(--rim) border-box; box-shadow: inset 0 1px #ffffff4a, 0 5px #1c3c64, 0 11px 18px #203e6b1f; }
.series-card .card-label, .series-card h2 small, .series-card > p { color: #e0ebff; }
.series-card .card-label svg { color: #ffd96c; }
.series-card h2 { font-weight: 700; text-shadow: 0 2px #102c55; }
.series-track { background: #123660; box-shadow: inset 0 1px 3px #09274978; }
.series-track span { background: linear-gradient(#ffe58e, #f5c947); }
.daily-button { color: #623f08; background: linear-gradient(#fff1b9, #ffd66a); border-color: #d5ab4d; box-shadow: inset 0 1px #fff8c9, 0 3px #af822b; }
.daily-button:hover { background: linear-gradient(#fff6ca, #ffdd7a); }
.session-card, .how-card, .daily-mini { border: 1px solid #bed1eb; background: linear-gradient(145deg, #fff, #edf4ff); border-radius: 11px; box-shadow: inset 0 1px #fff, 0 4px #c2d3e9, 0 9px 17px #214b7b10; }
.how-card, .daily-mini { margin-top: 18px; padding: 17px 15px; }
.small-heading svg { color: #326ab2; }
.primary-button { color: white; font-weight: 650; background: linear-gradient(#397be0, #2159b5); border-color: #1b50a7; box-shadow: inset 0 1px #96bdff, 0 4px #153e87, 0 8px 12px #174c8d20; }
.primary-button:hover:not(:disabled) { background: linear-gradient(#4489ec, #2862bf); }
.secondary-button, .restart-button, .stage-group { background: linear-gradient(#fff, #e6effc); color: #244f89; border: 1px solid #bfd0e8; box-shadow: inset 0 1px #fff, 0 2px #b1c4df; }
.board-shell { background: var(--rim); border: 1px solid #8ca7d4; padding: 6px; border-radius: 13px; box-shadow: inset 0 2px #ffffff8c, inset 0 -2px #102a6759, 0 6px #223d69, 0 13px 24px #223d6926; overflow: hidden; }
.sudoku-board { border: 2px solid #344d73; border-radius: 6px; overflow: hidden; background: #4d6a94; }
.cell { border-right: 1px solid #b5c7df; border-bottom: 1px solid #aebfd7; background: linear-gradient(155deg, #fff 35%, #edf3fc); color: #203557; box-shadow: inset 1px 1px #ffffffc7, inset 0 -2px #c7d7eb80; }
.cell.given { font-weight: 620; }
.cell.box-right { border-right: 2px solid #536e94; }
.cell.box-bottom { border-bottom: 2px solid #536e94; }
.cell.related { background: linear-gradient(#ebf4ff, #deebfd); }
.cell.same-number { background: linear-gradient(#c6e8fc, #acd5f6); }
.cell.user-value, .cell.hinted { color: #1558ad; font-weight: 610; }
.cell:hover:not(.selected) { background: linear-gradient(#e3f0ff, #d2e4fa); }
.cell.selected, .cell:focus-visible { background: linear-gradient(#fff2b4, #ffde7c); color: #503507; box-shadow: inset 0 0 0 2px #ad7c11, inset 0 -3px #d5a640; }
.cell.conflict { background: linear-gradient(#fff0ed, #f8cfcc); color: #a22434; }
.cell.selected.conflict { box-shadow: inset 0 0 0 2px #b94148; }
.cell-notes span { color: #3a597d; }
.board-overlay { inset: 6px; border-radius: 6px; background: linear-gradient(145deg, #fff, #e7f0ff); }
.overlay-icon, .win-icon { background: #dceaff; color: #1958a9; box-shadow: inset 0 1px #fff, 0 3px #aac4e5; }
.game-toolbar { align-items: center; padding-top: 0; }
.stage-chip { min-height: 27px; font-weight: 700; }
#mode-badge { color: #295183; background: #e2edfc; border: 1px solid #c1d2e9; }
.progress-line { margin-top: 16px; }
.progress-track { background: #cddbef; }
.progress-track span { background: linear-gradient(90deg, #3785e3, #2ab67c); }
.game-actions { padding-bottom: 15px; }
.tool-button { color: #31537f; }
.tool-button>svg, .tool-icon>svg { color: #315b92; }
.tool-button:hover:not(:disabled), .tool-button.active, .tool-button[aria-pressed="true"] { background: #dceaff; color: #194d96; }
.tool-button.expert-control { color: #744715; background: linear-gradient(#fff5cd, #ffe4a0); border: 1px solid #dbc179; box-shadow: inset 0 1px #fff9e3, 0 2px #ccb064; font-weight: 650; }
.expert-control>svg { color: #86570e; }
.expert-control .hint-count { background: #29578e; color: #fff; top: -5px; right: -3px; }
.number-pad { gap: 6px; }
.number-button { --top: #66a2fa; --base: #2f73d5; --edge: #194c99; --type: #fff; min-height: 58px; padding: 6px 0; background: linear-gradient(var(--top), var(--base)); color: var(--type); border: 1px solid var(--edge); border-radius: 9px; box-shadow: inset 0 2px #ffffff6a, 0 4px var(--edge), 0 7px 10px #203e6b23; }
.number-button:nth-child(4n+1) { --top: #ee7374; --base: #c53647; --edge: #963244; }
.number-button:nth-child(4n+2) { --top: #ffdf77; --base: #f1bd42; --edge: #a57c25; --type: #4e3605; }
.number-button:nth-child(4n+3) { --top: #4fbe8e; --base: #217e59; --edge: #1a5f45; }
.number-button:hover:not(:disabled) { background: linear-gradient(var(--top), var(--base)); filter: brightness(1.04); transform: translateY(-1px); }
.number-button:active:not(:disabled) { background: linear-gradient(var(--top), var(--base)); box-shadow: inset 0 1px #ffffff60, 0 1px var(--edge); transform: translateY(2px); }
.number-value { font-weight: 650; text-shadow: 0 1px #0003; }
.number-remaining { display: grid; place-items: center; min-width: 14px; min-height: 12px; padding: 0 3px; border-radius: 5px; background: #143456b3; color: #fff; font-size: 9px; font-weight: 650; }
dialog { background: linear-gradient(145deg, #fff, #f3f7ff); border: 1px solid #bbcee8; box-shadow: inset 0 1px #fff, 0 6px #b9cde7, 0 24px 55px #122b554d; }
dialog::backdrop { background: #122d566b; }
.level-option:has(input:checked), .stage-option.cleared, .stats-tile, .win-summary, .hint-preview { background: #e4efff; border-color: #8fb3df; }
.stage-option { background: linear-gradient(#fff, #eef4ff); border-color: #c3d4eb; box-shadow: inset 0 1px #fff, 0 2px #b5c9e2; }
.stage-option.current { border-color: #296cbe; box-shadow: inset 0 0 0 1px #296cbe, 0 2px #9cbadf; }
.toast { background: #244f89; }
body[data-theme="dark"] { --page: #102748; --surface: #18385e; --ink: #ecf3ff; --muted: #b5c9e3; --green: #9cc4ff; --line: #3a5b7e; --sage: #244a75; background: radial-gradient(at 20% 3%, #1f477f, #112d53 55%, #0c213e); }
body[data-theme="dark"] :is(.session-card,.how-card,.daily-mini,dialog,.board-overlay) { background: linear-gradient(145deg,#23456c,#193554); border-color: #436589; box-shadow: inset 0 1px #ffffff20, 0 4px #0e2641; }
body[data-theme="dark"] .cell { color: #f4f7ff; background: linear-gradient(#254a76,#203e62); border-color: #456182; box-shadow: inset 0 1px #ffffff18, inset 0 -2px #0b24434f; }
body[data-theme="dark"] .cell.related { background: linear-gradient(#305782,#294c74); }
body[data-theme="dark"] .cell.same-number { background: linear-gradient(#3a6799,#335b8a); }
body[data-theme="dark"] .cell.selected, body[data-theme="dark"] .cell:focus-visible { color: #543900; background: linear-gradient(#fff0ae,#ffdc76); box-shadow: inset 0 0 0 2px #af801e; }
body[data-theme="dark"] .cell.conflict { background: #684456; color: #ffd4d2; }
body[data-theme="dark"] .cell.user-value, body[data-theme="dark"] .cell.hinted { color: #a7d7ff; }
body[data-theme="dark"] .cell.selected.user-value { color: #543900; }
body[data-theme="dark"] .cell.box-right { border-right-color: #95acc5; }
body[data-theme="dark"] .cell.box-bottom { border-bottom-color: #95acc5; }
body[data-theme="dark"] .cell-notes span { color: #c7d8ee; }
body[data-theme="dark"] .cell.selected .cell-notes span { color: #583e0b; }
body[data-theme="dark"] .number-button, body[data-theme="dark"] .number-button:hover:not(:disabled) { background: linear-gradient(var(--top),var(--base)); border-color: var(--edge); color: var(--type); }
body[data-theme="dark"] .number-remaining { color: #fff; }
body[data-theme="dark"] .primary-button { color: white; }
body[data-theme="dark"] :is(.stage-option,.stage-group,.secondary-button,.restart-button) { background: linear-gradient(#2c5689,#24466d); color: #ebf4ff; border-color: #53789f; box-shadow: inset 0 1px #ffffff30, 0 2px #132e4e; }
body[data-theme="dark"] :is(.hint-preview,.stats-tile,.win-summary,.stage-option.cleared) { background: #254a75; color: #ecf3ff; }
body[data-theme="dark"] .nav-item { color: #d7e9ff; }
body[data-theme="dark"] .nav-item.active { color: #624108; }
body[data-theme="dark"] .brand small, body[data-theme="dark"] .tool-button { color: #c8dbf3; }
body[data-theme="dark"] .expert-control { color: #674309; }
body[data-theme="dark"] .small-heading svg { color: #a1c6f5; }
@media (max-width:760px) {
  .site-header { padding: 14px 17px 0; gap: 7px; }
  .header-actions { gap: 8px; }
  .main-nav { gap: 4px; height: 43px; margin: 0; }
  .nav-item { height: 29px; padding: 0 12px; }
  .intro { margin: 14px 0 17px; border-radius: 13px; padding: 12px 15px; }
  .intro-side { margin-left: auto; }
  .intro h1 { font-size: 29px; }
  .intro p { font-size: 11px; }
  .ludo-pieces { grid-template-columns: repeat(2, 16px); gap: 5px; }
  .ludo-pieces i { width: 16px; height: 16px; }
  .board-shell { padding: 4px; border-radius: 10px; }
  .board-overlay { inset: 4px; }
  .game-actions { padding-bottom: 15px; }
  .how-card { margin-top: 0; padding: 15px 12px; }
}
@media (max-width:420px) {
  .brand { font-size: 17px; gap: 7px; }
  .brand-mark { width: 29px; height: 29px; padding: 3px; }
  .brand small { font-size: 6px; margin-top: 4px; letter-spacing: 2px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 29px; height: 29px; }
  main { padding: 0 12px; }
  .intro { padding: 10px 12px; margin: 12px 0 14px; }
  .intro h1 { font-size: 24px; }
  .intro .eyebrow { letter-spacing: .6px; }
  .intro p { font-size: 10px; }
  .number-pad { gap: 4px; }
  .number-button { min-height: 48px; border-radius: 6px; }
  .number-value { font-size: 23px; }
  .game-actions { padding-bottom: 12px; }
  .cell { font-size: 23px; }
  .keyboard-tip { margin-top: 13px; }
  .series-card { padding: 16px 12px; }
  .how-card { padding: 12px 9px; }
  .stage-chip { min-height: 24px; }
}

/* Sudoku King follows the raised crown button and gold podium of MINUS Monthly King. */
.main-nav .king-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: white;
  background: linear-gradient(#8054d6, #6232af);
  border: 1px solid #593091;
  box-shadow: inset 0 1px #bd9bf2, 0 3px #452477, 0 5px 9px #46257c25;
  font-weight: 700;
}
.main-nav .king-button:hover:not(.active) { color: #fff; background: linear-gradient(#7446cc, #58299f); }
.king-button svg { width: 17px; height: 17px; color: #fff1bf; }
#modal:has(.king-heading) {
  width: min(620px, calc(100% - 24px));
  background: radial-gradient(ellipse at 10% 0, #fff0bd, transparent 44%), #fffdf5;
  border-color: #e0cfa6;
  color: #27394f;
  box-shadow: inset 0 1px #fff, 0 5px #c8b58d, 0 18px 54px #142e5b40;
}
.king-heading { display: flex; align-items: center; gap: 13px; }
.king-emblem {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d7ad4e;
  border-radius: 13px;
  background: linear-gradient(#fff2ae, #f4cd66);
  box-shadow: inset 0 1px #fff9cd, 0 3px #bd913e;
  color: #77500c;
}
.king-emblem svg { width: 26px; height: 26px; }
#modal-content .king-heading h2 { font-family: var(--sans); font-weight: 750; margin: 0; color: #27394f; }
#modal-content .king-heading p { margin: 4px 0 0; color: #53627a; font-size: 12px; }
.king-personal, .king-join { margin-top: 18px; padding: 12px 14px; border: 1px solid #c5d6ea; border-radius: 10px; background: linear-gradient(#f2f7ff, #e2edfc); }
.king-personal { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.king-personal div { display: flex; flex-direction: column; gap: 2px; }
.king-personal span { font-size: 11px; color: #405979; }
.king-personal strong { color: #244d82; font-size: 20px; }
.king-personal b { font-size: 14px; color: #244d82; }
.king-join { display: flex; align-items: center; gap: 14px; }
#modal-content .king-join p { margin: 0; font-size: 11px; line-height: 1.7; color: #3c526f; }
.king-join button { min-height: 34px; flex-shrink: 0; font-size: 11px; padding: 6px 10px; }
.king-rules { margin: 12px 2px; }
.king-rules summary { font-size: 12px; font-weight: 650; cursor: pointer; color: #645018; }
#modal-content .king-rules p { margin: 6px 0 0; color: #5b604f; font-size: 11px; line-height: 1.65; }
.king-results { max-height: clamp(180px, 41dvh, 415px); overflow: auto; border: 1px solid #ddd9c5; border-radius: 10px; background: #fffefa; scrollbar-width: thin; }
.king-results:focus-visible { outline: 2px solid #3875c6; outline-offset: 2px; }
.king-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.king-table th, .king-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e6e2d4; }
.king-table thead th { position: sticky; top: 0; z-index: 1; background: #f4f0e2; font-size: 10px; color: #625b41; }
.king-table thead th:first-child { width: 17%; }
.king-table thead th:last-child { width: 21%; }
.king-table th:last-child, .king-table td:last-child { text-align: right; }
.king-table td { font-variant-numeric: tabular-nums; font-weight: 600; color: #334969; }
.king-table tbody th { font-weight: 600; color: #283b50; }
.king-name { overflow-wrap: anywhere; }
.king-winner { background: linear-gradient(110deg, #fff3bb, #fff9e3); }
.king-table .king-winner td { color: #705018; }
.king-tag { display: flex; align-items: center; gap: 4px; color: #75531c; font-size: 9px; font-weight: 600; }
.king-tag svg { width: 12px; height: 12px; }
.king-pager { margin-top: 12px; }
#modal-content .king-empty, #modal-content .king-state { border: 1px solid #ddd9c5; border-radius: 9px; padding: 16px; color: #505e70; background: #fffdf5; }
@media (min-width: 761px) and (max-width: 950px) {
  .site-header { gap: 10px; padding-left: 18px; padding-right: 18px; }
  .main-nav { gap: 3px; }
  .nav-item { padding: 0 7px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 760px) {
  .main-nav { gap: 3px; }
  .nav-item { padding: 0 8px; }
  .main-nav .king-button { padding: 0 8px; gap: 4px; }
  .king-button svg { width: 14px; height: 14px; }
}
@media (max-width: 420px) {
  .main-nav, html[lang=hi] .main-nav { gap: 2px; }
  .nav-item { padding: 0 6px; font-size: 10px; }
  .main-nav .king-button { padding: 0 6px; }
  .king-heading { gap: 9px; }
  .king-emblem { width: 37px; height: 37px; }
  #modal-content .king-heading h2 { font-size: 23px; }
  .king-join { flex-wrap: wrap; gap: 8px; }
  .king-table th, .king-table td { padding: 8px; }
  .king-table { font-size: 12px; }
  .king-results { max-height: clamp(150px, 33dvh, 220px); }
}
body[data-theme="dark"] #modal:has(.king-heading) { background: radial-gradient(ellipse at 10% 0, #3e4865, transparent 48%), #1b3554; border-color: #5e7190; color: #edf3ff; }
body[data-theme="dark"] #modal-content .king-heading h2 { color: #fff; }
body[data-theme="dark"] #modal-content .king-heading p { color: #bed0e8; }
body[data-theme="dark"] .king-rules summary { color: #ffe28a; }
body[data-theme="dark"] #modal-content .king-rules p { color: #cbd9eb; }
body[data-theme="dark"] .main-nav .king-button { color: #fff; }

.sound-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 5px 10px; border: 1px solid #a7c4e9; border-radius: 9px;
  background: #eef5ff; color: #214f86; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle[aria-pressed="false"] { background: #fff1c9; color: #644500; border-color: #edcf79; }
.game-audio-actions, .player-audio { display: flex; align-items: center; gap: 6px; }
.player-audio { flex-wrap: wrap; margin: 12px 0; }
.player-audio:empty { display: none; }
.test-sound-button, .release-update button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; padding: 6px 11px; font-weight: 700; font-size: 12px; line-height: 1.25;
  border: 1px solid #dbb149; border-radius: 9px; background: #ffe18c; color: #4d3700; white-space: nowrap;
}
.test-sound-button svg { width: 15px; height: 15px; }
.test-sound-button:hover { background: #ffda70; }
.sound-test-feedback { margin: 8px 0 15px; color: var(--ink); font-size: 13px; line-height: 1.5; }
#player-dialog .sound-test-feedback, #modal-content .sound-test-feedback { margin: 8px 0 13px; }
.settings-audio-test { padding: 8px 0; }
.release-update { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink); }
.release-update[hidden], .sound-test-feedback[hidden] { display: none; }
@media (max-width: 760px) {
  .game-audio-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .intro-side .ludo-pieces { display: none; }
  .game-audio-actions button { padding: 5px 8px; font-size: 11px; }
}
.tool-button.undo-control {
  min-width: 64px; min-height: 46px; padding: 5px 8px; gap: 4px; justify-content: center;
  background: #245ba9; color: #fff; border: 1px solid #19447e; box-shadow: 0 2px #163d73;
  font-size: 12px; font-weight: 700; line-height: 1.2;
}
.tool-button.undo-control > svg { color: inherit; }
body[data-theme="dark"] .tool-button.undo-control { color: #fff; background: #2863af; }
.tool-button.undo-control:hover:not(:disabled) { background: #194785; color: #fff; }
.tool-button.undo-control:disabled { opacity: 1; background: #e1e9f4; color: #546780; border-color: #adbed3; box-shadow: none; }
body[data-theme="dark"] .tool-button.undo-control:disabled { background: #253f5d; color: #b3c5d9; border-color: #53708c; }
body[data-theme="dark"] .tool-button.undo-control > svg { color: inherit; }
@media (max-width: 520px) {
  .intro-side { gap: 6px; }
  .sound-toggle { padding-inline: 8px; font-size: 11px; }
  .tool-button.undo-control { min-width: 56px; font-size: 11px; }
}
