.game-shell-icon svg,.weaver svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.game-shell-stage{height:740px;padding:14px 20px;background:#f3f1e9}
.weaver{max-width:520px;height:100%;min-height:0;margin:auto;color:#273c34;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:40px 36px 34px 20px auto minmax(0,1fr) 22px 40px 144px 14px;gap:6px;grid-template-areas:'top' 'title' 'variant' 'meta' 'checkpoint' 'board' 'notice' 'tools' 'keys' 'foot'}
.weaver button{border:1px solid #d9ddcf;background:#fffdf7;border-radius:9px;padding:9px 13px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.weaver button:hover{background:#e5eadb}.weaver button:disabled{opacity:.38;cursor:default}
.topline{grid-area:top;display:flex;justify-content:space-between;align-items:center}
.switch{display:inline-flex;padding:3px;background:#e7e9dd;border:1px solid #d9ddcf;border-radius:11px;gap:3px}
.switch button{border:0;background:transparent;padding:5px 15px}
.switch button[aria-pressed=true]{background:#fff;box-shadow:0 2px 6px #263b3410;color:#173f35}
.weaver .round{height:34px;width:34px;padding:7px;border-radius:50%}
.title{grid-area:title;text-align:center;margin:0;align-self:center}
.title>.eyebrow,.title>p:last-child{display:none}
.title h2{font-family:Georgia,serif;font-weight:400;font-size:32px;letter-spacing:-1.6px;line-height:1.1;margin:0}
.title h2 span{color:#a56d43}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#797962}
.variant{grid-area:variant;width:max-content;margin:auto;align-self:center}
.variant button{min-width:105px;padding-block:3px}
.metadata{grid-area:meta;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#748069}
#checkpoint-note{grid-area:checkpoint;width:100%;padding:4px 9px;background:#f0e5cc;border:1px solid #d9c39f;border-radius:7px;text-align:center;font-size:10px;color:#786038}
#checkpoint-note strong{letter-spacing:1.5px}#checkpoint-note.visited{background:#e4ebd9;color:#3e6546;border-color:#b7c4a4}
/* One continuous ladder: all four-letter rows use the same tile size. */
.board{grid-area:board;--tile-size:44px;align-self:start;width:min(100%,300px);max-height:calc(100% - 8px);min-height:0;margin:8px auto 0;padding:16px 32px 18px;border:1px solid #e3dfd1;border-radius:19px;background:#fcfbf5;box-shadow:0 7px 18px #4b543b09;display:flex;flex-direction:column;gap:11px;overflow:auto;scrollbar-width:thin;scroll-padding-block:16px;overscroll-behavior:contain}
.endpoint,.ladder-step,#entry-wrap{position:relative;flex:none;min-height:var(--tile-size);padding:0;margin:0;display:block}
.endpoint::before,.ladder-step::before,#entry-wrap::before{content:'';position:absolute;left:-20px;top:calc(var(--tile-size)/2 - 4px);width:8px;height:8px;border-radius:50%;background:#53745c;z-index:1}
.endpoint::after,.ladder-step::after,#entry-wrap::after{content:'';position:absolute;left:-17px;top:calc(var(--tile-size)/2 + 4px);width:2px;height:calc(var(--tile-size) + 11px);background:#dbe0d1;pointer-events:none}
.endpoint.target::before{background:#254f3b}.endpoint.target::after{display:none}
#entry-wrap::before{background:#fcfbf5;border:2px solid #53745c;left:-22px;width:11px;height:11px;top:calc(var(--tile-size)/2 - 5px)}
.word-row{display:flex;justify-content:center;gap:7px}
.tile{display:grid;place-items:center;flex:none;width:var(--tile-size);height:var(--tile-size);border:1px solid #d9ddcf;border-radius:8px;background:#fffef8;color:#354b3f;font:600 24px/1 Inter,sans-serif;text-transform:uppercase;box-shadow:0 3px 0 #d9ddcf}
.tile.match{background:#53745c;color:#fff;border-color:#53745c;box-shadow:0 3px 0 #3b5a44}
.endpoint:not(.target) .tile{background:#e8ddc5;border-color:#d6c7ac;box-shadow:0 3px 0 #d6c7ac}
.target .tile{background:#254f3b;color:#fffdf7;border-color:#254f3b;box-shadow:0 3px 0 #173a2a}
.endpoint>span,.draft-label,.ladder-step>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#ladder{display:contents}
.ladder-step.checkpoint .word-row{outline:2px solid #bd914c;outline-offset:4px;border-radius:6px;width:max-content;margin:auto}
#draft-row{min-height:var(--tile-size);cursor:text;outline:none;border-radius:7px}
#draft-row .draft-tile:not(.filled){background:#f1eee1;border-color:#e2ddcb;box-shadow:none}
#draft-row .draft-tile.cursor{outline:2px solid #8f9f6d;outline-offset:-2px}
#notice{grid-area:notice;text-align:center;color:#708063;font-size:11px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#notice.error{color:#a34432}
.tools{grid-area:tools;display:flex;justify-content:center;align-items:center;gap:7px}
.tools button{height:38px;padding:8px 13px}
.tools #undo,.tools #restart{font-size:0;gap:0;width:36px;padding:8px}
.tools #hint{background:#e5ecdd;border-color:#cdd8bd}
.tools #submit{background:#254f3b;color:#fff;border-color:#254f3b}
#keyboard{grid-area:keys;width:100%;max-width:520px;margin:auto}
.key-row{display:flex;justify-content:center;gap:5px;margin-bottom:6px}
.key-row button{padding:0;flex:1;min-width:0;max-width:43px;height:42px;border:1px solid #dddccf;border-bottom:3px solid #d0d4c3;border-radius:7px;background:#fffdf7;font-size:15px}
.key-row button.wide{max-width:64px;flex:1.6;font-size:10px}
.prototype-note{grid-area:foot;text-align:center;font-size:9px;line-height:14px;color:#839076}
.weaver.is-complete>.board,.weaver.is-complete>.tools,.weaver.is-complete>#notice{display:none}
#results{grid-column:1;grid-row:6 / 10;min-height:0;overflow:auto;margin:0;padding:26px 20px;border:1px solid #d7dcc9;border-radius:15px;background:#fffdf4;text-align:center}
#result-title{font-size:30px;margin:12px 0}#result-summary{font-size:13px;color:#697561}
.result-actions{display:flex;justify-content:center;gap:8px;margin-top:22px;flex-wrap:wrap}
.result-actions button{background:#254f3b;color:#fff;border-color:#254f3b}.result-actions #next{background:#e8ddc5;color:#55442d;border-color:#d6c7ac}
#reset-clock{margin-top:16px;font-size:12px;color:#697561;font-variant-numeric:tabular-nums}
#solution{margin-top:22px;font-size:12px}#solution summary{cursor:pointer}#solution-route{margin-top:12px;line-height:2;letter-spacing:1px;overflow-wrap:anywhere}
.breadcrumbs{display:flex;gap:12px;font-size:12px;color:var(--muted);margin:28px auto 0;max-width:760px}.game-page-heading{margin-top:18px}
.how{max-width:760px;margin:40px auto 56px}.how h2{font-size:25px}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:24px}.how h3{font-size:18px;margin-bottom:10px}.how p{font-size:14px;color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#help-dialog{position:fixed;inset:0;margin:auto;width:min(500px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:32px;border:1px solid var(--line);border-radius:18px;background:#f7f8f5;color:var(--ink)}
#help-dialog::backdrop{background:#14221b99}#help-dialog #close-help{float:right;border:0;background:#e5eddb;font-size:24px}#help-dialog h2{margin:18px 0}#help-dialog p{font-size:14px;margin-bottom:18px;color:var(--muted)}#help-dialog .eyebrow{font-size:10px}#help-dialog .example{font-size:12px;font-weight:600;color:var(--ink);padding:14px 8px;background:#e5eddb;border-radius:8px;text-align:center}
.game-shell.is-expanded .game-shell-stage,.game-shell:fullscreen .game-shell-stage{overflow:hidden}
@media(max-width:600px){.game-shell-stage{padding:14px 12px}.board{--tile-size:39px;padding:14px 25px 16px;width:min(100%,270px)}.endpoint::before,.ladder-step::before{left:-17px}.endpoint::after,.ladder-step::after,#entry-wrap::after{left:-14px}#entry-wrap::before{left:-19px}.tile{font-size:22px}.tools{gap:6px}.tools button{padding:7px 10px}.key-row{gap:4px}.key-row button{font-size:13px}.variant button{min-width:100px;padding-inline:12px}.how-grid{grid-template-columns:1fr;gap:22px}.breadcrumbs{font-size:11px}#notice{font-size:10px}}
@media(max-width:360px){.board{--tile-size:35px;padding-inline:23px}.word-row{gap:6px}.tile{font-size:20px}.key-row{gap:3px}.key-row button{font-size:12px}.tools button{padding-inline:8px}.tools #undo,.tools #restart{width:33px}.weaver .round{width:32px;height:32px}}

/* First-visit practice: animated letter changes, independent of game progress. */
#tutorial-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:26px;border:1px solid #d6dccb;border-radius:20px;background:#f7f7ef;color:#273c34;box-shadow:0 24px 90px #14221b40}
#tutorial-dialog::backdrop{background:#14221b99}
#tutorial-dialog svg,#replay-tutorial svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.tutorial-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.tutorial-top>span{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#797962}
#tutorial-dialog button,#replay-tutorial{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cdd6c4;border-radius:9px;padding:10px 14px;background:#fffef7;font-size:12px;font-weight:600;color:#273c34;cursor:pointer}
#tutorial-dialog #tutorial-skip{padding:6px 0;border:0;background:transparent;font-size:11px;color:#687568;min-height:32px}
#tutorial-progress{display:flex;gap:6px;margin-bottom:22px}
#tutorial-progress span{height:4px;flex:1;border-radius:4px;background:#dce1d2}
#tutorial-progress .current{background:#bd914c}
#tutorial-progress .finished{background:#53745c}
#tutorial-title{font-size:28px;line-height:1.15;margin:0 0 10px;outline:none}
#tutorial-cue{font-size:13px;color:#6d7965;line-height:1.6;margin-bottom:22px;min-height:21px}
.tutorial-endpoints{display:flex;align-items:center;justify-content:center;gap:22px;margin-bottom:24px;color:#7b856f;font-size:12px;letter-spacing:2px}
.tutorial-endpoints strong:last-child{color:#254f3b}
#tutorial-tiles,#tutorial-change{display:grid;grid-template-columns:repeat(4,52px);gap:9px;width:max-content;margin-inline:auto}
#tutorial-dialog .practice-tile{width:52px;height:56px;padding:0;border:1px solid #d4d9c9;border-radius:8px;background:#fffef7;font:600 28px/1 Inter,sans-serif;text-transform:uppercase;display:grid;place-items:center;box-shadow:0 3px 0 #d9ddcf}
#tutorial-dialog .practice-tile.match{background:#53745c;color:white;border-color:#53745c;box-shadow:0 3px 0 #3b5a44}
#tutorial-dialog .pick-letter{outline:2px solid #bd914c;outline-offset:4px;background:#f4e6c9;position:relative;z-index:1}
#tutorial-change{height:106px;margin-top:8px}
.practice-guide{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;color:#b68745}
#tutorial-dialog .practice-guide>svg{width:32px;height:44px}
#tutorial-dialog .practice-pointer{height:42px;display:grid;place-items:center;color:#9a743f}
#tutorial-dialog .practice-pointer svg{width:27px;height:27px;fill:#f7f7ef;stroke-width:1.6}
#tutorial-dialog #tutorial-replacement{width:46px;height:46px;padding:0;background:#e8ddc5;border:1px solid #bda57e;font-size:27px;box-shadow:0 3px 0 #d6c7ac;outline:2px solid #bd914c;outline-offset:3px}
#tutorial-dialog .practice-guide.done{color:#53745c;padding-top:8px}
#tutorial-dialog .practice-guide.done>svg{width:30px;height:36px;stroke-width:2.5}
#tutorial-caption{height:28px;margin-bottom:20px;text-align:center;color:#64715d;font-size:12px}
.practice-legend{display:inline-flex;align-items:center;gap:8px}
.practice-legend i{width:12px;height:12px;border-radius:3px;background:#53745c}
.tutorial-navigation{display:flex;align-items:center;gap:12px;padding-top:18px;border-top:1px solid #dce1d2}
#tutorial-back{width:42px;height:42px;padding:0!important}
#tutorial-back svg{transform:rotate(180deg)}
#tutorial-counter{color:#7b856f;font-size:11px;font-variant-numeric:tabular-nums}
#tutorial-dialog #tutorial-next,#tutorial-dialog #tutorial-play,#replay-tutorial{background:#254f3b;color:white;border-color:#254f3b;min-height:44px;margin-left:auto}
#tutorial-dialog button:disabled{opacity:.35;cursor:default}
#tutorial-success{text-align:center;padding-bottom:18px}
#tutorial-dialog #tutorial-success>svg{width:64px;height:64px;color:#53745c;stroke-width:2;margin-bottom:18px}
#tutorial-route{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;font-size:11px;margin-bottom:14px}
#tutorial-route strong{padding:7px;border:1px solid #d4d9c9;border-radius:5px;background:#e9eddf;letter-spacing:1px}
#tutorial-success>span{font-size:13px;color:#53745c;font-weight:600}
.practice-complete #tutorial-caption,.practice-complete .tutorial-endpoints{display:none}
#help-dialog #replay-tutorial{margin-bottom:20px}
@media(max-width:400px){#tutorial-dialog{padding:22px}#tutorial-title{font-size:25px}#tutorial-tiles,#tutorial-change{grid-template-columns:repeat(4,46px);gap:8px}#tutorial-dialog .practice-tile{width:46px;height:50px;font-size:25px}#tutorial-dialog #tutorial-replacement{width:42px;height:43px;font-size:24px}}
@media(prefers-reduced-motion:no-preference){
 #tutorial-dialog .pick-letter{animation:letter-beacon 1.6s ease-in-out infinite}
 #tutorial-dialog .practice-guide.select{animation:point-up 1.3s ease-in-out infinite}
 #tutorial-dialog .practice-guide.replace>svg{stroke-dasharray:7 4;animation:arrow-flow 1.1s linear infinite}
 #tutorial-dialog .just-changed{animation:letter-replaced .35s ease-out}
 #tutorial-dialog #tutorial-next:not(:disabled){animation:next-beacon 1.7s ease-in-out infinite}
 @keyframes letter-beacon{50%{outline-offset:7px;box-shadow:0 0 0 10px #bd914c18}}
 @keyframes point-up{50%{transform:translateY(-6px)}}
 @keyframes arrow-flow{to{stroke-dashoffset:-22}}
 @keyframes letter-replaced{0%{transform:translateY(10px);opacity:.3}60%{transform:translateY(-4px)}100%{transform:translateY(0);opacity:1}}
 @keyframes next-beacon{50%{box-shadow:0 0 0 5px #53745c20}}
}

/* Each tutorial move gets its own row; previous words remain untouched. */
#tutorial-history{max-height:136px;overflow:auto;scrollbar-width:thin;margin-bottom:8px;padding:2px 0 4px}
.practice-history-row{display:grid;grid-template-columns:repeat(4,40px);justify-content:center;gap:7px;margin-bottom:9px}
#tutorial-dialog .practice-history-row .practice-tile{width:40px;height:40px;font-size:20px;box-shadow:none;background:#e9e6d8;color:#66705b;border-color:#d9d8ca}
#tutorial-dialog .practice-history-row .practice-tile.match{background:#53745c;color:white;border-color:#53745c}
.practice-row-link{height:26px;text-align:center;color:#a9b29d;margin-bottom:4px}
#tutorial-dialog .practice-row-link svg{transform:rotate(90deg);width:21px;height:21px}
.practice-row-label{text-align:center;font-size:9px;letter-spacing:1.8px;color:#7b856f;margin-bottom:10px}
#tutorial-dialog .practice-tile.empty-letter{border-style:dashed;color:#b68745;background:#fcf8ec}
#tutorial-dialog #tutorial-change{height:88px}
#tutorial-dialog .tutorial-endpoints{margin-bottom:16px}
#tutorial-dialog #tutorial-caption{margin-bottom:10px;height:24px}
@media(prefers-reduced-motion:no-preference){.practice-row-link svg{animation:row-down 1.5s ease-in-out infinite}@keyframes row-down{50%{transform:rotate(90deg) translateX(4px)}}}
/* Quiet, responsive feedback for direct player actions. */
.game-quick-tools{display:flex;align-items:center;gap:7px}
.weaver #sound[aria-pressed=false]{color:#89917f;background:#efefe6}
.weaver button{transition:background-color .15s,box-shadow .15s}
.weaver button:active:not(:disabled){transform:translateY(1px)}
.weaver .key-row button:active{background:#dce5ce;border-bottom-width:1px}
.ladder-step{animation:none}
#close-help{display:grid;place-items:center}
#close-help svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
@media(prefers-reduced-motion:no-preference){
 .ladder-step.is-new{animation:word-arrive .24s ease-out}
 .ladder-step.is-new .tile.match{animation:match-ink .4s ease-out}
 .input-error{animation:word-shake .25s ease-in-out}
 .hint-enter{animation:hint-glow .45s ease-out}
 .result-enter{animation:report-arrive .4s ease-out}
 @keyframes word-arrive{from{opacity:0;transform:translateY(-9px)}to{opacity:1;transform:translateY(0)}}
 @keyframes match-ink{from{background:#b3c49f;color:#254f3b}to{background:#53745c;color:white}}
 @keyframes word-shake{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
 @keyframes hint-glow{50%{filter:drop-shadow(0 0 5px #bd914c66)}}
 @keyframes report-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){.weaver button{transition:none}.weaver button:active:not(:disabled){transform:none}}


/* Whole-row scrolling: no scrollbar, no resting on a clipped word. */
.board{max-height:none;scrollbar-width:none;scroll-snap-type:y mandatory;scroll-padding-block:16px;touch-action:pan-y}
.board::-webkit-scrollbar{display:none}
.board>.endpoint,.board .ladder-step,.board>#entry-wrap{scroll-snap-align:start;scroll-snap-stop:always}
.board:focus-visible{outline:2px solid #9ba780;outline-offset:3px}
#hint-count{display:inline-grid;place-items:center;min-width:23px;font-size:9px;font-variant-numeric:tabular-nums;color:#687a55}
.tools #hint{gap:5px;padding-inline:9px}
.weaver.is-complete .metadata{visibility:hidden}
#results{padding:20px 22px;background:#fcfbf5;border:1px solid #e3dfd1;border-radius:18px;text-align:left;scrollbar-width:thin;box-shadow:0 6px 18px #4b543b09}
.report-header{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:9px;letter-spacing:1.2px;color:#7b856e;margin-bottom:14px}
#result-tag{border:1px solid #cdd8bd;border-radius:20px;padding:4px 8px;color:#53745c;background:#eef2e6;white-space:nowrap;font-size:8px;letter-spacing:1px}
.report-endpoints{display:flex;align-items:center;gap:12px;font-size:17px;letter-spacing:2px;margin-bottom:14px}
.report-endpoints strong:last-child{color:#254f3b}.report-endpoints svg{width:17px;height:17px;color:#a0aa93}
.report-hero{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}
#result-title{font-family:Georgia,serif;font-weight:400;font-size:27px;letter-spacing:-.8px;margin:0 0 5px}
#result-summary{font-size:11px;color:#7b856e;line-height:1.6}
.report-score{display:flex;flex-direction:column;align-items:center;min-width:65px}
.report-score strong{font:600 58px/.95 'Inter Tight',Inter,sans-serif;letter-spacing:-3px;color:#254f3b}
.report-score>span{font-size:8px;letter-spacing:2px;color:#7b856e;margin-top:6px}
.report-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #dfe3d6;padding:12px 0;margin-bottom:16px;gap:8px}
.report-stats>div{display:flex;flex-direction:column;gap:5px;align-items:center;border-right:1px solid #dfe3d6}.report-stats>div:last-child{border:0}
.report-stats span{font-size:8px;letter-spacing:1px;color:#869079;white-space:nowrap}.report-stats strong{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums;color:#45583d}
.report-route h4{font-size:9px;letter-spacing:1.3px;font-weight:600;color:#869079;margin:0 0 9px}
#player-route{display:flex;align-items:center;flex-wrap:wrap;gap:5px;line-height:1.5}
.route-word{padding:5px 7px;border:1px solid #dde1d3;border-radius:5px;background:#f1f0e6;font-size:11px;font-weight:600;letter-spacing:1px}
.route-word:last-child{background:#254f3b;border-color:#254f3b;color:#fffdf7}.route-word.via{border-color:#c9a76a}
.route-arrow{font-size:11px;color:#a9b29d}
#solution{margin:12px 0 0;font-size:10px;color:#7b856e}#solution-route{font-size:11px;line-height:1.8;letter-spacing:.5px;padding:10px 0;margin:0}
.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.result-actions button{font-size:11px;min-height:42px;padding:9px 10px;border-radius:8px}
.result-actions #next{background:#e8ddc5;color:#685136;border-color:#d6c7ac}
#reset-clock{text-align:center;margin-top:12px;font-size:10px;line-height:1.8;color:#7b856e;font-variant-numeric:tabular-nums}
@media(max-width:600px){.board{scroll-padding-block:14px}#results{padding:18px 17px}#result-title{font-size:24px}.report-endpoints{font-size:15px}.report-header{font-size:8px;letter-spacing:.6px}.report-stats span{font-size:7px;letter-spacing:.6px}.report-score strong{font-size:52px}.result-actions button{font-size:10px;gap:6px}.result-actions svg{width:15px;height:15px}.tools #hint{padding-inline:7px}}
@media(max-width:360px){.tools{gap:5px}.tools #submit{padding-inline:7px}.tools #hint{font-size:11px;gap:3px}.tools #undo,.tools #restart{width:30px}.report-hero{gap:8px}#result-title{font-size:22px}}

/* The card keeps its padding; the inner viewport clips exactly at row boundaries. */
.board-frame{grid-area:board;align-self:start;width:min(100%,300px);margin:8px auto 0;padding:16px 0 18px;border:1px solid #e3dfd1;border-radius:19px;background:#fcfbf5;box-shadow:0 7px 18px #4b543b09;overflow:hidden}
.board-frame>.board{width:100%;max-height:none;margin:0;padding-block:0;border:0;border-radius:0;background:transparent;box-shadow:none;gap:8px;scroll-padding-block:0}
.board-frame .endpoint,.board-frame .ladder-step,.board-frame #entry-wrap{min-height:calc(var(--tile-size) + 3px)}
.board-frame .endpoint::after,.board-frame .ladder-step::after,.board-frame #entry-wrap::after{height:calc(var(--tile-size) + 11px)}
.weaver.is-complete>.board-frame{display:none}
@media(max-width:600px){.board-frame{width:min(100%,270px);padding-block:14px 16px}}

.weaver.is-complete #results{align-self:start;justify-self:center;width:100%;max-width:440px;max-height:100%}

/* The reset time is a visible destination for Daily finishers. */
#daily-reset{display:flex;align-items:center;justify-content:center;gap:17px;margin:0 0 16px;padding:13px 16px;border:1px solid #b6c7a8;border-radius:11px;background:#e8efdd;color:#254f3b}
#daily-reset>svg{width:37px;height:37px;stroke-width:1.5;color:#577348}
#daily-reset>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.reset-label{font-size:8px;font-weight:700;letter-spacing:1.5px;color:#60774f}
#daily-reset #reset-clock{display:block;margin:0;font-family:'Inter Tight',Inter,sans-serif;font-size:31px;line-height:1.1;font-weight:700;letter-spacing:1.8px;color:#254f3b;font-variant-numeric:tabular-nums}
.reset-note{font-size:9px;color:#718060}
@media(max-width:360px){#daily-reset{padding:12px;gap:12px}#daily-reset #reset-clock{font-size:28px}.reset-label{font-size:7px;letter-spacing:1.1px}}

/* A finish screen uses the player area, rather than reserving gameplay controls. */
.weaver.is-complete{grid-template-rows:40px minmax(0,1fr) 14px;grid-template-areas:'top' 'report' 'foot';gap:10px}
.weaver.is-complete>.title,.weaver.is-complete>.variant,.weaver.is-complete>.metadata,.weaver.is-complete>#checkpoint-note{display:none}
.weaver.is-complete #results{grid-area:report;padding:16px 18px}
.report-header,.report-endpoints{margin-bottom:10px}
.report-hero{margin-bottom:10px}
.report-stats{padding-block:9px;margin-bottom:11px}
.report-route h4{margin-bottom:6px}
.route-word{padding:4px 6px}
#daily-reset{padding:10px 14px;margin-bottom:12px}
.result-actions{margin-top:12px}
.weaver #solution{display:inline-flex;justify-content:flex-start;padding:0;margin-top:10px;min-height:22px;border:0;border-radius:0;background:none;font-size:10px;font-weight:400;color:#7b856e}
.weaver #solution:hover{color:#254f3b;text-decoration:underline;text-underline-offset:3px}
#solution svg{width:14px;height:14px}
#route-dialog{position:fixed;inset:0;margin:auto;width:min(520px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid #d9dfcf;border-radius:18px;background:#fcfbf5;color:#273c34}
#route-dialog::backdrop{background:#14221b99}
#route-dialog h2{font-size:26px;margin:14px 0 25px}
#route-dialog h3{font-size:12px;margin:18px 0 8px;color:#708063}
#route-dialog .expanded-route{font:600 13px/2 Inter,sans-serif;letter-spacing:.5px;overflow-wrap:anywhere;margin:0;padding:12px;border:1px solid #dfe3d6;background:#f0f2e7;border-radius:9px;color:#45583d}
#route-dialog button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9dfcf;border-radius:8px;background:#254f3b;color:white;padding:10px 16px;font:600 12px Inter,sans-serif;cursor:pointer}
#route-dialog #close-route{float:right;width:32px;height:32px;padding:7px;background:transparent;border:0;color:#64715d}
#close-route svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#done-route{margin-top:22px}
@media(max-width:600px){.weaver.is-complete #results{padding:15px 16px}#daily-reset{padding:10px 12px}#route-dialog{padding:24px}}

/* Rules remain reachable after finishing, including a restored daily result. */
.weaver.is-complete{grid-template-rows:40px 34px minmax(0,1fr) 14px;grid-template-areas:'top' 'variant' 'report' 'foot';gap:8px}
.weaver.is-complete>.variant{display:flex;grid-area:variant}
.weaver.is-complete #results{overflow:auto;scrollbar-width:thin}
.puzzle-context{display:flex;align-items:center;gap:7px;min-width:0}
#difficulty-control{display:inline-flex;align-items:center}
#difficulty{font:600 10px/1.2 Inter,sans-serif;color:#45613b;background:#f8f8ef;border:1px solid #d5ddcb;border-radius:6px;padding:2px 5px;max-width:85px;cursor:pointer}
.draft-tile.hint-revealed{border-color:#bda16d!important;box-shadow:0 3px 0 #d6c7ac!important}
@media(max-width:360px){.puzzle-context{gap:4px}#difficulty{font-size:9px;max-width:72px;padding-inline:3px}.metadata{font-size:9px}.report-header{flex-wrap:wrap}}

/* Page copy sits below the game, using the site's reading width. */
.weaver-breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:13px}
.weaver-breadcrumbs ol{display:flex;flex-wrap:wrap;list-style:none;gap:0;margin:0;padding:0}
.weaver-breadcrumbs li+li::before{content:'/';margin:0 9px;color:#9ba69b}
.weaver-jump-links{display:flex;flex-wrap:wrap;gap:8px 20px;max-width:none;margin:22px 0 0;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.weaver-article{max-width:none;margin:0 0 58px}
.weaver-article>section{margin-top:38px;scroll-margin-top:24px}
.weaver-article h2{font-size:28px;margin-bottom:15px}
.weaver-article h3{font-size:19px;margin:22px 0 8px}
.weaver-article p{max-width:900px;font-size:15px;line-height:1.8;color:var(--muted);margin:0 0 13px}
.weaver-instructions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.weaver-instructions h3{margin-top:8px}
.weaver-step{font-size:12px;font-weight:600;color:#8d6944;letter-spacing:2px}
.weaver-example{display:flex;flex-wrap:wrap;align-items:center;gap:9px;list-style:none;margin:21px 0;padding:0}
.weaver-example li{display:flex;align-items:center;position:relative;padding:10px 12px;background:#edf0e5;border:1px solid #dce1d2;border-radius:9px;color:#4e5f48;font:600 17px/1.3 Inter,sans-serif;letter-spacing:3px}
.weaver-example li:first-child{background:#e9ddc4;border-color:#ddcaa7}.weaver-example li:last-child{background:#254f3b;border-color:#254f3b;color:#fffdf7}
.weaver-example strong{color:#9c643c}.weaver-example li:last-child strong{color:#e8d8b6}
.weaver-modes{display:grid;gap:8px}.weaver-modes h3:first-child{margin-top:10px}
.weaver-faq details{border-top:1px solid var(--line);padding:15px 0}
.weaver-faq details:last-child{border-bottom:1px solid var(--line)}
.weaver-faq summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.5}
.weaver-faq details p{padding-top:12px;margin-bottom:0}
@media(max-width:600px){.weaver-instructions{grid-template-columns:1fr;gap:12px}.weaver-article>section{margin-top:30px}.weaver-article h2{font-size:25px}.weaver-jump-links{gap:8px 15px}.weaver-example{gap:6px}.weaver-example li{font-size:15px;letter-spacing:2px;padding:9px 10px}}

/* Match Plain Game's content alignment and heading measure. */
.game-page-heading{max-width:none;margin:30px 0 0}.game-page-heading>p{max-width:800px}
.game-shell-icon:has(img){overflow:hidden;background:transparent;border-radius:9px}.game-shell-icon>img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:760px){.game-page-heading{margin-top:22px}}

/* Use the existing Weather Darts article-cover sizing. */
.weaver-hero{width:min(100%,560px);margin:24px auto 0}
.weaver-hero img{display:block;width:100%;height:auto;border-radius:14px}
@media(max-width:760px){.weaver-hero{max-width:480px;margin-top:20px}}
