@charset "UTF-8";
:root{--ink:#4e3425;--muted:#82664d;--cream:#fff6e4;--green:#496242;--gold:#d8a952;--line:#ccb696;font-family:"Avenir Next","Trebuchet MS",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#dce7d0}button,input,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #536c42;outline-offset:5px}button{user-select:none}button:disabled{cursor:default}button:hover{filter:brightness(1.04)}[hidden]{display:none!important}#game{position:relative;isolation:isolate;width:100%;height:100svh;min-height:420px;overflow:hidden}#scene{position:absolute;inset:0;width:100%;height:100%}.sunlight{position:absolute;inset:0;background:linear-gradient(180deg,#fff9ed47 0%,transparent 31%,transparent 80%,#4c511a1a);pointer-events:none}
.topbar{position:absolute;top:22px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-weight:800;font-size:24px;letter-spacing:-.9px;text-shadow:0 1px 8px #fff6e4}.brand img{width:37px;height:49px;object-fit:contain;transform:rotate(-15deg);filter:drop-shadow(0 2px 3px #75634326)}.brand small{display:block;font-size:10px;letter-spacing:1.1px;font-weight:600;margin-top:2px}.journey{display:flex;align-items:center;gap:12px;padding:8px 23px 8px 18px;border-radius:30px;background:#fff9ecdc;box-shadow:0 4px 16px #5a6a2910,inset 0 0 0 1px #fffaf5;backdrop-filter:blur(12px)}.journey-step{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;opacity:.43;transition:opacity .4s}.journey-step img{width:24px;height:31px;object-fit:contain}.journey-step.current{opacity:1}.journey-step.done{opacity:.8;color:var(--green)}.journey i{height:0;width:15px;border-top:2px dotted #bba989}.controls{display:flex;gap:9px}.icon-button{display:grid;place-items:center;width:42px;height:42px;background:#fff8e9e8;border:1px solid #d3bd9757;border-radius:50%;box-shadow:0 3px 7px #5d482317;transition:transform .2s,background .2s}.icon-button:hover{transform:translateY(-2px);background:#fff9ec}.icon-button svg{width:21px;height:21px}.icon-button .sound-off{display:none}.icon-button.muted .sound-waves{display:none}.icon-button.muted .sound-off{display:initial}
.chapter-heading{position:absolute;top:110px;left:20px;right:20px;text-align:center;pointer-events:none;z-index:2;text-shadow:0 2px 18px #fff8eacf}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;margin:0 0 9px;color:#74583f}.chapter-heading h1{font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;font-weight:600;letter-spacing:-1.5px;font-size:42px;line-height:1.1;margin:0 0 9px}.chapter-heading>p:last-child{font-size:14px;font-weight:500;margin:0;color:#65533b}
#word-cards{position:absolute;inset:0;z-index:3;pointer-events:none}.word-card{position:absolute;border:0;background:transparent url('assets/tag.png') center/100% 100% no-repeat;filter:drop-shadow(0 6px 5px #6c48272e);display:flex;align-items:center;justify-content:center;padding:4px 10px;pointer-events:auto;transform-origin:center;transition:filter .2s;will-change:transform;cursor:default}.word-card .letters{display:flex;align-items:baseline;justify-content:center;font-family:"Arial Rounded MT Bold","Trebuchet MS",sans-serif;font-weight:900;letter-spacing:1px;line-height:1;white-space:pre}.word-card .letter{position:relative;display:inline-block;text-shadow:0 2px 1px #edddc0;transition:color .13s}.word-card .letter.typed{color:#658149}.word-card.locked .letter.next:after{content:"";position:absolute;left:9%;right:9%;bottom:-9px;height:4px;border-radius:3px;background:#748c52}.word-card.locked{filter:drop-shadow(0 7px 7px #6244233d) drop-shadow(0 0 5px #fff8c7)}.word-card.waiting{opacity:.82}.word-card.nudge{animation:word-shake .25s ease-in-out}.word-card .letter.pop{animation:letter-pop .24s ease-out}.word-card.fresh .letters{animation:word-enter .25s ease-out}@keyframes letter-pop{45%{transform:translateY(-5px) scale(1.18)}}@keyframes word-enter{from{opacity:.1;transform:scale(.82)}to{opacity:1;transform:scale(1)}}@keyframes word-shake{25%,75%{margin-left:-5px}50%{margin-left:5px}}
.toast{position:absolute;left:50%;top:24%;transform:translate(-50%,-5px);font-family:"Iowan Old Style",Georgia,serif;font-size:28px;font-weight:700;color:#6a4930;text-shadow:0 2px 12px #fffbea,0 0 8px #fff;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:4;white-space:nowrap}.toast.visible{opacity:1;transform:translate(-50%,0)}
.playbar{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:min(930px,calc(100% - 48px));z-index:6;padding:15px 17px 8px;border:1px solid #fffbedaa;border-radius:23px;background:#fff9eced;box-shadow:0 8px 32px #26350b24;backdrop-filter:blur(14px)}.playbar-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.small-button{border:0;background:transparent;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;padding:8px;color:#75664e}.small-button svg{width:23px;height:23px}.keyboard-toggle{border-right:1px solid #d5c9ae;padding-right:20px}.help-button{border:1px solid #bfae8c;border-radius:50%;width:24px;height:24px;justify-content:center;font-size:14px;padding:0;flex-shrink:0}.play-prompt{font-size:13px;display:flex;align-items:center;justify-content:center;gap:9px;flex:1;text-align:center}.start-button,.primary-button{border:1px solid #3e5639;background:#506b44;color:#fffbea;font-weight:700;border-radius:13px;padding:13px 22px;box-shadow:0 3px 0 #334a2a, inset 0 0 0 3px #ffffff0b;transition:transform .15s;white-space:nowrap}.start-button:hover,.primary-button:hover{transform:translateY(-2px);background:#45603a}.start-button:active,.primary-button:active{transform:translateY(1px);box-shadow:0 1px 0 #334a2a}.start-button span,.primary-button span{padding-left:12px}.stage-progress{width:168px;flex-shrink:0}.progress-caption{display:flex;justify-content:space-between;font-size:10px;color:#756149;margin-bottom:6px}.progress-caption strong{font-weight:700}.progress-track{height:5px;border-radius:5px;background:#e2d7bf;overflow:hidden}.progress-track>span{display:block;height:100%;background:#789457;border-radius:5px;transition:width .3s}.footer-note{text-align:center;font-size:9px;letter-spacing:.25px;color:#8c795d;margin:8px 0 0}.key-hints{display:inline-flex;gap:4px}.hint-key{display:inline-grid;place-items:center;min-width:24px;height:27px;padding:0 5px;border-radius:6px;border:1px solid #cdbb91;background:#fffaf0;box-shadow:0 2px 0 #d5c5a5;font-weight:800;font-size:13px;color:#5b7449}.keyboard{display:flex;flex-direction:column;gap:5px;margin:14px auto 0;width:min(560px,100%)}.keyboard-row{display:flex;justify-content:center;gap:5px}.keyboard-key{width:42px;height:34px;border-radius:7px;border:1px solid #d1c3a6;background:#fff9e9;box-shadow:0 2px 0 #cebea0;font-size:13px;font-weight:700;transition:background .15s,transform .1s}.keyboard-key.hint{background:#e8edca;border-color:#91a271;color:#496242}.keyboard-key.active{transform:translateY(2px);box-shadow:none;background:#d9bd79}.keyboard-key.idle{box-shadow:0 0 0 2px #c3cf94,0 2px 0 #cebea0}
.loading{position:absolute;inset:0;background:#f7f0df;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:30;transition:opacity .5s}.loading img{height:120px;width:110px;object-fit:contain;animation:loading-rock 1.5s infinite alternate ease-in-out}.loading p{font-family:Georgia,serif;font-size:22px;margin:25px 0 7px}.loading span{font-size:11px;color:var(--muted)}.loading.ready{opacity:0;pointer-events:none}@keyframes loading-rock{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
.felt-dialog{border:0;border-radius:27px;background:#fff7e7;color:var(--ink);width:min(450px,calc(100% - 30px));padding:12px;box-shadow:0 20px 80px #28361440}.felt-dialog::backdrop{background:#28321c50;backdrop-filter:blur(5px)}.dialog-stitch{position:relative;padding:33px 28px 27px;border:1.5px dashed #c4a678;border-radius:19px;text-align:center}.dialog-kicker{font-size:9px;font-weight:800;letter-spacing:1.9px;color:#89704f}.felt-dialog h2,.ending h2{font-family:"Iowan Old Style",Palatino,Georgia,serif;font-size:32px;letter-spacing:-1px;margin:12px 0;font-weight:600}.felt-dialog p{font-size:14px;line-height:1.7}.felt-dialog .primary-button{margin-top:15px;min-width:190px}.dialog-close{position:absolute;right:0;top:0;width:30px;height:30px;line-height:1;font-size:25px;border:0;box-shadow:none;background:transparent}.text-button{background:none;border:0;text-decoration:underline;text-underline-offset:4px;display:block;margin:20px auto 0;font-size:12px;color:#806b4e}.felt-dialog fieldset{border:0;padding:12px 0 17px;text-align:left}.felt-dialog legend{font-size:13px;font-weight:700;padding:12px 0}.mode-options{display:flex;gap:9px}.mode-options label{flex:1;display:flex;position:relative;cursor:pointer}.mode-options input{position:absolute;width:1px;height:1px;opacity:0}.mode-options span{width:100%;padding:12px 8px;background:#eee7d5;border:2px solid transparent;border-radius:10px;font-size:13px;font-weight:700;text-align:center}.mode-options input:checked+span{background:#e3e8d0;border-color:#8b9a70}.mode-options input:focus-visible+span{outline:2px solid #547144;outline-offset:3px}.mode-options small,.toggle-row small{display:block;font-size:10px;font-weight:500;color:#88765b;margin-top:5px}.settings-note{display:block;font-size:10px!important;color:#89785d;margin-top:10px}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid #e8dac0;text-align:left;font-size:13px;font-weight:700}.toggle-row input{width:21px;height:21px;accent-color:var(--green)}.how-to{text-align:left;font-size:13px;line-height:1.65;padding-left:20px}.how-to li{padding:7px 0}.how-to b{display:block}.ending{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:7;width:min(510px,calc(100% - 28px));text-align:center}.ending-card{background:#fff7e9f5;border:1px solid #fdf8ed;border-radius:25px;padding:25px 25px 24px;box-shadow:0 10px 45px #4853222b;backdrop-filter:blur(12px);outline:1px dashed #c9ad7d;outline-offset:-8px}.ending h2{font-size:30px;margin:8px 0}.ending p{font-size:13px;margin:8px 0}.ending-stats{display:flex;justify-content:center;gap:40px;margin:18px 0}.ending-stats b{display:block;font-size:22px;font-family:Georgia,serif;color:#617744}.ending-stats small{display:block;font-size:10px;color:#8c7555;margin-top:5px}.ending .primary-button{font-size:13px}.paused *{animation-play-state:paused!important}.reduced-motion *{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.topbar{left:22px;right:22px}.brand{font-size:21px}.journey{gap:7px;padding:8px 14px}.journey-step{font-size:10px;gap:5px}.journey i{width:10px}.chapter-heading{top:100px}.chapter-heading h1{font-size:37px}.playbar{width:calc(100% - 40px)}}
@media(max-width:700px){.topbar{top:17px;left:17px;right:17px;gap:10px}.brand{font-size:20px}.brand img{width:28px;height:38px}.brand small{font-size:8px;letter-spacing:.4px}.controls{gap:6px}.icon-button{width:35px;height:35px}.icon-button svg{width:18px;height:18px}.journey{position:absolute;top:53px;left:50%;transform:translateX(-50%);padding:6px 17px;gap:8px;white-space:nowrap}.journey-step img{width:18px;height:22px}.journey-step{font-size:9px}.journey i{width:13px}.chapter-heading{top:123px}.chapter-heading h1{font-size:30px;letter-spacing:-.8px;margin-bottom:6px}.eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:6px}.chapter-heading>p:last-child{font-size:11px}.playbar{width:calc(100% - 24px);bottom:12px;padding:11px 11px 7px;border-radius:18px}.playbar-top{gap:9px;flex-wrap:wrap}.keyboard-toggle{padding:3px 8px 3px 3px;border:0}.keyboard-toggle span{display:none}.help-button{width:21px;height:21px;font-size:12px}.play-prompt{font-size:11px;gap:5px;justify-content:flex-start}.key-hints{gap:3px}.hint-key{min-width:20px;height:22px;font-size:11px}.start-button{font-size:11px;padding:10px 13px}.stage-progress{width:92px}.progress-caption{font-size:8px}.progress-caption #progress-label{max-width:60px;white-space:nowrap;overflow:hidden}.footer-note{font-size:8px;margin-top:7px}.keyboard{margin-top:10px;gap:4px}.keyboard-row{gap:3px}.keyboard-key{width:8.4%;height:30px;font-size:12px}.toast{font-size:22px;top:28%}.ending-card{padding:20px}.ending h2{font-size:27px}.ending-stats{margin:12px 0}.ending .primary-button{font-size:12px}.chapter-heading.finished{opacity:0}}
@media(max-height:610px) and (min-width:701px){.topbar{top:13px}.chapter-heading{top:79px}.chapter-heading h1{font-size:28px}.chapter-heading .eyebrow{display:none}.playbar{bottom:10px;padding:9px 15px 5px}.footer-note{margin-top:4px}.start-button{padding:9px 19px}.keyboard-key{height:25px}.keyboard{margin-top:8px}.toast{top:25%}}
.toast{font-family:"Avenir Next","Trebuchet MS",sans-serif;font-size:17px;font-weight:700;line-height:1.4}.chapter-heading.finished{opacity:0;transition:opacity .3s}.compact-keyboard .chapter-heading{visibility:hidden}.compact-keyboard .toast{display:none}
@media(max-height:520px) and (min-width:701px){#game{min-height:320px}.topbar{top:9px}.topbar .brand{font-size:18px}.brand small{display:none}.brand img{height:35px}.journey{padding:5px 13px}.journey-step img{height:25px}.chapter-heading{top:61px}.chapter-heading h1{font-size:26px;margin-bottom:4px}.chapter-heading>p:last-child{font-size:11px}.playbar{padding:8px 14px 5px}.footer-note{font-size:8px}.keyboard-key{height:24px}.ending-card{padding:13px 22px}.ending{width:390px;bottom:10px}.ending h2{font-size:23px}.ending-stats{gap:30px;margin:9px 0}.ending-stats b{font-size:18px}.ending .primary-button{padding:8px 18px}}
