:root{--ivory:#eeedde;--ink:#254d46;--muted:#577268;--gold:#ab8e54;--line:#9bad964f;--paper:#f5f0df}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#dce4d7;color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{overflow-x:hidden}button,input{font:inherit}button{touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,.arrow:focus-visible{outline:3px solid #a5843e;outline-offset:4px}button:disabled{opacity:.45}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}#app{position:relative;max-width:600px;min-height:100vh;min-height:100dvh;margin:0 auto;background:radial-gradient(ellipse at 80% 35%,#e0e9d8,transparent 65%),linear-gradient(160deg,#eef0e1,#e7e6d3);overflow:hidden;display:flex;flex-direction:column}.masthead{height:calc(70px + env(safe-area-inset-top));padding:calc(13px + env(safe-area-inset-top)) 18px 13px;display:flex;align-items:center;justify-content:space-between;z-index:5;position:relative}.wordmark{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.24em;font-weight:650}.wordmark svg{width:22px;height:26px;fill:none;stroke:#577f6e;stroke-width:1.3}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #fcf6df88;border-radius:50%;color:var(--ink);background:#f8f3e36e;box-shadow:0 2px 10px #34534908;backdrop-filter:blur(8px)}.screen{flex:1;position:relative}.intro{min-height:650px;display:flex;flex-direction:column;justify-content:flex-end}.hero{position:absolute;top:-70px;left:0;width:100%;height:calc(100% - 40px);object-fit:cover;object-position:center 35%;mask-image:linear-gradient(#000 0%,#000 52%,transparent 85%)}.intro-copy{position:relative;text-align:center;padding:270px 28px 24px;z-index:1;background:linear-gradient(transparent 32%,#eeedde00 40%,#eeeddeef 70%,var(--ivory) 100%)}.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:600;margin:0 0 10px;color:#647967}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.035em;line-height:1.08;margin:0}h1{font-size:40px}h1 em{font-weight:400;color:#668571}h2{font-size:30px}.description{font-size:14px;line-height:1.7;color:#536e62;margin:20px 0 22px}.primary,.secondary{border-radius:15px;min-height:50px;padding:12px 24px;border:1px solid #335d50;color:#fff8df;background:linear-gradient(125deg,#365f52,#254b42);box-shadow:inset 0 1px #bcd3b650,0 7px 18px #28483b1c;font-weight:550;letter-spacing:.015em;display:inline-flex;gap:26px;align-items:center;justify-content:center}.primary span{font-size:23px;font-weight:300}.intro .primary,.finish .primary{min-width:256px}.fine{font-size:12px;line-height:1.6;color:var(--muted)}.intro .fine{margin:14px 0 0}.secondary{background:#eee9d8;border-color:#c4c8b3;color:var(--ink);box-shadow:inset 0 1px #fff8df}.text-button{border:0;color:var(--muted);background:none;min-height:44px;padding:8px 14px}.app-foot{display:flex;align-items:center;justify-content:center;gap:12px;min-height:calc(39px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom);font-size:10px;color:#5d7769;position:relative;z-index:3}.app-foot button{border:0;background:none;padding:10px 0;color:inherit;font-size:11px;min-height:38px}.app-foot span:first-child{max-width:235px}.play{display:flex;flex-direction:column;min-height:0}.level-heading{display:flex;justify-content:space-between;align-items:center;padding:11px 28px 15px}.level-heading h1{font-size:30px}.level-heading .eyebrow{font-size:9px;margin-bottom:7px}.hearts{display:flex;gap:7px}.hearts svg{width:20px;height:20px;fill:#9e8155;stroke:#9e8155;stroke-width:1.3}.hearts svg.empty{fill:transparent;opacity:.38}.progress-row{display:flex;justify-content:space-between;padding:0 28px;font-size:10px;color:#5e7768;letter-spacing:.025em}.save-dot:before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:#628a6b;margin:0 6px 2px 0}.progress-track{height:2px;margin:10px 28px 0;background:#adbda351}.progress-track i{height:100%;width:0;display:block;background:#a98d55;transition:width .25s}#board-wrap{flex:1;min-height:310px;max-height:560px;position:relative;display:grid;place-items:center;margin:-9px -5px -12px}#board{width:100%;height:100%;max-height:560px;overflow:visible;touch-action:manipulation;user-select:none;-webkit-user-select:none}.puzzle-lines path,.departing path{fill:none;stroke-linejoin:round;stroke-linecap:round}.arrow-bed{stroke:#f2f2cb;stroke-width:11;opacity:.75;transform:translate(0,-1px)}.arrow-ink{stroke:var(--ink,#214e49);stroke-width:7.5}.arrow-light{stroke:#f8eed1;stroke-width:1.1;opacity:.16;transform:translate(-1,-1px)}.arrow-hit{stroke:transparent;stroke-width:29;pointer-events:stroke}.arrow{cursor:pointer;outline:none}.arrow>*{pointer-events:none}.arrow .arrow-hit{pointer-events:stroke}.arrow:focus-visible .arrow-bed,.arrow.hinted .arrow-bed{stroke:#fff5b1;stroke-width:17;opacity:1;filter:url(#arrowGlow)}.arrow:focus-visible .arrow-ink,.arrow.hinted .arrow-ink{stroke:#776331}.arrow.blocked .arrow-ink{stroke:#a96241}.departing{pointer-events:none}.board-footer{position:relative;z-index:2;padding:0 25px 7px;text-align:center}#message{font-size:13px;min-height:42px;margin:0 auto 10px;max-width:330px;display:flex;align-items:center;justify-content:center;color:#436256}.game-tools{display:flex;gap:10px}.game-tools button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:46px;border:1px solid #bbc7ad;border-radius:13px;background:linear-gradient(#f5f1df,#e9e7d4);box-shadow:inset 0 1px #fffbe9,0 3px 9px #43604d06;color:#3f6152;font-size:12px}.game-tools button[aria-pressed=true]{background:#d8e3ce;border-color:#759b7b}.micro{font-size:10px;color:#667e6d;margin:11px 0 5px}.finish{text-align:center;padding:10px 28px 20px;display:flex;align-items:center;flex-direction:column;justify-content:center}.finish-art{width:290px;max-width:80%;margin:0 auto 10px}.finish-art svg{width:100%;display:block}.finish h1{font-size:40px}.finish p:not(.eyebrow){font-size:14px;color:var(--muted);max-width:270px}.finish .primary{margin-top:24px}#finish-stat{display:inline-flex;border-top:1px solid #b5bf9e;border-bottom:1px solid #b5bf9e;padding:9px 18px;font-size:11px;letter-spacing:.04em;color:#6e774f}.finish.lost .reward-cube{opacity:.6}.reward-cube{transform-origin:160px 130px;animation:breathe 6s ease-in-out infinite}@keyframes breathe{50%{transform:translateY(-5px)}}.screen.revealing{animation:reveal .65s ease both}@keyframes reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}dialog{border:1px solid #c9ba91;border-radius:25px;background:linear-gradient(145deg,#f7f1df,#e8ead7);color:var(--ink);padding:31px;max-width:min(390px,calc(100% - 30px));max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 30px 90px #17352c55}dialog::backdrop{background:#183c344d;backdrop-filter:blur(8px)}dialog h2{margin:0 0 23px}dialog .close{position:absolute;right:12px;top:12px;width:36px;height:36px;font-size:25px;background:none;border:0;box-shadow:none}dialog .eyebrow{max-width:230px;font-size:8px;margin-bottom:12px}.slider-label{display:flex;justify-content:space-between;font-size:13px;margin:19px 0 7px}input[type=range]{width:100%;accent-color:#527f68;min-height:25px}.switch-row{display:flex;justify-content:space-between;gap:15px;margin:17px 0;font-size:13px;min-height:25px;align-items:center}input[type=checkbox]{width:20px;height:20px;accent-color:#527f68}.music-credit{padding:15px 0;border-top:1px solid #b9c3a766;font-family:Georgia,serif;font-size:17px;margin-bottom:5px}.music-credit small{font:11px system-ui;color:var(--muted)}dialog .secondary{width:100%;font-size:12px}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap}.dialog-actions button{flex:1;font-size:12px;padding:10px 14px;white-space:nowrap}.reduced *{scroll-behavior:auto}[hidden]{display:none!important}.reduced .screen,.reduced .reward-cube,.reduced .progress-track i{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){.screen,.reward-cube,.progress-track i{animation:none!important;transition:none!important}}@media(max-height:740px){.masthead{height:60px;padding:8px 18px}.intro{min-height:510px}.intro-copy{padding-top:210px;padding-bottom:12px}h1{font-size:35px}.description{margin:13px 0 16px}.level-heading{padding:0 24px 10px}.level-heading h1{font-size:25px}#board-wrap{min-height:270px;max-height:440px}.board-footer{padding:0 20px}#message{margin-bottom:5px;font-size:12px;min-height:36px}.micro{margin:8px 0 2px}.finish-art{width:215px}.finish h1{font-size:35px}}@media(min-height:760px){#app{height:100dvh}.intro{min-height:0}.play{height:calc(100dvh - 110px)}}@media(min-width:800px){body{padding:24px}#app{max-width:1080px;min-height:800px;height:calc(100vh - 48px);max-height:1000px;border:1px solid #faf4da;border-radius:30px;box-shadow:0 25px 100px #3154431a}.intro .hero{top:-70px;left:37%;width:67%;height:calc(100% + 50px);object-position:center;mask-image:linear-gradient(90deg,transparent,#000 20%)}.intro-copy{text-align:left;width:51%;height:100%;padding:0 20px 45px 65px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(90deg,var(--ivory) 40%,transparent)}.intro-copy h1{font-size:52px}.intro-copy .description{font-size:16px}.play{max-width:620px;width:100%;margin:auto}.finish-art{width:310px}#board-wrap{max-height:580px}.masthead{padding-left:32px;padding-right:32px}.app-foot{min-height:43px}}@media(max-width:350px){.level-heading{padding-left:20px;padding-right:20px}.hearts{gap:4px}.hearts svg{width:17px}.wordmark{font-size:10px}.intro-copy{padding-left:20px;padding-right:20px}.game-tools button{font-size:11px;gap:5px}.micro{font-size:9px}.app-foot{font-size:9px;gap:8px}}

.studio-brand{display:block;width:270px;max-width:85%;height:auto;margin:18px auto 0;opacity:.8}.intro .studio-brand{width:250px;margin-top:17px}@media(min-width:800px){.intro .studio-brand{margin-left:0}}
#board,#board *{-webkit-tap-highlight-color:transparent}
#board-wrap{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}#board{min-height:0;min-width:0}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){body{padding:0}#app{height:100dvh;min-height:0;border-radius:0;max-height:none}.masthead{height:50px;padding:3px 20px}.intro{min-height:0}.intro .hero{left:43%;top:-50px;width:57%;height:calc(100% + 50px);mask-image:linear-gradient(90deg,transparent,#000 20%)}.intro-copy{width:52%;height:100%;padding:5px 20px 5px 35px;text-align:left;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:linear-gradient(90deg,var(--ivory) 50%,transparent)}.intro h1{font-size:30px}.intro .description{font-size:12px;line-height:1.4;margin:10px 0}.intro .eyebrow{font-size:8px}.intro .primary{min-width:210px;min-height:44px;font-size:12px;padding:7px 16px}.intro .fine{display:none}.intro .studio-brand{width:178px;margin:6px 0 0}.app-foot{min-height:28px;height:28px}.app-foot button{min-height:28px;padding:4px}.play{height:calc(100dvh - 78px);max-width:850px;display:grid;grid-template-columns:55% 45%;grid-template-rows:auto 20px 6px 1fr}.level-heading{grid-column:2;grid-row:1;padding:2px 24px 7px 4px}.level-heading h1{font-size:24px}.hearts{gap:4px}.hearts svg{width:16px}.progress-row{grid-column:2;grid-row:2;padding:0 24px 0 4px}.progress-track{grid-column:2;grid-row:3;margin:0 24px 0 4px}#board-wrap{grid-column:1;grid-row:1/5;min-height:0;height:calc(100dvh - 78px);margin:0}#board{height:100%;max-height:none}.board-footer{grid-column:2;grid-row:4;align-self:end;padding:0 20px 7px 0}.game-tools{gap:6px}.game-tools button{font-size:11px}.micro{font-size:9px}#message{font-size:12px;margin-bottom:8px}.finish{display:grid;grid-template-columns:42% 58%;grid-template-rows:auto auto auto auto auto;max-width:800px;width:100%;margin:auto;padding:0 25px 10px}.finish-art{grid-column:1;grid-row:1/6;max-width:100%;width:250px}.finish>.eyebrow,.finish>h1,.finish>p,.finish>#finish-stat,.finish>.primary,.finish>.text-button{grid-column:2;margin-left:auto;margin-right:auto}.finish h1{font-size:30px}.finish p:not(.eyebrow){font-size:12px;margin:6px auto}.finish .primary{margin-top:8px;min-height:43px}.finish .text-button{min-height:30px;font-size:11px}}
