.frontier-game,.frontier-game *,.frontier-dialog *,.ingredient-dialog *{box-sizing:border-box}.frontier-game{padding:max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));pointer-events:none;grid-template-rows:auto auto minmax(64px,1fr) auto auto auto;grid-template-columns:minmax(0,1fr) clamp(290px,28vw,380px);gap:12px;height:100dvh;display:grid}.frontier-game>*{pointer-events:auto;min-width:0}.frontier-game>.frontier-canvas{z-index:-1;position:absolute;inset:0}.frontier-game .frontier-hud{border-radius:8px;flex-wrap:wrap;grid-area:1/1/2/-1;min-width:0;padding:.65rem 1rem;position:relative;inset:auto}.frontier-brand{min-width:0}.frontier-explorer{min-width:0;max-width:min(260px,30vw)}.frontier-explorer>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.frontier-game .frontier-explorer select{width:100%;max-width:100%;min-height:44px}.frontier-game .frontier-status{pointer-events:auto;grid-area:2/1;width:fit-content;min-width:0;max-width:100%;position:relative;inset:auto;overflow:auto}.frontier-game .frontier-status>div{flex:1 0 auto;padding:.45rem .65rem;display:block}.frontier-game .frontier-status small{white-space:nowrap}.frontier-game .frontier-map-controls{grid-area:3/1;align-self:start;width:fit-content;max-width:100%;margin:0;position:relative;inset:auto}.frontier-game .frontier-inspector{overscroll-behavior:contain;grid-area:2/2/6/3;width:100%;min-height:0;max-height:none;position:relative;inset:auto;overflow:auto}.frontier-game .inspector-toggle{display:none}.frontier-inspector-content{min-width:0}.frontier-game .expedition-actions{grid-area:4/1;justify-self:center;width:100%;max-width:850px;position:relative;inset:auto}.frontier-game .frontier-log{grid-area:5/1;justify-self:center;width:100%;max-width:850px;max-height:100px;margin:0;padding:.5rem 1rem;position:relative;inset:auto}.frontier-game .frontier-dock{border-radius:8px;flex-wrap:nowrap;grid-area:6/1/7/-1;min-width:0;height:auto;padding:.5rem;position:relative;inset:auto}.frontier-game .frontier-dock>div{overscroll-behavior-x:contain;scrollbar-width:thin;flex:1;gap:.5rem;min-width:0;padding:4px;display:flex;overflow-x:auto}.frontier-game .frontier-dock>span{overflow-wrap:anywhere;flex:0 180px}.frontier-game .frontier-dock>div>button{white-space:nowrap;flex:none}.frontier-game .frontier-admin{flex-shrink:0;position:relative}.frontier-admin summary{cursor:pointer;color:#f0cc83;white-space:nowrap;min-height:44px;padding:.7rem}.frontier-admin>div{z-index:30;background:var(--theme-night);border:1px solid #b59b62;border-radius:8px;width:min(340px,100vw - 32px);padding:1rem;position:absolute;bottom:calc(100% + 12px);right:0;box-shadow:0 8px 30px #0008}.frontier-admin p{font-size:1rem;line-height:1.5}.frontier-admin button{width:100%}.frontier-game .frontier-error{z-index:40;max-height:40dvh;position:fixed;top:12px;overflow:auto}.frontier-game .frontier-map-mode{bottom:85px;left:16px}.frontier-dialog{box-sizing:border-box;overscroll-behavior:contain;scrollbar-gutter:stable;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}.frontier-dialog>header{gap:.75rem}.frontier-dialog>header>h2{overflow-wrap:anywhere;min-width:0}.frontier-dialog>header>button{flex-shrink:0}.frontier-dialog :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%;font-size:1rem}.frontier-dialog :is(article,section,.town-columns>*,.ruin-layout>*){min-width:0}.frontier-dialog :is(p,h3,h4,strong,dd,li){overflow-wrap:anywhere}.frontier-dialog :is(.recipe-grid,.ingredient-slots){grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}.frontier-dialog .recipe-card{min-width:0}.frontier-dialog .town-resource-hand{grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr))}.frontier-dialog .gear-slots{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.frontier-dialog .frontier-modal-error{color:#6d231c;background:#ffe1ca;border-left:4px solid #9d4639;padding:1rem}.ingredient-dialog{box-sizing:border-box;overscroll-behavior:contain;scrollbar-gutter:stable;width:min(900px,100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}.ingredient-dialog>header{z-index:2;background:var(--theme-parchment);padding-block:.65rem;position:sticky;top:-1px}.ingredient-dialog>header>div{min-width:0}.ingredient-dialog h2{overflow-wrap:anywhere}.ingredient-dialog .ingredient-slots{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}@media (min-width:1600px){.frontier-game{grid-template-columns:minmax(0,1fr) 410px;gap:16px;padding:16px}}@media (max-width:1100px){.frontier-game .frontier-dock>span{display:none}.frontier-game .expedition-action img{height:42px}.frontier-game .expedition-action small,.frontier-game .frontier-map-controls span,.frontier-game .frontier-log{display:none}.frontier-game{grid-template-rows:auto auto minmax(64px,1fr) auto 0 auto;row-gap:8px}}@media (max-width:760px){.frontier-game{padding:max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));grid-template-rows:auto auto minmax(54px,1fr) auto auto auto;grid-template-columns:minmax(0,1fr);gap:6px}.frontier-game .frontier-hud{gap:.4rem;padding:.4rem .6rem}.frontier-brand{flex:140px}.frontier-brand h1{font-size:1.15rem}.frontier-game .frontier-explorer{flex:130px;max-width:none}.frontier-game .frontier-hud>button{flex:auto;padding:.4rem .6rem;font-size:.875rem}.frontier-game .frontier-status{width:100%}.frontier-game .frontier-status>div{padding:.35rem .5rem}.frontier-game .frontier-status strong{font-size:1.1rem}.frontier-game .frontier-map-controls{flex-wrap:nowrap;gap:.35rem}.frontier-game .frontier-map-controls button{min-height:44px;padding:.4rem .55rem;font-size:.875rem}.frontier-game .frontier-inspector{z-index:10;grid-area:4/1;align-self:end;max-height:none;overflow:visible}.frontier-game .inspector-toggle{text-align:left;width:100%;margin:0;display:block}.frontier-game .frontier-inspector-content{overscroll-behavior:contain;background:var(--theme-parchment);border:1px solid #ad9562;border-radius:8px;max-height:min(65dvh,100dvh - 165px);display:none;position:absolute;bottom:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 -8px 30px #0006}.frontier-game .frontier-inspector.is-open .frontier-inspector-content{display:block}.frontier-game .discovery-art{height:110px}.frontier-game .expedition-actions{grid-area:5/1}.frontier-game .expedition-actions>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem}.frontier-game .expedition-action img,.frontier-game .expedition-action small{display:none}.frontier-game .expedition-action{padding:.4rem .2rem}.frontier-game .expedition-action strong{overflow-wrap:anywhere;font-size:.875rem}.frontier-game .expedition-action span{font-size:.875rem}.frontier-game .expedition-actions>p{letter-spacing:0;margin:.15rem 0;font-size:1rem}.frontier-game .expedition-actions>p:first-child{display:none}.frontier-game .frontier-dock{grid-area:6/1;gap:.2rem;padding:.2rem}.frontier-game .frontier-dock button{min-height:44px}.frontier-dialog{max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.frontier-dialog>header{padding:.75rem}.frontier-dialog :is(.progression-board,.magic-board,.resource-board,.crafting-table){padding:.85rem}.frontier-dialog .resource-board-compact{padding:0}.frontier-dialog .resource-hand{gap:.8rem}.frontier-dialog .resource-stack{width:calc(50% - .4rem)}.frontier-dialog .outpost-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.ingredient-dialog{padding:.85rem}.ingredient-dialog>header>button{flex-shrink:0}.ingredient-dialog .ingredient-hand .material-card{width:min(145px,50% - .5rem)}}@media (max-height:650px) and (min-width:761px){.frontier-game{grid-template-rows:auto auto minmax(44px,1fr) auto 0 auto;gap:6px}.frontier-game .frontier-log,.frontier-game .expedition-actions>p,.frontier-game .expedition-action img{display:none}.frontier-game .frontier-status>div{padding:.25rem .6rem}.frontier-game .frontier-hud{padding:.35rem .65rem}.frontier-game .frontier-brand small,.frontier-game .frontier-map-controls span{display:none}}@media (max-height:500px) and (max-width:760px) and (orientation:landscape){.frontier-game{grid-template-rows:auto auto minmax(44px,1fr) auto;grid-template-columns:minmax(0,1fr) 160px}.frontier-game .frontier-hud{flex-wrap:nowrap;grid-area:1/1/2/-1}.frontier-game .frontier-brand{display:none}.frontier-game .frontier-explorer{flex:1}.frontier-game .frontier-status{grid-area:2/1}.frontier-game .frontier-map-controls{grid-area:3/1}.frontier-game .frontier-inspector{grid-area:3/2}.frontier-game .frontier-inspector-content{width:min(400px,100vw - 20px);max-height:none;position:fixed;inset:60px 10px 65px auto}.frontier-game .expedition-actions{grid-area:2/2}.frontier-game .expedition-actions>div{grid-template-columns:repeat(2,minmax(0,1fr))}.frontier-game .expedition-actions>p{display:none}.frontier-game .frontier-dock{grid-area:4/1/5/-1}}@media (max-width:760px) and (max-height:620px) and (orientation:portrait){.frontier-game .frontier-brand small,.frontier-game .expedition-actions>p{display:none}.frontier-game .frontier-hud{gap:.25rem}.frontier-game .frontier-status .daylight-status>small:last-child{display:none}}.frontier-game,.frontier-dialog,.ingredient-dialog{--frontier-font:var(--font-frontier-ui);font-family:var(--frontier-font);font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1, "tnum" 1;letter-spacing:normal}.frontier-game :is(button,input,select,textarea),.frontier-dialog :is(button,input,select,textarea),.ingredient-dialog :is(button,input,select,textarea){font-family:var(--frontier-font);font-variant-numeric:lining-nums tabular-nums}.frontier-game .frontier-brand h1{font:650 1.4rem/1.25 var(--frontier-font);letter-spacing:-.025em}.frontier-game .frontier-status strong{font:650 1.5rem/1.25 var(--frontier-font);font-variant-numeric:lining-nums tabular-nums;color:var(--theme-night-ink);letter-spacing:-.02em;align-items:baseline;gap:.2rem;display:flex}.frontier-game .frontier-status strong span{font:400 .875rem/1.3 var(--frontier-font);color:#bacbc0;white-space:nowrap}.frontier-game .frontier-status>div{min-width:76px;padding:.6rem .8rem}.frontier-game .frontier-status small{font-weight:500}.frontier-game .expedition-action strong{font:650 1rem/1.3 var(--frontier-font);text-transform:none;letter-spacing:0}.frontier-dialog :is(h2,h3,h4),.ingredient-dialog :is(h2,h3,h4){font-family:var(--frontier-font);letter-spacing:-.02em;font-weight:650}.frontier-dialog .material-card strong,.ingredient-dialog .material-card strong{font:600 1.05rem/1.35 var(--frontier-font)}.frontier-dialog .material-card span,.ingredient-dialog .material-card span{font:650 1.25rem/1.3 var(--frontier-font)}.frontier-dialog .frontier-camp-content dd{font:650 1.8rem/1.3 var(--frontier-font)}.frontier-game .frontier-inspector{background:var(--theme-parchment-raised);color:var(--theme-parchment-ink);scrollbar-width:thin;scrollbar-color:#a5af99 #eeece2;border:1px solid #b5bba6;border-radius:12px;box-shadow:0 12px 32px #17392d30}.inspector-heading{color:var(--theme-parchment-muted);letter-spacing:.08em;background:#e7ecdf;border-bottom:1px solid #cad1bf;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1.15rem;font-size:.875rem;font-weight:600;display:flex}.inspector-heading>span:last-child{letter-spacing:0;font-variant-numeric:tabular-nums}.frontier-game .discovery-art{object-position:center;border-bottom:0;height:160px}.frontier-game .discovery-copy{padding:1.15rem}.discovery-meta{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.frontier-game .discovery-meta small{color:var(--theme-parchment-muted);letter-spacing:.075em;font-weight:650}.discovery-meta>span{color:var(--theme-parchment-muted);background:#e7ecdf;border-radius:20px;padding:.2rem .55rem;font-size:.875rem}.frontier-game .discovery-copy h2{font:650 1.6rem/1.2 var(--frontier-font);text-transform:none;letter-spacing:-.025em;color:var(--theme-parchment-ink);margin:.8rem 0 .65rem}.frontier-game .frontier-inspector p{color:#526054;font:400 1rem/1.6 var(--frontier-font)}.frontier-game .discovery-copy .discovery-note{background:var(--theme-parchment);color:var(--theme-parchment-muted);border-left:3px solid #a4b58a;margin:1rem 0 0;padding:.65rem .8rem;font-size:1rem}.frontier-game .discovery-choices{gap:.6rem;margin:1rem 0 0}.frontier-game .discovery-choices button{background:var(--theme-parchment-raised);color:var(--theme-parchment-ink);border:1px solid #c9d0bc;border-radius:8px;padding:.85rem 1rem;box-shadow:0 2px 4px #283c2410}.frontier-game .discovery-choices strong{font:600 1rem/1.35 var(--frontier-font)}.frontier-game .discovery-choices span{color:var(--theme-parchment-muted);font:400 .875rem/1.5 var(--frontier-font)}.frontier-game .frontier-inspector button:disabled{opacity:1;background:var(--theme-parchment-raised);color:var(--theme-parchment-muted);box-shadow:none;border-color:#d5d9cc}.frontier-game .frontier-inspector button:disabled span{color:var(--theme-parchment-muted)}.frontier-game .frontier-inspector button:hover:not(:disabled){background:#e6eddc;border-color:#84996f}.frontier-game .frontier-inspector-body{border-top:1px solid #cbd1bf;margin:0 1.15rem 1.15rem;padding:1rem 0 0}.frontier-game .inspector-section-title{font:650 .875rem/1.4 var(--frontier-font);letter-spacing:.06em;text-transform:uppercase;color:var(--theme-parchment-muted);margin:0 0 .75rem}.frontier-game .frontier-inspector details{border-top:0;border-bottom:1px solid #d7dccc;margin:0;padding:.75rem 0}.frontier-game .frontier-inspector summary{color:var(--theme-parchment-muted);font-size:.875rem;font-weight:500;line-height:1.5}.frontier-game .frontier-inspector .frontier-primary:not(:disabled){color:#fff7df;background:#375c45;border-color:#375c45;padding:.9rem 1rem;box-shadow:0 3px 8px #26423020}.frontier-game .frontier-inspector .frontier-primary:hover:not(:disabled){background:#284934}.frontier-game .selected-hex-travel{align-items:stretch;gap:.65rem;margin:0 1.15rem 1.15rem;display:flex}.frontier-game .selected-hex-travel .frontier-primary{min-width:0;min-height:48px;font:600 1rem/1.4 var(--font-frontier-ui);flex:1;justify-content:center;align-items:center;gap:.65rem;margin:0;display:flex}.frontier-game .selected-hex-travel .dock-icon{flex:none;width:24px;height:24px}.frontier-game .selected-travel-costs{gap:.4rem;margin:0;display:flex}.frontier-game .selected-travel-costs>div{color:#82521b;background:#f2e1b8;border:1px solid #c7a258;border-radius:8px;place-items:center;min-width:48px;padding:.4rem;display:grid}.frontier-game .selected-travel-costs .is-provisions{color:#365a3c;background:#e2e8d0;border-color:#8d9e72}.frontier-game .selected-travel-costs dt{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.frontier-game .selected-travel-costs dd{font:700 1.5rem/1 var(--font-frontier-display);font-variant-numeric:lining-nums tabular-nums;align-items:center;gap:.25rem;margin:0;display:flex}.frontier-game .selected-travel-costs .travel-symbol{flex:none;width:22px;height:22px}.frontier-game .frontier-inspector.is-open .frontier-inspector-content{background:var(--theme-parchment-raised)}@media (max-width:760px){.frontier-game .frontier-status>div{min-width:64px;padding:.35rem .5rem}.frontier-game .frontier-status strong{font-size:1.2rem}.frontier-game .frontier-brand h1{font-size:1.1rem}.frontier-game .expedition-action strong{font-size:.875rem}.frontier-game .discovery-art{height:120px}.frontier-game .discovery-copy h2{font-size:1.4rem}}.frontier-game .frontier-weather{color:#eee6dc;background:linear-gradient(125deg,#202e38f5,#35273df5);border:1px solid #7c7187;border-radius:10px;width:min(480px,100%);margin-top:10px;display:block;box-shadow:0 6px 20px #14232c30}.frontier-weather summary{cursor:pointer;flex-wrap:wrap;align-items:center;gap:10px;min-height:60px;padding:12px 14px;display:flex}.frontier-weather summary svg{flex-shrink:0;width:38px;height:34px}.frontier-game .frontier-weather summary span{background:0 0;flex-direction:column;flex:1;gap:4px;min-width:140px;margin:0;padding:0;display:flex}.frontier-weather small{color:#c8bbc8;font-size:14px;line-height:1.5;display:block}.frontier-weather strong{color:#fff0dd;font-size:16px;line-height:1.4}.frontier-weather b{color:#e8b6bb;font-variant-numeric:tabular-nums;font-size:14px}.frontier-weather>div{padding:0 16px 16px}.frontier-weather p{margin:8px 0 12px;font-size:16px;line-height:1.6}.frontier-weather button{border-color:#b898a8;margin-bottom:10px}.frontier-weather.weather-storm{border-color:#c78095}@media (max-width:760px){.frontier-game .frontier-weather{width:min(360px,100%)}.frontier-weather summary{padding:8px 10px}.frontier-weather summary svg{width:28px}}.frontier-game .frontier-map-controls{flex-wrap:wrap}.frontier-game .frontier-weather{flex:0 480px;max-width:100%}.frontier-game .frontier-weather summary span{width:auto}
