:root{font-family:Arial,Helvetica,sans-serif;color-scheme:dark;color:#fbefd9;background:#121931;--border:#526486;--stem:#c8d5e3;--gold:#ffce91}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;overflow:hidden}button{font:inherit}.game{width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;gap:11px;padding:max(12px,env(safe-area-inset-top)) max(15px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left));overflow:hidden;background:radial-gradient(ellipse at 8% 0,#343951,#121931 65%)}.game:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}.game:fullscreen{width:100%;height:100%}header{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:2px 2px 10px;border-bottom:1px solid var(--border);flex:none}.kicker{font:700 10px/1.2 monospace;letter-spacing:.17em;color:var(--gold)}h1{font:400 clamp(26px,4.5vw,53px)/1.03 Georgia,serif;margin:3px 0 0}h1 i{color:var(--gold)}button{background:#344360;color:#fbefdf;border:1px solid #6f80a0;border-radius:7px;padding:4px 8px;min-height:36px;cursor:pointer;font-size:12px;font-weight:700;white-space:nowrap}button:hover:not(:disabled){background:#495d7e}button:disabled{cursor:default;opacity:.43}button:focus-visible{outline:2px solid #ffce91;outline-offset:2px}header>button{background:#202a45}.work{display:grid;grid-template-columns:minmax(0,1fr) minmax(313px,408px);gap:11px;flex:1;min-height:0}.stage{position:relative;isolation:isolate;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--border);border-radius:15px;background:#111b35}.gl,.fallback{position:absolute;inset:0}.gl canvas{width:100%;height:100%;display:block;cursor:crosshair;touch-action:manipulation}.fallback{display:grid;place-items:center;padding:14px}.fallback .board{width:min(95%,570px);max-height:83%}.stage-top,.stage-bottom{position:absolute;left:11px;right:11px;display:flex;gap:5px;justify-content:space-between;pointer-events:none;font:700 9px monospace;letter-spacing:.1em;color:#e6d5bc}.stage-top{top:11px}.stage-bottom{bottom:11px}.stage-top span,.stage-bottom span{padding:5px;border:1px solid #4d5b7c;background:#1b2742;border-radius:4px}.desk{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#7281a1 #212c45;border:1px solid var(--border);border-radius:15px;background:#232f49;display:flex;flex-direction:column;gap:8px;padding:12px}.desk>*{flex:none}.desk-head{display:flex;justify-content:space-between;align-items:center}.desk-head strong{display:block;margin-top:3px;font:24px/1.09 Georgia,serif}.position{text-align:right;font:700 15px monospace;color:var(--gold)}.position small{display:block;margin-top:2px;font-size:9px;color:var(--stem)}.intro,.receipt p{margin:1px 0;font-size:12px;line-height:1.33;color:var(--stem)}.links{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.link{border:1px solid #566686;border-radius:8px;padding:5px 6px;display:flex;flex-direction:column;gap:2px;background:#2b3551;font:700 11px monospace}.link small{color:#c9d6e7}.link b{color:#dac9f1}.link[data-awake=true] b{color:#b7ebc1}.receipt{display:grid;gap:4px;padding:8px 9px;border-radius:8px;border:1px solid #697799;border-left:4px solid #839ab8;background:#2d3b58}.receipt[data-mode=receipt]{border-left-color:#ffc985}.receipt[data-mode=won]{border-left-color:#a9e9c7}.receipt strong{font:700 16px Georgia,serif}.receipt b{color:#fee0b8}.delta{display:flex;align-items:center;justify-content:space-between;gap:4px;font:700 9px monospace;color:#fde6c9;letter-spacing:.045em}.continue{min-height:32px;background:#f1c08a;border-color:#ffdfaf;color:#261e31;margin-top:3px}.continue:hover:not(:disabled){background:#ffd49d}.directions,.tools{display:grid;gap:5px}.directions{grid-template-columns:repeat(4,1fr)}.directions button{font-size:15px}.directions span{font-size:10px;margin-left:4px}.tools{grid-template-columns:1fr 1fr 1.25fr}.board{width:100%;max-height:190px;background:#192841;border:1px solid #5b6e91;border-radius:9px;display:block}.board.large{max-height:83%}.board text{font:700 7.3px monospace;fill:#ede0c8;pointer-events:none}.board .tile-text{fill:#17253b}.board .tile-text.sleep{fill:#fff3e9}.board .inset-label{fill:#ffcd92;font-size:8px}.cell{cursor:pointer}.proofmark{pointer-events:none}.notice{font-size:12px}.notice button{min-height:25px}@media(max-width:695px)and (orientation:portrait){.work{grid-template-columns:1fr;grid-template-rows:minmax(130px,39%) minmax(0,1fr);gap:7px}.game{gap:7px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.desk{padding:8px;gap:6px}.stage-bottom span:first-child{display:none}}@media(max-height:480px)and (orientation:landscape){.game{gap:6px}.work{grid-template-columns:minmax(0,1fr) minmax(268px,45%);gap:7px}header{padding-bottom:5px}h1{font-size:26px}.desk{padding:8px;gap:6px}.desk-head strong{font-size:20px}.stage-bottom span:first-child{display:none}}
