@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--bg:#f6f5ef;--card:#fffefb;--board:#fafbf7;--ink:#263d35;--muted:#7d867e;--green:#2c5949;--green-hover:#214738;--light-green:#eaf0e1;--clue:#dce8c8;--line:#e6e9de;--hex:#fffefb;--hex-line:#ccd5bf;--path:#c3d4b1;--red:#a94f47;--red-bg:#f9e6e0;--shadow:0 8px 32px #2b493a04;--font:'DM Sans',system-ui,sans-serif;--heading:'Manrope',var(--font)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button,svg,input{ -webkit-tap-highlight-color:transparent}button{color:inherit}button:focus-visible,input:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #a4b990;outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:none}a{color:inherit;text-decoration:none}.app-shell{max-width:1160px;padding:0 42px;margin:auto}.topbar{height:94px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:28px}.brand{font-family:var(--heading);font-size:33px;letter-spacing:-1.8px;font-weight:800;display:flex;gap:11px;align-items:center}.brand-icon{font-size:43px;font-weight:500;line-height:1;letter-spacing:-3px}.brand-dot{color:#9fae78}.tagline{letter-spacing:2.4px;font-size:9px;color:var(--muted);padding-left:26px;border-left:1px solid var(--line)}.header-actions{display:flex;align-items:center;gap:15px;margin-left:auto}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:11px 18px;border-radius:10px;font-size:12px;font-weight:650;transition:background .15s,transform .15s}.button:active:not(:disabled){transform:translateY(1px)}.primary{background:var(--green);color:#fffef7}.primary:hover:not(:disabled){background:var(--green-hover)}.subtle:hover{background:var(--light-green)}.subtle{color:var(--ink)}.outline{border:1px solid var(--line);background:var(--card)}.outline:hover:not(:disabled){border-color:var(--hex-line);background:var(--board)}.full{width:100%}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;transition:background .15s;color:var(--muted);flex-shrink:0}.icon-button:hover:not(:disabled){background:var(--light-green);color:var(--green)}.icon-button svg{width:18px;height:18px}.intro{display:flex;justify-content:space-between;align-items:center;padding:36px 0 29px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:2px;color:var(--muted);display:flex;align-items:center;gap:8px;margin:0 0 12px}.tiny-dot{width:5px;height:5px;border-radius:50%;background:#94a97a}h1{font-family:var(--heading);font-weight:650;font-size:34px;line-height:1.2;letter-spacing:-1.35px;margin:0} .intro-text{font-size:13px;color:var(--muted);margin:10px 0 0}.intro-art{font-size:76px;line-height:1;color:#b7c6a3;transform:rotate(-17deg);padding-right:25px;font-family:Georgia,serif}.game-layout{display:grid;grid-template-columns:252px minmax(0,1fr);gap:24px;align-items:start}.sidebar{display:grid;gap:16px}.side-card{border:1px solid var(--line);background:var(--card);border-radius:15px;padding:20px;box-shadow:var(--shadow)}.section-title{font-size:12px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:8px}.section-title svg{color:var(--muted);width:16px;height:16px}.muted{color:var(--muted)}.small{font-size:11px;line-height:1.55}.setup-card>p{margin:6px 0 17px}.difficulty-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.level-button{border:1px solid var(--line);border-radius:10px;text-align:left;padding:10px 12px;font-size:11px;font-weight:600;transition:background .15s,border-color .15s}.difficulty-dots{display:block;letter-spacing:3px;font-size:7px;line-height:1.4;margin-bottom:5px;color:#a4ae98}.level-button.active{background:var(--light-green);border-color:#bfceae;color:var(--green)}.level-button.active .difficulty-dots{color:#6c8655}.level-button:hover{border-color:var(--hex-line)}.time-pill{font-size:10px;font-weight:500;background:var(--bg);padding:5px 8px;border-radius:6px;font-variant-numeric:tabular-nums;color:var(--muted)}.progress-stats{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin-top:14px}.progress-stats strong{font-family:var(--heading);font-size:27px;line-height:1.4;font-weight:600}.progress-stats>span>.muted{font-size:12px}.progress-track{height:5px;border-radius:5px;background:var(--light-green);margin:10px 0 12px;overflow:hidden}.progress-track>div{height:100%;background:#849c65;border-radius:5px;width:0;transition:width .2s}.progress-footer{display:flex;justify-content:space-between;gap:5px;color:var(--muted);font-size:9px}.progress-footer strong{color:var(--green);font-weight:600;white-space:nowrap}.preferences-card>.section-title{margin-bottom:12px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;cursor:pointer;padding:9px 0}.toggle-row strong{display:block;font-size:11px;font-weight:550}.toggle-row .small{display:block;font-size:9px;margin-top:4px;line-height:1.5}.toggle-row input{position:absolute;right:0;opacity:0;width:32px;height:22px}.switch{width:30px;height:18px;background:#d9ddd3;border-radius:12px;position:relative;flex-shrink:0;transition:background .2s}.switch:before{content:'';position:absolute;background:#fff;width:12px;height:12px;border-radius:50%;top:3px;left:3px;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle-row input:checked+.switch{background:var(--green)}.toggle-row input:checked+.switch:before{transform:translateX(12px)}.toggle-row input:focus-visible+.switch{outline:3px solid #a4b990;outline-offset:3px}.side-divider{border-top:1px solid var(--line);margin:15px 0}.verified-note{display:flex;justify-content:center;align-items:center;gap:10px;color:var(--muted);font-size:10px;line-height:1.7;padding:5px}.verified-note svg{width:19px;height:19px;color:#859a6b}.verified-note strong{font-weight:500;color:var(--ink)}.game-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--card);box-shadow:var(--shadow)}.board-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px 8px}.board-title{display:flex;align-items:center;gap:10px}.level-pill{font-size:10px;font-weight:650;background:var(--light-green);color:var(--green);border-radius:6px;padding:6px 9px}.board-tools{display:flex;align-items:center;gap:3px}.board-wrap{position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,var(--board) 0%,var(--card) 75%);min-height:400px;padding:5px 32px 4px}.board-wrap>svg{display:block;width:100%;height:auto;max-width:505px;aspect-ratio:1.08;fill:none;stroke:none;overflow:visible}.hex-cell{cursor:pointer;outline:none}.hex-shape{fill:var(--hex);stroke:var(--hex-line);stroke-width:1.25;stroke-linejoin:round;transition:fill .16s,stroke .16s}.hex-cell.clue .hex-shape{fill:var(--clue);stroke:#bacaa5}.hex-cell.placed .hex-shape{fill:var(--light-green)}.hex-cell:not(.clue):hover .hex-shape{fill:var(--light-green);stroke:#8fa776}.hex-cell.selected .hex-shape{fill:#e6eedb;stroke:var(--green);stroke-width:2.5}.hex-cell:focus-visible .hex-shape{stroke:var(--green);stroke-width:3}.hex-cell.error .hex-shape{fill:var(--red-bg);stroke:#cc8a7d}.hex-cell.error .cell-number{fill:var(--red)}.hex-cell.related .hex-shape{stroke:#779762;stroke-width:2}.cell-number{fill:var(--ink);font-family:var(--heading);font-size:17px;font-weight:550;text-anchor:middle;dominant-baseline:central;pointer-events:none;stroke:none}.clue .cell-number{font-weight:750}.clue{cursor:default}.endpoint-ring{fill:none;stroke:#94a77c;stroke-width:1.1;pointer-events:none}.center-shape{fill:var(--green);stroke:var(--green);stroke-width:1.2}.center-emblem{fill:none;stroke:#d9e5c8;stroke-width:1.6;opacity:.8}.path-line{stroke:var(--path);stroke-width:4;stroke-linecap:round;opacity:.65;pointer-events:none}.link-diamond{fill:var(--green);stroke:var(--card);stroke-width:.8;pointer-events:none}.board-legend{display:flex;align-items:center;justify-content:center;gap:23px;padding:8px 16px 22px;color:var(--muted);font-size:9px}.board-legend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.board-legend i{display:inline-block;width:9px;height:9px}.legend-clue{background:var(--clue);border-radius:3px}.legend-diamond{background:var(--green);transform:rotate(45deg);width:6px!important;height:6px!important;margin-right:3px}.legend-empty{border:1px solid var(--hex-line);border-radius:3px}.entry-panel{border-top:1px solid var(--line);padding:15px 24px 12px;background:var(--board)}.entry-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.entry-actions{display:flex;gap:2px}.entry-actions .icon-button{width:30px;height:30px}.number-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0}.number-input-wrap{display:flex;align-items:center;gap:12px}.number-input-wrap input{width:58px;height:46px;appearance:textfield;-moz-appearance:textfield;text-align:center;font-size:25px;font-weight:650;font-family:var(--heading);border:1px solid var(--hex-line);border-radius:10px;background:var(--card);color:var(--ink);padding:3px}.number-input-wrap input::-webkit-inner-spin-button{appearance:none}.number-toolbar>.button{margin-left:10px}.number-tray{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:8px 0 5px;max-height:152px;overflow:auto;scrollbar-width:thin}.number-chip{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;font-size:11px;color:var(--ink);background:var(--card);font-variant-numeric:tabular-nums}.number-chip.used{color:var(--muted);opacity:.55;background:var(--bg)}.number-chip.fixed{border-style:dashed;cursor:default;opacity:.3}.number-chip.active{background:var(--green);color:white;border-color:var(--green);opacity:1}.number-chip:hover:not(:disabled){border-color:#9aaa86}.keyboard-hint{text-align:center;font-size:9px;color:var(--muted);margin:13px 0 0}.keyboard-hint span{margin:0 10px}kbd{font:inherit;font-size:9px;border:1px solid var(--line);background:var(--card);border-radius:3px;padding:1px 4px;margin:0 1px}.footer{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px;padding:25px 2px 30px}.footer button{font-size:9px;display:flex;gap:8px;align-items:center;letter-spacing:1px}.footer code{letter-spacing:.5px}.footer svg{width:12px;height:12px}.mobile-settings{display:none}.loading-overlay{position:absolute;inset:0;z-index:3;background:var(--card);display:flex;flex-direction:column;gap:13px;align-items:center;justify-content:center;border-radius:10px}.loading-overlay[hidden]{display:none}.loading-overlay strong{font-family:var(--heading);font-size:16px;font-weight:600}.loading-hex{color:var(--green);font-size:64px;animation:rotate 4s linear infinite}.loading-track{height:3px;width:150px;background:var(--line);overflow:hidden;border-radius:4px;margin-top:6px}.loading-track span{height:100%;display:block;width:6%;background:#849c65;transition:width .15s}.loading-overlay.failed .loading-hex{animation:none;color:var(--red)}.loading-overlay.failed .loading-track{display:none}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--green);color:white;border:1px solid #ffffff18;border-radius:12px;padding:13px 20px;z-index:20;box-shadow:0 8px 30px #213b3520;font-size:12px;max-width:min(520px,90vw);text-align:center;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s;pointer-events:none}.toast.visible{opacity:1;visibility:visible;transform:translate(-50%,0)}.toast.error-toast{background:#8a453d}dialog{color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:34px;background:var(--card);width:min(450px,calc(100% - 32px));box-shadow:0 24px 100px #213b3520;max-height:90dvh;overflow:auto}dialog::backdrop{background:#1c382c55;backdrop-filter:blur(4px)}dialog h2{font-family:var(--heading);font-weight:650;font-size:29px;letter-spacing:-1px;line-height:1.25;margin:0 0 17px}dialog p{line-height:1.7;color:var(--muted);font-size:12px}dialog strong{color:var(--ink)}.dialog-close{position:absolute;right:12px;top:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}.dialog-actions .button{font-size:11px;padding:10px 14px}.rule-demo{display:flex;justify-content:center;gap:0;padding:10px 0 15px}.rule-demo span{width:53px;height:58px;display:grid;place-items:center;background:var(--clue);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);margin-left:2px;font-size:22px;font-family:var(--heading);font-weight:600}.rule-demo span:nth-child(even){transform:translateY(29px)}.rules-list{list-style:none;padding:0;margin:20px 0}.rules-list li{display:flex;align-items:center;gap:13px;margin:17px 0;font-size:12px;line-height:1.6}.rule-symbol{width:32px;height:34px;display:grid;place-items:center;flex-shrink:0;font-size:26px;color:var(--green)}.clue-symbol{background:var(--clue);border-radius:7px;font-size:17px}.diamond-symbol{font-size:18px}.win-emblem{font-size:60px;color:#97aa72;text-align:center;margin-bottom:20px}#win-dialog{text-align:center}#win-dialog .eyebrow{justify-content:center}.win-stats{display:flex;justify-content:space-around;margin:28px 0;gap:10px}.win-stats span{font-size:9px;color:var(--muted);display:grid;gap:6px}.win-stats strong{font-family:var(--heading);font-size:18px;font-weight:600}.option-action{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:17px 0;border-bottom:1px solid var(--line)}.option-action>svg:first-child{color:var(--green);width:22px;height:22px}.option-action>svg:last-child{margin-left:auto;color:var(--muted);width:14px}.option-action strong{font-size:12px;display:block;font-weight:600}.option-action span span{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:4px}.option-action:hover strong{color:var(--green)}.option-path{margin-top:13px}.field-label{display:block;font-size:10px;margin:22px 0 8px;font-weight:600}.text-input{width:100%;border:1px solid var(--hex-line);border-radius:9px;background:var(--board);color:var(--ink);padding:12px;font-size:11px}.field-error{color:var(--red);min-height:16px;margin:7px 0;font-size:10px}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.game-card.solved{border-color:#b9cda4}.game-card.revealed .hex-cell:not(.clue) .cell-number{fill:var(--muted)}
[data-theme=dark]{--bg:#18221e;--card:#1f2c25;--board:#1d2922;--ink:#e3ead9;--muted:#99a798;--green:#6f966b;--green-hover:#81a779;--light-green:#2d3f2f;--clue:#415637;--line:#354335;--hex:#243129;--hex-line:#53664b;--path:#53734b;--red:#f2b2a0;--red-bg:#543931;--shadow:none}[data-theme=dark] .hex-cell.selected .hex-shape{fill:#405637;stroke:#b2cb98}[data-theme=dark] .hex-cell.clue .hex-shape{stroke:#687c50}[data-theme=dark] .center-shape{fill:#3e6247;stroke:#6c805b}[data-theme=dark] .primary{color:#112217}[data-theme=dark] .number-chip.active{color:#112217}[data-theme=dark] .switch:before{background:#e3ead9}
@keyframes rotate{to{transform:rotate(360deg)}}@media(min-width:1400px){.app-shell{padding-top:15px}.intro{padding-top:43px;padding-bottom:35px}}@media(max-width:920px){.app-shell{padding:0 24px}.game-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.side-card{padding:16px}.board-wrap{padding:8px 14px;min-height:350px}.board-header{padding:16px 18px 8px}.board-legend{gap:14px;font-size:8px}.entry-panel{padding:12px 18px}.keyboard-hint{font-size:8px}.number-toolbar{gap:4px}.number-input-wrap{gap:7px}.number-toolbar>.button{margin-left:7px}}@media(max-width:700px){.app-shell{padding:0 16px}.topbar{height:72px;gap:10px}.brand{font-size:28px;gap:7px}.brand-icon{font-size:34px}.tagline{display:none}.header-actions{gap:3px}.header-actions .button{padding:8px;font-size:10px}.header-actions .button svg{width:16px;height:16px}.intro{padding:25px 0 21px}.eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:10px}h1{font-size:27px;letter-spacing:-1px}.intro-text{font-size:12px;margin-top:8px}.intro-art{font-size:54px;padding-right:3px}.game-layout{display:flex;flex-direction:column;gap:13px}.sidebar{display:contents}.setup-card{order:0;width:100%;padding:12px;border-radius:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.setup-card .section-title,.setup-card>p{display:none}.difficulty-options{display:flex;gap:4px;margin:0;align-items:center}.level-button{border:0;padding:7px 9px;text-align:center;border-radius:7px;font-size:10px;flex:1;min-width:0}.difficulty-dots{font-size:5px;letter-spacing:1.5px;margin-bottom:3px}.setup-card>.button{font-size:10px;width:auto;min-height:36px;padding:7px 11px;gap:6px}.setup-card>.button svg{width:14px;height:14px}.game-card{order:1;width:100%;border-radius:14px}.board-wrap{min-height:0;padding:8px 10px 3px}.board-wrap>svg{max-width:490px}.board-header{padding:12px 15px 1px}.board-title{gap:8px}.board-title .small{font-size:10px}.board-tools{gap:1px}.board-tools .icon-button{width:32px;height:32px}.board-legend{padding:7px 10px 17px;font-size:8px;gap:16px}.entry-panel{padding:11px 15px 14px}.entry-heading{font-size:10px}.number-toolbar{gap:8px;margin:10px 0}.number-input-wrap{gap:10px}.number-input-wrap input{height:42px;width:50px;font-size:23px}.number-toolbar>.button{font-size:11px;margin-left:4px;padding:10px 14px;min-height:40px}.number-tray{gap:5px;max-height:132px}.number-chip{width:30px;height:30px;font-size:10px}.keyboard-hint{display:none}.progress-card{order:3;width:100%;padding:14px 17px}.progress-card .progress-stats{margin-top:5px}.progress-stats strong{font-size:22px}.progress-card .progress-track{margin:5px 0 9px}.preferences-card{display:none}.verified-note{order:4;width:100%;padding:3px 0 0;gap:7px;font-size:9px}.verified-note br{display:none}.verified-note strong{margin-left:4px}.verified-note svg{width:16px;height:16px}.mobile-settings{order:2;display:block;width:100%;padding:1px 4px}.mobile-toggle{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);min-height:30px}.mobile-toggle input{accent-color:var(--green);width:17px;height:17px}.footer{padding:22px 2px;font-size:9px;gap:10px}.footer button{font-size:8px;letter-spacing:0;gap:5px}.toast{bottom:15px;font-size:11px;width:max-content}.loading-overlay strong{font-size:14px}dialog{padding:29px 24px}dialog h2{font-size:27px}.dialog-actions{flex-wrap:wrap}.number-input-wrap .small{font-size:10px}}@media(max-width:370px){.app-shell{padding:0 10px}.header-actions .button span{display:none}.intro-art{display:none}h1{font-size:25px}.setup-card{gap:5px;padding:9px}.level-button{padding:7px 5px}.setup-card>.button{font-size:9px;padding:7px 8px}.setup-card>.button svg{display:none}.board-legend{gap:10px;font-size:7px}.number-toolbar{gap:3px}.number-input-wrap{gap:7px}.number-toolbar>.button{padding:8px 10px}.footer>span{max-width:140px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(pointer:coarse){.entry-actions .icon-button{width:36px;height:36px}.number-chip{min-width:32px;min-height:34px}}

/* The active number and correction tools stay next to the board on touch screens. */
.tap-guide{display:flex;align-items:center;gap:14px;margin:8px 24px 4px;padding:8px 12px;background:var(--light-green);border:1px solid var(--line);border-radius:12px}.tap-number-picker,.tap-actions{display:flex;align-items:center;gap:4px}.tap-current{min-width:42px;text-align:center;display:flex;flex-direction:column;gap:1px}.tap-current>span{font-size:8px;line-height:1.2;color:var(--muted)}.tap-current strong{font-size:25px;line-height:1.1;font-weight:700;font-family:var(--heading);font-variant-numeric:tabular-nums;color:var(--green)}.tap-instruction{flex:1;min-width:0;font-size:11px;color:var(--green);line-height:1.4}.tap-guide .icon-button{width:40px;height:40px;color:var(--green)}.tap-guide .icon-button:hover:not(:disabled){background:var(--card)}.hex-cell{touch-action:manipulation}.hex-cell:not(.clue):active .hex-shape{fill:var(--clue);stroke:var(--green)}
@media(max-width:920px){.tap-guide{margin-left:18px;margin-right:18px;gap:8px}.tap-instruction{font-size:10px}}
@media(max-width:700px){.tap-guide{margin:8px 12px 3px;padding:6px;gap:7px}.tap-guide .icon-button{width:44px;height:44px}.tap-number-picker,.tap-actions{gap:0}.tap-current{min-width:37px}.tap-instruction{font-size:10px;max-width:105px}.tap-actions{margin-left:auto}.number-toolbar>.button{display:none}.intro{padding-top:20px;padding-bottom:17px}.board-header{padding-top:10px}}
@media(max-width:370px){.tap-instruction{display:none}}

/* Board-first mobile play, optional distraction-free view, and number sheets. */
.tap-current{padding:0;border-radius:8px;cursor:pointer}.tap-current:hover{background:var(--card)}.board-wrap{overflow:hidden;touch-action:none}.board-wrap>svg{overflow:hidden;touch-action:none}.hex-cell{touch-action:none}.clue{cursor:pointer}.hex-cell.anchor .hex-shape{stroke:var(--green);stroke-width:3}.hex-cell.hint-highlight .hex-shape{stroke:#bb9141;stroke-width:3;fill:#f1e8c9}.hex-cell.last-placed:not(.error) .hex-shape{animation:placement-pulse .85s ease-out}.board-utility{display:flex;align-items:center;justify-content:space-between;padding:3px 24px 8px;gap:12px}.direction-button{font-size:10px;font-weight:650;min-height:36px;border:1px solid var(--line);padding:6px 10px;border-radius:8px;background:var(--board)}.zoom-controls{display:flex;align-items:center;gap:1px}.zoom-controls .icon-button{width:34px;height:34px}.zoom-reset{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;padding:7px;min-width:51px;min-height:34px;border-radius:7px}.zoom-reset:hover{background:var(--light-green)}.compact-summary{display:none;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);padding:7px 20px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.calibration-note{text-align:center;font-size:8px;color:var(--muted);margin:0 12px 8px}.palette-manual{display:flex;align-items:center;gap:12px;margin:16px 0}.palette-manual input{width:65px;min-height:44px;border:1px solid var(--hex-line);border-radius:9px;padding:7px;background:var(--board);color:var(--ink);font-size:22px;text-align:center;font-weight:650}.palette-tray{max-height:45dvh;padding:8px 0;gap:7px;justify-content:flex-start}.palette-tray .number-chip{width:39px;height:42px;font-size:12px}.hint-detail{border-left:2px solid #bb9141;padding-left:12px}.hint-detail:empty{display:none}.hint-sheet::backdrop{background:#173e2920;backdrop-filter:none}body.focus-mode{overflow:hidden}.focus-mode .game-card{position:fixed;inset:0;z-index:6;width:100%;height:100dvh;max-width:none;border-radius:0;border:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.focus-mode .board-header{flex-shrink:0;padding:8px 16px 0}.focus-mode .tap-guide{flex-shrink:0;margin:5px 12px}.focus-mode .board-wrap{flex:1;min-height:0;padding:4px 8px}.focus-mode .board-wrap>svg{width:100%;height:100%;max-width:none;aspect-ratio:auto}.focus-mode .board-utility{flex-shrink:0;padding:4px 14px}.focus-mode .entry-panel,.focus-mode .board-legend,.focus-mode .calibration-note{display:none}.focus-mode .compact-summary{display:flex;flex-shrink:0}.focus-mode #focus-btn{background:var(--light-green);color:var(--green)}[data-theme=dark] .hex-cell.hint-highlight .hex-shape{fill:#514a2d;stroke:#d4b264}
@keyframes placement-pulse{0%{stroke:var(--green);stroke-width:4;fill:var(--clue)}100%{stroke:var(--hex-line);stroke-width:1.25;fill:var(--light-green)}}
@media(max-width:700px){.entry-panel{display:none}.progress-card{display:none}.compact-summary{display:flex}.intro{padding:17px 0 13px}.intro h1{font-size:24px}.intro .eyebrow{margin-bottom:7px}.intro-art,.intro-text{display:none}.topbar{height:62px}.board-header{padding-left:12px;padding-right:9px}.board-tools .icon-button{width:32px;height:36px}.board-utility{padding:4px 12px 5px;gap:6px}.direction-button{min-height:40px;font-size:9px}.board-utility .icon-button{width:40px;height:40px}.zoom-reset{min-height:40px;font-size:9px}.calibration-note{font-size:8px;margin:6px 12px 8px}.board-legend{padding-bottom:12px}.bottom-sheet{width:100%;max-width:520px;margin:auto auto 0;border-radius:20px 20px 0 0;padding:27px 24px calc(20px + env(safe-area-inset-bottom));max-height:85dvh}.bottom-sheet h2{font-size:23px}.bottom-sheet .dialog-actions{margin-top:18px}.palette-tray .number-chip{width:calc((100% - 42px)/7);min-width:34px;min-height:42px}.mobile-settings{padding:0 4px}.verified-note{padding-top:0}.footer{padding-top:17px}.focus-mode .bottom-sheet{z-index:10}}
@media(max-height:520px){.focus-mode .board-header{padding-top:2px}.focus-mode .tap-guide{margin-top:2px;padding-top:2px;padding-bottom:2px}.focus-mode .tap-guide .icon-button{height:34px}.focus-mode .board-utility{padding-top:0;padding-bottom:0}.focus-mode .compact-summary{padding-top:3px;padding-bottom:3px}}

/* The completed route fills in number order before the victory summary opens. */
:root{--win-fill:#efe6c4;--win-stroke:#ba9d53;--win-path:#b38732}
[data-theme=dark]{--win-fill:#49432d;--win-stroke:#baab69;--win-path:#e2bf68}
.game-card.solved .hex-cell.win-cell .hex-shape{fill:var(--win-fill);stroke:var(--win-stroke)}
.hex-cell.win-cell{cursor:default;--win-start:var(--light-green)}
.hex-cell.win-cell.clue{--win-start:var(--clue)}
.victory-path{fill:none;stroke:var(--win-path);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0;opacity:.65;pointer-events:none}
.game-card.celebrating .hex-cell.win-cell .hex-shape{animation:victory-cell 220ms ease-out both}
.game-card.celebrating .victory-path{animation-name:victory-trace;animation-timing-function:linear;animation-fill-mode:both}
.game-card.solved .endpoint-ring{stroke:var(--win-path);stroke-width:1.8}
#win-dialog .win-emblem{color:var(--win-path)}
@keyframes victory-cell{from{fill:var(--win-start);stroke:var(--hex-line)}to{fill:var(--win-fill);stroke:var(--win-stroke)}}
@keyframes victory-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
