:root{font-family:Georgia,Times New Roman,serif;color:#382b1d;background:#423625;color-scheme:light;--ink: #382b1d;--muted: #685b44;--paper: #f1e5c8;--line: #b09a70;--accent: #526b3b;font-synthesis:none}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{border:1px solid #806339;border-radius:3px;background:linear-gradient(#f6e5b8,#d6bc82);color:#382919;min-height:44px;padding:9px 14px;font-size:16px;cursor:pointer;line-height:1.2;box-shadow:inset 0 1px #fff9,0 2px 2px #281b1420}button:hover,button:focus-visible{background:#fff0c9}button:active{transform:translateY(1px)}button.primary{background:linear-gradient(#748958,#435c33);color:#fff6df;border-color:#394b2c;text-shadow:0 1px #24351b}button.primary:hover{background:#607e43}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #315a9a;outline-offset:3px}[hidden]{display:none!important}p{line-height:1.55}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.1;margin:0 0 16px}#trail-app{position:relative;width:100%;height:100dvh;min-height:280px;overflow:hidden;background:#423625}.masthead{position:absolute;inset:0 0 auto;z-index:5;padding:10px 24px;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(#493b28f5,#2b241bed);color:#f5e6bf;border-bottom:3px ridge #bda16a;box-shadow:0 3px 10px #1b160f55;pointer-events:none}.masthead a,.masthead button{pointer-events:auto}.wordmark{font-size:25px;text-decoration:none;white-space:nowrap;letter-spacing:.3px}.mark{font-size:24px;margin-right:7px;color:#dbc18b}.wordmark-dot{display:none}.masthead nav{display:flex;align-items:center;gap:8px}.masthead nav button{font-size:14px;min-height:39px;padding:6px 12px}.masthead nav a{font-size:14px;margin-left:10px;text-decoration:none}#game-main,.landscape{position:absolute;inset:0;width:100%;height:100%;margin:0;overflow:hidden}.landscape{background:#92b2bd}#trail-canvas{display:block;width:100%;height:100%;image-rendering:auto}.scene-caption:empty{display:none}.title-screen{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:80px 8% 110px;pointer-events:none;background:linear-gradient(90deg,#182b2bba 0%,#15251c66 38%,transparent 72%);color:#fff2d4}.title-screen>*{pointer-events:auto}.title-screen h1{font-size:clamp(68px,7.6vw,112px);line-height:.9;letter-spacing:-4px;margin:0 0 28px;text-shadow:0 3px 4px #17241b,0 0 30px #17241b66}.title-screen h1 em{font-style:normal;color:#f3d89e}.title-screen>p{font-size:23px;margin:0 0 16px;max-width:440px;text-shadow:0 2px 4px #17241b}.title-screen .intro-detail{font-size:18px}.title-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.title-actions button{min-height:50px;font-size:19px;padding:11px 22px}.title-actions span{margin-left:15px}.title-note{font-size:14px;margin-top:20px;text-shadow:0 1px 3px #000}.title-footer{position:absolute;bottom:14px;left:25px;right:25px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:#fff1cd;text-shadow:0 1px 3px #000;z-index:2}.title-footer button{border:0;background:#302919cc;color:#f5e8c5;font-size:14px;min-height:35px;padding:7px 12px}.tiny-tree{color:#eedaa2}.game-footer{display:none}#journey-ui{position:absolute;inset:0;z-index:3;pointer-events:none}.hud-top{position:absolute;inset:82px 24px auto;display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.hud-location{background:#f4e9cfef;padding:12px 17px;border:4px ridge #ab8b58;box-shadow:0 3px 12px #2c221644;max-width:510px}.hud-location h1{font-size:28px;margin:0 0 5px}.hud-location p{font-size:15px;margin:0;line-height:1.3}.hud-resources{display:flex;background:#efe2bfef;color:#382b1d;border:4px ridge #ab8b58;box-shadow:0 3px 12px #2c221644;pointer-events:auto}.hud-resources>div{display:flex;align-items:center;gap:7px;padding:13px 12px;border-right:1px solid #b49e76;font-size:19px;line-height:1}.hud-resources>div:last-child{border:0}.hud-resources strong{font-weight:400}.hud-resources>div>span{font-size:16px;color:#715935}.hud-route{position:absolute;left:0;right:0;top:0;height:3px;background:#423625}.hud-route span{height:100%;display:block;background:#bdcf8f}.hud-bottom{position:absolute;z-index:6;left:50%;bottom:24px;transform:translate(-50%);display:flex;gap:7px;white-space:nowrap;padding:9px;background:linear-gradient(#55442ff5,#34291ef5);border:4px ridge #ae915e;box-shadow:0 3px 14px #1a160b66;pointer-events:auto}.hud-bottom button{min-height:46px;padding:10px 18px;font-size:17px}.hud-bottom button.primary{min-width:155px}.hud-log{overflow:hidden;position:absolute;left:50%;bottom:111px;transform:translate(-50%);max-width:760px;width:85%;background:#f2e8cedf;color:#382b1d;font-size:16px;line-height:1.4;text-align:center;padding:8px 14px;border:1px solid #a68a53}.hud-log:empty,#journey-ui:has(> .encounter) .hud-log{display:none}.hud-warning{position:absolute;left:24px;top:185px;max-width:360px;background:#f4e5c7f5;border:2px solid #a6693c;color:#613516;padding:10px 14px;font-size:16px;pointer-events:auto;box-shadow:0 2px 6px #2c221644}.encounter{pointer-events:auto;position:absolute;right:24px;bottom:132px;width:455px;max-height:calc(100% - 315px);overflow-y:auto;background:#f3e7ccef;color:#382b1d;border:5px ridge #ab8b58;padding:24px;box-shadow:0 4px 20px #2c221655}.encounter h2{font-size:29px;margin-bottom:12px}.encounter p{font-size:17px;margin:0 0 18px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choices button{text-align:left;white-space:normal;font-size:16px;padding:11px 12px}.choices button small{display:block;font-size:13px;line-height:1.4;margin-top:6px;opacity:.88}.ending-panel{pointer-events:auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-42%);padding:30px;width:min(680px,calc(100% - 32px));max-height:calc(100% - 155px);overflow:auto;background:#f1e5c8f5;border:6px ridge #ab8b58;box-shadow:0 5px 30px #24190f88}.ending-panel h1{font-size:42px}.ending-panel p{font-size:18px}.ending-numbers{display:flex;gap:30px;font-size:16px;margin:22px 0}.ending-numbers strong{display:block;font-size:40px;color:#49623a;font-weight:400}.ending-panel details{font-size:16px}.ending-panel summary{cursor:pointer;min-height:38px}.action-row{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0 0}.action-row button{flex:1;min-width:100px}.ending-panel .action-row button{font-size:16px}dialog{color:#382b1d;background:linear-gradient(110deg,#f7eed8,#e9d9b3);border:7px ridge #b39461;border-radius:3px;padding:26px;width:min(760px,calc(100% - 28px));max-height:90dvh;box-shadow:0 6px 45px #1b160e99}dialog::backdrop{background:#1f241a8c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;border-bottom:1px solid #b8a27a;padding-bottom:15px}.dialog-header h2{font-size:31px;margin:0}.close-button{border:1px solid #b49a6b;padding:7px 12px;background:#f2e4c5;box-shadow:none}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.dialog-actions button{min-width:110px}.helper{font-size:16px;line-height:1.5;margin:8px 0 18px;color:#66583f}#dialog-content p,#dialog-content li{font-size:17px;line-height:1.6}#dialog-content h3{font-size:24px;margin:22px 0 11px}#dialog-content ul{padding-left:25px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.setup-grid label,.select-row label{display:grid;gap:7px;font-size:16px}.wide{grid-column:1/-1}.setup-grid fieldset{border:1px solid #b49a70;padding:15px}.setup-grid legend{font-size:18px}.names-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.names-grid label{font-size:15px}input[type=text],input[type=number],select,textarea{width:100%;min-height:44px;padding:9px 10px;background:#fffbec;color:#382b1d;border:1px solid #a58a60;border-radius:2px;font-size:17px}textarea{resize:vertical}.select-row{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0}.select-row label{flex:1;min-width:110px}.shop-list{display:grid}.shop-item{display:grid;grid-template-columns:1fr auto 90px;gap:14px;align-items:center;border-bottom:1px solid #bba782;padding:12px 0;font-size:18px}.shop-item small{display:block;font-size:14px;margin-top:5px}.shop-item input{width:90px}.shop-total{display:flex;justify-content:space-between;gap:12px;padding:18px 0;font-size:17px}.shop-total strong{display:block;font-size:28px;font-weight:400}.error{color:#98391e;font-size:16px;min-height:20px}.notice{padding:13px;border:1px solid #b49a6b;background:#dfd0aa55;margin:15px 0;font-size:17px;line-height:1.5}.notice.warning{border-color:#a2512d}.settings-option{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #b49a6b;font-size:17px}input[type=checkbox]{width:20px;height:20px;accent-color:#4b6535;flex-shrink:0}.party h2,.party>button{display:none}.companion{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;margin:19px 0;font-size:20px}.companion small{display:block;font-size:14px;line-height:1.5;margin-top:5px}.portrait{width:30px;height:39px;background:radial-gradient(ellipse at 50% 35%,#d6b083 0 27%,transparent 29%),linear-gradient(#675035 0 20%,#ece0bf 20% 62%,#526d73 62%);border:2px solid #92774e;border-radius:45% 45% 5px 5px}.companion.dead{opacity:.5}.health-track{height:5px;background:#c2b596;margin-top:7px}.health-track span{height:100%;display:block;background:#647c43}.condition{font-size:15px}.map-list{list-style:none;padding:0!important}.map-list li{border-left:2px solid #9a8054;margin-left:8px;padding:10px 10px 10px 23px;position:relative;font-size:18px;display:flex;justify-content:space-between;gap:10px}.map-list li:before{content:"";position:absolute;left:-6px;top:17px;width:10px;height:10px;border:2px solid #897047;background:#f4e8cd;border-radius:50%}.map-list li.visited:before{background:#5a743f}.map-list li.current{background:#d6d4ae;color:#314326}.map-list li small{font-size:14px}.journal-list{max-height:48vh;overflow:auto}.journal-entry{display:grid;grid-template-columns:65px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid #b6a27c;font-size:16px;line-height:1.5}.journal-entry time{color:#53663d}.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}#activity-hud{position:absolute;z-index:4;top:84px;left:50%;transform:translate(-50%);width:min(750px,calc(100% - 35px));display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:#f0e5cbef;border:4px ridge #ae915f;font-size:17px}#activity-hud strong{font-weight:400}#activity-hud button{min-height:44px;font-size:16px}.activity .hud-top{display:none}#touch-controls{position:absolute;z-index:4;left:25px;right:25px;bottom:118px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.dpad{display:grid;grid-template-columns:repeat(3,46px);gap:4px;pointer-events:auto}.dpad button{width:46px;height:44px;padding:3px;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-column:1;grid-row:2}.dpad button:nth-child(3){grid-column:2;grid-row:2}.dpad button:nth-child(4){grid-column:3;grid-row:2}.fire-button{width:80px;height:60px;pointer-events:auto;touch-action:none;font-size:20px;border:3px ridge #ae915f;margin-left:auto}.activity .landscape{touch-action:none}#game-toast{position:absolute;left:50%;top:70px;transform:translate(-50%);max-width:calc(100% - 30px);width:-moz-max-content;width:max-content;z-index:20;background:#f5e6c8;color:#49351e;border:3px ridge #ad8e54;padding:11px 16px;font-size:17px;line-height:1.4;pointer-events:none}.noscript{position:absolute;inset:80px 20px auto;z-index:7;margin:0 auto;max-width:680px;max-height:calc(100dvh - 100px);overflow:auto;background:var(--paper);border:3px ridge #b39461;padding:20px;font-size:17px}.plant-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.plant-card{border:1px solid #b6a079;padding:15px;background:#fff8e744}.plant-card svg{width:100%;height:120px}.plant-card h3{margin:5px 0 12px!important;font-size:22px!important}.plant-card label{display:flex;align-items:center;gap:8px;margin-top:16px;min-height:44px}.plant-card details{min-height:44px}.plant-card p{font-size:15px!important}.skills{display:grid;grid-template-columns:1fr 1fr;gap:12px}.skills label{display:flex;align-items:flex-start;gap:8px}.skills small{display:block;font-size:13px;line-height:1.4;margin-top:5px}.supply-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.supply-grid>div{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #bba681;font-size:16px}.supply-grid strong{font-weight:400}.conversation{display:flex;gap:20px;align-items:center}.conversation h3{margin-top:0!important}.traveler-portrait{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:85px;height:110px;font-size:44px;color:#f0dec0;background:linear-gradient(#697452,#3d5541);border:4px ridge #b09462;border-radius:50% 50% 5px 5px}.story-chapter{border-bottom:1px solid #b6a27b;padding:4px 10px 16px}.story-chapter p{font-style:italic}.guide-index{display:flex;gap:18px}.guide-index a{padding:8px}summary{cursor:pointer;line-height:1.5}#note-form{display:grid;gap:10px;margin-bottom:20px}#note-form label{display:grid;gap:8px}#dump-form{display:grid;gap:12px;margin-top:14px}@media (max-width: 900px){.masthead{padding:10px 18px}.wordmark{font-size:23px}.masthead nav button{font-size:13px;padding:6px 8px}.masthead nav a{display:none}.hud-top{inset:80px 18px auto;gap:12px}.hud-location{max-width:350px}.hud-location h1{font-size:25px}.hud-location p{font-size:14px}.hud-resources>div{padding:12px 8px;font-size:17px}.hud-resources>div>span{font-size:14px}.hud-bottom button{font-size:16px;padding:9px 13px}.encounter{right:18px;width:410px;padding:21px}.title-footer>span:nth-child(2){display:none}.title-screen h1{font-size:90px}.title-screen{padding:100px 7% 80px}}@media (max-width: 600px){.masthead{padding:9px 12px;min-height:58px;gap:7px}.wordmark{font-size:21px}.mark{font-size:19px;margin-right:3px}.masthead nav{gap:4px}.masthead nav button{font-size:0;min-height:37px;width:33px;padding:3px}.masthead nav button:after{content:"?";font-size:19px;display:block}.masthead nav button[data-action=map]:after{content:"M"}.masthead nav button[data-action=settings]:after{content:"S"}.masthead nav button span{display:none}.title-screen{padding:110px 7% 80px;justify-content:flex-start;background:linear-gradient(90deg,#182b2bba,#15251c33)}.title-screen h1{font-size:74px;margin-bottom:24px;letter-spacing:-3px}.title-screen>p{font-size:21px;max-width:290px}.title-screen .intro-detail{font-size:17px;max-width:270px}.title-actions{gap:10px;flex-direction:column;align-items:flex-start;margin-top:10px}.title-actions button{font-size:18px;min-height:46px;padding:10px 18px}.title-note{font-size:13px;max-width:260px;line-height:1.4}.title-footer{left:12px;right:12px;bottom:10px;font-size:12px;gap:8px}.title-footer button{font-size:12px}.hud-top{inset:71px 12px auto;flex-direction:column;gap:8px}.hud-location{max-width:100%;padding:9px 12px}.hud-location h1{font-size:24px;margin-bottom:4px}.hud-location p{font-size:13px}.hud-resources{width:100%;justify-content:space-between}.hud-resources>div{flex:1;justify-content:center;padding:10px 5px;gap:4px;font-size:16px}.hud-resources>div>span{font-size:13px}.hud-bottom{bottom:max(12px,env(safe-area-inset-bottom));padding:6px;gap:5px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));width:calc(100% - 20px)}.hud-bottom button{grid-column:span 3;min-height:44px;min-width:0;font-size:15px;padding:8px 4px;white-space:nowrap}.hud-bottom button.primary{min-width:0;grid-column:span 9}.hud-bottom button[data-action=day]{grid-column:span 3}.hud-bottom:not(:has(.travel-button)){grid-template-columns:repeat(4,minmax(0,1fr))}.hud-bottom:not(:has(.travel-button)) button{grid-column:auto}.activity .hud-bottom{grid-template-columns:1fr 1fr}.hud-log{bottom:139px;font-size:14px;max-height:70px;padding:8px 10px}.hud-warning{left:12px;top:218px;max-width:calc(100% - 24px);font-size:14px;padding:8px 12px}.encounter{left:12px;right:12px;bottom:92px;width:auto;padding:19px;max-height:calc(100% - 345px)}.encounter h2{font-size:26px}.encounter p{font-size:16px}.choices button{font-size:15px;padding:10px}.choices button small{font-size:13px}.ending-panel{padding:23px;max-height:calc(100% - 120px);transform:translate(-50%,-44%)}.ending-panel h1{font-size:33px}.ending-numbers{gap:20px;font-size:14px}.ending-numbers strong{font-size:32px}dialog{padding:18px;border-width:5px;width:calc(100% - 20px);max-height:92dvh}.dialog-header h2{font-size:27px}.setup-grid{gap:13px}.names-grid{gap:10px}.names-grid label{font-size:14px}.skills{grid-template-columns:1fr}.shop-item{grid-template-columns:1fr auto 75px;gap:8px;font-size:16px}.shop-item input{width:75px}.shop-item small{font-size:12px}.shop-total{font-size:15px}.shop-total strong{font-size:24px}.companion{font-size:18px;gap:8px;grid-template-columns:27px 1fr auto}.portrait{width:25px}.condition{font-size:14px}.companion small{font-size:12px}#activity-hud{top:72px;font-size:14px;padding:8px 10px;flex-wrap:wrap}#activity-hud strong{width:100%}#touch-controls{left:13px;right:13px;bottom:105px}.supply-grid{grid-template-columns:1fr}.conversation{gap:12px}.traveler-portrait{width:55px;height:80px;font-size:30px}.plant-card{padding:10px}.plant-card h3{font-size:19px!important}.plant-card svg{height:90px}.plant-card label{font-size:14px}.plant-grid{gap:10px}}@media (max-height: 520px) and (min-width: 601px){.masthead{min-height:48px;padding:5px 14px}.wordmark{font-size:21px}.masthead nav button{min-height:34px}.title-screen{padding:65px 6% 40px;justify-content:flex-start}.title-screen h1{font-size:61px;margin-bottom:12px}.title-screen>p{font-size:17px;margin-bottom:6px}.title-screen .intro-detail{font-size:14px}.title-actions{margin-top:7px}.title-actions button{min-height:40px;font-size:16px;padding:7px 14px}.title-note{display:none}.title-footer{bottom:7px;font-size:12px}.title-footer button{font-size:12px}.hud-top{inset:59px 14px auto;gap:8px}.hud-location{padding:7px 10px;max-width:340px}.hud-location h1{font-size:21px}.hud-location p{font-size:12px}.hud-resources>div{padding:10px 6px;font-size:15px}.hud-resources>div>span{font-size:12px}.hud-bottom{bottom:9px;padding:5px;gap:5px}.hud-bottom button{min-height:38px;font-size:14px;padding:7px 11px}.hud-bottom button.primary{min-width:135px}.hud-log{bottom:77px;font-size:13px;max-height:45px;padding:5px 10px}.hud-warning{top:130px;left:14px;max-width:280px;font-size:13px;padding:7px 10px}.encounter{right:14px;bottom:77px;width:370px;max-height:calc(100% - 210px);padding:14px}.encounter h2{font-size:23px;margin-bottom:8px}.encounter p{font-size:14px;margin-bottom:10px}.choices button{font-size:14px;padding:8px}.choices button small{font-size:12px;margin-top:4px}.ending-panel{top:53%;max-height:calc(100% - 85px);transform:translate(-50%,-45%);padding:20px}.ending-panel h1{font-size:29px}.ending-panel p{font-size:15px}.ending-numbers{margin:10px 0}.ending-numbers strong{font-size:28px}dialog{max-height:94dvh;padding:18px}.dialog-header{margin-bottom:12px;padding-bottom:10px}.dialog-header h2{font-size:26px}#activity-hud{top:59px;font-size:14px;padding:6px 10px}#activity-hud button{min-height:34px;font-size:14px}#touch-controls{bottom:83px}.dpad button{height:36px;min-height:36px}.fire-button{height:45px}}@media (max-width: 350px){.wordmark{font-size:18px}.mark{display:none}.hud-resources>div{font-size:14px;gap:3px}.hud-resources>div>span{font-size:11px}.title-screen h1{font-size:64px}.names-grid,.setup-grid,.plant-grid{grid-template-columns:1fr}.companion{font-size:16px}.hud-bottom button{font-size:13px}.encounter{padding:15px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}.record{display:grid;grid-template-columns:1fr auto;gap:6px 16px;padding:17px 0;border-bottom:1px solid #b6a27c}.record span{grid-column:1;font-size:14px}.record b{grid-column:2;grid-row:1/3;align-self:center;color:#49623a;font-weight:400}@media (max-width: 600px) and (max-height: 680px){.title-screen{padding:86px 7% 65px}.title-screen h1{font-size:60px;margin-bottom:18px}.title-screen>p{font-size:18px;margin-bottom:10px}.title-screen .intro-detail,.title-note{display:none}.title-actions{flex-direction:row;gap:9px}.title-actions button{font-size:16px;padding:9px 12px;min-height:44px}.title-actions span{margin-left:8px}.title-footer>span{display:none}}
