:root{--parchment:#f4e6c8;--parchment-dark:#e6d1a6;--ink:#2b1d0e;--muted:#7a6446;--wood:#6b4423;--wood-dark:#3d2612;--gold:#e9b949;--red:#b23a2a;--green:#4f8a3a;--blue:#3d6fb6;color:var(--ink);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;font-family:Trebuchet MS,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:#2a3a20}a{color:var(--blue)}button,.button{font:inherit;color:var(--ink);border:2px solid var(--wood-dark);box-shadow:0 2px 0 var(--wood-dark);cursor:pointer;background:linear-gradient(#fff3d6,#e9d2a2);border-radius:6px;align-items:center;gap:.35rem;padding:.4rem .8rem;font-weight:700;text-decoration:none;display:inline-flex}:where(button:not(:disabled),.button):hover{background:linear-gradient(#fffaf0,#f1dcb0)}:where(button.primary,button.big,.button.primary,.chip.active,.button.twitch,.button.youtube):hover:not(:disabled){filter:brightness(1.08)}button:active:not(:disabled){box-shadow:0 1px 0 var(--wood-dark);transform:translateY(1px)}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:linear-gradient(#ffd977,#e0a92f)}input{font:inherit;border:2px solid var(--wood);color:var(--ink);background:#fffaf0;border-radius:5px;padding:.35rem .5rem}.language-switcher{font:inherit;border:1px solid var(--wood);color:var(--ink);cursor:pointer;background:#fffaf0;border-radius:4px;padding:.1rem .25rem;font-size:.8rem}.home-title{justify-content:space-between}kbd{border:1px solid var(--wood);color:var(--ink);background:#fffaf0;border-radius:3px;padding:0 .3rem;font-size:.7rem}.muted{color:var(--muted);font-weight:400}.small{font-size:.85rem}.error{color:var(--red);font-weight:700}.warning{color:#a85a00}.highlight{color:#9a6b00;font-weight:700}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.badge{background:var(--parchment-dark);color:var(--ink);border-radius:999px;margin-left:.4rem;padding:.1rem .45rem;font-size:.75rem;font-weight:700}.tile-icon{vertical-align:middle}.resource-icon{vertical-align:middle;line-height:0;display:inline-block;position:relative}.sharpen-badge{color:#fff4d2;text-align:center;pointer-events:none;background:#6b2a12;border-radius:999px;min-width:1rem;padding:0 .12rem;font-size:.62rem;font-weight:800;line-height:1rem;position:absolute;bottom:-.15rem;right:-.2rem;box-shadow:0 0 0 1px #fff4d2}.durability-badge{color:#fff4d2;text-align:center;pointer-events:none;background:#3d4a2a;border-radius:999px;min-width:1rem;padding:0 .12rem;font-size:.62rem;font-weight:800;line-height:1rem;position:absolute;bottom:-.15rem;left:-.2rem;box-shadow:0 0 0 1px #fff4d2}.durability-badge.low{background:#8a2a1a}.bar{border:2px solid var(--wood-dark);background:#5a4630;border-radius:4px;flex:1;min-width:40px;height:10px;overflow:hidden}.bar>div{background:linear-gradient(#9fd36b,#5f9c35);height:100%;transition:width .3s}.bar.gold>div{background:linear-gradient(#ffe08a,#d79b1d)}.bar.wood>div{background:linear-gradient(#c98b4e,#8a5525)}.bar.stone>div{background:linear-gradient(#c9ccd3,#7e8594)}.bar.energy>div{background:linear-gradient(#8fd0ff,#3d86c6)}.bar.thin{border-width:1px;height:6px}html.game-viewport,html.game-viewport body{overscroll-behavior:none;overflow:hidden}html.game-viewport body{width:100%;height:100%;position:fixed;inset:0}.game-root{-webkit-user-select:none;user-select:none;position:fixed;inset:0;overflow:hidden}.game-canvas{touch-action:none;position:absolute;inset:0}.game-canvas canvas{image-rendering:pixelated;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;touch-action:none;display:block}.hud{pointer-events:none;padding:max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));flex-direction:column;justify-content:space-between;display:flex;position:absolute;inset:0}.hud>*{pointer-events:auto}.hud>.hud-top{pointer-events:none}.hud-top>*{pointer-events:auto}.hud-top{grid-template-columns:1fr auto 1fr;align-items:start;gap:12px;display:grid}.hud-resources,.resource-chip,.project-banner,.chat-panel,.hud-status{color:#fff3d6;background:#2b1d0ed1;border:2px solid #1b1206;border-radius:8px;box-shadow:0 3px #00000059}.project-banner{text-align:center;border-color:var(--gold);background:linear-gradient(#781e14eb,#50120ceb);min-width:min(420px,60vw);padding:.4rem .9rem .55rem}.project-banner-title{color:#fff3d6;text-shadow:0 2px #000;margin-bottom:.3rem;font-family:Georgia,Times New Roman,serif;font-size:1.15rem;font-weight:700}.project-banner .dot{color:var(--gold)}.hud-resources{box-shadow:none;background:0 0;border:none;flex-wrap:wrap;justify-content:flex-end;justify-self:end;gap:4px;padding:4px;display:flex}.resource-chip{font-variant-numeric:tabular-nums;align-items:center;gap:.3rem;padding:.15rem .5rem .15rem .3rem;font-weight:700;display:inline-flex}.night-toggle{z-index:2;opacity:.75;padding:.15rem .5rem;font-size:.75rem;font-weight:700;position:absolute;top:50%;left:6px;transform:translateY(-50%)}.weather{display:inline-flex;position:relative}button.weather-chip{cursor:pointer}.weather-icon{background:#ffd24a;border-radius:50%;width:12px;height:12px;box-shadow:0 0 0 2px #e0a92f}.weather-chip.night.weather-clear .weather-icon{background:0 0;box-shadow:inset -4px 1px #e8ecf5}.weather-chip.raining .weather-icon{background:#9fb3c8;border-radius:50% 50% 4px 4px;box-shadow:0 0 0 2px #5b6f86}.weather-panel{z-index:5;color:#fff3d6;text-align:left;background:#2b1d0ef0;border:2px solid #1b1206;border-radius:8px;padding:.6rem .75rem;position:fixed;overflow-y:auto;box-shadow:0 3px #00000059}.weather-panel p{margin:.35rem 0}.weather-panel .muted{color:#cdb991}.weather-row{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.weather-effects-title{font-weight:700}.weather-effects{margin:0;padding-left:1.1rem}.weather-effects .good{color:#b8e986}.weather-effects .bad{color:#ffb347}.weather-synoptic{border-top:1px solid #fff3d640;margin-top:.5rem;padding-top:.4rem}.weather-buttons{gap:.5rem;display:flex}.weather-buttons button{flex:1}.chat-panel{background:#2b1d0eb8;flex-direction:column;align-self:flex-start;gap:.35rem;width:min(420px,100%);margin:auto 0 10px;padding:.4rem .7rem;font-size:.82rem;display:flex}.chat-panel.collapsed{width:auto}.chat-head{align-items:center;gap:.5rem;display:flex}.chat-head .hud-card-head{width:auto}.chat-head .chip{margin-left:auto;padding:.05rem .55rem;font-size:.75rem}.chat-lines{overscroll-behavior:contain;max-height:min(180px,16vh);margin:0;padding:0 .2rem 0 0;list-style:none;overflow-y:auto}.chat-line+.chat-line{margin-top:.2rem}.chat-line.activity{opacity:.75;font-style:italic}.chat-line.muted{color:#cdb991;margin:0}.chat-text{overflow-wrap:anywhere}.chat-author{color:var(--gold);font-weight:700}.chat-line.own .chat-author{color:#b8e986}.chat-author .badge{margin-left:.3rem;font-size:.7rem}.chat-form{gap:.4rem;display:flex}.chat-form input{flex:1;min-width:0;padding:.25rem .45rem;font-size:.85rem}.chat-form button{padding:.25rem .7rem;font-size:.85rem}.chat-error{color:#ffb347;margin:0}.hud-side{pointer-events:none;justify-content:space-between;align-items:flex-start;gap:10px;margin:8px 0 auto;display:flex}.hud-side>*{pointer-events:auto}.quest-tracker,.guide{color:#fff3d6;background:#2b1d0ed1;border:2px solid #1b1206;border-radius:8px;max-width:300px;padding:.4rem .7rem;font-size:.85rem;box-shadow:0 3px #00000059}.quest-tracker{border-color:var(--red)}.hud-card-head,.quest-tracker-body{width:100%;font-weight:inherit;color:inherit;text-align:left;box-shadow:none;background:0 0;border:none;padding:0;display:flex}.hud-card-head{color:var(--gold);align-items:baseline;gap:.6rem}.hud-card-head .small{margin-left:auto}.hud-card-fold{margin-left:auto;font-size:.9em}.hud-card-head .small+.hud-card-fold{margin-left:0}.hud-card-count{background:var(--red);color:#fff3d6;text-align:center;border-radius:999px;min-width:1.3rem;padding:0 .3rem;font-size:.78rem;font-weight:700}.quest-tracker-body{border-radius:4px;flex-direction:column;align-items:stretch}.quest-tracker-body:hover{background:#fff3d614}button.hud-card-head:active,button.quest-tracker-body:active{box-shadow:none}.quest-tracker ul{margin:.25rem 0 0;padding:0;list-style:none}.quest-tracker li+li{margin-top:.25rem}.quest-tracker li>span{display:block}.quest-next{opacity:.8;font-size:.78rem}.guide{border-color:var(--gold);margin-left:auto}.guide p{margin:.3rem 0 .45rem}.guide .link-button{color:#fff3d6;opacity:.75}.guide .highlight{color:var(--gold)}.card.quests{border-color:var(--red)}.card.quests-story{border-color:var(--gold)}.quest+.quest{border-top:1px dashed var(--parchment-dark);margin-top:.7rem;padding-top:.7rem}.quest h4{margin:0 0 .25rem;font-family:Georgia,Times New Roman,serif}.quest p{margin:0 0 .4rem}.quest-objectives{margin:0 0 .4rem;padding:0;list-style:none}.quest-objectives li.done{color:var(--green)}.quest-check{width:1.2rem;font-weight:700;display:inline-block}.hud-bottom{justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}.hud-left{flex-direction:column;align-items:flex-end;gap:6px;min-width:0;display:flex}.hud-needs{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.hud-needs .resource-chip{font-size:.85rem}button.hint-term{font:inherit;color:inherit;box-shadow:none;cursor:help;text-underline-offset:3px;background:0 0;border:none;border-radius:0;padding:0;text-decoration:none;text-decoration-thickness:1px;display:inline}button.hint-term.resource-hint{align-items:center;gap:.3rem;display:inline-flex}button.hint-term:hover,button.hint-term.open{text-decoration-style:solid}button.hint-term:active:not(:disabled){box-shadow:none;transform:none}.hint-popup{z-index:1000;background:var(--parchment);max-width:min(20rem,100vw - 16px);color:var(--ink);border:2px solid var(--wood-dark);white-space:pre-line;overflow-wrap:anywhere;box-sizing:border-box;border-radius:6px;max-height:calc(100dvh - 16px);padding:.5rem .65rem;font-size:.85rem;font-weight:400;line-height:1.35;position:fixed;overflow-y:auto;box-shadow:0 3px #00000059}button.hint-term:focus-visible{outline-offset:3px;outline:2px solid}.hint-mark{opacity:.8;margin-left:.3rem;font-size:.75em}.need-summary>.hint-term{align-items:center;min-height:36px;display:inline-flex}button.hint-term.help-button{flex:none;justify-content:center;align-items:center;min-width:44px;min-height:44px;text-decoration:none;display:inline-flex}.economy-balances{align-items:center}.energy-shop-disclosure .energy-shop{box-shadow:none;border:0;margin:0;padding:0 0 .5rem}.energy-shop h3{justify-content:space-between;align-items:center;margin-block:0 .25rem;display:flex}.hud-needs .needs-warning{color:#ffb347;border-color:#a85a00}.drink-button{align-items:center;gap:.3rem;padding:.15rem .5rem .15rem .3rem;font-size:.85rem;display:inline-flex}.sleep-icon{color:#8fd0ff;justify-content:center;align-items:baseline;width:24px;font-weight:800;line-height:1;display:inline-flex}.morale-icon{text-align:center;color:#ffd166;width:24px;font-weight:700;line-height:1}.sleep-icon small{font-size:.7em;transform:translateY(-.35em)}.hud-status{justify-content:flex-end;align-items:center;gap:.6rem;min-width:min(440px,100%);padding:.45rem .7rem;display:flex}.hud-status .next-action{flex:1}.hud-buttons{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.next-action{flex-direction:column;gap:.3rem;display:flex}.next-action.compact{font-size:.95rem}.next-action .next-cancel{margin-left:.5rem;padding:.1rem .5rem;font-size:.85em}.next-action .bar{border-radius:6px;flex:none;height:16px}.bar.loader>div{background:repeating-linear-gradient(-45deg,#ffffff47 0 8px,#0000 8px 16px) 0 0/22.6px 100%,linear-gradient(#9fd36b,#5f9c35) 0 0/100% 100%;transition:width 1s linear;animation:.8s linear infinite loader-stripes}.bar.running{position:relative}.bar.running>div{background:linear-gradient(90deg,#0000,#ffe08a 30%,#d79b1d 70%,#0000);width:35%;animation:1.2s ease-in-out infinite running-line;position:absolute}@keyframes loader-stripes{to{background-position:22.6px 0,0 0}}@keyframes running-line{0%{left:-35%}to{left:100%}}@media (prefers-reduced-motion:reduce){.bar.loader>div,.bar.running>div{animation:none}.bar.running>div{width:100%;left:0}}.modal-body>.next-action{background:var(--parchment-dark);border:2px solid var(--wood);border-radius:8px;padding:.5rem .7rem}.modal-backdrop{z-index:1000;background:#0a080473;justify-content:center;align-items:center;padding:16px;animation:.15s ease-out fade-in;display:flex;position:absolute;inset:0}.modal,.done-panel{background:var(--parchment);border:3px solid var(--wood-dark);box-shadow:0 0 0 3px var(--wood), 0 12px 30px #00000080;border-radius:10px;flex-direction:column;min-width:0;max-width:100%;max-height:100%;display:flex}.modal.humor-dialog{overflow-wrap:anywhere;width:min(42rem,100vw - 24px);max-height:calc(100dvh - 24px)}.humor-dialog .modal-body{overscroll-behavior:contain;overflow:auto}.humor-dialog .menu-actions{flex-wrap:wrap}.humor-dialog button{min-height:44px}.kingdom-humor-history{overflow-wrap:anywhere}.kingdom-humor-history article+article{margin-top:1rem}.modal.menu{width:min(880px,100%);height:min(760px,100%)}.modal.inventory{width:min(640px,100%)}.modal.poll{width:min(720px,100%);animation:.2s ease-out pop-in}.poll-option{cursor:pointer}.poll-option input{margin-top:.3rem}.modal-header{color:#fff3d6;border-bottom:3px solid var(--wood-dark);background:linear-gradient(#8a5a30,#6b4423);border-radius:7px 7px 0 0;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .6rem .5rem .9rem;display:flex}.modal-header h2{align-items:center;gap:.5rem;margin:0;font-family:Georgia,Times New Roman,serif;font-size:1.25rem;display:flex}.modal-body{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:.8rem;min-height:0;padding:.8rem;display:flex;overflow-y:auto}.modal-footer{border-top:2px solid var(--parchment-dark);padding:.35rem .9rem}.menu-actions{border-top:2px solid var(--parchment-dark);flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:.5rem .9rem;display:flex}.menu-actions .danger{color:#8a1c10;border-color:#8a1c10;margin-right:auto}.close{flex-shrink:0;align-self:flex-start;padding:.2rem .55rem}.tabs{flex-wrap:wrap;gap:4px;min-width:0;display:flex}.tab{color:#fff3d6;box-shadow:none;background:0 0;border-color:#0000}.tab:hover:not(.active){background:#fff3d626}.tab.active{background:var(--parchment);color:var(--ink);border-color:var(--wood-dark)}.card{border:2px solid var(--parchment-dark);background:#fffaf0;border-radius:8px;padding:.7rem .85rem}.card h3{margin:0 0 .5rem;font-family:Georgia,Times New Roman,serif}.big-actions{grid-template-columns:repeat(2,1fr);gap:.6rem;display:grid}button.big{background:linear-gradient(#ffd977,#e0a92f);justify-content:center;padding:.9rem .5rem;font-size:1.15rem}.project-rows{flex-direction:column;gap:.35rem;margin:.6rem 0;display:flex}.project-row{grid-template-columns:9.5rem 1fr 6.5rem;align-items:center;gap:.5rem;font-size:.9rem;display:grid}.project-row span:first-child{align-items:center;gap:.3rem;display:inline-flex}.numbers{text-align:right;font-variant-numeric:tabular-nums}.task-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.5rem;display:grid}.task-card{text-align:left;align-items:flex-start;gap:.6rem;padding:.5rem .6rem;font-weight:400}.task-card.current{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}.tech-tree-scroll{padding:4px 4px 6px;overflow-x:auto}.tech-tree{margin:0 auto;position:relative}.tech-links{pointer-events:none;position:absolute;inset:0;overflow:visible}.tech-link{fill:none;stroke:#c9b48a;stroke-width:2px;stroke-dasharray:5 4}.tech-link.done{stroke:var(--green);stroke-dasharray:none}.tech-link.active{stroke:var(--wood-dark);stroke-width:3px}.tech-link.done.active{stroke:#2f6a1f}button.tech-node{text-align:left;gap:.4rem;padding:.25rem .4rem;font-weight:400;position:absolute}.tech-node.discovered{border-color:var(--green);background:linear-gradient(#e3f2cf,#b9d99a)}.tech-node.current{background:linear-gradient(#ffe9a8,#f0c55a);border-color:#a8761a}.tech-node.locked{color:var(--muted);background:#efe4cc;border-color:#a8916a;box-shadow:0 2px #a8916a}.tech-node.locked .tile-icon{filter:grayscale();opacity:.6}.tech-node.selected{outline:3px solid var(--blue);outline-offset:1px}.tech-node-text{flex-direction:column;flex:1;gap:.15rem;min-width:0;display:flex}.tech-node-name{text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:700;line-height:1.1;overflow:hidden}.tech-node-meta{color:var(--muted);font-size:.72rem}.tech-node .bar{flex:none;min-width:0}.tech-node .bar>span{background:linear-gradient(#ffe08a,#d79b1d);height:100%;display:block}.tech-details .task-card{display:flex}.task-text{flex-direction:column;gap:.1rem;display:flex}.task-name{font-weight:700}.task-meta{color:var(--muted);font-size:.8rem}.task-lock{color:var(--red);font-size:.8rem}.task-warning{color:#a85a00;font-size:.8rem}.chips{flex-wrap:wrap;gap:.4rem;display:flex}.chip{border-radius:999px;padding:.25rem .8rem}.chip.active{background:linear-gradient(#ffd977,#e0a92f)}.pick-card{color:var(--ink);border:2px solid var(--wood-dark);box-shadow:0 2px 0 var(--wood-dark);background:linear-gradient(#fff3d6,#e9d2a2);border-radius:6px;flex-direction:column;gap:.35rem;padding:.5rem .6rem;display:flex}.pick-card:has(.task-card.current){border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}.pick-card .task-card,.pick-card .task-card:hover,.pick-card .task-card:active{box-shadow:none;background:0 0;border:none;padding:0}.pick-card .chip{padding:.15rem .6rem;font-size:.85em}.pick-card .chip.unknown{filter:grayscale(.7);opacity:.75;align-items:center;min-height:1.6em;display:inline-flex}.pick-card .chip.unknown.active{filter:none;opacity:1}.field-beds{flex-direction:column;gap:.25rem;margin:0 0 .5rem;padding:0;list-style:none;display:flex}.field-bed{grid-template-columns:auto max-content minmax(0,1fr);align-items:center;gap:.5rem;display:grid}.field-bed .field-name{white-space:nowrap;overflow-wrap:normal;word-break:normal;min-width:max-content}.field-bed .field-state{overflow-wrap:break-word;word-break:normal;justify-self:end;width:max-content;max-width:100%}.field-bed.thirsty .muted{color:var(--red)}.farm-board{color:#352411;background:#f1dfb6;border:3px solid #78502d;border-radius:12px;flex:none;margin-block:.3rem;overflow:hidden;box-shadow:0 3px #4c321c,inset 0 0 0 2px #d6b16e}.farm-board-heading{background:linear-gradient(#d4af6f,#e7cfa0);border-bottom:2px solid #8f6339;align-items:center;gap:.3rem;padding:.2rem .5rem;font-weight:700;display:flex}.farm-board-heading>span{flex:1}.farm-ground{background:radial-gradient(at 15% 80%,#c4bc73 0 5%,#0000 6%),radial-gradient(at 80% 14%,#b1b369 0 4%,#0000 5%),repeating-linear-gradient(25deg,#0000 0 14px,#77924c33 15px 17px),linear-gradient(#94a758,#647e40);grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:0;min-height:215px;padding:1rem .2rem 2.4rem;display:grid;box-shadow:inset 0 5px 14px #334d3155}button.farm-plot{width:100%;min-width:0;height:140px;box-shadow:none;color:#fff8de;isolation:isolate;background:0 0;border:0;padding:0;position:relative}button.farm-plot:nth-child(3n+2){margin-top:30px}button.farm-plot:hover{background:0 0}.farm-soil{clip-path:polygon(50% 0,100% 32%,100% 63%,50% 100%,0 64%,0 32%);filter:drop-shadow(0 4px 2px #27361b88);z-index:-1;background:repeating-linear-gradient(155deg,#8e5f37 0 7px,#64401f 8px 12px,#ad8252 13px 15px);position:absolute;inset:28% 1% 6%}.farm-plot.selected .farm-soil{background:repeating-linear-gradient(155deg,#b0813e 0 7px,#764c23 8px 12px,#e0b85c 13px 15px)}.farm-plot.selected:after{content:"";clip-path:polygon(50% 0,100% 32%,100% 64%,50% 100%,0 64%,0 32%,50% 3%,2% 33%,2% 62%,50% 97%,98% 62%,98% 33%,50% 3%);z-index:-1;filter:drop-shadow(0 0 4px #ffd85a);background:#ffdb6e;position:absolute;inset:28% 0 6%}.farm-crop{pointer-events:none;place-items:center;display:grid;position:absolute;inset:6% 0 23%}.farm-bed-mark{color:#365426;background:#f4e5bacc;border-radius:50%;min-width:24px;font-size:18px;line-height:24px;position:absolute;top:4%;right:5%;box-shadow:0 1px 2px #30200b66}.farm-bed-number{text-shadow:1px 1px #261709;font-size:.8rem;font-weight:700;position:absolute;bottom:23%;left:44%}.farm-growth{background:#392915;border:1px solid #3c3622;border-radius:6px;height:7px;display:block;position:absolute;bottom:5%;left:15%;right:15%;overflow:hidden}.farm-growth>span{background:linear-gradient(#b9d865,#578a35);height:100%;display:block}.farm-plot.not-needed .farm-soil{opacity:.6}.farm-plot:focus-visible{outline-offset:-3px;border-radius:12px;outline:3px solid #f3ce68}.farm-selection{overflow-wrap:anywhere;background:#efe0b9;border-block:1px solid #b1894e;min-height:2.3rem;padding:.35rem .6rem;font-size:.85rem}.farm-toolbelt{background:repeating-linear-gradient(4deg,#725033 0 5px,#7e5937 6px 13px,#855f3c 14px 15px);grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:.25rem;padding:.4rem;display:grid}.farm-toolbelt>button{color:#edd6a1;background:linear-gradient(#9b7248,#6e4627);border:2px solid #bb9156;border-radius:9px;align-content:center;justify-items:center;gap:.1rem;min-width:44px;min-height:64px;padding:.2rem;font-size:.72rem;display:grid;box-shadow:0 2px #3b2618}.farm-toolbelt>button[aria-pressed=true]{color:#fff6d6;background:linear-gradient(#447c80,#225362);border-color:#a2dce0;box-shadow:inset 0 0 7px #64c6ce88,0 2px #1e3e43}.farm-toolbelt>button:disabled{opacity:.55}.farm-seeds{flex-wrap:wrap;gap:.3rem;padding:.4rem;display:flex}.farm-seeds>button{align-items:center;gap:.25rem;min-height:44px;font-size:.85rem;display:inline-flex}.farm-seeds>button[aria-pressed=true]{outline-offset:-2px;outline:2px solid #5f7336}.farm-tool-note{flex-wrap:wrap;align-items:center;gap:.25rem;padding:.3rem .5rem;font-size:.8rem;display:flex}.farm-tool-note .task-meta{margin:0}.farm-access-field{min-height:44px}.farm-worker,.farm-rain{margin:0;padding:.3rem .6rem;font-size:.85rem}.farm-care,.farm-history,.farm-forecast{padding:.35rem .5rem}.farm-care>summary,.farm-history>summary,.farm-history-crop>summary,.farm-forecast>summary{cursor:pointer;align-content:center;min-height:44px}.farm-care-list{margin:.3rem 0;padding-left:1.2rem;font-size:.85rem}.farm-care-list li{margin:.25rem 0}.farm-history{flex:none}.farm-history-crop{border-top:1px solid #a78954}.farm-history button{min-height:44px}.farm-plot.wet:not(.selected) .farm-soil{background:repeating-linear-gradient(155deg,#67422d 0 7px,#3e281c 8px 12px,#83603f 13px 15px)}.watch-stages{flex-direction:column;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.watch-stages li.current>.small{font-weight:700}.target-popup .project-row{grid-template-columns:7.5rem 1fr 4.5rem;font-size:.85rem}.target-popup .project-rows{margin:.3rem 0}.pixel-question{fill:#3a2a1a;flex:none}.task-card.mystery .pixel-question{margin:.2rem .4rem}.character-summary{grid-template-columns:2fr 1fr 1fr 1fr;gap:.8rem;margin-bottom:.6rem;display:grid}.character-summary>div{flex-direction:column;gap:.2rem;display:flex}.stats{border-collapse:collapse;width:100%}.portrait{image-rendering:pixelated;flex-shrink:0}.character-title{align-items:center;gap:.5rem;display:flex}.creation-layout{flex-wrap:wrap;gap:1rem;margin-bottom:.6rem;display:flex}.creation-preview{flex-direction:column;align-items:center;gap:.5rem;display:flex}.creation-preview .portrait{border:2px solid var(--wood-dark);background:radial-gradient(circle at 50% 70%,#8fbf5a 0%,#5a8f3c 70%);border-radius:8px}.creation-options{flex:1;min-width:14rem}.stepper{align-items:center;gap:.6rem;display:flex}.stepper span{text-align:center;min-width:3rem;font-weight:700}.swatches{flex-wrap:wrap;gap:.35rem;display:flex}.swatch{width:1.8rem;height:1.8rem;box-shadow:none;border-radius:50%;padding:0}.swatch.active{outline:3px solid var(--gold);outline-offset:2px}.swatch.original{background:repeating-linear-gradient(45deg,#fff3d6 0 4px,#e9d2a2 4px 8px)}.stats td{border-top:1px solid var(--parchment-dark);padding:.3rem}.stat-value{text-align:center;width:3rem;font-size:1.1rem;font-weight:700}.stat-progress{align-items:center;gap:.5rem;display:flex}.stat-allocation td{padding:.25rem .4rem}.allocation-buttons{white-space:nowrap;align-items:center;gap:.4rem;display:flex}.field{flex-direction:column;gap:.2rem;margin-bottom:.5rem;display:flex}.check-field{cursor:pointer;align-items:flex-start;gap:.5rem;margin-bottom:.75rem;display:flex}.inline-form{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.inline-form h3{width:100%}.join-error{width:100%;margin:0}input[aria-invalid=true]{border-color:var(--red)}.login-buttons{flex-wrap:wrap;gap:.5rem;margin-bottom:.6rem;display:flex}.dev-roles{flex-wrap:wrap;align-items:center;gap:.5rem;width:100%;display:flex}.password-login{max-width:22rem;margin-bottom:.6rem}.password-login .row{align-items:center;gap:.75rem}.button.twitch{color:#fff;background:#9146ff}.button.youtube{color:#fff;background:#e62117}.feed{margin:0;padding-left:1.1rem;font-size:.88rem}.inventory-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;display:grid}.slot{background:var(--parchment);color:var(--ink);border:2px solid var(--wood);border-radius:6px;flex-direction:column;align-items:center;gap:.2rem;padding:.5rem;display:flex;box-shadow:inset 0 0 0 2px #fffaf0}.slot-name{font-size:.85rem;font-weight:700}.slot-amount{font-variant-numeric:tabular-nums;font-size:.85rem}.slot .bar{width:100%}.done-panel{z-index:90;width:min(380px,100% - 32px);animation:.2s ease-out pop-in;position:absolute;bottom:70px;right:16px}.done-panel .modal-header{flex-shrink:0;padding-top:.8rem}.done-body{padding:.6rem .9rem 0}.done-body p{margin:0 0 .4rem}.done-results{margin:0 0 .5rem;padding-left:1.1rem}.done-actions{flex-flow:row-reverse wrap;align-items:center;gap:.4rem;padding:.6rem .9rem .8rem;display:flex}.target-popup{z-index:5;background:var(--parchment);border:3px solid var(--wood-dark);width:340px;max-height:60vh;box-shadow:0 0 0 2px var(--wood), 0 8px 20px #00000073;contain:paint;border-radius:10px;flex-direction:column;display:flex;position:absolute;overflow:hidden}.target-popup.sheet{left:8px;right:8px;bottom:max(8px, env(safe-area-inset-bottom));width:auto;max-height:55vh}.target-popup.farm-popup{width:min(520px,100% - 16px)}.target-popup.farm-popup.sheet{width:auto;max-height:min(85dvh,680px)}:root[data-ui-theme=dark] button.farm-plot{color:#fff8de;background:0 0}:root[data-ui-theme=dark] .farm-toolbelt>button[aria-pressed=true]{color:#fff6d6;background:#225362}.target-popup-header{color:#fff3d6;border-bottom:3px solid var(--wood-dark);background:linear-gradient(#8a5a30,#6b4423);border-radius:7px 7px 0 0;justify-content:space-between;align-items:center;gap:.5rem;padding:.35rem .45rem .35rem .75rem;font-family:Georgia,Times New Roman,serif;display:flex}.target-popup-body{overscroll-behavior:contain;flex-direction:column;gap:.5rem;padding:.6rem;display:flex;overflow-y:auto}.target-popup-body p{margin:0}.target-popup .task-grid{grid-template-columns:1fr}.placement-banner{color:#ffe066;background:#2b1d0ee0;border:2px solid #1b1206;border-radius:8px;flex-wrap:wrap;align-self:center;align-items:center;gap:.6rem;max-width:calc(100vw - 24px);margin-top:10px;padding:.45rem .9rem;font-weight:600;display:flex}.resource-source-banner>div{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.resource-source-banner>div>span{flex:180px}.resource-source-banner button{flex:none;min-width:44px;min-height:44px}@media (width>=901px){.resource-source-banner{align-self:flex-end;max-width:min(640px,100vw - 440px);margin-right:12px}}.raid-banner{text-align:center;color:#ffd9c2;background:linear-gradient(#460a0af0,#230505f0);border:2px solid #ff5a3c;border-radius:8px;align-self:center;min-width:min(380px,80vw);margin-top:8px;padding:.4rem .9rem .5rem;animation:1.6s ease-in-out infinite raid-pulse;box-shadow:0 0 12px #ff462873}.raid-banner-title{text-shadow:0 2px #000;font-family:Georgia,Times New Roman,serif;font-size:1.05rem;font-weight:700}.siege-panel{text-align:left;pointer-events:auto;max-width:min(560px,100vw - 48px)}.raid-banner:has(.siege-panel[open]){z-index:45;animation:none;position:relative}.siege-panel summary{cursor:pointer;min-height:32px;padding-top:6px}.siege-panel[open]{overscroll-behavior:contain;max-height:55vh;overflow:auto}.siege-panel button{white-space:normal;max-width:100%;min-height:44px;margin:3px}.siege-fields{flex-wrap:wrap;gap:6px;display:flex}.siege-fields label{flex-direction:column;flex:140px;min-width:0;display:flex}.siege-fields input,.siege-fields select{box-sizing:border-box;width:100%;min-height:44px}.raid-banner-row{justify-content:center;align-items:center;gap:.8rem;margin-top:.3rem;display:flex}.dungeon-banner{color:#dcd6e8;background:linear-gradient(#24222cf0,#100e14f0);border-color:#8a7aa8;animation:none;box-shadow:0 0 12px #8c78b473}.dungeon-roster{text-align:left;max-width:100%}.dungeon-roster summary{cursor:pointer}.dungeon-roster>span{overflow-wrap:anywhere;max-height:100px;display:block;overflow:auto}@media (width<=720px){.dungeon-banner{box-sizing:border-box;align-self:flex-start;width:calc(100% - 160px);min-width:0;padding:.35rem .45rem}.dungeon-banner .raid-banner-title{font-size:.9rem}.dungeon-banner .raid-banner-row{flex-direction:column;align-items:stretch;gap:.3rem}.dungeon-banner .raid-banner-row>.button,.dungeon-banner .raid-banner-row>button{min-height:44px}.dungeon-roster{font-size:.8rem}}.task-card.locked{opacity:.55}.dungeon-root .hud{justify-content:flex-start;gap:8px}.dungeon-top{color:#dcd6e8;background:#18161ce0;border:2px solid #8a7aa8;border-radius:8px;flex-wrap:wrap;justify-content:center;align-self:center;align-items:center;gap:.9rem;padding:.35rem .8rem;display:flex}.dungeon-hint{color:#dcd6e8;background:#18161cbf;border-radius:6px;align-self:center;padding:.2rem .6rem}.dungeon-hero{left:12px;bottom:max(10px, env(safe-area-inset-bottom));flex-direction:column;gap:.3rem;width:min(280px,100vw - 24px);display:flex;position:absolute}.dungeon-hero .bar>div{background:#d03030}@keyframes raid-pulse{50%{box-shadow:0 0 22px #ff4628cc}}@media (prefers-reduced-motion:reduce){.raid-banner{animation:none}}.injury-icon{color:#ff5a3c;text-align:center;width:18px;font-weight:700}.fight-report{background:#ff5a3c14;border-left:3px solid #ff5a3c;margin:.4rem 0;padding:.4rem .6rem}.fight-report.won{background:#6fbf4a14;border-left-color:#6fbf4a}.task-danger{color:#c0392b}.storage-list{margin:0;padding:0;list-style:none}.storage-list li+li{margin-top:.45rem}.storage-goods{flex-wrap:wrap;gap:.6rem;display:flex}.storage-take{margin:.3rem 0;padding:0;list-style:none}.storage-take li{align-items:center;gap:.5rem;margin:.25rem 0 0;display:flex}.storage-take li .take-amount{width:4rem;margin-left:auto}.cost{align-items:center;gap:.2rem;margin-right:.5rem;display:inline-flex}.card.hands{border-color:#a85a00}.link-button{box-shadow:none;color:inherit;cursor:pointer;background:0 0;border:none;padding:.2rem 0;text-decoration:underline}.zoom-controls{pointer-events:auto;flex-direction:column;gap:6px;display:flex;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.minimap{right:12px;top:max(10px, env(safe-area-inset-top));aspect-ratio:120/150;border:2px solid var(--gold);cursor:crosshair;touch-action:none;border-radius:6px;width:144px;position:absolute;overflow:hidden;box-shadow:0 4px 14px #00000073}.minimap canvas{width:100%;height:100%;position:absolute;inset:0}@media (width>=721px){.hud-top{padding-right:248px}.project-banner{grid-area:1/2}.hud-resources{grid-area:1/3;grid-template-columns:repeat(var(--columns), auto);padding:0;display:grid}.hud-side{padding-right:252px}.chat-panel{left:12px;bottom:max(10px, env(safe-area-inset-bottom));width:min(400px,32vw);margin:0;position:absolute}}@media (width<=720px){.game-root{--minimap-top:calc(var(--hud-top-bottom,122px) + 6px)}.minimap{right:8px;top:var(--minimap-top);width:67.2px}.hud-side{padding-right:124px}}.ui-toggle{z-index:40;top:calc(max(10px, env(safe-area-inset-top)) + 186px);justify-content:center;align-items:center;width:36px;height:36px;padding:0;display:flex;position:absolute;right:12px}.minimap-locate{top:calc(max(10px, env(safe-area-inset-top)) + 186px);justify-content:center;align-items:center;width:44px;height:44px;padding:0;display:flex;position:absolute;right:106px}.minimap-locate svg{width:18px;height:18px}.world-atlas-launch{top:calc(max(10px,env(safe-area-inset-top)) + 186px);pointer-events:auto;width:44px;height:44px;padding:0;font-size:26px;position:absolute;right:58px}.world-atlas{width:min(600px,100vw - 16px);max-height:85dvh}.world-atlas .modal-header h2{flex:1;margin:0}.world-route-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.world-route-list button{text-align:left;gap:3px;min-height:60px;padding:8px 24px 8px 8px;display:grid;position:relative}.world-route-list button>span{position:absolute;top:8px;right:8px}.world-route-list button[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:-2px}.world-route-list small{font-size:.75rem;font-weight:400}.world-route-detail{padding-top:8px}.world-route-detail h3{margin:.3rem 0}.world-route-resources{flex-wrap:wrap;gap:8px;margin:8px 0;display:flex}.world-route-resources>span{align-items:center;gap:4px;display:inline-flex}.world-route-detail>button{min-height:44px}.world-route-picker{display:none}@media (width<=720px){.world-atlas-launch{top:calc(var(--minimap-top) + 88px);right:58px}.world-route-list{display:none}.world-route-picker{flex-direction:column;gap:6px;display:flex}.world-route-picker select{width:100%;min-height:44px;font-size:1rem}.minimap-locate{top:calc(var(--minimap-top) + 88px);width:44px;height:44px;right:106px}.minimap-locate svg{width:16px;height:16px}}.ui-toggle svg{width:22px;height:22px}.music-toggle{z-index:40;top:calc(max(10px, env(safe-area-inset-top)) + 228px);justify-content:center;align-items:center;width:36px;height:36px;padding:0;display:flex;position:absolute;right:12px}.music-toggle svg{width:22px;height:22px}.music-volume{flex-direction:column;gap:.35rem;margin-top:.6rem;display:flex}.music-volume input[type=range]{width:100%;min-height:44px;box-shadow:none;accent-color:#986b18;background:0 0;border:0;padding:0}@media (width<=720px){.ui-toggle{top:calc(var(--minimap-top) + 90px);right:8px}.music-toggle{top:calc(var(--minimap-top) + 132px);right:8px}}.game-root.ui-hidden>:not(.game-canvas,.ui-toggle,.night-toggle,.music-toggle,.map-toolbar),.game-root.ui-hidden .minimap{display:none}.zoom-controls button{justify-content:center;align-items:center;width:40px;height:40px;padding:0;font-size:1.4rem;line-height:1;display:flex}.site-list{margin:0;padding:0;list-style:none}.site-list li+li{margin-top:.6rem}.site-head{flex-wrap:wrap;align-items:baseline;gap:.3rem .8rem;margin-bottom:.3rem;display:flex}.site-head .small-button{margin-left:auto;padding:.15rem .5rem;font-size:.8rem}.sites .card.site{margin:0 0 .6rem}.task-card.done{opacity:.6}.task-card .bar.thin{width:100%;margin-top:.15rem}.menu-screen,.splash{--menu-background:url(/dezertovia/assets/bgs/meadow-campfire.webp);isolation:isolate;min-height:100%;position:relative}.menu-screen.pond{--menu-background:url(/dezertovia/assets/bgs/meadow-pond.webp)}.menu-screen:before,.splash:before{content:"";z-index:-1;background:radial-gradient(ellipse at center, #140e0626 35%, #140e0699 100%), var(--menu-background) center / cover no-repeat, #2a3a20;image-rendering:pixelated;position:fixed;inset:0}.splash{color:#fff3d6;text-shadow:0 2px #000;flex-direction:column;justify-content:center;align-items:center;gap:1rem;height:100%;font-size:1.2rem;display:flex}.home{flex-direction:column;gap:1rem;max-width:760px;margin:0 auto;padding:2rem 1rem;display:flex}.home-header{color:#fff3d6;background:#2b1d0ed1;border:2px solid #1b1206;border-radius:10px;padding:.9rem 1.1rem;box-shadow:0 3px #00000059}.home-header p{margin:.4rem 0}.home .card{border:3px solid var(--wood-dark);box-shadow:0 0 0 2px var(--wood), 0 6px 16px #00000059}.home-header h1{color:var(--gold);text-shadow:0 3px #000;margin:0;font-family:Georgia,Times New Roman,serif;font-size:3rem}.village-list{margin:0;padding-left:1.2rem;line-height:1.8}.home-back{color:#fff3d6}a.button{text-decoration:none;display:inline-block}.button.primary{background:linear-gradient(#ffd977,#e0a92f)}textarea{font:inherit;border:2px solid var(--wood);color:var(--ink);resize:vertical;background:#fffaf0;border-radius:5px;padding:.35rem .5rem}.new-village h2{margin:0 0 .4rem;font-family:Georgia,Times New Roman,serif}.new-village .counter{align-self:flex-end}.access-options{border:none;grid-template-columns:1fr 1fr;gap:.5rem;margin:0 0 .8rem;padding:0;display:grid}.access-options legend{margin-bottom:.3rem;padding:0}.access-option{border:2px solid var(--parchment-dark);cursor:pointer;border-radius:8px;align-items:flex-start;gap:.5rem;padding:.6rem .7rem;display:flex}.access-option.active{border-color:var(--wood-dark);background:#fff3d6}.access-option>span{flex-direction:column;gap:.2rem;display:flex}@media (width<=720px){.access-options{grid-template-columns:1fr}}.open-villages{margin:0;padding:0;list-style:none}.open-villages li+li{border-top:1px dashed var(--parchment-dark);margin-top:.5rem;padding-top:.5rem}.open-villages p{margin:.2rem 0 0}.invite-row+.invite-row{margin-top:.4rem}.invite-link{flex:1;min-width:12rem}.invite-code{letter-spacing:.15em;border:2px dashed var(--wood);background:#fffaf0;border-radius:5px;padding:.2rem .6rem;font-size:1.2rem;font-weight:700}.invite-field input{letter-spacing:.15em;text-transform:uppercase;max-width:14rem}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:translateY(12px)}}@media (width<=720px){.hud{padding:max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom))}.hud-top{grid-template-columns:1fr;gap:6px}.hud-top-spacer{display:none}.project-banner{min-width:0;padding:.3rem .6rem .4rem}.project-banner-title{font-size:.95rem}.hud-resources{justify-content:flex-start;justify-self:stretch;padding:0}.resource-chip{padding:.1rem .35rem .1rem .2rem;font-size:.8rem}.hud-bottom{flex-direction:column;align-items:stretch;gap:6px}.hud-side{flex-direction:column;align-items:flex-start;gap:6px;margin:6px 0 auto}.quest-tracker,.guide{width:100%;max-width:none;margin-left:0;font-size:.8rem}.quest-tracker.collapsed,.guide.collapsed,.chat-panel.collapsed{width:auto;padding:.3rem .6rem}.chat-panel{width:100%;margin-bottom:6px}.chat-lines{max-height:120px}.hud-status{overflow-wrap:anywhere;grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr));gap:6px;width:100%;min-width:0;max-width:100%;display:grid}.hud-status .next-action{grid-column:1/-1;min-width:0}.hud-status>button{overflow-wrap:anywhere;max-width:100%}.hud-left,.hud-bottom{min-width:0;max-width:100%}.hud-needs .resource-chip{white-space:normal;overflow-wrap:anywhere;max-width:100%}.hud-status:empty{display:none}.hud-status>button{white-space:normal;flex:1;min-width:0}.hud-left{align-items:stretch}.hud-buttons{grid-template-columns:repeat(var(--hud-button-count,5), minmax(0, 1fr));gap:4px;display:grid}.hud-buttons button{white-space:normal;overflow-wrap:anywhere;justify-content:center;min-width:0;min-height:44px;padding:.55rem .2rem;font-size:.82rem}.modal-backdrop{padding:0}.modal.menu,.modal.inventory,.modal.poll{width:100%;height:100%;box-shadow:none;border-radius:0}.modal-header{border-radius:0}.modal>.modal-header{padding-left:calc(44px + env(safe-area-inset-left,0px))}.tab{padding:.4rem .55rem}.big-actions{grid-template-columns:1fr}button.big{padding:1rem;font-size:1.25rem}.project-row{grid-template-columns:7rem 1fr 5rem;font-size:.8rem}.character-summary{grid-template-columns:1fr 1fr}.done-panel{width:auto;bottom:120px;left:8px;right:8px}.modal-footer{display:none}}.update-prompt{left:50%;top:calc(12px + env(safe-area-inset-top));z-index:1001;background:var(--parchment);border:2px solid var(--wood-dark);border-radius:8px;align-items:center;gap:.5rem;max-width:calc(100vw - 16px);padding:.5rem .75rem;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 4px 12px #00000059}@media (width<=600px){.update-prompt{box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(360px,100vw - 16px);display:grid}.update-prompt>span{grid-column:1/-1;padding-inline-start:26px}.update-prompt>button{min-height:44px}}.chat-panel[data-mode]{z-index:70;min-width:0}.chat-panel[data-mode=hidden]{box-shadow:none;background:0 0;border:0;width:min(400px,100%);padding:0}.chat-launch{align-self:flex-start;align-items:center;gap:8px;width:max-content;max-width:100%;min-height:44px;padding:8px 16px;font-weight:700;display:inline-flex}.chat-launch svg{fill:none;stroke:currentColor;stroke-width:1.8px;width:22px;height:22px}.chat-panel[data-mode=quarter]{height:clamp(190px,25dvh,300px)}.chat-content:not([hidden]){flex-direction:column;flex:1;gap:6px;min-height:0;display:flex}.chat-content[hidden]{display:none}.chat-panel[data-mode] .chat-lines{overflow-anchor:none;flex:1;min-height:0;max-height:none}.chat-panel[data-mode] .chat-head{flex:none;gap:4px;min-width:0}.chat-panel[data-mode] .chat-head strong{overflow-wrap:anywhere}.chat-panel[data-mode] .chat-head .chip{white-space:normal;max-width:100px;min-height:36px;font-size:.72rem}.chat-control{flex:0 0 44px;justify-content:center;align-items:center;min-height:44px;padding:6px;display:inline-flex}.chat-control svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.chat-panel[data-mode] .chat-form{flex:none}.chat-panel[data-mode] .chat-form input{min-height:44px;font-size:16px}.chat-panel[data-mode] .chat-form button{overflow-wrap:anywhere;max-width:40%;min-height:44px}.chat-panel[data-mode=full]{z-index:100;width:auto;height:auto;padding:max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));border-color:var(--gold);background:linear-gradient(140deg,#382716,#21180f);border-radius:0;margin:0;font-size:1rem;position:fixed;inset:0}.chat-panel[data-mode=full] .chat-head{border-bottom:1px solid #8c693d;padding-bottom:6px}.chat-panel[data-mode=full] .chat-lines{-webkit-user-select:text;user-select:text;padding:10px 4px}.chat-jump{align-self:center;min-height:36px;font-size:.82rem}.chat-toasts{pointer-events:none;flex-direction:column;gap:6px;max-width:min(360px,100%);margin-bottom:8px;display:flex}.chat-toast{color:#fff3d6;border:1px solid var(--gold);text-align:left;background:#2b1d0ef0;border-radius:8px;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:44px;padding:8px 12px;animation:.15s ease-out chat-toast-in;display:flex}.chat-toast strong{color:var(--gold);overflow-wrap:anywhere}.chat-toast span{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}@keyframes chat-toast-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media (width>=1100px){.chat-panel[data-mode=hidden]{width:min(400px,32vw)}}@media (width<=720px){.chat-panel[data-mode=quarter]{width:100%;height:clamp(180px,25dvh,280px);padding:6px 8px}.chat-panel[data-mode=hidden]{width:100%;margin-bottom:6px}.chat-panel[data-mode=full]{width:auto;margin:0}.chat-panel[data-mode] .chat-head .chip{max-width:80px;padding:4px 6px}}@media (prefers-color-scheme:dark){.chat-panel[data-mode=full]{background:#171b1c}.chat-panel[data-mode=quarter],.chat-toast{background:#171b1cf5}}@media (prefers-reduced-motion:reduce){.chat-toast{animation:none}}.hud.chat-full>:not(.chat-panel){visibility:hidden}.game-root.chat-full-active>.ui-toggle{display:none}.chat-heading{text-align:left;flex:1;min-width:0}.chat-panel[data-interrupted=true]{display:none!important}.village-population{font-weight:700}.hospital-panel{width:min(100%,560px)}.hospital-panel .modal-body{min-width:0;overflow-x:hidden}.hospital-heading{align-items:center;gap:16px;display:flex}.hospital-portrait{width:100px;height:100px;image-rendering:pixelated;background-size:200px 100px;flex:0 0 100px}.hospital-countdown{font-variant-numeric:tabular-nums;font-size:1.35rem}.hospital-tiers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;display:grid}.hospital-tier{white-space:normal;overflow-wrap:anywhere;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;min-height:88px;display:flex}.hospital-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.hospital-panel button{white-space:normal;max-width:100%}.hospital-panel select{min-width:0;max-width:100%}.next-action.paused{border-color:#637f58}@media (width<=400px){.hospital-tiers{grid-template-columns:minmax(0,1fr)}}:root{--ui-font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;font-family:var(--ui-font)}button,input,select,textarea,.modal-header,.target-popup-header{font-family:var(--ui-font)}.civic-panel{margin-block:.75rem}.civic-actions,.civic-home,.civic-order{flex-wrap:wrap;align-items:center;gap:.5rem;margin-block:.6rem;display:flex}.civic-home>span,.civic-order>span{flex:none;width:100%}.civic-order{border-top:1px solid var(--border,#a58a58);padding-top:.5rem}.modal *,.target-popup *{overflow-wrap:anywhere;min-width:0}.modal button,.target-popup button{white-space:normal;max-width:100%}@media (width<=600px){.civic-actions button{flex:42%;min-height:44px}}:root[data-ui-theme=dark] .modal,:root[data-ui-theme=dark] .card,:root[data-ui-theme=dark] .target-popup,:root[data-ui-theme=dark] .chat-panel,:root[data-ui-theme=dark] .modal-body,:root[data-ui-theme=dark] .battle-controls{color:#e9dfca;background:#171b1b}:root[data-ui-theme=dark] .modal-header,:root[data-ui-theme=dark] .target-popup-header{color:#f2d58b;background:#25241e}:root[data-ui-theme=dark] .muted{color:#b8b5a7}:root[data-ui-theme=dark] input,:root[data-ui-theme=dark] textarea,:root[data-ui-theme=dark] select{color:#ede6d4;background:#202626}:root[data-ui-theme=dark] :where(button:not(.primary):not(.hint-term)){color:#ecdba9;background:#33332a}:root[data-ui-theme=dark] .slot{color:#ede6d4;background:#252b2b;border-color:#77674e;box-shadow:inset 0 0 0 2px #343b36}:root[data-ui-theme=dark] .slot .muted{color:#b8b5a7}:root[data-ui-theme=dark] .slot ::selection{color:#fff8e8;background:#6b4423}:root[data-ui-theme=dark] button:disabled{opacity:1;color:#d9d0bc;background:#2c312c;border-color:#6a5a42}:root[data-ui-theme=dark] button.primary:disabled{color:#6b5430;background:linear-gradient(#d9c091,#b89655)}:root[data-ui-theme=dark] button.active:not(.tab),:root[data-ui-theme=dark] .chip.active{outline-offset:1px;outline:2px solid #f2d58b}:root[data-ui-theme=dark] .modal-header .tab:not(.active){color:#f2d58b;box-shadow:none;background:0 0;border-color:#0000;outline:none}:root[data-ui-theme=dark] .modal-header .tab:not(.active):hover{background:#fff3d626}:root[data-ui-theme=dark] .modal-header .tab.active{background:var(--parchment);color:var(--ink);border:2px solid var(--wood-dark);box-shadow:none;outline:none}.hospital-bed-patient{text-align:center;background:linear-gradient(90deg,#eee2c8 0 25%,#496d66 25%);border:8px solid #65452c;border-radius:8px;width:150px;height:76px;margin:12px auto 20px;font-size:44px;line-height:1.3;position:relative;box-shadow:0 4px #33291c,inset 0 0 0 2px #9ba997}.hospital-bed-patient .portrait{width:60px;height:60px;image-rendering:pixelated;position:absolute;top:0;left:35px;transform:rotate(-90deg)}.hospital-patient-card{text-align:left;align-items:center;gap:14px;width:100%;margin-block:8px;padding:12px;display:flex}.patient-card-info{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.patient-card-info strong{overflow-wrap:anywhere}.patient-card-info span,.patient-card-info small{font-size:.9rem}.patient-mini-bed{background:linear-gradient(90deg,#eee2c8 0 25%,#496d66 25%);border:4px solid #65452c;flex:0 0 64px;height:36px;display:block;position:relative;box-shadow:0 3px #33291c}.patient-mini-bed .portrait{width:32px;height:32px;image-rendering:pixelated;position:absolute;top:-2px;left:14px;transform:rotate(-90deg)}:root .chat-panel[data-mode=hidden]{width:fit-content;max-width:100%;box-shadow:none;pointer-events:none;background:0 0;border:0;padding:0}.chat-panel[data-mode=hidden] .chat-launch,.chat-panel[data-mode=hidden] .chat-toast{pointer-events:auto}.chat-panel[data-interrupted=true]{pointer-events:none}.target-popup{z-index:80}.target-popup-header{flex:none}.target-popup-body{min-height:0}.stats{table-layout:fixed;width:100%}.stats td:first-child{overflow-wrap:anywhere;width:32%}.stats .stat-value{width:2rem}.stats .stat-progress{vertical-align:middle;display:table-cell}.stat-progress .bar{vertical-align:middle;width:40%;min-width:24px;margin-right:.4rem;display:inline-block}.stat-progress>span{white-space:normal;font-variant-numeric:tabular-nums;display:inline}.character-summary .bar{flex:none;height:10px}:root[data-ui-theme=dark] .modal-body>.next-action{color:#e9dfca;background:#242c29;border-color:#745638}.version-patch-notes{text-align:start;white-space:normal;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;width:100%;display:flex}.version-patch-notes span{font-size:.85em}.patch-notes{overflow-wrap:anywhere;min-width:0}.patch-notes-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.8rem;display:flex}.patch-notes-header h3{margin:0}.patch-notes details{border-top:1px solid var(--border,#96764a);padding:.8rem 0}.patch-notes summary{cursor:pointer;min-height:44px}.patch-notes summary strong{margin-inline-start:.3rem}.patch-notes time{margin:.3rem 0 0 1.3rem;font-size:.85em;display:block}.patch-notes ul{margin:.5rem 0;padding-inline-start:1.4rem}.patch-notes li{margin:.6rem 0;line-height:1.45}.almighty-panel{overflow-wrap:anywhere;min-width:0}.almighty-panel .row{flex-wrap:wrap}.almighty-panel button{white-space:normal;max-width:100%}.director-review-history summary{cursor:pointer;padding-block:.5rem}.director-review-snapshot{margin-block:.6rem}.director-review-snapshot dl{margin:.5rem 0}.director-review-snapshot dl>div{border-bottom:1px solid #9a764433;justify-content:space-between;gap:.75rem;padding-block:.2rem;display:flex}.director-review-snapshot dt{flex:1}.director-review-snapshot dd{text-align:right;font-variant-numeric:tabular-nums;margin:0}.economy-panel,.economy-panel *{box-sizing:border-box;min-width:0}.economy-panel summary{cursor:pointer;overflow-wrap:anywhere;padding-block:.5rem;font-weight:700}.economy-panel details{border-top:1px solid #b994513d;margin-top:.65rem}.economy-balances{flex-wrap:wrap;gap:.5rem 1rem;padding-block:.75rem;display:flex}.work-order-balances{align-items:center;gap:.5rem;padding-block:.5rem;display:flex}.work-order-balances>span{flex:1;min-width:0}.economy-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));align-items:end;gap:.5rem;margin-block:.65rem;display:grid}.work-orders .economy-controls>label:first-child,.work-orders .economy-controls>button,.supply-orders .economy-controls>button,.supply-orders .economy-controls>p{grid-column:1/-1}.supply-order-title{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;display:grid}.supply-order-title strong{overflow-wrap:anywhere}.supply-order{margin-block:.6rem}.notification-settings fieldset{min-width:0;margin-block:.7rem}.journey-control{z-index:72;bottom:calc(100px + env(safe-area-inset-bottom));pointer-events:auto;width:min(420px,100% - 16px);margin:0;position:absolute;left:50%;transform:translate(-50%)}.journey-control p{margin:.4rem 0}.journey-control button{min-height:44px}.dungeon-retreat{margin-bottom:.4rem}.dungeon-retreat button{min-height:44px}.notification-settings fieldset.notification-options{border:0;margin:0;padding:0}.notification-settings .notification-choice{align-items:center;gap:.5rem;min-height:44px;display:flex}.notification-choice input{flex:none}.notification-times{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;display:grid}.notification-times label,.notification-settings details>label{flex-direction:column;gap:.25rem;display:flex}.notification-settings input[type=text],.notification-settings input[type=time]{width:100%;min-width:0;min-height:44px}.notification-settings details>.notification-choice{flex-direction:row}.economy-panel label{flex-direction:column;gap:.25rem;display:flex}.economy-panel input,.economy-panel select{width:100%;max-width:100%}.economy-panel button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.economy-lot{border-bottom:1px solid #b9945140;align-items:center;gap:.5rem;padding-block:.65rem;display:flex}.economy-lot>div{overflow-wrap:anywhere;flex-direction:column;flex:1;display:flex}.economy-journal{padding:0;list-style:none}.economy-journal li{overflow-wrap:anywhere;border-bottom:1px solid #b9945130;padding-block:.4rem}.mention-picker{flex-wrap:wrap;gap:.3rem;max-height:7rem;padding:.3rem;display:flex;overflow-y:auto}.mention-picker button{overflow-wrap:anywhere;max-width:100%}.chat-form .chat-mention{flex:none;padding-inline:.5rem}.chat-line.mentioned{border-inline-start:3px solid #d4ab54;padding-inline-start:.4rem}.modal.menu .modal-header{flex-shrink:0;min-width:0}.modal.menu .tabs{overscroll-behavior-x:contain;scrollbar-width:thin;flex-wrap:nowrap;flex:1;padding-bottom:3px;overflow-x:auto}.modal.menu .tab{white-space:nowrap;flex:none;padding:.55rem .65rem;font-size:.95rem}.modal.menu .close{align-self:center;min-width:40px;min-height:40px}.nav-icon{flex:none;width:23px;height:23px}.civic-panel details{border-bottom:1px solid var(--parchment-dark);padding:.5rem 0}.civic-panel summary{cursor:pointer;font-weight:700}.civic-home,.civic-order{border-bottom:1px solid var(--parchment-dark);flex-direction:column;gap:.45rem;padding:.7rem 0;display:flex}.civic-order small{color:var(--ink-soft)}.civic-order .row{flex-wrap:wrap}@media (width<=760px){.hud-buttons{grid-template-columns:repeat(var(--hud-button-count), minmax(0, 1fr));background:var(--wood-dark);border:1px solid var(--gold);border-radius:10px;gap:0;padding:3px;display:grid}.hud-buttons button{min-height:54px;box-shadow:none;color:#ffe7ac;overflow-wrap:normal;background:0 0;border:0;border-radius:6px;flex-direction:column;gap:3px;padding:5px 1px;font-size:clamp(.62rem,2.5vw,.78rem);line-height:1.1;display:flex}.hud-buttons button:hover,.hud-buttons button:focus-visible{background:#72502d}:root[data-ui-theme=dark] .hud-buttons button{color:#ffe7ac;box-shadow:none;background:0 0;border:0;outline:none}:root[data-ui-theme=dark] .hud-buttons button:hover,:root[data-ui-theme=dark] .hud-buttons button:focus-visible{background:#72502d}.hud-buttons button span{white-space:nowrap}.menu-actions{justify-content:stretch;padding:.4rem .7rem}.menu-actions button{width:100%}}.battle-controls{z-index:75;left:8px;top:calc(var(--hud-top-bottom,120px) + 70px);background:var(--parchment);width:min(340px,100% - 16px);max-height:45dvh;color:var(--ink);pointer-events:auto;border:2px solid #684723;border-radius:10px;padding:10px;position:absolute;overflow:auto;box-shadow:0 3px 12px #0007}.battle-controls header{justify-content:space-between;align-items:center;gap:8px;display:flex}.battle-controls .close{flex:0 0 44px;align-self:center;place-items:center;width:44px;height:44px;min-height:44px;padding:0;line-height:1;display:grid}.battle-controls .close svg{width:22px;height:22px;display:block}.battle-controls p{overflow-wrap:anywhere;margin:6px 0}.wild-controls{top:auto;bottom:calc(var(--mobile-nav-height,72px) + env(safe-area-inset-bottom,0px) + 12px);z-index:90;max-height:min(45dvh,430px)}.wild-controls header{background:inherit;color:inherit;z-index:1;padding:4px 0;position:sticky;top:-10px}.wild-controls header strong{overflow-wrap:anywhere;min-width:0}.wild-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px;display:grid}.wild-actions button{white-space:normal;overflow-wrap:anywhere;min-width:0;min-height:44px}.wild-own-vitals{border-top:1px solid #876d42;margin-top:8px;padding-top:6px}.wild-combat-toggle{z-index:75;left:8px;bottom:calc(var(--mobile-nav-height,72px) + env(safe-area-inset-bottom,0px) + 70px);pointer-events:auto;min-height:44px;position:absolute}.battle-controls progress{accent-color:#ba4034;width:100%;height:8px}.battle-orders{grid-template-columns:1fr 1fr;gap:6px;display:grid}.battle-orders button{white-space:normal;min-width:0;padding:8px 4px;font-size:.85rem}@media (width<=380px){.battle-controls{max-height:38dvh}}.wallet-hud{background:var(--wood-dark);color:#ffe7ac;pointer-events:auto;white-space:nowrap;flex-wrap:nowrap;align-items:center;gap:8px;width:max-content;max-width:100%;min-height:28px;margin:0;padding:2px 6px;font-size:.8rem;display:inline-flex}.wallet-hud>span{align-items:center;gap:4px;min-width:0;display:inline-flex}.wallet-hud .dcoin-icon{width:18px;height:18px}.wallet-hud small{font-size:.65rem;font-weight:400}.dcoin-icon{vertical-align:middle;object-fit:contain;width:24px;height:24px;image-rendering:pixelated;flex:none;display:inline-block}.economic-gold-icon{vertical-align:middle;flex:none;align-items:center;display:inline-flex}.wallet-hud .economic-gold-icon{width:18px;height:18px}.wallet-hud .economic-gold-icon>.tile-icon{transform-origin:0 0;transform:scale(.75)}@media (width<=720px){.wallet-hud .economic-gold-icon{width:16px;height:16px}.wallet-hud .economic-gold-icon>.tile-icon{transform:scale(.666667)}}.wallet-stale{opacity:.8}.wallet-dialog .economy-panel{margin:0}.wallet-dialog .modal-header h2{margin:0;font-size:1.2rem}.civic-home,.civic-order{flex-wrap:nowrap;align-items:stretch}.civic-order>.row{justify-content:flex-start}.civic-home>span,.civic-order>span{min-height:0}.site-management{border-top:1px solid var(--parchment-dark);margin-top:.5rem;padding-top:.5rem}.site-actions{flex-wrap:wrap;gap:.5rem;display:flex}.site-actions p{flex-basis:100%}.hud-state-row{flex-wrap:wrap;justify-content:flex-end;align-items:flex-start;gap:4px;width:100%;display:flex}.hud-resource-icon{flex:none;display:inline-flex}.hud-resource-amount{text-overflow:ellipsis;min-width:0;overflow:hidden}@media (width<=720px){.hud-resources{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;display:grid}.hud-resources>.resource-chip{justify-content:center;min-width:0;padding:1px 2px;font-size:.75rem}.hud-resources button.resource-hint{gap:2px;min-width:0;max-width:100%}.hud-resource-icon{width:16px;height:16px}.hud-resource-icon>.tile-icon{transform-origin:0 0;flex:none;transform:scale(.666667)}.hud-state-row{flex-wrap:nowrap;grid-column:1/-1;justify-content:flex-start;align-items:stretch;gap:3px;min-width:0}.hud-state-row>.resource-chip{white-space:nowrap;flex:none;padding:1px 3px;font-size:.75rem}.hud-state-row>.weather{flex:1;min-width:0}.hud-state-row .weather-chip{gap:3px;min-width:0;max-width:100%;padding:2px 4px;font-size:.7rem;overflow:hidden}.wallet-hud .wallet-label{display:none}.hud-state-row>.wallet-hud{flex:none;gap:4px;margin-left:auto;padding:2px 3px;font-size:.72rem}.hud-state-row>.wallet-hud>span{gap:2px}.hud-state-row>.wallet-hud .dcoin-icon{width:16px;height:16px}}.hud-state-row>.personal-vitals{flex:none;order:1;gap:2px;width:160px;padding:2px 6px;font-size:11px;line-height:12px;display:grid}.hud-state-row{align-items:stretch}.hud-state-row>.weather{order:2}.hud-state-row .weather-chip{height:100%}.hud-state-row>.wallet-hud{order:3}.personal-vitals .vital-line{width:100%;box-shadow:none;color:inherit;font-size:inherit;line-height:inherit;white-space:nowrap;background:0 0;border:0;grid-template-columns:12px minmax(20px,1fr);align-items:center;gap:4px;padding:0;display:grid}.vital-empty{background:#332713;border-radius:3px;width:100%;height:5px;display:block}.vital-line:first-child>span:first-child{color:#ed6860}.personal-vitals progress{accent-color:#d44f45;background:#332713;border:0;border-radius:3px;width:100%;height:5px;display:block;overflow:hidden}.personal-vitals progress::-webkit-progress-bar{background:#332713}.personal-vitals progress::-webkit-progress-value{background:#d44f45}.personal-vitals progress.stamina{accent-color:#bdc347}.personal-vitals progress.stamina::-webkit-progress-value{background:#bdc347}.personal-vitals progress::-moz-progress-bar{background:#d44f45}.personal-vitals progress.stamina::-moz-progress-bar{background:#bdc347}.chat-action-row{flex:none;align-items:center;gap:6px;min-width:0;max-width:100%;display:flex}.chat-action-row:empty{display:none}.personal-battle-panel{pointer-events:auto;flex:none;gap:6px;min-width:0;max-width:100%;display:inline-flex}.chat-action-row .chat-launch,.personal-battle-panel button{white-space:nowrap;height:44px;min-height:44px;padding:4px 10px;font-size:.9rem}.personal-battle-panel button{flex-direction:column;justify-content:center;align-items:center;gap:0;min-width:88px;display:inline-flex}.personal-battle-panel small{font-size:10px;font-weight:400;line-height:12px}.personal-battle-panel button:disabled{color:#a69d86;opacity:.8;cursor:default;background:#3d382d}.hud-status:empty{display:none}.raid-details summary{cursor:pointer}.raid-details{font-size:.75rem}@media (width>=721px){.hud-resources{grid-template-columns:repeat(6,max-content);display:grid}.hud-state-row{grid-column:1/-1}}@media (width<=720px){.hud-state-row>.personal-vitals{order:2;gap:1px;width:104px;padding:1px 3px;font-size:9px;line-height:11px}.hud-state-row>.weather{flex:0 auto;order:1}.hud-state-row>.wallet-hud{order:3;gap:2px;margin-left:auto}.personal-vitals .vital-line{grid-template-columns:12px minmax(15px,1fr);gap:3px}.personal-vitals progress{height:4px}.hud-state-row{gap:2px}.hud-state-row>.resource-chip{font-size:.65rem}}.defeat-banner{z-index:15;color:#fff3d6;text-align:center;background:#6b211a;border:2px solid #c49445;border-radius:6px;max-width:calc(100% - 24px);padding:8px;position:absolute;top:150px;left:50%;transform:translate(-50%)}.raid-editor-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem;margin:.7rem 0;display:grid}.raid-editor-field{flex-direction:column;gap:.25rem;min-width:0;font-size:.9rem;display:flex}.raid-editor input[type=number],.raid-editor select{width:100%;min-width:0}.raid-editor details{margin:.7rem 0}.raid-editor details>label{margin:.4rem 0;display:block}.raid-editor-species{justify-content:space-between;align-items:center;gap:.5rem;margin:.35rem 0;display:flex}.raid-editor-species input[type=number]{width:5rem}.raid-editor-presets{flex-wrap:wrap;align-items:end;gap:.5rem;margin:1rem 0;display:flex}.raid-editor-presets>label{flex-direction:column;flex:180px;display:flex}.raid-editor-presets>input{flex:150px;min-width:0}.raid-preview{border:1px solid var(--border,#8b6a41);border-radius:8px;margin-top:.7rem;padding:.65rem}.raid-editor select{font:inherit;color:inherit;background:#fff9ed;border:2px solid #795430;border-radius:.3rem;min-height:44px;padding:.4rem .5rem}.raid-editor input[type=range]{width:100%;min-width:0;min-height:44px;box-shadow:none;accent-color:#986b18;cursor:pointer;touch-action:pan-y;background:0 0;border:0;padding:0}.raid-editor input[type=range]:focus-visible{outline-offset:2px;border-radius:4px;outline:2px solid #795430}.raid-slider-value{font-size:.95rem;font-weight:700}.raid-editor-species{grid-template-columns:minmax(0,1fr) auto;display:grid}.raid-editor-species input[type=range]{grid-column:1/-1}.raid-slider-share{font-weight:700}.report-trigger{text-align:center;z-index:11000;left:calc(8px + env(safe-area-inset-left,0px));top:calc(8px + env(safe-area-inset-top,0px));color:#633617;touch-action:manipulation;pointer-events:auto;background:linear-gradient(#fff1c8,#e9cd8b);border:2px solid #583a1b;border-radius:7px;place-items:center;width:32px;min-width:32px;height:32px;padding:0;font:700 23px/1 Georgia,serif;display:grid;position:fixed;box-shadow:0 2px 3px #0007}.report-trigger:disabled{opacity:.6}.report-overlay{z-index:11001;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));pointer-events:auto;background:#160e08b8;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.report-dialog{background:var(--parchment,#f5e8c5);width:min(440px,100%);max-height:100%;color:var(--ink,#34200e);box-sizing:border-box;border:3px solid #583a1b;border-radius:10px;padding:14px;overflow:auto;box-shadow:0 4px 20px #0008}.report-dialog header{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.report-dialog h2{margin:0;font-size:1.25rem}.report-dialog .report-close{text-align:center;flex:none;place-items:center;width:34px;min-width:34px;height:34px;padding:0;font-size:24px;line-height:1;display:grid}.report-dialog label{margin:10px 0;font-weight:700;display:block}.report-dialog select,.report-dialog textarea{box-sizing:border-box;width:100%;font:inherit;margin-top:5px;font-weight:400;display:block}.report-dialog textarea{resize:vertical;min-height:85px}.report-preview{align-items:center;gap:12px;margin:10px 0;display:flex}.report-preview img{object-fit:contain;background:#21180f;border:1px solid #795833;width:auto;max-width:45%;height:110px}.report-hint{opacity:.85;font-size:.85rem;line-height:1.35}.report-dialog footer{justify-content:space-between;gap:10px;margin-top:12px;display:flex}.report-dialog footer button{min-height:40px}.hands h3{justify-content:space-between;align-items:center;margin-block:0 .25rem;display:flex}@media (width<=720px){.storage-take li{grid-template-columns:24px minmax(0,1fr) 3.5rem 4.5rem;gap:4px 6px;padding-block:4px;display:grid}.storage-take li>:first-child{grid-area:1/1/3}.storage-take li>:nth-child(2){grid-column:2/-1}.storage-take li>:nth-child(3){grid-area:2/2}.storage-take li .take-amount{box-sizing:border-box;grid-area:2/3;width:100%;min-height:44px}.storage-take li>button{white-space:nowrap;grid-area:2/4;min-height:44px}.hud-needs{justify-content:flex-start;gap:4px}.hud-needs .need-summary{gap:4px;padding:0 6px}.need-summary>.hint-term{min-height:44px;font-size:.78rem}.economy-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.economy-controls>p{grid-column:1/-1;margin-block:.15rem}.economy-controls button,.economy-controls input,.economy-controls select{min-height:44px}.economy-balances{grid-template-columns:minmax(0,1fr) 44px;gap:2px 8px;padding-block:.25rem;display:grid}.economy-balances>strong,.economy-balances>span{grid-column:1}.economy-balances>.help-button{grid-area:1/2/3}.energy-shop .row{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.energy-shop .row button{min-height:44px}}.safe-rest-control{flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;display:flex}.safe-rest-control>button{min-width:44px;min-height:44px}.safe-rest-control>.error{flex-basis:100%;max-width:280px;font-size:12px}@media (width<=720px){.hud-state-row:has(>.safe-rest-control){grid-template-columns:44px minmax(36px,1fr) 44px max-content;align-items:center;gap:2px;display:grid}.hud-state-row:has(>.safe-rest-control)>.resource-chip:not(.personal-vitals){grid-area:1/1;justify-content:center;align-items:center;min-height:44px;padding:1px;display:flex}.hud-state-row:has(>.safe-rest-control)>.personal-vitals{grid-area:1/2;align-content:center;width:100%;min-height:44px}.hud-state-row:has(>.safe-rest-control)>.weather{grid-area:1/3;width:44px;height:44px}.hud-state-row:has(>.safe-rest-control) .weather-chip{justify-content:center;width:44px;height:44px;padding:2px}.hud-state-row:has(>.safe-rest-control) .weather-name{display:none}.hud-state-row:has(>.safe-rest-control)>.wallet-hud{grid-area:1/4;align-self:stretch;max-width:128px;min-height:44px;margin:0}.hud-state-row>.safe-rest-control{flex-wrap:nowrap;grid-area:2/1/auto/-1;justify-self:end;align-items:center}.hud-state-row>.safe-rest-control>.error{background:var(--parchment);padding:6px;position:absolute;top:100%;right:0}}.economy-panel .inventory-grid .slot{position:relative}.economy-panel .inventory-cost{position:absolute;top:0;right:0}.dungeon-root .zoom-controls{flex-direction:row;align-self:flex-end;position:static;transform:none}.dungeon-root .zoom-controls button{min-width:44px;min-height:44px}.dungeon-map-controls{align-self:flex-end;align-items:center;gap:6px;display:flex}.music-toggle.music-inline{pointer-events:auto;min-width:44px;min-height:44px;position:static}.group-access-notice{z-index:160;top:env(safe-area-inset-top,0px);color:#fff2d8;background:#292118;border:1px solid #c99a56;border-radius:.4rem;align-items:center;gap:.6rem;width:min(48rem,100% - 1rem);padding:.6rem;font-size:.85rem;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 2px 12px #0008}.group-access-notice button{flex-shrink:0;min-height:44px}@media (width<=480px){.group-access-notice{flex-direction:column;align-items:stretch;max-height:35vh;overflow:auto}}.royal-combat-sheet{margin-top:.6rem}.royal-combat-sheet summary{cursor:pointer;min-height:44px;padding:.5rem 0}.royal-combat-sheet .character-facts{grid-template-columns:minmax(0,1fr) max-content;gap:.3rem .7rem;display:grid}.royal-combat-sheet dd{text-align:right;margin:0}.royal-combat-sheet button{max-width:100%;min-height:44px}.repair-target-label{flex-direction:column;gap:.35rem;display:flex}.repair-target-label select{width:100%;min-width:0;max-width:100%}.recovery-panel{width:680px;max-width:calc(100vw - 24px)}.recovery-panel .modal-body{max-height:calc(100dvh - 150px);overflow:auto}.recovery-panel button,.defeat-banner button{min-height:44px}.recovery-panel details{margin:12px 0}.recovery-panel summary{cursor:pointer;padding:10px 0}.wardrobe-preview{align-items:center;gap:1rem;margin:1rem 0;display:flex}.wardrobe-controls{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-width:0;display:grid}.wardrobe-controls select{width:100%;min-width:0;min-height:44px}@media (width<=480px){.wardrobe-preview{flex-wrap:wrap;align-items:flex-start}.wardrobe-controls{flex-basis:100%}}.funeral-accessible-trigger{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;min-height:0;padding:0;position:fixed;top:0;left:0;overflow:hidden}.funeral-accessible-trigger:focus-visible{clip-path:none;z-index:40;width:auto;height:auto;min-height:44px;padding:8px}.funeral-notice{z-index:35;color:#eadbb5;pointer-events:auto;background:#30291fef;border:1px solid #a28450;border-radius:8px;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:12px;font-size:13px;position:fixed;overflow-y:auto;box-shadow:0 2px 8px #0008}.funeral-notice>strong{padding-right:48px}.funeral-notice .funeral-close{float:right;justify-content:center;min-width:44px;min-height:44px;margin:-4px -4px 4px 4px;padding:0}.funeral-notice-actions{flex-wrap:wrap}.funeral-notice strong,.funeral-notice small{overflow-wrap:anywhere;display:block}.funeral-notice-actions{gap:6px;margin-top:6px;display:flex}.funeral-notice button{min-height:44px;padding:6px 10px;font-size:13px}.funeral-notice{overscroll-behavior:contain;max-height:min(560px,100dvh - 32px);left:var(--funeral-left,50%);top:var(--funeral-top,16px);transform:translateX(var(--funeral-shift,-50%));overflow-y:auto}@media (width<=600px),(height<=460px){.funeral-notice{inset:auto 12px max(12px, env(safe-area-inset-bottom)) 12px;width:auto;max-width:none;transform:none}}.funeral-votes{gap:6px;margin-block:8px;display:grid}.funeral-votes button{white-space:normal;min-height:40px;font-size:13px}.funeral-votes button[aria-pressed=true]{outline-offset:1px;outline:2px solid #d2ae52}.funeral-readiness{margin:.3rem 0;padding-left:1rem;font-size:.85em}.farm-bed-statuses{overflow-wrap:anywhere;margin:0;padding:.4rem .6rem .4rem 1.5rem;font-size:.8rem}.farm-bed-statuses li{margin:.25rem 0}.farm-bed-moisture{color:#fff;text-shadow:0 1px 2px #000;pointer-events:none;background:#293c20c9;border-radius:4px;font-size:.7rem;line-height:1.3;position:absolute;top:2px;left:2px;right:2px}.minimap-frame{right:12px;top:max(10px,env(safe-area-inset-top));pointer-events:auto;z-index:20;width:144px;position:absolute}.minimap-frame>.minimap{width:100%;position:relative;top:auto;right:auto}.minimap-distance{text-align:center;white-space:normal;overflow-wrap:anywhere;color:#fff2d4;text-shadow:0 1px 2px #000;pointer-events:none;background:#0e1514d9;border-radius:3px;padding:2px;font-size:10px;line-height:1.15;position:absolute;bottom:3px;left:3px;right:3px}.game-root.ui-hidden .minimap-frame{display:none}@media (width<=720px){.minimap-frame{right:8px;top:var(--minimap-top);width:67.2px}}.raid-banner.raid-banner-compact{box-sizing:border-box;text-align:left;align-self:flex-start;width:min(320px,100% - 72px);min-width:0;max-width:100%;padding:0;animation:none}.raid-banner-compact>summary{box-sizing:border-box;cursor:pointer;align-items:center;gap:8px;min-height:40px;padding:8px 10px;list-style:none;display:flex}.raid-banner-compact>summary::-webkit-details-marker{display:none}.raid-banner-compact>summary:before{content:"▸";flex:none}.raid-banner-compact[open]>summary:before{content:"▾"}.raid-banner-compact .raid-banner-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:inherit;font-size:.86rem;line-height:1.2;overflow:hidden}.raid-banner-details{overscroll-behavior:contain;pointer-events:auto;max-height:45dvh;padding:0 10px 10px;overflow:auto}.raid-banner-details>p{margin:.4rem 0;font-size:.85rem}.quest-shortcut{justify-content:center;align-self:flex-start;align-items:center;gap:6px;width:auto;min-width:44px;max-width:100%;min-height:44px;padding:6px 10px;display:inline-flex}:root{--kingdom-surface:#f5ecd6;--kingdom-card:#fff8e8;--kingdom-edge:#bc925e;--kingdom-ink:#392719;--kingdom-muted:#705d47;--kingdom-button:linear-gradient(#fff7e3, #e8d5ae);--kingdom-water:linear-gradient(#278b92, #17616c);--kingdom-wood:linear-gradient(180deg, #a17143, #79502f 46%, #684025)}:root[data-ui-theme=dark]{--kingdom-surface:#28261f;--kingdom-card:#333026;--kingdom-edge:#8e714b;--kingdom-ink:#f3e7cc;--kingdom-muted:#c7b99d;--kingdom-button:linear-gradient(#514634, #3a3428)}:root .modal{background:var(--kingdom-surface);color:var(--kingdom-ink);border:2px solid #593c25;border-radius:14px;box-shadow:0 0 0 2px #c59760,0 16px 42px #100d0870}:root .modal>.modal-header{background:var(--kingdom-wood);color:#fff3d6;border-bottom:2px solid #56351e;border-radius:11px 11px 0 0;flex-shrink:0;padding:.6rem .7rem .6rem 1rem;box-shadow:inset 0 1px #e7bd7d}:root .modal-header h2{min-width:0;line-height:1.2}:root .modal-header .close{color:#fff3d6;background:linear-gradient(#a77643,#744622);border:2px solid #4f301a;border-radius:50%;align-self:center;place-items:center;width:44px;min-width:44px;height:44px;padding:0;display:grid;box-shadow:inset 0 0 0 1px #d2a168,0 2px #432917}:root .modal>.modal-body{background:var(--kingdom-surface);color:var(--kingdom-ink);overscroll-behavior:contain;border-radius:0 0 11px 11px;gap:.9rem;padding:1rem}:root .modal .card{background:var(--kingdom-card);color:var(--kingdom-ink);border:1px solid var(--kingdom-edge);border-radius:10px;box-shadow:inset 0 1px #ffffff12,0 2px #50372312}:root .modal .muted{color:var(--kingdom-muted)}:root .modal :where(button:not(.tab):not(.close):not(.primary):not(.slot):not(.hint-term):not(.task-card):not(.tech-node)){background:var(--kingdom-button);color:var(--kingdom-ink);border-color:var(--kingdom-edge)}:root .modal button.primary{background:var(--kingdom-water);color:#fff9e9;border-color:#134d57;box-shadow:inset 0 1px #a1dfdb80,0 2px #103f47}:root .modal button:disabled{opacity:.65;box-shadow:none;cursor:not-allowed}:root .modal button:focus-visible,:root .hud-buttons button:focus-visible{outline-offset:2px;outline:3px solid #dfad4e}:root .modal.menu .kingdom-navigation{background:var(--kingdom-wood);border-bottom:2px solid #593c25;flex:none;grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:6px;padding:8px;display:grid;overflow:visible}:root .kingdom-navigation .tab{color:#fff0cc;background:#3e281d50;border:1px solid #c79b6460;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:6px;line-height:1.15;display:flex;box-shadow:inset 0 1px #ffe4ab20}:root .kingdom-navigation .tab.active{color:#3a2918;background:linear-gradient(#fff4cc,#e5c284);border-color:#ffe2a0;box-shadow:inset 0 0 0 1px #a3743f,0 2px #3d251c}:root .kingdom-navigation .tab:hover:not(.active){background:#b78b4f60}.kingdom-navigation svg,.living-menu .modal-header svg{flex-shrink:0;width:22px;height:22px}:root .hud-resources .resource-chip,:root .hud-state-row>.resource-chip{color:#fff1d3;background:#4a3426e8;border:1px solid #b88c54;border-radius:8px;box-shadow:inset 0 1px #e8bc7830}:root .hud-buttons{background:var(--kingdom-wood);border:1px solid #ceaa6e;border-radius:12px;gap:3px;padding:4px;box-shadow:0 3px 8px #130e0860}:root .hud-buttons button{color:#fff0cf;box-shadow:none;background:0 0;border-color:#0000;border-radius:8px}:root .hud-buttons button:hover{background:#e5bb7333}.menu-screen .home{padding-top:max(3.5rem, calc(env(safe-area-inset-top,0px) + 48px))}:root .card.login{background:var(--kingdom-card);color:var(--kingdom-ink);border-color:var(--kingdom-edge)}.login>.row:first-child{align-items:center;gap:6px;min-height:44px;padding-inline-start:34px}.login>.row:first-child h3{flex:1;min-width:0;margin:0}:root .target-popup{background:var(--kingdom-surface);color:var(--kingdom-ink);border-color:#795431;border-radius:12px;box-shadow:0 0 0 1px #d0a56a,0 8px 25px #160f0970}:root .target-popup>.target-popup-header{background:var(--kingdom-wood);color:#fff2d3;border-radius:9px 9px 0 0;align-items:center;padding:.4rem .5rem .4rem .75rem}:root .target-popup-header>strong{flex:1;min-width:0}:root .target-popup-header .close{text-align:center;border-radius:50%;flex:0 0 44px;align-self:center;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;line-height:1;display:grid}:root .target-popup>.target-popup-body{background:var(--kingdom-surface);color:var(--kingdom-ink);border-radius:0 0 9px 9px}:root .target-popup .muted{color:var(--kingdom-muted)}.site-progress{gap:8px;min-width:0;display:grid}.cosmetics-fitting{grid-template-columns:112px minmax(0,1fr);align-items:start;gap:12px;margin-block:12px;display:grid}.cosmetics-fitting .portrait{width:112px;height:112px}.cosmetics-options{gap:8px;min-width:0;display:grid}.cosmetic-skins{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-block:12px;display:grid}.cosmetic-skins>button{text-align:center;flex-direction:column;justify-content:center;gap:4px;padding:8px;display:flex}.cosmetic-skins>button[aria-pressed=true]{outline-offset:1px;outline:2px solid #c99636}.cosmetics-options select{width:100%;min-height:44px}.cosmetics-panel>button{min-height:44px;margin:4px}@media (width<=380px){.cosmetics-fitting{grid-template-columns:minmax(0,1fr)}.cosmetics-fitting .portrait{justify-self:center}}.site-progress h4{margin:8px 0 0}.site-progress .project-rows{gap:6px;margin:0}:root :is(.site-progress,.site,.project,.project-banner) .bar{border-width:1px;flex:none;width:100%;min-width:0;height:8px;min-height:8px}:root .site-progress .project-row{grid-template-columns:minmax(0,1.15fr) minmax(40px,1.6fr) minmax(50px,.65fr)}:root .site-progress .project-row>:first-child{overflow-wrap:anywhere;min-width:0}:root .farm-board{background:var(--kingdom-card);color:var(--kingdom-ink);border-color:#815a34}:root .farm-board-heading{background:var(--kingdom-card);border-color:var(--kingdom-edge)}:root .farm-selection{background:var(--kingdom-surface);color:var(--kingdom-ink);border-color:var(--kingdom-edge)}:root[data-ui-theme] .farm-board button.farm-plot{box-shadow:none;background:0 0;border:0}.farm-toolbelt>button{padding-inline:0}.farm-toolbelt>button>span{white-space:nowrap}.farm-tool-note .task-meta{color:var(--kingdom-muted)}.farm-cost,.farm-pay-terms{border:1px solid var(--kingdom-edge);border-radius:8px;grid-template-columns:minmax(0,1fr) 44px;gap:3px 6px;margin:6px;padding:8px;font-size:.8rem;line-height:1.35;display:grid}.farm-cost>strong,.farm-cost>span,.farm-pay-terms>strong,.farm-pay-terms>span{grid-column:1}.farm-cost>.hint-term,.farm-pay-terms>.hint-term{grid-area:1/2/3;align-self:center;width:44px;min-width:44px;min-height:44px;padding:0}.farm-cost>span{color:var(--kingdom-muted)}.farm-pay-terms{border-left:3px solid #4f8380}.character-title .character-name{overflow-wrap:anywhere;font-size:1.15rem;display:block}.character-title .character-rank{margin-top:.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;font-weight:400;display:block}.character-title .portrait{border:1px solid var(--kingdom-edge);background:#b7bd8050;border-radius:8px;padding:5px}.character-sheet .character-summary,.inventory-owner .character-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:.75rem}.character-sheet .character-summary>div,.inventory-owner .character-summary>div{background:var(--kingdom-surface);border:1px solid var(--kingdom-edge);border-radius:8px;justify-content:center;padding:8px 10px}.character-sheet .character-summary>div:first-child{grid-column:1/-1}.character-sheet .character-summary>div:last-child{flex-flow:wrap;grid-column:1/-1;justify-content:space-between;align-items:center}:root .character-sheet .character-summary .hint-term{box-shadow:none;color:inherit;font:inherit;text-align:left;background:0 0;border:0;min-height:44px;padding:0;text-decoration:none}.character-sheet .stats td{border-bottom:1px solid var(--kingdom-edge);padding-block:.6rem}.character-sheet .stats .stat-value{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;width:3rem;padding-inline:8px;font-weight:700}.character-sheet .stats td:first-child{width:40%}.character-sheet .stats .hint-term{min-height:44px}.storage-heading{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.storage-heading>.muted{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;font-weight:400}.storage-heading>.help-button{min-width:44px;min-height:44px;margin-left:auto}.inventory .inventory-grid{grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:6px}:root .inventory .slot{background:var(--kingdom-card);color:var(--kingdom-ink);border-color:var(--kingdom-edge);min-height:96px;padding:8px 5px;box-shadow:inset 0 1px #ffffff16}.inventory .slot-name{font-size:.8rem}.inventory .slot-amount{font-variant-numeric:tabular-nums}.inventory .storage-list summary,.inventory .storage-overview>summary{cursor:pointer;align-content:center;min-height:44px}.modal-backdrop{position:fixed}:root .target-popup{z-index:180;position:fixed}.group-access-notice{background:var(--kingdom-surface);color:var(--kingdom-ink);border-color:var(--kingdom-edge);padding:0 8px;display:block}.group-access-details{width:100%}.group-access-details>summary{box-sizing:border-box;cursor:pointer;min-height:44px;padding-block:12px;font-size:.8rem;font-weight:600;line-height:1.3}.group-access-details>p{margin:4px 0 8px;font-size:.8rem;line-height:1.4}.group-access-details>button{min-height:44px;margin-bottom:8px}.game-root .hud-top,.dungeon-root .dungeon-top{margin-top:var(--access-notice-height,0px)}@media (width>=721px){.group-access-notice{width:min(48rem,100% - 336px)}}@media (width<=600px){.group-access-notice{padding-inline-start:44px}}.hud-resources>.resource-chip>.resource-hint{justify-content:center;width:100%;min-height:44px}.safe-rest-control>button{justify-content:center;align-items:center;display:inline-flex}@media (width<=720px){.hud-resources>.resource-chip{padding-inline:1px}.hud-state-row:has(>.safe-rest-control){grid-template-columns:44px minmax(30px,1fr) 44px max-content 90px}.hud-state-row>.safe-rest-control{grid-area:1/5;gap:2px;width:90px}.hud-state-row>.safe-rest-control>button{flex:0 0 44px;width:44px;padding:0}.hud-state-row .safe-rest-caption{display:none}.hud-state-row .safe-rest-icon{font-size:1.2rem}}.party-contract{border:1px solid var(--kingdom-edge);background:var(--kingdom-surface);border-radius:8px;padding:10px}.party-contract summary{cursor:pointer;align-content:center;min-height:44px;font-weight:600}.party-roster{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px;margin-block:10px;padding:0;list-style:none;display:grid}.party-roster li{background:var(--kingdom-card);border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:8px;display:flex}.party-roster strong{overflow-wrap:anywhere;min-width:0;font-size:.8rem}.party-roster span{flex-shrink:0;font-size:.75rem}.party-ready{color:#4f915a}:root[data-ui-theme=dark] .party-ready{color:#a5d59e}.party-not-ready{color:var(--kingdom-muted)}.party-contract button,.party-loot button,.expedition-panel button,.expedition-panel select,.dungeon-invite button,.dungeon-top .button{min-height:44px}.expedition-panel>label,.expedition-panel>label select{max-width:100%;display:block}.party-loot-facts{gap:8px;margin-block:12px;display:grid}.party-loot-facts>div{border-bottom:1px solid var(--kingdom-edge);grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px;padding-block:6px;display:grid}.party-loot-facts dt{color:var(--kingdom-muted);font-size:.8rem}.party-loot-facts dd{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin:0}.party-loot>.row{flex-wrap:wrap}.dungeon-root .dungeon-top,.dungeon-root .dungeon-hint,.dungeon-root .dungeon-hero{border-color:var(--kingdom-edge);background:var(--kingdom-surface);color:var(--kingdom-ink)}.dungeon-top>strong{font-family:Georgia,Times New Roman,serif}.dungeon-root .dungeon-top{box-sizing:border-box;max-width:calc(100vw - 24px)}.modal.dungeon-result{width:min(700px,100vw - 24px);max-height:calc(100dvh - 24px)}.dungeon-result>.modal-body{gap:10px;min-height:0}.dungeon-result .modal-body p{margin-block:5px;line-height:1.45}.dungeon-result section[aria-label]{min-width:0}.dungeon-result .party-contract{padding:0 8px}.dungeon-result .party-loot h3{margin-block:4px 8px}.dungeon-result .party-loot-facts{gap:4px;margin-block:8px}.dungeon-result .party-inventory>summary,.dungeon-party-results>summary{cursor:pointer;align-content:center;min-height:44px;font-size:.85rem}.dungeon-party-results .feed{padding-inline-start:18px}.dungeon-result>.menu-actions{border-top:1px solid var(--kingdom-edge);flex-shrink:0;padding:10px}.dungeon-result>.menu-actions>.button{justify-content:center;align-items:center;width:100%;min-height:44px;display:flex}.modal.wallet-dialog{width:min(720px,100vw - 24px);max-height:min(760px,100dvh - 24px)}.economy-stock-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.economy-stock-controls>p{grid-column:1/-1;margin-block:.1rem}.kingdom-section-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.kingdom-section-title>.help-button{min-width:44px;min-height:44px}.economy-panel>summary{align-content:center;min-height:44px}.economy-panel>details,.economy-panel>.work-orders,.economy-panel>.farm-rewards{border:1px solid var(--kingdom-edge);background:var(--kingdom-card);border-radius:9px;padding:6px 10px}.economy-panel summary{align-content:center;min-height:44px;line-height:1.35}.economy-panel .economy-balances{border:1px solid var(--kingdom-edge);background:var(--kingdom-surface);border-radius:9px;grid-template-columns:minmax(0,1fr) 44px;gap:4px 8px;margin-block:.5rem;padding:10px;display:grid}.economy-balances>strong{grid-column:1;font-size:1.15rem}.economy-balances>span{color:var(--kingdom-muted);grid-column:1;font-size:.8rem}.economy-balances>.help-button{grid-area:1/2/3;align-self:center;width:44px;min-height:44px}.economy-ownership-note{color:var(--kingdom-muted);align-items:center;gap:8px;font-size:.8rem;display:flex}.economy-ownership-note>span{flex:1}.economy-ownership-note>.help-button{min-width:44px;min-height:44px}.economy-panel .economy-controls label{gap:5px;font-size:.85rem}.economy-panel input:not([type=checkbox]):not([type=radio]):not([type=range]),.economy-panel select{min-height:44px;font:inherit;border-radius:7px;padding:7px}.economy-panel button{min-height:44px}.economy-panel .market-offers .economy-lot{border:1px solid var(--kingdom-edge);background:var(--kingdom-surface);border-radius:9px;margin-block:8px;padding:10px}.economy-panel .market-offers .economy-lot>button{flex-shrink:0}.work-order-card{border:1px solid var(--kingdom-edge);background:var(--kingdom-surface);border-radius:9px;margin-block:10px;padding:10px}.work-order-card>header{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.work-order-card>header>strong{min-width:0;font-size:.95rem}.work-order-price{font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:700}.work-order-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-block:12px;display:grid}.work-order-facts>div{flex-direction:column;gap:3px;display:flex}.work-order-facts dt{color:var(--kingdom-muted);font-size:.75rem}.work-order-facts dd{font-variant-numeric:tabular-nums;margin:0;font-size:.85rem}.work-order-facts>.work-order-expiry{flex-flow:wrap;grid-column:1/-1;gap:6px}.work-order-actions{flex-wrap:wrap;gap:6px;display:flex}.work-order-actions:empty{display:none}@media (width<=480px){.economy-panel .market-offers .economy-lot{flex-wrap:wrap}.economy-panel .market-offers .economy-lot>div{flex-basis:calc(100% - 44px)}.economy-panel .market-offers .economy-lot>button{margin-left:auto}.work-order-card>header{flex-wrap:wrap}}.settings-layout,.settings-columns{grid-template-columns:minmax(0,1fr);align-items:start;gap:.8rem;display:grid}.settings-column{flex-direction:column;gap:.8rem;min-width:0;display:flex}.settings-column>.card,.settings-layout>.card{min-width:0;margin:0}.settings-layout label{align-items:center;gap:8px;min-height:44px;line-height:1.4;display:flex}.settings-layout input[type=checkbox]{flex-shrink:0;width:18px;height:18px}.settings-layout .music-volume{flex-direction:column;align-items:stretch;margin-top:8px}.settings-layout .music-volume input{width:100%;min-height:44px;margin:0}.settings-layout .settings-theme{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.settings-layout button:not(.hint-term){min-height:44px}.settings-layout .hint-term{flex-shrink:0;justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.settings-music h3{justify-content:space-between;align-items:center;display:flex}.settings-map-option{align-items:center;gap:6px;display:flex}.settings-map-option>label{flex:1;min-width:0}.settings-language select{max-width:100%;min-height:44px;font:inherit;padding:6px}.settings-layout summary{cursor:pointer;align-content:center;min-height:44px;line-height:1.4}.settings-layout details[open]>summary{margin-bottom:8px}.settings-account-details{border-top:1px solid var(--kingdom-edge);margin-top:8px}.settings-layout .invite-code{overflow-wrap:anywhere;min-width:0}.settings-layout .invite-row{flex-wrap:wrap}.settings-layout .settings-version,.settings-layout .settings-diagnostics,.settings-layout .settings-account,.settings-layout>.patch-notes{grid-column:1/-1}@media (width>=721px){.settings-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}.technology-layout{grid-template-columns:minmax(0,1fr);align-items:start;gap:.8rem;display:grid}.technology-layout>.card{margin:0}.tech-picker{flex-direction:column;gap:6px;margin-block:.5rem;font-size:.85rem;display:flex}.tech-picker select{width:100%;min-height:44px;font:inherit;border-radius:7px;padding:7px}.tech-tree-toggle{display:none}.tech-tree-scroll{overscroll-behavior:contain;border:1px solid var(--kingdom-edge);background:var(--kingdom-surface);border-radius:8px;max-height:min(60dvh,640px);margin-top:10px;overflow:auto}.tech-details .task-meta{color:var(--kingdom-muted)}:root[data-ui-theme=dark] .tech-details .task-lock{color:#ebbc82}@media (width<=720px){.tech-tree-toggle{justify-content:center;width:100%;min-height:44px;margin-top:8px;display:flex}.tech-tree-scroll:not(.expanded){display:none}}@media (width>=721px){.technology-layout{grid-template-columns:minmax(0,1fr)}.technology-layout>.card{grid-column:1}}:root{--kingdom-hud:#333026f5}:root[data-ui-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-ui-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root .game-root .hud .resource-chip,:root .game-root .hud .hud-buttons,:root .game-root .hud .hud-card-head{background:var(--kingdom-hud);color:#f3e7cc;background-image:none}:root .game-root .hud .hud-card-head>.small,:root .game-root .hud .hud-buttons>button{background:0 0}:root button.hint-term,:root .modal button.hint-term{color:inherit;box-shadow:none;background:0 0;border:0;text-decoration:none}:root button.hint-term:hover,:root button.hint-term.open{text-decoration:none}:root button.hint-term:focus-visible{outline-offset:3px;outline:2px solid #dfad4e}:root .world-atlas-launch{box-sizing:border-box;place-items:center;padding:0;line-height:1;display:grid}.world-atlas-launch>svg{width:24px;height:24px;margin:0;display:block}.morale-icon{justify-content:center;align-items:center;display:inline-flex}.morale-icon>.nav-icon,.safe-rest-icon>.nav-icon,.next-action>.nav-icon{vertical-align:middle;flex-shrink:0;width:18px;height:18px;display:inline-block}:root .modal .pick-card{background:var(--kingdom-card);color:var(--kingdom-ink);border-color:var(--kingdom-edge)}:root .modal .pick-card>button.task-card,:root .modal .pick-card>button.task-card:hover,:root .modal .pick-card>button.task-card:disabled{color:inherit;box-shadow:none;background:0 0;border:0}:root .modal .pick-card .task-meta{color:var(--kingdom-muted)}:root .modal .pick-card:has(.task-card.current){border-color:#278b92;box-shadow:inset 0 0 0 1px #278b92}:root .modal .tech-node{background:var(--kingdom-card);color:var(--kingdom-ink);border-color:var(--kingdom-edge)}:root .modal .tech-node.locked{background:var(--kingdom-surface);color:var(--kingdom-muted)}:root .modal .tech-node.discovered{color:#f3e7cc;background:#264f40;border-color:#649279}:root .modal .tech-node.current{color:#fff0ce;background:#5d492b;border-color:#c69a45}.tech-node-name{white-space:normal;text-overflow:clip;overflow-wrap:anywhere;line-height:1.2}@media (width<=600px){.modal-backdrop{padding:max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left))}:root .modal>.modal-header{padding:.4rem .5rem .4rem 3rem}:root .modal-header h2{font-size:1.12rem}:root .modal>.modal-body{gap:.65rem;padding:.65rem}:root .modal.menu .kingdom-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:6px}:root .modal.menu .kingdom-navigation:has(>button:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}:root .kingdom-navigation .tab{flex-direction:column;gap:3px;min-height:58px;font-size:.76rem}:root .modal button:not(.hint-term):not(.slot){min-height:44px}}.construction-layout{gap:.8rem;display:grid}.construction-layout>.card{min-width:0;margin:0}.construction-role h3{margin:0}.construction-search{flex-direction:column;gap:6px;margin-block:10px;font-size:.85rem;display:flex}.construction-search input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font:inherit;padding:7px}.construction-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;display:grid}.construction-card{background:var(--kingdom-surface);border:1px solid var(--kingdom-edge);border-radius:9px;flex-direction:column;min-width:0;padding:10px;display:flex}.construction-card>header{align-items:center;gap:10px;min-height:44px;display:flex}.construction-card>header>strong{overflow-wrap:anywhere;font-size:.95rem}.construction-card .task-lock{margin-block:6px;line-height:1.4;display:block}.construction-card p{margin-block:6px;line-height:1.45}.construction-card>button{width:100%;min-height:44px;margin-top:auto}.construction-card>details{margin-bottom:8px}.construction-layout summary,.defense-panel summary{cursor:pointer;align-content:center;min-height:44px;font-size:.85rem;line-height:1.4}.construction-layout .site-head{flex-wrap:wrap;gap:6px 10px}.construction-layout .site-head .small-button,.defense-panel>button{min-height:44px}.construction-layout .site-head>strong{overflow-wrap:anywhere}.defense-panel>h3{margin-block:0 8px}.defense-panel>p{line-height:1.45}:root .hint-popup .muted{color:inherit}:root[data-ui-theme=dark] .construction-card .task-lock{color:#ebbc82}.dungeon-gathering-deadline{border:1px solid var(--kingdom-edge);background:var(--kingdom-surface);font-variant-numeric:tabular-nums;border-radius:6px;padding:10px}.dungeon-gathering-deadline.ending{border-color:#af6735}.goat-dialog .goat-scene-summary{grid-template-columns:84px minmax(0,1fr);align-items:center;gap:12px;display:grid}.goat-portrait{box-sizing:border-box;border:1px solid var(--kingdom-edge);background:var(--kingdom-card);width:84px;height:68px;image-rendering:pixelated;border-radius:8px;padding:4px}.goat-scene-summary p{margin-block:5px;line-height:1.4}.goat-dialog blockquote{border-left:3px solid var(--kingdom-edge);background:var(--kingdom-card);border-radius:4px;margin:0;padding:10px 12px;line-height:1.45}.goat-rules{color:var(--kingdom-muted);align-items:center;gap:8px;font-size:.8rem;display:flex}.goat-rules>span{flex:1}.goat-rules>.help-button{flex-shrink:0}.goat-contributors>summary{cursor:pointer;align-content:center;min-height:44px}.goat-contributors p{margin-block:5px}.goat-actions:empty{display:none}.kingdom-humor-history article>button{min-height:44px}.recovery-panel select{width:100%;max-width:100%;min-height:44px;font:inherit;box-sizing:border-box;padding:6px}.recovery-panel label:has(>select){gap:6px;font-size:.85rem;display:grid}.recovery-panel summary{box-sizing:border-box;align-content:center;min-height:44px}@media (width>=721px) and (width<=1439px){.game-root .hud-top{grid-template-columns:minmax(0,1fr)}.game-root .hud-top-spacer{display:none}.game-root .project-banner{grid-area:auto/1;min-width:0;max-width:100%}.game-root .hud-resources{grid-area:auto/1;grid-template-columns:repeat(6,minmax(0,1fr));justify-self:stretch;min-width:0}.game-root .hud-resources>.resource-chip{min-width:0;padding-inline:3px}.game-root .hud-state-row{flex-wrap:wrap;min-width:0;max-width:100%}.game-root .hud-state-row>.wallet-hud{min-height:44px}}:root .game-root .hud-top{grid-template-columns:minmax(0,1fr);gap:6px;display:grid}:root .game-root .hud-top .project-banner{grid-area:auto/1;width:auto;min-width:0}:root .game-root .hud-top .hud-resources{width:100%;min-width:0;box-shadow:none;background:0 0;border:0;flex-direction:column;grid-area:auto/1;justify-self:stretch;gap:5px;padding:0;display:flex;position:relative}.hud-stock-strip{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;display:grid}:root .game-root .hud-stock-strip>.resource-chip{box-sizing:border-box;justify-content:center;align-items:center;min-width:0;height:44px;padding:0 4px;display:flex}:root .hud-stock-strip .resource-hint{justify-content:center;align-items:center;gap:6px;width:100%;min-height:44px;padding:0;display:flex}:root .game-root .hud-top .hud-state-row{flex-wrap:wrap;justify-content:flex-start;align-items:stretch;gap:5px;width:100%;min-width:0;display:flex}:root .game-root .hud-top .hud-state-row>*{order:initial;grid-area:auto;margin:0}:root .game-root .hud-top .personal-vitals{box-sizing:border-box;flex:130px;align-content:center;width:auto;min-width:90px;max-width:200px;height:44px;min-height:44px;padding:5px 7px;display:grid}.hud-world-row{flex-wrap:wrap;align-items:stretch;gap:5px;min-width:0;display:flex}:root .game-root .hud-world-row>.resource-chip{box-sizing:border-box;justify-content:center;align-items:center;gap:5px;height:44px;padding:0 7px;display:flex}:root .game-root .hud-world-row .weather-chip,:root .game-root .hud-world-row .wallet-hud{box-sizing:border-box;background:var(--kingdom-hud);color:#f3e7cc;border:1px solid #b88c54;border-radius:8px;height:44px;min-height:44px;margin:0;padding:0 8px}:root .game-root .hud-top .safe-rest-control{box-sizing:border-box;background:var(--kingdom-hud);color:#f3e7cc;border:1px solid #b88c54;border-radius:8px;flex-wrap:nowrap;justify-self:auto;align-items:center;gap:0;width:auto;height:44px;min-height:44px;display:flex}:root .game-root .hud-top .safe-rest-control>button{flex:initial;width:auto;min-width:44px;height:42px;min-height:42px;box-shadow:none;color:inherit;background:0 0;border:0;justify-content:center;align-items:center;gap:5px;margin:0;padding:0 7px;font-size:.8rem;display:inline-flex}:root .game-root .hud-top .safe-rest-control>.hint-term{border-left:1px solid #b88c5455;border-radius:0;width:44px;padding:0}:root .game-root .hud-top .safe-rest-control>.error{background:var(--kingdom-hud);padding:8px;position:absolute;top:100%}.safe-rest-control .nav-icon{width:18px;height:18px}:root .economic-gold-icon{vertical-align:middle;flex:none;width:22px;height:22px;display:inline-block}.wallet-hud .wallet-descoin{border-left:1px solid #b88c5460;padding-left:7px}.economy-balances>span{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.economy-balances small{color:var(--kingdom-muted);font-size:.75rem}:root .quest-tracker-body,:root .quest-tracker-body:hover,:root .quest-tracker-body:active{color:inherit;box-shadow:none;background:0 0}:root .game-root .hud-status{background:var(--kingdom-hud);color:#f3e7cc;border:1px solid #b88c54;width:auto;min-width:0;max-width:100%;padding:7px 10px}.next-action.idle{flex-direction:row;align-items:center;gap:7px}:root .economy-controls>label{flex-direction:column;justify-content:flex-end;align-self:stretch;gap:6px;min-width:0;display:flex}:root .economy-controls input,:root .economy-controls select{box-sizing:border-box;width:100%;height:44px;min-height:44px;font:inherit;border-radius:7px;margin:0;padding:7px 9px}:root .task-filters.economy-controls>button{box-sizing:border-box;min-height:44px;margin:0}@media (width<=380px){:root .task-filters.economy-controls{grid-template-columns:minmax(0,1fr)}}:root .energy-shop-disclosure .energy-shop{margin-top:8px;padding:12px}:root .energy-shop>.row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;display:grid}:root .energy-shop>.row>button{box-sizing:border-box;width:100%;min-height:44px;margin:0}.work-category-filters{flex-wrap:nowrap;gap:5px;display:flex}.work-category-filters>button{min-height:44px}@media (width>=721px){:root .game-root .hud-top{max-width:1060px;padding-right:166px}:root .game-root .hud-side{padding-right:166px}}@media (width<=720px){:root .game-root .hud-top{padding-right:0}:root .game-root .hud-top .hud-state-row{flex-wrap:nowrap;grid-template-columns:minmax(44px,1fr) auto 44px auto;gap:4px;display:grid}:root .game-root .hud-top .hud-state-row>.personal-vitals{grid-area:1;width:100%;min-width:60px;max-width:none;height:44px;min-height:44px}:root .game-root .hud-top .hud-state-row>.safe-rest-control{grid-area:1;width:auto}:root .game-root .hud-top .safe-rest-caption{display:none}:root .game-root .hud-top .safe-rest-control>button{width:44px;min-height:42px;padding:0}:root .game-root .hud-overview-toggle{background:var(--kingdom-hud);color:#f3e7cc;border:1px solid #b88c54;border-radius:8px;justify-content:center;align-items:center;gap:5px;min-width:72px;height:44px;margin:0;padding:0 6px;font-size:.75rem;display:inline-flex}.hud-overview-toggle .nav-icon{width:18px;height:18px}.hud-overview{z-index:90;background:var(--kingdom-hud);border:1px solid #b88c54;border-radius:9px;gap:8px;max-height:min(65dvh,400px);padding:8px;display:grid;position:absolute;top:calc(100% + 5px);left:0;right:0;overflow-y:auto;box-shadow:0 4px 16px #0008}.hud-overview>header{justify-content:space-between;align-items:center;gap:8px;display:flex}.hud-overview>header>strong{flex:1;min-width:0}.hud-overview-close{text-align:center;flex:0 0 44px;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;font-size:24px;line-height:1;display:grid}.hud-overview .hud-stock-strip{grid-template-columns:repeat(3,minmax(0,1fr))}:root .game-root .hud-overview .hud-world-row{flex-wrap:wrap;display:flex}:root .game-root .hud-overview .weather-name,:root .game-root .hud-overview .wallet-label{display:inline}:root .game-root .hud-overview .weather-chip{width:auto}:root .game-root .hud-side{flex-flow:wrap;align-items:flex-start;gap:4px;padding-right:84px}:root .game-root .hud-side>.collapsed{flex:90px;width:auto;max-width:100%}:root .game-root .hud-side .hud-card-head{gap:4px;min-height:36px;padding:5px 7px;font-size:.7rem}:root .game-root .hud-side .hud-card-head>.small{font-size:.65rem}:root .game-root .phone-bottom{gap:4px}.phone-bottom .need-summary{min-width:0;display:inline-flex}.phone-bottom .hud-needs{flex-wrap:wrap;gap:4px}:root .game-root .hud-top .hud-state-row>.weather{grid-row:1;width:44px;min-width:44px}:root .game-root .hud-top .hud-state-row>.weather .weather-chip{justify-content:center;width:44px;min-width:44px;height:44px;padding:0}:root .game-root .hud-top .hud-state-row>.weather .weather-name,.phone-bottom .hud-needs:empty{display:none}:root .game-root .phone-bottom .hud-status{padding:5px 8px;font-size:.78rem}.phone-bottom .next-action.compact{gap:3px;font-size:.78rem}.phone-bottom .next-action.compact .help-button{display:none}.phone-bottom .next-action .bar{height:5px}:root .game-root .hud-buttons{gap:2px;padding:3px}:root .game-root .hud-buttons button{gap:3px;min-height:44px;padding:4px 2px;font-size:.68rem}:root .game-root .hud-buttons .nav-icon{width:19px;height:19px}:is(:root .modal.menu .kingdom-navigation,:root .modal.menu .kingdom-navigation:has(>button:nth-child(5))){flex-wrap:nowrap;gap:3px;padding:5px;display:flex;overflow-x:auto}:root .modal.menu .kingdom-navigation>.tab{flex:1 0 44px;gap:3px;min-width:44px;min-height:48px;padding:4px 2px;font-size:.68rem;line-height:1.15}:root .modal.menu .kingdom-navigation .nav-icon{width:18px;height:18px}.work-category-filters{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;display:grid}:root .modal .work-category-filters>button{white-space:nowrap;border-radius:7px;min-width:0;padding:5px 1px;font-size:.7rem}}:root .game-root .hud-top{padding-left:36px}@media (width<=720px){:root .game-root .hud-top.phone-hud{padding-left:0}:root .game-root .hud-top.phone-hud.has-project>.project-banner{margin-left:40px}:root .game-root .hud-top.phone-hud:not(.has-project) .hud-state-row{padding-left:40px}:root .game-root .hud-top.phone-hud .hud-state-row.no-vitals{grid-template-columns:max-content 44px max-content;justify-content:start}:root .game-root .hud-top.phone-hud .hud-overview-toggle{justify-self:start;width:max-content}:root .game-root .hud-top.phone-hud .hud-resources,:root .game-root .hud-top.phone-hud .hud-state-row{pointer-events:none}:root .game-root .hud-top.phone-hud .hud-state-row>*,:root .game-root .hud-top.phone-hud .hud-overview{pointer-events:auto}}:root .game-root .hud-top .safe-rest-control{border:0;box-shadow:inset 0 0 0 1px #b88c54}:root .game-root .hud-top .safe-rest-control>button{height:44px;min-height:44px}.menu-label-short{display:none}:root .game-root .map-toolbar{z-index:40;top:calc(max(10px, env(safe-area-inset-top)) + 186px);pointer-events:auto;flex-wrap:nowrap;align-items:center;gap:4px;display:flex;position:absolute;right:12px}:root .game-root .map-toolbar>button{box-sizing:border-box;flex:0 0 44px;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;line-height:1;display:grid;position:static;inset:auto}:root .game-root .map-toolbar>button>svg{width:22px;height:22px;margin:0;display:block}:root .game-root.ui-hidden .map-toolbar>:is(.minimap-locate,.world-atlas-launch){display:none}@media (width>=721px){:root .game-root .hud-side{padding-right:202px}}@media (width<=720px){:root .game-root .map-toolbar{right:8px;top:max(calc(var(--minimap-top) + 88px), calc(var(--hud-side-bottom,0px) + 6px));flex-direction:column}:root .modal.menu .kingdom-navigation .menu-label-full{display:none}:root .modal.menu .kingdom-navigation .menu-label-short{display:inline}:root .game-root .hud-top .hud-state-row>.personal-vitals{min-width:44px}}.work-payment-overlay{z-index:9000}.work-payment-dialog{width:min(520px,100%)}.work-payment-dialog .modal-body{flex-direction:column;gap:10px;display:flex}.work-payment-dialog .modal-body>p{margin:0}.work-payment-dialog .work-pay-option{white-space:normal;width:100%;min-height:44px}.work-pay-option small{font-weight:400;display:block}.work-pay-status{color:var(--muted,#b8a37b)}.work-pay-status.funded{color:#80b559}@media (width<=720px){.work-payment-overlay{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.phone-bottom .food-summary>.hint-term{min-height:36px}.phone-bottom .food-summary{white-space:nowrap}}.equipment-shop{margin-block:18px}.equipment-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.equipment-family{border:1px solid var(--border,#88704a);border-radius:10px;flex-direction:column;gap:8px;min-width:0;padding:12px;display:flex}.equipment-family h4{margin:0}.equipment-family .portrait{align-self:center}.equipment-family select,.equipment-family button{width:100%;min-height:44px}@media (width<=480px){.equipment-shop-grid{grid-template-columns:minmax(0,1fr)}}.task-pay{color:var(--kingdom-ink,#50391e);margin-top:4px;font-size:.78rem;font-weight:600;display:block}.task-pay.funded{color:#436425}.work-pay-filter{align-items:center;gap:6px;margin:8px 0;font-size:.85rem;display:flex}@media (width<=720px){.phone-bottom .next-action .next-cancel{min-width:88px;min-height:44px;padding:4px 10px;font-size:.78rem}}
