:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--pine:#203f35;--dark:#182f28;--gold:#e5bc72;--cream:#f6f1df;--ink:#2b3b32;--edge:#d4c9af;--scale:1;font-family:Yu Gothic UI,Hiragino Sans,Meiryo,system-ui,sans-serif}*{box-sizing:border-box}html,body,#game{width:100%;height:100%;margin:0;overflow:hidden}body{color:var(--ink);background:#1b362e}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #e49c30}button{color:inherit}button[hidden],[hidden]{display:none!important}#game{isolation:isolate;position:relative}#viewport{touch-action:none;outline:0;width:100%;height:100%;display:block}#home,#hud,#panel,#confirm,#fault{position:absolute;inset:0}#home{isolation:isolate;color:#fcf5dc;background:#243e32;overflow:hidden}.home-picture,.home-shade,.cover-frame{pointer-events:none;position:absolute;inset:0}.home-picture{z-index:-3;background:#324f3d url(../assets/title/frontier.webp) 50% 55%/cover no-repeat}.home-shade{z-index:-2;background:linear-gradient(90deg,#0c1f1ddb 0%,#10221e9c 27%,#14241c1c 60%,#0000 82%),linear-gradient(#0000 76%,#0b251f81)}.cover-frame{z-index:-1;border:1px solid #eee4bc53;inset:clamp(12px,2.9vmin,30px)}.cover-frame:before,.cover-frame:after{content:"";border-style:solid;border-color:#e2d2aa;width:18px;height:18px;position:absolute}.cover-frame:before{border-width:1px 0 0 1px;inset:4px auto auto 4px}.cover-frame:after{border-width:0 1px 1px 0;inset:auto 4px 4px auto}.cover-content{text-shadow:0 2px 20px #17251e66;flex-direction:column;justify-content:center;align-items:flex-start;width:min(620px,58%);height:100%;padding:clamp(40px,10vh,120px) 0 clamp(34px,9vh,100px) clamp(42px,8.5vw,170px);display:flex}.title-rule{color:#e0c996;align-items:center;gap:14px;display:flex}.title-rule>span:last-child{background:#e7d3a1aa;width:70px;height:1px}.compass-mark{font:44px/1 Georgia,serif}h1{color:#fff7dc;letter-spacing:-.045em;margin:20px 0 8px;font-family:Georgia,Times New Roman,serif;font-size:clamp(3.65rem,7.2vw,8.25rem);font-weight:400;line-height:.98}h1>span{letter-spacing:.48em;margin-left:5px;font:500 clamp(13px,1.35vw,22px)/1.6 Georgia,serif;display:block}.subtitle{letter-spacing:.2em;margin:10px 0 0 4px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(15px,1.55vw,26px)}.home-actions{gap:10px;min-width:min(310px,100%);margin-top:clamp(26px,7vh,76px);display:grid}.start-button{text-align:left;color:#253b31;letter-spacing:.1em;background:#f3e7c7;border:1px solid #ead39b;justify-content:space-between;align-items:center;width:100%;padding:15px 23px;font-weight:700;display:flex;box-shadow:inset 0 0 0 3px #f3e7c7,inset 0 0 0 4px #b4a27a,0 3px 10px #101d1c33}.start-button:hover{background:#fff2ce}.start-button>span{font:24px/1 Georgia,serif}.start-button.secondary{color:var(--cream);box-shadow:none;background:#20372bd1;border:1px solid #c8be9f91;padding:9px 22px}.start-button.secondary>span{font-size:18px}#home-tools{gap:22px;display:flex}#home-tools button{color:#ece6d4;background:0 0;border:0;border-bottom:1px solid #bfbc9970;padding:9px 0 4px;font-size:13px}#home-status{color:#f4e6c8;max-width:38em;min-height:1.6em;margin-bottom:0;font-size:12px;line-height:1.6}#hud{pointer-events:none;-webkit-user-select:none;user-select:none;--gutter:max(16px,env(safe-area-inset-left));font-size:calc(14px * var(--scale));color:#fff4d7}#hud button,#stick{pointer-events:auto}#hud button{color:#fff4d7;background:#213e32ec;border:1px solid #b5b28a96;border-radius:7px;min-height:48px;padding:7px 12px;font-size:.92em;font-weight:650;box-shadow:0 2px 7px #182d2960}#hud button:hover,#hud button.held{background:#526949}kbd{letter-spacing:0;text-align:center;color:#e8dfbb;border:1px solid #e2d9b263;border-radius:3px;min-width:18px;padding:2px 4px;font:11px/1.25 ui-monospace,Consolas,monospace;display:inline-block}.hud-glass{background:linear-gradient(125deg,#223d34f2,#213d31e6);border:1px solid #dccb9b90;border-radius:8px;box-shadow:0 2px 9px #14232049}#status-box{top:var(--gutter);left:var(--gutter);width:clamp(174px,19vw,246px);padding:11px 15px;position:absolute}.place-line{align-items:center;gap:9px;margin-bottom:7px;display:flex}.waymark{color:var(--gold);font:34px/1 Georgia}#area-name{letter-spacing:.08em;color:#d8c494;font-size:.72em}#location{letter-spacing:.03em;margin:1px 0;font-family:Yu Mincho,serif;font-size:1.15em;line-height:1.3}.meter{grid-template-columns:22px 1fr 46px;align-items:center;gap:4px;line-height:1.32;display:grid}.meter>span,.meter>output{letter-spacing:.02em;font-size:10px}.meter>output{text-align:right}#hud i:has(b){background:#0d241f;border-radius:8px;height:5px;display:block;overflow:hidden}#hud i>b{background:#dd8b74;height:100%;transition:width .12s;display:block}.meter.st i>b{background:#a7c588!important}.status-bottom{border-top:1px solid #d6cead35;justify-content:space-between;align-items:center;margin-top:7px;padding-top:5px;font-size:.76em;display:flex}#gold{color:#f3cc80}#map-key{top:var(--gutter);right:max(16px,env(safe-area-inset-right));justify-items:center;width:clamp(105px,13vw,160px);display:grid;position:absolute;background:#253f34ed!important;padding:4px!important}#minimap{width:100%;height:clamp(65px,12vh,118px)}#map-key span{font-size:11px}#objective{top:calc(var(--gutter) + 4px);text-align:center;border-radius:2px 2px 12px 12px;gap:2px;max-width:40vw;padding:7px 16px 9px;display:grid;position:absolute;left:50%;transform:translate(-50%)}#objective b{color:#d3ba7d;letter-spacing:.08em;font-size:.68em;font-weight:650}#objective-copy{font-size:.91em}#bearing,#target-label{white-space:nowrap;text-shadow:0 1px 3px #203329;background:#233b2fe6;border:1px solid #d6cb9b90;border-radius:15px;padding:5px 11px;font-size:.84em;position:absolute}#bearing{color:#ffdf91;align-items:center;gap:6px;display:flex}#bearing-arrow{font-size:19px;line-height:1;display:inline-block}#target-label{color:#2d4437;text-shadow:none;background:#f6edcfee;font-weight:700;transform:translate(-50%,-100%)}#battle{text-align:center;background:#422e29e8;border:1px solid #df9e73;border-radius:5px;min-width:180px;padding:5px 12px;position:absolute;top:16%;left:50%;transform:translate(-50%)}#battle span{font-size:12px;display:block}#message{text-align:center;color:#fff9e3;white-space:pre-line;text-shadow:0 1px 2px #21362a;pointer-events:none;max-width:min(580px,63vw);position:absolute;bottom:clamp(122px,20vh,186px);left:50%;transform:translate(-50%)}#message:not(:empty){background:#253b2eed;border:1px solid #d6c39285;border-radius:6px;padding:8px 17px}#movement{bottom:max(31px,5vh);left:calc(var(--gutter) + 12px);justify-items:center;gap:4px;display:grid;position:absolute}#stick{aspect-ratio:1;touch-action:none;background:#293e286e;border:2px solid #fff4d593;border-radius:50%;width:clamp(82px,13vmin,122px);position:relative;box-shadow:inset 0 0 0 7px #e5dfb212,inset 0 0 0 8px #e9e6ca4a}#stick:before{content:"✧";color:#fcf3cf82;font:25px Georgia;position:absolute;top:2%;left:50%;transform:translate(-50%)}#thumb{background:#e9dfb492;border:1px solid #e7dbb9ad;border-radius:50%;width:43%;height:43%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 5px #15271c47}.move-caption{letter-spacing:.08em;text-shadow:0 1px 3px #1a2c22;font:10px/1.4 monospace}.move-caption i{letter-spacing:0;font:11px sans-serif}#selections{left:var(--gutter);position:absolute;bottom:calc(46px + clamp(82px,13vmin,122px))}#selections button{min-height:34px;font-size:11px}#field-menu{bottom:max(16px,env(safe-area-inset-bottom));gap:5px;display:flex;position:absolute;left:50%;transform:translate(-50%)}#field-menu button span{color:#d5bc83}#quick{right:var(--gutter);gap:5px;display:flex;position:absolute;bottom:calc(max(20px,4.7vh) + 114px)}#quick button{place-items:center;min-width:48px;font-size:10px;display:grid}#verbs{right:var(--gutter);grid-template-columns:1fr 1fr;gap:6px;display:grid;position:absolute;bottom:max(20px,4.7vh)}#verbs button{touch-action:none;min-width:78px}#verbs .primary-verb{color:#26382e;background:#ebd59f;font-weight:750}#verbs .primary-verb kbd{color:#3f503e;border-color:#7a866b87}#action-time{text-align:center;background:#213c2fe8;border-radius:7px;min-width:100px;padding:6px 12px;position:absolute;top:60%;left:50%;transform:translate(-50%)}#action-time b{background:#efcf80!important}#panel,#confirm,#fault{z-index:5;background:#10251ed1;place-items:center;padding:16px;display:grid}.sheet,.confirm-sheet{background:#f5efdc;border:1px solid #c6b58c;overflow:hidden;box-shadow:0 15px 60px #0b191a60,inset 0 0 0 4px #f6f0df,inset 0 0 0 5px #c9b991}.sheet{border-radius:9px;flex-direction:column;width:min(810px,100%);height:min(665px,95%);max-height:92%;display:flex}.sheet-header{flex:none;justify-content:space-between;align-items:center;padding:19px 25px 13px;display:flex}.sheet-place{color:#7b6d46;letter-spacing:.1em;font-size:11px;font-weight:650}.sheet-header h2,.confirm-sheet h2{font-family:Yu Mincho,Georgia,serif;font-size:calc(26px * var(--scale));margin:2px 0 0}.sheet button,.confirm-sheet button,#portrait button{font-weight:600;font-size:calc(13px * var(--scale));background:#ebe5d1;border:1px solid #b2ae93;border-radius:4px;padding:8px 12px}.sheet button:hover,.confirm-sheet button:hover{background:#ded9c0}.sheet button:disabled{opacity:.48}.sheet #close-panel{background:0 0;border-color:#0000;width:48px;height:48px;padding:0;font:30px/1 Georgia}.sheet nav{border-bottom:1px solid var(--edge);flex:none;gap:4px;padding:0 21px 8px;display:flex;overflow:auto}.sheet nav:empty{display:none}.sheet nav button{white-space:nowrap;background:0 0;border-color:#0000;padding:6px 12px}.sheet nav button.current,.sheet button.chosen{color:#fff6df;background:var(--pine);border-color:var(--pine)}#panel-body{overscroll-behavior:contain;min-height:0;font-size:calc(14px * var(--scale));scrollbar-color:#a7af94 #ece7d5;flex:1;padding:9px 25px 15px;overflow:auto}#panel-note{color:#384f36;white-space:pre-line;font-size:calc(12px * var(--scale));background:#e2e4cc;flex:none;padding:8px 25px}#panel-note:empty{display:none}.section-head{border-bottom:1px solid #c8c8aa;justify-content:space-between;align-items:baseline;gap:8px;margin:10px 0 3px;padding:0 0 7px;display:flex}.section-head h3{margin:0;font-family:Yu Mincho,serif;font-size:1.08em}.subtle,.entry-info p,.panel-copy{color:#5d6657}.subtle{font-size:.85em}.entry{border-bottom:1px solid #dcd9c3;align-items:center;gap:10px;padding:10px 0;display:flex}.entry-info{flex:1;min-width:0}.entry-info p,.panel-copy{white-space:pre-line;margin:4px 0;font-size:.92em;line-height:1.6}.entry-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.entry-tag{color:#78612f;font-size:.8em}.entry-icon{color:#7c6438}.standalone{margin:5px 5px 5px 0}.quantity,.setting{justify-content:space-between;align-items:center;gap:12px;padding:8px 3px;display:flex}.quantity input{border:1px solid var(--edge);background:#fffbea;max-width:5em;padding:6px}.setting input[type=range]{width:min(160px,40%)}.setting input,.setting select{accent-color:var(--pine)}.atlas-map{border:1px solid var(--edge);border-radius:5px;width:100%;height:clamp(165px,32vh,360px);margin:10px 0;display:block}.story-quote{background:#eee6cf;border-left:3px solid #aa8c52;margin:12px 0;padding:12px 15px;font-family:Yu Mincho,serif;font-size:1.18em;line-height:1.85}.story-quote b{color:#7c6438;font-family:Yu Gothic UI,sans-serif;font-size:.75em;display:block}.confirm-sheet{border-radius:8px;width:100%;max-width:520px;padding:24px}.confirm-sheet p{white-space:pre-line;line-height:1.7}.confirm-sheet button{margin:3px}.confirm-sheet div{justify-content:flex-end;gap:5px;display:flex}#confirm{z-index:8}#confirm-yes{color:var(--cream);background:var(--pine)}#fault{z-index:11}#portrait{display:none}#game[data-hand=left] #verbs,#game[data-hand=left] #quick{left:var(--gutter);right:auto}#game[data-hand=left] #movement,#game[data-hand=left] #selections{right:var(--gutter);left:auto}#game[data-contrast=high] .hud-glass,#game[data-contrast=high] #hud button{background:#122c22;border-color:#fff5cb}#game[data-motion=off] *{transition:none!important}@media (height<=520px){.cover-content{padding-top:24px;padding-bottom:22px}.compass-mark{font-size:28px}h1{margin-top:5px;font-size:clamp(42px,8vw,76px)}.home-actions{margin-top:18px}.start-button{padding:10px 17px}.subtitle{margin-top:4px}.sheet{height:100%;max-height:100%}#panel{padding:7px}.sheet-header{padding:6px 15px 2px}.sheet-header h2{font-size:calc(19px * var(--scale))}.sheet nav{padding:2px 12px 4px}#panel-body{padding:4px 14px 10px}.entry{padding:6px 0}#status-box{width:158px;padding:6px 9px}.place-line{gap:6px;margin-bottom:2px}.waymark{font-size:26px}.status-bottom{margin-top:2px;padding-top:2px}#objective{max-width:40vw;padding:3px 9px 5px;top:12px}#map-key{width:87px}#minimap{height:50px}#movement{bottom:9px;left:18px}#stick{width:76px}.move-caption{display:none}#selections{bottom:90px}#verbs{gap:3px;bottom:12px}#verbs button{min-width:65px;padding:5px}#quick{bottom:116px}#field-menu{bottom:10px}#field-menu button{padding:5px 8px}#message{max-width:45vw;font-size:12px;bottom:62px}#battle{top:21%}}@media (width<=740px){#objective-copy{font-size:11px}#status-box{width:145px}#field-menu kbd,#verbs kbd,#map-key kbd{display:none}.sheet nav button{padding:6px 9px}.entry{flex-wrap:wrap}.entry-actions{gap:4px}#objective{max-width:38vw}.home-content{width:70%}.home-actions{min-width:220px}}@media (pointer:coarse){#hud button,.sheet button{min-height:48px}#hud kbd{display:none}#quick button{min-height:48px}.move-caption{display:none}}@media (orientation:portrait) and (width<=900px){#game[data-mode=field] #portrait{z-index:7;color:var(--cream);text-align:center;background:#1c352ef5;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}#portrait button{color:var(--ink)}.cover-content{width:94%;padding-left:10vw}.home-picture{background-position:65%}.home-shade{background:linear-gradient(90deg,#17332be0,#192b1c17)}.home-actions{min-width:245px}}.vault-prep{border-bottom:1px solid var(--edge);padding:10px 0 14px}.vault-prep h3{margin:0}.vault-prep-option{border-top:1px solid var(--edge);flex-wrap:wrap;align-items:center;gap:0 14px;display:flex}.vault-prep-choice{align-items:center;gap:9px;min-height:48px;display:inline-flex}.vault-prep-choice input{accent-color:var(--pine);width:18px;height:18px}.vault-prep-option input[type=number]{width:4.5em;min-height:48px}.vault-prep-launch,.vault-prep .entry-actions button{min-height:48px}.vault-prep .entry-actions{margin-top:8px}
