@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;--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,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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:where(:not(iframe)){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{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.block{display:block}.grid{display:grid}.hidden{display:none}.inline{display:inline}}@font-face{font-family:Atkinson;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/atkinson-regular.woff2)format("woff2")}@font-face{font-family:Atkinson;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/atkinson-bold.woff2)format("woff2")}:root{--page:#f0f4f8;--paper:#fff;--ink:#172d43;--accent:#175dad;--related:#e4edf7;--conflict:#a32236}body{background:var(--page);color:var(--ink);font-family:Atkinson,sans-serif;font-size:18px;line-height:1.5}h1{font-size:2.5rem;font-weight:700}button,select,input{font:inherit}button,select{min-height:48px}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}.game-shell{max-width:1060px;padding:24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));margin:auto}.game-header{border-bottom:1px solid #bbc9d6;justify-content:space-between;align-items:center;gap:20px;padding-bottom:24px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand svg{width:34px;height:34px;color:var(--accent)}.brand h1{letter-spacing:-.04em;font-size:32px;line-height:1}.game-header nav{flex-wrap:wrap;align-items:center;gap:10px;display:flex}select{appearance:none;width:100%;color:var(--ink);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23172d43' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat;border:1px solid #6f8296;border-radius:6px;padding:8px 42px 8px 14px}.header-button{background:0 0;border-radius:6px;padding:8px 12px}.header-button:hover{background:var(--related)}.play-layout{grid-template-columns:minmax(0,600px) minmax(270px,1fr);align-items:start;gap:40px;margin-top:24px;display:grid}.puzzle-area{min-width:0}.puzzle-toolbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.difficulty-control{width:100%;min-width:0;margin:20px 0;display:block}.difficulty-control>span{margin-bottom:5px;font-size:16px;display:block}.primary-button{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:6px;padding:10px 18px;font-weight:700}.primary-button:hover{background:#114b8c}.board-scroll{scrollbar-gutter:stable;margin:-4px;padding:4px;overflow:auto}.board{border:3px solid var(--ink);aspect-ratio:1;background:#fff;grid-template-rows:repeat(9,1fr);width:100%;display:grid;box-shadow:0 8px 20px #172d430a}.board-row{grid-template-columns:repeat(9,minmax(0,1fr));min-height:0;display:grid}.cell{font-variant-numeric:tabular-nums;background:#fff;border-bottom:1px solid #6f8296;border-right:1px solid #6f8296;min-width:0;min-height:0;padding:0;font-size:clamp(22px,3.4vw,36px);line-height:1;position:relative}.cell:last-child{border-right:0}.board-row:last-child .cell{border-bottom:0}.cell.box-right{border-right:2px solid var(--ink)}.cell.box-bottom{border-bottom:2px solid var(--ink)}.cell.given{font-weight:700}.cell.entered{color:var(--accent)}.cell.related{background:var(--related)}.cell.matching{background:#fff3cf}.cell.selected{box-shadow:inset 0 0 0 3px var(--accent);background:#c8def8}.cell:focus-visible{z-index:1;outline-offset:-4px}.cell.conflicting{color:var(--conflict);text-underline-offset:4px;text-decoration:underline;text-decoration-thickness:2px}.conflict-mark{font-size:12px;font-weight:700;position:absolute;top:2px;right:3px}.cell.evidence{box-shadow:inset 0 0 0 3px #7a5400}.cell-notes{color:#354f69;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);height:100%;padding:3px;font-size:clamp(9px,1.15vw,14px);display:grid}.cell-notes span{align-self:center}.board-large{min-width:540px}.board-large .cell{font-size:34px}.board-large .cell-notes{font-size:14px}.board-footer{justify-content:space-between;gap:10px;padding-top:12px;font-size:16px;display:flex}.progress-line{appearance:none;width:100%;height:4px;color:var(--accent);background:#d2ddea;border:0;margin-top:10px;display:block}.progress-line::-webkit-progress-bar{background:#d2ddea}.progress-line::-webkit-progress-value{background:var(--accent)}.progress-line::-moz-progress-bar{background:var(--accent)}.controls{padding-top:48px}.control-caption{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;display:flex}.matching-toggle{cursor:pointer;align-items:center;gap:12px;min-height:48px;margin-top:12px;display:flex}.matching-toggle input,.notes-toggle input{width:22px;height:22px;accent-color:var(--accent);flex:none}.solved-puzzles>p{margin:12px 0}.solved-list{gap:10px;margin:16px 0;padding:0;list-style:none;display:grid}.solved-list button{flex-wrap:wrap;justify-content:space-between;gap:12px;width:100%;display:flex}.solved-board{table-layout:fixed;border-collapse:collapse;border:2px solid var(--ink);text-align:center;width:100%;margin:20px 0}.solved-board caption{margin-bottom:12px}.solved-board td{border:1px solid #6f8296;padding:8px 0;font-size:22px}.solved-board td:nth-child(3n){border-right:2px solid var(--ink)}.solved-board tr:nth-child(3n) td{border-bottom:2px solid var(--ink)}.solved-board .given{font-weight:700}.solved-board .entered{color:var(--accent)}.control-caption h2{font-weight:700}.notes-toggle{cursor:pointer;align-items:center;gap:8px;min-height:48px;display:flex}.number-pad{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.number-key{min-height:72px;color:var(--accent);background:#fff;border:1px solid #6f8296;border-radius:8px;font-size:34px}.number-key:not(:disabled):hover{border-color:var(--accent);background:#dae8f8}.number-pad .erase-key{grid-column:1/-1;min-height:48px;font-size:17px}.tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px;display:grid}.tools button{background:#fff;border:1px solid #6f8296;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:10px 6px;font-size:17px;display:flex}.tools button:not(:disabled):hover{border-color:var(--accent);background:var(--related)}.tools button span{font-size:23px;line-height:1}.tools .hint-button{color:var(--accent);background:#e1ebf7;border-color:#91add0;grid-column:1/-1;font-weight:700}.quiet-message{color:#486079;margin-top:18px;font-size:16px}.page-footer{color:#486079;border-top:1px solid #bbc9d6;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:38px;padding-top:22px;font-size:16px;display:flex}.page-footer a{text-underline-offset:4px;align-items:center;min-height:48px;text-decoration:underline;display:inline-flex}.large-text{font-size:22px}.large-text .tools button,.large-text .board-footer,.large-text .quiet-message,.large-text .difficulty-control>span{font-size:20px}.game-dialog{width:min(600px,100% - 24px);max-height:85dvh;color:var(--ink);background:#fff;border:1px solid #6f8296;border-radius:12px;margin:auto;padding:24px;position:fixed;inset:0;overflow-y:auto;box-shadow:0 20px 70px #172d4333}.game-dialog::backdrop{background:#172d4370}.dialog-heading{justify-content:space-between;align-items:start;gap:20px;margin-bottom:18px;display:flex}.dialog-heading h2{font-size:26px;font-weight:700}.dialog-heading button{border:1px solid #6f8296;border-radius:6px;padding:8px 12px}.dialog-content p{margin-bottom:16px}.game-dialog:has(.visual-help) .dialog-heading{background:var(--paper);z-index:1;padding:12px 0;position:sticky;top:-24px}.visual-help h3{margin-bottom:10px;font-size:22px;font-weight:700}.help-actions,.help-topic-picker,.help-unit-picker{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.help-actions button,.help-topic-picker button,.help-unit-picker button{border:1px solid #6f8296;border-radius:6px;min-width:48px;min-height:48px;padding:8px 12px}.help-actions button[aria-pressed=true],.help-topic-picker button[aria-pressed=true],.help-unit-picker button[aria-pressed=true]{background:var(--related);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.help-rule-grid{border:2px solid var(--ink);grid-template-columns:repeat(9,minmax(0,1fr));width:min(100%,306px);margin-top:16px;display:grid}.help-rule-grid span{aspect-ratio:1;border:1px solid #bbc9d6;place-items:center;display:grid}.help-rule-grid .help-box-right{border-right:2px solid var(--ink)}.help-rule-grid .help-box-bottom{border-bottom:2px solid var(--ink)}.help-highlight{background:var(--related);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:700}.visual-help figcaption{margin:10px 0}.help-practice-grid{border:2px solid var(--ink);grid-template-columns:repeat(3,1fr);width:min(100%,216px);display:grid}.help-practice-grid>*{aspect-ratio:1;border:1px solid #6f8296;place-items:center;font-size:30px;display:grid}.help-practice-cell{box-shadow:inset 0 0 0 3px var(--accent);background:#c8def8}.help-practice-cell small,.help-note-example small{font-size:18px}.help-explanation{border-left:3px solid var(--accent);margin:16px 0;padding-left:16px}.help-note-example{gap:16px;display:flex}.help-note-example>span{border:1px solid #6f8296;place-items:center;width:64px;height:64px;font-size:30px;display:grid}kbd{font:inherit;border:1px solid;border-radius:4px;padding:0 5px;font-size:.8em;display:inline-block}.dialog-actions{flex-wrap:wrap;justify-content:end;gap:12px;margin-top:24px;display:flex}.secondary-button{background:#fff;border:1px solid #6f8296;border-radius:6px;padding:10px 14px}.settings-list label{cursor:pointer;align-items:center;gap:14px;min-height:56px;display:flex}.settings-list input{width:24px;height:24px;accent-color:var(--accent);flex-shrink:0}.saving-setting{border-top:1px solid #bbc9d6;margin-top:12px;padding-top:12px}.saving-setting p{margin:8px 0 16px;font-size:16px}.hint-steps{margin:16px 0 22px;padding-left:28px;list-style:decimal}.hint-steps li{margin-bottom:18px;padding-left:6px}.hint-steps h3{margin-bottom:6px;font-weight:700}.timer{font-variant-numeric:tabular-nums;text-align:right;margin-top:8px;font-size:18px}.large-text .game-dialog{font-size:22px}.storage-message{min-height:24px;margin-top:8px;font-size:16px}.privacy-link{align-items:center;min-height:48px;margin-top:16px;text-decoration:underline;display:inline-flex}.privacy-page{max-width:760px;margin:0 auto;padding:32px 20px}.privacy-page .language-control{max-width:180px;margin-bottom:30px;display:block}.privacy-page h1{margin-bottom:32px;font-size:32px;line-height:1.2}.privacy-page h2{margin:24px 0 12px;font-size:24px;font-weight:700}.privacy-page p{margin-bottom:18px}.privacy-copy h2{margin:20px 0 12px;font-size:23px;font-weight:700}.privacy-copy a{color:var(--accent);text-underline-offset:3px;text-decoration:underline}.privacy-copy li a,.privacy-copy>a{align-items:center;min-height:48px;display:inline-flex}@media (max-width:760px){.game-shell{max-width:600px;padding-top:8px}.game-header{flex-wrap:wrap;gap:8px;padding-bottom:8px}.game-header nav{grid-template-columns:minmax(110px,1fr) auto auto;justify-content:space-between;gap:4px;width:100%;display:grid}.language-control{flex:1;max-width:180px}.game-header .brand h1{font-size:28px}.game-header .brand svg{width:28px;height:28px}.game-header nav select,.header-button{font-size:16px}.header-button{padding:4px}.play-layout{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}.controls{padding-top:0}.primary-button{padding:10px 12px}.control-caption{margin-bottom:8px}.number-pad{grid-template-columns:repeat(5,minmax(48px,1fr));gap:6px}.number-key{min-height:52px;font-size:28px}.number-pad .erase-key{grid-column:auto;min-height:52px}.tools{gap:6px;margin-top:10px}.matching-toggle{margin-top:6px}.puzzle-toolbar{margin-bottom:10px}.large-text .number-pad{grid-template-columns:repeat(3,minmax(0,1fr))}.large-text .number-pad .erase-key{grid-column:1/-1;font-size:22px}.large-text .game-header nav{display:flex}.large-text .game-header .language-control{min-width:140px;max-width:none}.large-text .game-header nav select,.large-text .header-button{font-size:inherit}.cell{font-size:clamp(22px,5.8vw,34px)}.cell-notes{padding:1px;font-size:clamp(9px,2.4vw,13px)}}@media (forced-colors:active){.help-highlight,.help-topic-picker button[aria-pressed=true],.help-unit-picker button[aria-pressed=true],.help-actions button[aria-pressed=true]{outline-offset:-3px;outline:2px solid highlight}.help-practice-cell{outline-offset:-4px;outline:3px solid highlight}select{appearance:auto;background-image:none;padding-right:14px}.cell.selected{outline-offset:-4px;outline:3px solid highlight}.cell.related{background:canvas}.cell.evidence{outline-offset:-5px;outline:2px dashed highlight}}@media (max-width:380px){.puzzle-toolbar{flex-wrap:wrap;gap:8px;font-size:16px}.puzzle-toolbar .primary-button{width:auto}}@media (max-width:360px){.game-header nav{grid-template-columns:repeat(2,minmax(0,1fr))}.game-header .language-control{grid-column:1/-1;max-width:none}}@media (max-width:319px){.number-pad{grid-template-columns:repeat(3,minmax(0,1fr))}.number-pad .erase-key{grid-column:1/-1}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
