.dialog.flow-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.flow-dialog>.dialog-header{flex:none}.flow-content{overscroll-behavior:contain;flex:auto;min-height:0;margin:-6px;padding:6px;overflow:auto}.flow-actions{border-top:1px solid var(--border);flex:none;margin-top:8px;padding-top:8px}.flow-actions .flow-toolbar{align-items:center;margin:0}.flow-actions button{min-height:44px}.flow-secondary{margin-bottom:8px}.flow-secondary>button{width:100%}.flow-dialog .qr-form{flex-direction:column;flex:auto;gap:0;min-height:0;display:flex}.flow-dialog .code-input-content{flex-direction:column;gap:12px;display:flex}.flow-dialog .camera-content{flex-direction:column;flex:1;min-height:0;display:flex}.flow-dialog .camera-preview{flex:1;min-height:0}.flow-dialog .camera-preview[hidden]{display:none}.photo-crop-content{flex-direction:column;display:flex;overflow:hidden}@media (width<=799px),(height<=500px){.dialog.flow-dialog[open]{--flow-top:max(8px, env(safe-area-inset-top));--flow-bottom:max(8px, env(safe-area-inset-bottom));max-height:calc(100dvh - var(--flow-top) - var(--flow-bottom));width:100%;margin:var(--flow-top) auto var(--flow-bottom);border-radius:12px;padding:12px}.dialog.flow-dialog:is(.training-dialog,.photo-crop-dialog,.photo-review-dialog,.photo-camera-dialog,.code-camera-dialog)[open]{height:calc(100dvh - var(--flow-top) - var(--flow-bottom))}.flow-dialog .dialog-header{margin-bottom:8px}.flow-dialog .dialog-header h2{font-size:18px}.flow-actions button{padding:8px;font-size:13px}}.floating-dock-safe-area{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);visibility:hidden;pointer-events:none;position:fixed;inset:0}.floating-dock{--dock-accent:var(--blue);--dock-shell:#eaf4ff;z-index:15;box-sizing:border-box;border:2px solid color-mix(in srgb,var(--dock-accent) 55%,var(--muted));background:var(--dock-shell);border-radius:8px;display:grid;position:fixed;overflow:hidden;box-shadow:0 6px 24px #11203c33}.floating-dock[data-fallback=true]{position:absolute}.floating-dock[data-mode=color]{--dock-accent:#8050a3;--dock-shell:#f5effa}.floating-dock[data-mode=candidate]{--dock-accent:var(--green);--dock-shell:#ebf8f1}.floating-dock[data-mode=excluded]{--dock-accent:var(--orange);--dock-shell:#fff6e5}.floating-dock-modes,.floating-dock-digits{min-width:0;min-height:0;display:grid}.floating-dock[data-shape=side]{grid-template-columns:var(--dock-key-size) 1fr}.floating-dock[data-shape=side] .floating-dock-modes{box-shadow:inset -2px 0 var(--dock-accent);grid-template-rows:repeat(4,1fr)}.floating-dock[data-shape=side] .floating-dock-digits{grid-template-rows:repeat(4,1fr);grid-template-columns:repeat(3,1fr)}.floating-dock[data-shape=side][data-side=left]{grid-template-columns:1fr var(--dock-key-size)}.floating-dock[data-shape=side][data-side=left] .floating-dock-modes{box-shadow:inset 2px 0 var(--dock-accent);grid-column:2}.floating-dock[data-shape=side][data-side=left] .floating-dock-digits{grid-area:1/1}.floating-dock[data-shape=compact]{grid-template-rows:var(--dock-key-size) 1fr}.floating-dock[data-shape=compact] .floating-dock-modes{box-shadow:inset 0 -2px var(--dock-accent);grid-template-columns:repeat(4,1fr)}.floating-dock[data-shape=compact] .floating-dock-digits{grid-template-columns:repeat(3,minmax(0,1fr)) var(--dock-key-size);grid-template-rows:repeat(3,1fr)}.floating-dock[data-shape=compact] .floating-dock-eraser{grid-area:1/4/-1}.floating-dock[data-shape=compact][data-side=top]{grid-template-rows:1fr var(--dock-key-size)}.floating-dock[data-shape=compact][data-side=top] .floating-dock-modes{box-shadow:inset 0 2px var(--dock-accent);grid-row:2}.floating-dock[data-shape=compact][data-side=top] .floating-dock-digits{grid-row:1}.floating-dock[data-shape=tall]{grid-template-rows:calc(2*var(--dock-key-size)) 1fr}.floating-dock[data-shape=tall] .floating-dock-modes{box-shadow:inset 0 -2px var(--dock-accent);grid-template-rows:repeat(2,1fr);grid-template-columns:repeat(2,1fr)}.floating-dock[data-shape=tall] .floating-dock-digits{grid-template-rows:repeat(4,1fr);grid-template-columns:repeat(3,1fr)}.floating-dock button{border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);min-width:44px;min-height:44px;font-size:calc(var(--dock-key-size)*.5);background:0 0;border-radius:0;padding:4px;line-height:1}.floating-dock button:hover:not(:disabled){background:color-mix(in srgb,var(--dock-accent) 14%,white 86%)}.floating-dock button.floating-dock-mode{color:var(--dock-accent);flex-direction:column;gap:2px;padding:2px;font-weight:700}.floating-dock button.floating-dock-mode span{font-size:clamp(11px,calc(var(--dock-key-size)/4),12px);line-height:1}.floating-dock button.floating-dock-mode[aria-pressed=true]{background:var(--dock-accent);color:#fff;box-shadow:inset 0 0 0 2px #ffffff6b}.floating-dock button.floating-dock-digit,.floating-dock button.floating-dock-eraser{background:#fff;border:0;border-radius:4px;box-shadow:inset 0 0 0 1px #65738a6b}.floating-dock button.floating-dock-digit[aria-pressed=true]{background:color-mix(in srgb,var(--dock-accent) 13%,white 87%);color:var(--dock-accent);box-shadow:inset 0 0 0 2px var(--dock-accent)}.floating-dock button.floating-dock-digit.color-graphite{color:var(--graphite)}.floating-dock button.floating-dock-digit.color-blue{color:var(--blue-dark)}.floating-dock button.floating-dock-digit.color-green{color:var(--green)}.floating-dock button.floating-dock-digit.color-orange{color:var(--orange)}.floating-dock button.floating-dock-digit.color-purple{color:var(--purple)}.floating-dock button:focus-visible{z-index:1;outline-offset:-3px;position:relative}.floating-dock button svg{width:min(64%,28px);height:min(64%,28px)}.floating-dock-digit[data-mark-kind=candidate]{text-underline-offset:.18em;text-decoration:underline}.floating-dock button.floating-dock-eraser{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dock-accent) 45%,var(--muted));color:var(--muted);background:#fff;grid-column:1/-1}.floating-dock[data-variant=givens]{--dock-key-size:44px;grid-template-rows:28px 1fr;width:100%;height:120px;position:relative}.floating-dock-caption{color:var(--dock-accent);box-shadow:inset 0 -2px var(--dock-accent);justify-content:center;align-items:center;font-size:12px;font-weight:700;display:flex}.floating-dock button.floating-dock-mode svg{width:23px;height:23px}.floating-dock-swatch{aspect-ratio:1;color:#263446;border-radius:48% 52% 46% 54%/51% 46% 54% 49%;place-items:center;width:66%;height:66%;font-size:19px;display:grid}.floating-dock[data-shape=compact] .floating-dock-swatch{width:32px;height:32px}.floating-dock button.floating-dock-color[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--dock-accent);background:#f9f5fc}.floating-dock[data-variant=givens][data-shape=compact] .floating-dock-digits{grid-template-rows:repeat(2,1fr);grid-template-columns:repeat(5,minmax(0,1fr))}.floating-dock[data-variant=givens][data-shape=compact] .floating-dock-eraser{grid-area:auto}.help-dialog .dialog-header{margin-bottom:8px}.help-dialog .help-intro{margin:0 0 16px}.help-presentations{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.help-presentations button{flex-direction:column;gap:5px;min-width:0;padding:9px 4px;font-size:12px}.help-presentations button[data-presentation=givens]{flex-direction:row;grid-column:1/-1;min-height:36px;padding:6px}.help-presentations button[aria-pressed=true][data-presentation=candidate]{background:var(--green);border-color:var(--green)}.help-presentations button[aria-pressed=true][data-presentation=excluded]{background:var(--orange);border-color:var(--orange)}.help-presentations button[aria-pressed=true][data-presentation=color]{background:var(--purple);border-color:var(--purple)}.help-demo{border:1px solid var(--border);background:var(--surface);border-radius:8px;margin:16px 0 22px;padding:18px 14px 12px}.help-demo-graphics{justify-content:space-around;align-items:center;gap:20px;display:flex}.help-dock-preview{flex:none;width:204px}.help-dialog .floating-dock[data-preview]{--dock-key-size:50px;z-index:auto;pointer-events:none;-webkit-user-select:none;user-select:none;width:204px;height:204px;position:relative;box-shadow:0 3px 10px #11203c15}.help-dock-preview:has([data-variant=givens]){width:224px}.help-dialog .floating-dock[data-preview][data-variant=givens]{grid-template-rows:28px 1fr;width:224px;height:120px}.help-cell-change{justify-content:center;align-items:center;gap:12px;min-width:0;display:flex}.help-cell-change>div{justify-items:center;gap:8px;display:grid}.help-cell-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:11px;line-height:1}.help-dialog .help-example-cell{background:#fff;border:1px solid #aeb6c2;width:68px;height:68px;font-size:43px}.help-example-cell .marks{font-size:17px;inset:4px}.help-demo-action{color:var(--muted);flex-direction:column;align-items:center;gap:8px;padding-top:18px;display:flex}.help-demo-action svg{width:24px;height:24px}.help-dialog .help-demo-caption{text-align:center;color:var(--graphite);margin:14px 0 0;font-size:13px;line-height:1.5}.help-keyboard-section h3{justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px;font-size:15px;display:flex}.help-keyboard-section h3 small{color:var(--muted);font-size:11px;font-weight:400}.help-dialog kbd{min-width:23px;min-height:24px;color:var(--graphite);white-space:nowrap;background:#fff;border:1px solid #cbd4df;border-bottom-width:2px;border-radius:4px;place-items:center;padding:3px 5px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.1;display:inline-grid}.help-keyboard{margin:0 0 18px}.help-keyboard>div{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:12px;min-height:40px;padding:7px 0;display:grid}.help-keyboard dt{color:var(--muted);flex-wrap:wrap;align-items:center;gap:4px;font-size:11px;display:flex}.help-keyboard dd{color:var(--graphite);margin:0;font-size:12px;line-height:1.4}.help-keyboard dd small{color:var(--muted);font-size:10px;display:block}.help-keyboard dt small{align-items:center;gap:4px;font-size:10px;display:flex}.help-key-combo{flex-wrap:wrap;align-items:center;gap:3px;display:inline-flex}.help-details{border-top:1px solid var(--border)}.help-details summary{cursor:pointer;padding:14px 0;font-size:14px;font-weight:600}.help-details summary:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px}.techniques-intro{align-items:center;gap:20px;display:flex}.techniques-intro p{flex:1;margin:0}.techniques-intro button{flex:none}.techniques-dialog .technique-library{margin:20px 0 0}.techniques-dialog .technique-library button>span{flex-wrap:wrap}.rules-illustrations{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0;display:grid}.rules-illustrations figure{min-width:0;margin:0}.rules-illustrations svg{width:100%;height:auto;display:block;overflow:visible}.rules-illustrations figcaption{text-align:center;margin-top:10px;font-size:13px;font-weight:600}@media (width<=560px){.techniques-intro{display:block}.techniques-intro button{margin-top:12px}.rules-illustrations{grid-template-columns:1fr;justify-items:center;gap:18px}.rules-illustrations figure{width:180px;max-width:100%}.help-presentations{grid-template-columns:repeat(4,minmax(0,1fr))}.help-presentations button{flex-direction:column;padding:7px 2px;font-size:10px}.help-demo-graphics{gap:10px}.help-dock-preview{width:164px}.help-dialog .floating-dock[data-preview]:not([data-variant=givens]){--dock-key-size:40px;width:164px;height:164px}.help-dialog .floating-dock[data-preview] button{min-width:0;min-height:0}.help-cell-change{grid-template-columns:repeat(2,40px);gap:6px;display:grid}.help-cell-change>div{gap:5px}.help-cell-change>div:last-child{grid-area:1/2}.help-cell-label{font-size:9px}.help-demo-action{flex-direction:row;grid-column:1/-1;justify-content:center;gap:8px;padding-top:0}.help-demo[data-mode=givens] .help-demo-graphics{flex-direction:column}.help-demo[data-mode=givens] .help-cell-change{gap:12px;display:flex}.help-demo{margin:12px 0;padding:12px 8px}.help-dialog .help-example-cell{width:40px;height:40px;font-size:26px}.help-example-cell .marks{font-size:10px;inset:2px}.help-keyboard>div{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px}}@media (width<=380px){.help-dialog{padding-left:12px;padding-right:12px}.help-presentations button{padding:7px 1px;font-size:10px}.help-presentations button svg{width:18px;height:18px}.help-keyboard>div{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}@media (height<=450px) and (width>=500px){.dialog.help-dialog{border-radius:12px;max-height:calc(100dvh - 16px);margin:8px auto;padding:12px}.help-dialog .dialog-header{margin-bottom:4px}.help-dialog .help-intro{margin-bottom:8px;font-size:12px}.help-overview{grid-template-columns:132px minmax(0,1fr);align-items:start;gap:12px;margin-bottom:12px;display:grid}.help-presentations{grid-template-columns:repeat(2,minmax(0,1fr))}.help-presentations button{padding:6px 2px;font-size:10px}.help-presentations button[data-presentation=givens]{flex-direction:column}.help-demo{margin:0;padding:8px}.help-demo-graphics{flex-wrap:wrap;gap:8px}.help-dock-preview{width:148px}.help-dialog .floating-dock[data-preview]:not([data-variant=givens]){--dock-key-size:36px;width:148px;height:148px}.help-dialog .floating-dock[data-preview] button{min-width:0;min-height:0}.help-dialog .help-example-cell{width:40px;height:40px;font-size:26px}.help-example-cell .marks{font-size:10px;inset:2px}.help-cell-change{gap:6px}.help-dialog .help-demo-caption{margin-top:8px;font-size:12px}}:root{color:#122246;font-synthesis:none;--blue:#0670e5;--blue-dark:#075cc0;--pale-blue:#eaf4ff;--border:#dce3ed;--muted:#65738a;--surface:#f6f8fb;--graphite:#3f4854;--green:#16804a;--orange:#aa5900;--purple:#8145be;--radius:7px;--board-size:540px;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;color:#7b8799;background:#f8f9fb}button{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);justify-content:center;align-items:center;gap:9px;min-height:44px;padding:10px 14px;font-size:14px;font-weight:500;display:inline-flex}button:hover:not(:disabled){background:#eaf1fa;border-color:#afc6e3}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #0875ed}button.primary,button[aria-pressed=true]:not(.swatch){background:var(--blue);color:#fff;border-color:var(--blue)}button.primary:hover{background:var(--blue-dark)}svg{flex:none;width:21px;height:21px}input,textarea{min-width:0;color:inherit;background:#fff;border:1px solid #bac5d5;border-radius:6px;padding:12px}textarea{resize:vertical;width:100%;min-height:135px;line-height:1.5}h1,h2,p{margin:0}h2{font-size:20px}a{color:var(--blue-dark)}.color-graphite{color:var(--graphite)}.color-blue{color:var(--blue-dark)}.color-green{color:var(--green)}.color-orange{color:var(--orange)}.color-purple{color:var(--purple)}.bg-graphite{background:var(--graphite)}.bg-blue{background:var(--blue)}.bg-green{background:var(--green)}.bg-orange{background:var(--orange)}.bg-purple{background:var(--purple)}.app-shell{flex-direction:column;max-width:1200px;height:100dvh;margin:0 auto;padding:20px 28px 16px;display:flex}.app-header{border-bottom:1px solid #e6ebf1;flex:none;align-items:center;gap:22px;min-height:68px;margin-bottom:20px;padding-bottom:16px;display:flex}.brand{flex-shrink:0;align-items:center;gap:12px;display:flex}.brand>svg{color:#0568d6;stroke-width:1.9px;width:39px;height:39px}.brand h1{letter-spacing:-1.1px;font-size:31px;font-weight:700}.header-meta{flex-direction:column;gap:5px;font-size:13px;display:flex}.game-code{font-variant-numeric:tabular-nums;letter-spacing:.25px;color:var(--muted);font-size:12px}.header-actions{gap:8px;margin-left:auto;display:flex}.header-actions button{white-space:nowrap;background:#fff}.game-layout{flex-direction:column;flex:1;align-items:center;gap:8px;min-height:0;display:flex;container-type:size}@media (width>=1000px){.game-layout:not(.dock-fallback){max-height:772px}}.board-region{--fitted-board:min(100cqw,100cqh);flex:1;justify-content:center;align-items:center;width:100%;min-width:0;min-height:0;display:flex;container-type:size}.board-region .board{width:var(--game-board-size,var(--fitted-board));transform:translate(var(--game-board-x,0),var(--game-board-y,0));flex:none}.game-layout.dock-fallback{min-width:var(--dock-surface-width);min-height:var(--dock-surface-height);flex:none;align-items:center}.dock-fallback .board-region{height:var(--dock-natural-region-height);flex:none}.app-shell:has(.dock-fallback){height:auto;min-height:100dvh;overflow:visible}.tools{width:min(100%,420px);min-width:0;transform:translateX(var(--tools-x,0px));flex:none}.action-bar{flex:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.action-bar button{gap:4px;height:44px;padding:8px 3px;font-size:12px}.action-bar svg{width:16px;height:16px}.mobile-only{display:none}.empty-state{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:20px;min-height:0;display:flex}.empty-state>.new-game-choices{width:min(100%,620px)}.toast{color:#fff;z-index:20;background:#142647;border-radius:8px;width:max-content;max-width:calc(100% - 24px);padding:14px 22px;font-size:14px;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #11203c20}.notice{background:#fff5e7;border:1px solid #e1cda9;border-radius:6px;flex:none;margin-bottom:16px;padding:12px;font-size:13px;line-height:1.5}.update-banner{z-index:10;background:var(--pale-blue);border:1px solid var(--border);border-radius:8px;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 20px);padding:8px 10px;font-size:13px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #11203c20}.update-banner .dismiss-update{background:0 0;border:0;flex:none;width:44px;padding:0;font-size:22px}.dialog{border:1px solid var(--border);width:calc(100% - 32px);max-width:620px;max-height:calc(100dvh - 40px);color:inherit;background:#fff;border-radius:12px;padding:26px;overflow:auto;box-shadow:0 20px 80px #15254420}.dialog::backdrop{background:#14243b55}.dialog-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;display:flex}.dialog-header h2{letter-spacing:-.4px;font-size:21px}.dialog-header button{background:#fff;border:0;width:32px;min-height:32px;padding:0;font-size:22px}.dialog p{color:var(--muted);margin:12px 0;font-size:14px;line-height:1.55}.dialog label{margin:14px 0 8px;font-size:13px;font-weight:500;display:block}.dialog-actions,.dialog-footer{justify-content:flex-end;gap:9px;margin-top:20px;display:flex}.difficulty-options{gap:8px;margin:22px 0;display:flex}.difficulty-options button{flex:1;padding:12px 8px}.full-width{width:100%}.game-list{gap:8px;max-height:290px;margin:18px 0;display:grid;overflow:auto}.game-list>button{text-align:left;background:#fff;justify-content:space-between;min-height:65px;padding:12px;display:flex}.game-list>button>span{flex:1}.game-list strong{margin-bottom:4px;font-size:14px;display:block}.game-list small{color:var(--muted);font-size:11px;display:block}.game-list .active-game{border-color:var(--blue);background:var(--pale-blue)}.menu-actions{gap:8px;margin-top:14px;display:grid}.menu-actions button{justify-content:flex-start}.qr-image{width:200px;height:200px;margin:12px auto;display:block}.qr-code,.code-display{justify-content:space-between;align-items:center;gap:10px;display:flex}.qr-code{flex-wrap:wrap}.qr-code code{overflow-wrap:anywhere;font-size:16px}.qr-form{gap:10px;display:grid}.qr-form input{width:100%}.camera-preview{background:#14243b;border-radius:8px;margin:12px 0;position:relative;overflow:hidden}.camera-preview video{object-fit:contain;width:100%;height:min(42dvh,260px);display:block}.scan-actions{gap:8px;display:flex}.scan-actions button{flex:1;padding:10px 8px;font-size:13px}.qr-error{color:#a13628!important}@media (width>=800px) and (height<=720px){.app-shell{padding-top:12px;padding-bottom:10px}.app-header{min-height:54px;margin-bottom:12px;padding-bottom:10px}}@media (width<=799px){.app-shell{max-width:570px;padding:env(safe-area-inset-top,0px) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.app-header{gap:12px;min-height:52px;margin-bottom:8px;padding:0 2px}.brand{gap:8px}.brand>svg{width:27px;height:27px}.brand h1{letter-spacing:-.65px;font-size:24px}.header-meta{text-align:right;margin-left:auto;font-size:12px}.header-meta .game-code{display:none}.header-actions{margin-left:0}.header-actions button{border:0;width:44px;height:44px;padding:8px}.desktop-only{display:none!important}.mobile-only{display:flex}.game-layout{flex-direction:column;gap:8px;display:flex}.board-region{--fitted-board:min(100cqw,100cqh);flex:1;width:100%}.tools{flex:none;width:100%}.action-bar{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}.action-bar button{gap:4px;min-height:44px;padding:8px 3px;font-size:12px}.action-bar svg{width:16px;height:16px}.dialog{width:100%;max-height:90dvh;padding:23px 20px calc(22px + env(safe-area-inset-bottom));border-radius:15px 15px 0 0;margin:auto auto 0}.dialog button{min-height:44px}.dialog-header button{width:44px}.toast{bottom:calc(8px + env(safe-area-inset-bottom));font-size:13px}.notice{font-size:12px}.update-banner{top:env(safe-area-inset-top,0px);gap:6px;padding:0 6px;font-size:12px}}@media (width<=799px) and (height<=620px){.app-header{min-height:46px;margin-bottom:4px}.game-layout{gap:4px}.action-bar{margin-top:4px}.brand h1{font-size:21px}}@media (orientation:landscape) and (height<=720px){.app-shell{max-width:1200px}.game-layout{flex-direction:row;justify-content:center;gap:14px}.board-region{flex:1;align-self:stretch}.tools{align-self:center;width:110px}.action-bar{grid-template-columns:1fr}}@media (width>=600px) and (width<=999px) and (orientation:portrait){.app-shell{max-width:none;padding-left:max(32px,env(safe-area-inset-left));padding-right:max(32px,env(safe-area-inset-right))}.board-region{--board-size-limit:720px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.offline-indicator{background:0 0;border:0;border-radius:50%;flex:none;width:44px;height:44px;padding:10px}.offline-indicator svg{fill:currentColor;stroke-width:1px;width:24px;height:24px}.offline-ready{color:#16804a}.offline-loading{color:#b48a00}.offline-error{color:#c1372c}.offline-details{border:1px solid var(--border);width:340px;max-width:calc(100vw - 20px);color:var(--graphite);background:#fff;border-radius:8px;max-height:calc(100dvh - 100px);margin:0;padding:16px;font-size:13px;line-height:1.5;position:fixed;top:76px;left:max(10px,50vw - 572px);overflow:auto;box-shadow:0 4px 20px #11203c20}.offline-details button{width:100%;margin-top:8px}.offline-details textarea{width:100%;height:150px;margin-top:8px;font-size:12px;display:block}.offline-details strong{font-size:14px}.offline-details p{margin-top:6px}@media (width<=799px){.brand{gap:6px}.offline-details{top:calc(52px + env(safe-area-inset-top,0px));left:10px}}.solution-preview{aspect-ratio:1;width:min(100%,100dvh - 200px);margin:16px auto 0;container-type:inline-size}.solution-board{table-layout:fixed;border-collapse:collapse;width:100%;height:100%;color:var(--blue-dark);text-align:center;border:3px solid #151a21;font-size:6.5cqw}.solution-board td{border:1px solid #aeb6c2;padding:0}.solution-board td:nth-child(3),.solution-board td:nth-child(6){border-right:3px solid #151a21}.solution-board tr:nth-child(3),.solution-board tr:nth-child(6){border-bottom:3px solid #151a21}.solution-board .given{color:#111318;background:#f3f7fc;font-weight:600}.solution-board tr{height:11.1111%}.solution-board td{position:relative}.preview-value{place-items:center;display:grid;position:absolute;inset:0}.preview-marks{color:#566477;grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(3,minmax(0,1fr));font-size:2.45cqw;line-height:1;display:grid;position:absolute;inset:2px}.preview-marks>span{place-items:center;display:grid}.game-result-dialog{--result-color:var(--green);border-top:6px solid var(--result-color);border-radius:12px;width:calc(100% - 32px);max-width:480px;margin:auto}.game-result-incorrect{--result-color:var(--orange)}.game-result-dialog .dialog-header h2{font-size:28px;line-height:1.2}.game-result-summary{align-items:center;gap:18px;padding:8px 0 16px;display:flex}.game-result-icon{background:color-mix(in srgb,var(--result-color) 12%,white);width:64px;height:64px;color:var(--result-color);border-radius:50%;flex:none;place-items:center;display:grid}.game-result-icon svg{width:36px;height:36px}.game-result-dialog p{color:var(--graphite);margin:0;font-size:16px}.game-result-dialog .dialog-actions{flex-wrap:wrap}.game-result-dialog .dialog-actions button{flex:1;min-height:44px}.solution-board .preview-region{background:#f0f6fd}.solution-board .preview-evidence{background:#e1efff;box-shadow:inset 0 0 0 2px #0869da}.preview-candidate{color:#064b9e;text-underline-offset:2px;font-weight:800;text-decoration:underline}.preview-eliminated{color:#b52924;background:#ffebe8;font-weight:800}.solution-board .preview-placement{color:#08733e;background:#e6f5ed;-webkit-text-decoration:underline double;text-decoration:underline double}.study-dialog{flex-direction:column;display:flex;overflow:hidden}.study-dialog .dialog-header{flex:none;margin-bottom:8px}.study-body{overscroll-behavior:contain;min-height:0;overflow:auto}.study-body h3{margin:6px 0;font-size:18px}.study-board{width:min(100%,430px);margin:12px auto}.study-dialog .study-subtitle{margin:6px 0;font-size:12px}.study-explanation{background:#f5f7fb;border-radius:8px;margin-top:12px;padding:12px}.study-explanation p{margin:6px 0 0}.study-nav{background:#fff;flex:none;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding-top:14px;display:grid}.study-nav button{min-height:44px;padding:8px;font-size:13px}.study-nav span{white-space:nowrap;font-size:12px}.technique-library{gap:6px;margin:12px 0;display:grid}.technique-library button{text-align:left;justify-content:flex-start}.technique-library button>span{flex:1;justify-content:space-between;align-items:center;gap:8px;display:flex}.technique-library small{color:var(--muted);font-size:11px}.difficulty-options{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0;display:grid}.training-techniques{border:0;margin:16px 0;padding:0}.training-techniques legend{margin-bottom:8px;font-size:14px;font-weight:600}.training-techniques>div{border-bottom:1px solid var(--border);align-items:center;gap:8px;min-height:54px;display:flex}.training-techniques label{cursor:pointer;flex:1;align-items:center;gap:10px;min-height:48px;margin:0;display:flex}.training-techniques input{appearance:auto;width:20px;height:20px;min-height:0;accent-color:var(--blue);flex:none;margin:0;padding:0}.training-techniques small{color:var(--muted);margin-top:3px;font-size:11px;display:block}.training-techniques button{flex:none;width:44px;height:44px;padding:0}.new-game-dialog .training-optional{font-size:12px}.inline-lesson{color:var(--blue);background:0 0;border:0;min-height:44px;padding:0 3px;text-decoration:underline;display:inline}@media (width<=799px){.header-meta{max-width:100px}}.study-dialog:not(.study-message){--study-top:max(8px,env(safe-area-inset-top));--study-bottom:max(8px,env(safe-area-inset-bottom));height:calc(100dvh - var(--study-top) - var(--study-bottom));max-height:calc(100dvh - var(--study-top) - var(--study-bottom));margin:var(--study-top) auto var(--study-bottom)}.study-body{flex:1}@media (width<=799px){.game-menu-button{grid-column:auto}}.profile-details{min-height:24px;font-size:inherit;text-underline-offset:3px;background:0 0;border:0;justify-content:flex-start;padding:0;text-decoration:underline}@media (width<=799px){.profile-details{justify-content:flex-end;min-height:44px}}.preview-marks{font-size:clamp(8px,2.5cqw,12px)}@media (height<=650px){.study-dialog{padding:12px}.study-dialog .dialog-header{margin-bottom:4px}.study-board{width:min(100%,430px);margin:8px auto}.study-explanation{margin-top:8px;padding:10px}.study-explanation p{font-size:13px}.study-dialog .study-subtitle{margin:4px 0}.study-nav{padding-top:8px}}.photo-dialog{max-width:640px}.photo-actions{gap:8px;margin:12px 0;display:flex}.photo-actions>button{flex:1;min-width:0;padding:10px 8px}.photo-dialog progress{width:100%;margin:16px 0}.photo-dialog .cell{min-height:0}.game-code,.game-list small,.print-sheet strong{overflow-wrap:anywhere}.header-meta,.game-list>button>span{min-width:0}@media (width<=399px){.photo-dialog{padding:16px 12px}.photo-actions{flex-wrap:wrap}.photo-actions>button{flex-basis:110px}}.new-game-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.new-game-dialog .dialog-header,.new-game-dialog .flow-toolbar{flex:none}.new-game-settings{overscroll-behavior:contain;min-height:0;overflow:auto}.new-game-settings .difficulty-options{margin:0}.new-game-settings .training-techniques{margin:0 0 12px}.new-game-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid;overflow:auto}.new-game-choice{text-align:left;justify-content:flex-start;gap:12px;padding:18px 14px}.new-game-choice>span{flex:1;min-width:0}.new-game-choice strong{font-size:14px;font-weight:600;display:block}.new-game-choice small{color:var(--muted);margin-top:5px;font-size:12px;font-weight:400;line-height:1.45;display:block}.new-game-choice>svg:last-child{width:16px;height:16px}.flow-toolbar{justify-content:space-between;gap:10px;margin-bottom:16px;display:flex}.flow-toolbar button{min-width:0}.flow-toolbar .primary:disabled{color:#7b8799;border-color:var(--border);background:#f8f9fb}.code-import-dialog .flow-toolbar{margin-bottom:0}.code-import-dialog .qr-form{gap:12px}.code-import-dialog .qr-form label{margin-top:0}.code-import-dialog .qr-form p{margin:0}.code-import-dialog .camera-preview{margin-bottom:0}.qr-dialog .qr-image{width:min(100%,240px);height:auto;margin:0 auto 20px}@media (width<=799px){.new-game-choices{grid-template-columns:minmax(0,1fr);gap:8px}.new-game-choice{padding:13px 12px}.new-game-dialog,.code-import-dialog{padding:18px}.new-game-dialog .dialog-header,.code-import-dialog .dialog-header{gap:10px;margin-bottom:14px}.flow-toolbar button{padding:10px 8px;font-size:13px}.flow-toolbar svg{width:18px;height:18px}}.code-camera-dialog[open]{flex-direction:column;height:min(620px,100dvh - 40px);display:flex;overflow:hidden}.code-camera-dialog .dialog-header{flex:none}.code-camera-dialog .qr-form{flex-direction:column;flex:1;min-height:0;display:flex}.code-camera-dialog .flow-toolbar{flex:none}.code-camera-dialog .camera-content{flex-direction:column;flex:1;min-height:0;display:flex}.code-camera-dialog .camera-preview{flex:1;min-height:0}.code-camera-dialog video{height:100%;position:absolute;inset:0}.code-import-dialog .qr-form p:empty{display:none}@media (height<=450px){.code-camera-dialog{padding:12px}.code-camera-dialog .dialog-header{margin-bottom:8px}.code-camera-dialog .qr-form{gap:8px}.code-camera-dialog .camera-preview{margin-top:8px}.code-camera-dialog .camera-content p{font-size:13px}}@media (height<=450px) and (width>=500px){.study-body:has(.study-board){grid-template-columns:230px minmax(0,1fr);align-content:start;column-gap:16px;display:grid}.study-body:has(.study-board)>*{grid-column:2}.study-body .study-board{grid-area:1/1/span 8;width:230px;margin:4px 0}}.app-menu .app-menu-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 20px}.app-menu-links button{min-width:0;padding:10px 8px;font-size:13px}.app-menu h3{margin:18px 0 8px;font-size:14px}.app-menu .game-list{max-height:none;margin:8px 0 16px;overflow:visible}.app-menu .app-version{flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:0;font-size:12px;display:flex}.changelog-link{color:var(--blue-dark);font-size:inherit;text-underline-offset:3px;background:0 0;border:0;padding:0 6px;text-decoration:underline}.changelog-dialog section+section{border-top:1px solid var(--border);margin-top:20px;padding-top:20px}.changelog-dialog h3{margin:0 0 8px;font-size:16px}.changelog-dialog ul{color:var(--muted);margin:0;padding-inline-start:20px;font-size:14px;line-height:1.55}.changelog-dialog li+li{margin-top:6px}.app-menu .language-setting{justify-content:space-between;align-items:center;gap:1rem;margin-block:1rem;display:flex}.language-setting select{border:1px solid var(--border);min-width:0;max-width:60%;min-height:44px;color:inherit;font:inherit;background:#fff;border-radius:.5rem;padding:.65rem}.board{aspect-ratio:1;background:#fff;border:3px solid #151a21;flex-direction:column;width:100%;display:flex;overflow:hidden;container-type:inline-size}.board-row{flex:1;grid-template-columns:repeat(9,minmax(0,1fr));min-height:0;display:grid}.board-row:not(:last-child){border-bottom:1px solid #aeb6c2}.board-row:nth-child(3),.board-row:nth-child(6){border-bottom:3px solid #151a21}.cell{min-width:0;min-height:0;color:var(--blue-dark);touch-action:manipulation;background:#fff;border:0;border-radius:0;justify-content:center;align-items:center;padding:0;font-size:6.8cqw;font-weight:500;line-height:1;display:flex;position:relative}.cell:not(:last-child){border-right:1px solid #aeb6c2}.cell:nth-child(3),.cell:nth-child(6){border-right:3px solid #151a21}.cell:disabled{color:var(--blue-dark);background:#fff}.cell.given{color:#111318;font-weight:600}.cell.related{background:#f3f7fc}.cell.same-value{background:#e8f2fc}.cell.selected{box-shadow:inset 0 0 0 2px var(--blue);z-index:1;background:#dfefff}.cell:hover:not(:disabled){background:#edf5ff}.cell.selected:hover{background:#dfefff}.cell:focus-visible{box-shadow:inset 0 0 0 3px var(--blue);outline:0}.marks{grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);font-size:2.5cqw;font-weight:500;display:grid;position:absolute;inset:3px}.mark{justify-content:center;align-items:center;display:flex}.note-indicator{border-top:6px solid #4475a3;border-left:6px solid #0000;position:absolute;top:3px;right:3px}@media (width<=799px){.cell{font-size:6.8cqw}.marks{font-size:2.5cqw;inset:2px}.board{border-width:2px}.board-row:nth-child(3),.board-row:nth-child(6){border-bottom-width:2px}.cell:nth-child(3),.cell:nth-child(6){border-right-width:2px}.note-indicator{border-top-width:5px;border-left-width:5px;top:2px;right:2px}}.cell.checked-incorrect .value{color:#b42318;text-underline-offset:3px;text-decoration-line:underline;text-decoration-style:wavy;text-decoration-thickness:2px}.cell.given.checked-incorrect .value{color:inherit;text-decoration-color:#b42318}.cell.checked-correct .value{color:#14693e;text-underline-offset:3px;text-decoration-line:underline;text-decoration-style:double;text-decoration-thickness:1px}.ocr-uncertain{color:#915500;font-size:clamp(9px,2.5cqw,13px);font-weight:700;line-height:1;position:absolute;top:2px;right:2px}.cell-paint{background:var(--cell-paint);opacity:.8;pointer-events:none;box-shadow:0 0 2px 1px color-mix(in srgb,var(--cell-paint) 40%,transparent);border-radius:48% 52% 46% 54%/51% 46% 54% 49%;position:absolute;inset:9%}.cell:nth-child(2n) .cell-paint{transform:rotate(-8deg)}.cell-paint:after{content:"";background:var(--cell-paint);opacity:.15;border-radius:45% 55% 52% 48%;position:absolute;inset:7% -2% 5% 3%}.cell .marks,.cell .value{z-index:1}.mark.excluded,.floating-dock-digit[data-mark-kind=excluded],.preview-eliminated{position:relative}.mark.excluded:not(:empty):after,.floating-dock-digit[data-mark-kind=excluded]:not(:empty):after,.preview-eliminated:not(:empty):after{content:"";pointer-events:none;background:currentColor;border-radius:1em;width:1em;height:max(1px,.075em);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-35deg);box-shadow:0 0 0 .5px #fff}.print-sheet{display:none}@page{size:auto;margin:15mm}@media print{body{color:#000;background:#fff}.floating-dock,.app-shell,.toast,dialog{display:none!important}.print-sheet{break-inside:avoid;width:175mm;max-width:100%;margin:0 auto;display:block}.print-sheet header{justify-content:space-between;align-items:center;margin-bottom:9mm;display:flex}.print-sheet h1{font-size:28pt}.print-sheet header span{font-size:14pt}.print-board{aspect-ratio:1;border:2pt solid #000;grid-template-rows:repeat(9,minmax(0,1fr));grid-template-columns:repeat(9,minmax(0,1fr));width:100%;display:grid}.print-board>span{color:#000;border-bottom:.5pt solid #666;border-right:.5pt solid #666;justify-content:center;align-items:center;font-size:25pt;display:flex}.print-board>span:nth-child(3n){border-right:2pt solid #000}.print-board>span:nth-child(9n){border-right:0}.print-board>span:nth-child(n+19):nth-child(-n+27),.print-board>span:nth-child(n+46):nth-child(-n+54){border-bottom:2pt solid #000}.print-board>span:nth-child(n+73){border-bottom:0}.print-sheet footer{justify-content:space-between;align-items:center;gap:8mm;margin-top:7mm;display:flex}.print-sheet footer p{font-size:10pt;line-height:2}.print-sheet img{width:29mm;height:29mm;image-rendering:pixelated}}
