:root{--ink: #24150a;--ink-muted: #5c4127;--gold: #8f5200;--gold-light: #ffd66b;--ok: #1f6b16;--bad: #a01b14;--orange: #9c4f00;--wood-text: #fff3d6;--line: rgba(90, 60, 30, .25);--title-font: "Jua", "Malgun Gothic", sans-serif;--body-font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#1b1f2a;color:var(--ink);font-family:var(--body-font);font-weight:500;-webkit-user-select:none;user-select:none}#game{position:fixed;top:0;right:0;bottom:0;left:0}#ui{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none}.panel,.toast{background:#f4ecdb url(/assets/ui_panel_linen.webp) repeat center / 224px 224px;border:1px solid #96856a;border-radius:5px;box-shadow:0 2px 5px #261e1633}.panel{pointer-events:auto}button{font-family:var(--title-font);font-size:13px;color:var(--wood-text);text-shadow:0 1px 1px #382b1f;letter-spacing:.2px;background:linear-gradient(#71614e,#544737);border:1px solid #584733;border-radius:4px;padding:4px 7px;cursor:pointer;transition:filter .15s}@media(hover:hover){button:hover{filter:brightness(1.15)}}button:active{filter:brightness(.94)}button.active{background:#51402b;box-shadow:inset 0 0 0 1px var(--gold-light);color:var(--gold-light)}button:disabled{filter:grayscale(.8) brightness(.8);opacity:.6;cursor:default}.top{position:absolute;top:6px;left:6px;right:6px;display:flex;flex-direction:column;gap:4px}.topbar{display:flex;align-items:center;gap:5px;padding:5px 8px;flex-wrap:nowrap;white-space:nowrap}.stat{display:flex;align-items:center;gap:4px;font-size:15px}.stat .ico{font-size:18px;display:flex;align-items:center}.stat .ico img{height:22px;width:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}.stat b{font-family:var(--title-font);font-weight:400;font-size:19px;min-width:1ch}#s-gold{color:var(--gold);display:inline-block}#s-gold.flash{animation:flash .6s ease-out}@keyframes flash{0%{transform:scale(1.35);color:#e08a00}to{transform:scale(1)}}.sub{color:var(--ink-muted);font-size:13px;font-weight:700}.warn{color:var(--bad);font-size:12px;font-weight:700}.day{align-items:center}.daybar{width:36px;height:7px;background:#5a3c1e40;border:1px solid rgba(90,60,30,.5);border-radius:4px;overflow:hidden;margin-left:4px}#s-dayfill{height:100%;width:0;background:linear-gradient(#ffd66b,#d4a017)}.speed{display:flex;gap:2px}.speed button{font-size:10px;min-width:28px}.menu{margin-left:auto;display:flex;gap:3px}.menu button{font-size:14px;min-width:32px;text-shadow:none}.bottom{position:absolute;bottom:6px;left:6px;right:6px;display:flex;flex-direction:column;align-items:center;gap:6px}.toolbar{display:flex;flex-wrap:nowrap;width:max-content;max-width:none!important;flex:none;transform-origin:center bottom;justify-content:center;gap:2px;padding:4px;box-sizing:border-box;max-width:100%}.tool{pointer-events:auto;position:relative;display:flex;flex-direction:column;align-items:center;width:54px;padding:5px 4px}.tool .ico{font-size:18px;line-height:1.1;height:26px;display:flex;align-items:flex-end;justify-content:center}.tool .ico img{max-width:40px;max-height:30px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))}.tool .name{font-size:12px;margin-top:1px;white-space:nowrap}.tool .cost{font-family:var(--body-font);font-size:10px;font-weight:700;letter-spacing:0;color:var(--gold-light);min-height:12px;white-space:nowrap}.toolbar .tool{width:max-content;min-width:54px;padding-inline:5px;flex:none}.toolbar .tool .name{font-size:11px}.toolbar .tool .cost{font-size:9.5px}.tool .cost .ic{width:10px;height:10px;vertical-align:-1px;margin-right:0}.city-sidebar{display:grid;gap:4px;min-width:0;max-width:100%}.map-tools{display:grid;grid-template-columns:repeat(4,54px);justify-content:center;gap:3px 4px;padding:4px}.map-tools .cost{display:none}.tool-preview{padding:5px 8px 6px;position:fixed;z-index:3;pointer-events:none;box-sizing:border-box;width:min(312px,calc(100vw - 12px));display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;font-size:12px;line-height:1.45;word-break:keep-all}.tool-preview p{margin:3px 0}.tool-preview small{display:block;margin-top:4px;font-size:12px;font-weight:700;color:var(--ink)}.preview-art{text-align:center;font-size:32px}.preview-art img{width:48px;height:48px;object-fit:contain}.tool .key{position:absolute;top:1px;left:3px;font-size:11px;color:#ffe9b8}.side-row{display:grid;grid-template-columns:256px 1fr 280px;gap:6px;align-items:start;pointer-events:none}.status{font-size:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8916a transparent;display:flex;flex-direction:column;gap:4px;padding:5px 8px 7px}.status>*{flex-shrink:0}.status .sub,.status .small{font-size:12px}.status .mood-body b,.status .sect,.status .wide{font-size:13px}.mood{display:flex;align-items:center;gap:8px}.mood-emoji{font-size:28px}.mood-body{flex:1}.mood-body b{font-family:var(--title-font);font-weight:400;font-size:15px}.bar,.minibar{height:7px;background:#5a3c1e33;border:1px solid rgba(90,60,30,.45);border-radius:4px;overflow:hidden}.bar{margin-top:3px}.bar>div{height:100%;width:0;transition:width .4s}.row{display:flex;justify-content:space-between;align-items:center;gap:6px}.tax-ctl{display:flex;align-items:center;gap:4px}.tax-ctl b{font-family:var(--title-font);font-weight:400}.tax-ctl button{font-size:10px;padding:0 1px;min-width:22px;min-height:20px}.wide{width:100%;font-size:14px;padding:2px 4px}.sect{margin-top:3px;font-family:var(--title-font);font-size:14px;color:var(--ink-muted);border-top:1px dashed var(--line);padding-top:3px}.svc>span:first-child{width:58px;flex:none}.minibar{flex:1}.minibar>span{display:block;height:100%}.ok-bg{background:linear-gradient(#7cc45f,#3f8a2c)}.bad-bg{background:linear-gradient(#ef6b5f,#b3261e)}.center-col{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}.raid,.protest{cursor:pointer;max-width:440px;font-size:13px;text-align:center;padding:6px 10px}.protest{animation:pulse 2s infinite}.raid .p-title,.protest.riot .p-title{color:var(--bad)}@keyframes pulse{50%{filter:drop-shadow(0 0 12px rgba(255,110,50,.85))}}.p-title{font-family:var(--title-font);font-size:17px;color:#8a3a12}.p-sub{color:var(--ink);margin-top:2px}.p-hint{color:var(--gold);margin-top:4px;font-size:13px;font-weight:700}.p-actions{display:flex;justify-content:center;gap:4px;margin-top:6px}.info-wrap{grid-column:3;position:relative;min-width:0}.info{max-height:calc(100vh - 230px);overflow-y:auto;overscroll-behavior-y:contain;padding:8px 10px;font-size:14px;line-height:1.55}.info .title{font-family:var(--title-font);font-size:19px;margin-bottom:2px}.muted{color:var(--ink-muted)}.small{font-size:13px}.ok{color:var(--ok)}.bad{color:var(--bad)}.cost{color:var(--gold)}.neg{color:var(--bad)!important}.off{color:#8c7457;text-decoration:line-through}.orange{color:var(--orange)}.stars{color:#d99a0b;letter-spacing:2px;text-shadow:0 1px 0 rgba(90,60,30,.4)}.cond-head{margin-top:5px;font-family:var(--title-font);font-size:15px;color:var(--ink);border-top:1px dashed var(--line);padding-top:3px}.cond{font-size:13px;padding-left:4px}.info hr{border:0;border-top:1px dashed var(--line);margin:5px 0}.toasts{display:flex;flex-direction:column;align-items:center;gap:2px}.toast{padding:6px 12px;font-size:14px;font-weight:700;color:var(--ink);transition:opacity .5s,transform .5s}.toast.bad{color:var(--bad)}.toast.good{color:#8a5a00;font-family:var(--title-font);font-size:15px}.toast.out{opacity:0;transform:translateY(-8px)}.help{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(580px,calc(100vw - 32px));box-sizing:border-box;padding:18px 22px;font-size:15px;line-height:1.65}.help h2{margin:0 0 6px;font-family:var(--title-font);font-weight:400;font-size:22px;color:#8a3a12}.help ul{padding-left:18px;margin:8px 0 12px}.levels{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0}.levels th,.levels td{border-bottom:1px dashed var(--line);padding:3px 6px;text-align:left}.levels th{color:var(--ink-muted);font-weight:400}.help button{display:block;margin-left:auto;font-size:15px;padding:2px 14px}.hidden{display:none}.title-screen{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:auto;background:#f4ead2 url(/assets/title_bg.jpg) center / cover no-repeat;z-index:20;overflow-y:auto;transition:opacity .45s}.title-screen:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#0c1a2180 0%,#14262e70 26%,#15262d30 45%,transparent 68%);pointer-events:none}.title-screen.leaving{opacity:0}.title-box{position:absolute;left:6%;top:0;min-height:100%;box-sizing:border-box;padding-block:16px;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.title-brand{--logo-navy: #162c4e;width:min(480px,88vw,78vh);position:relative;top:-10px;margin-bottom:clamp(12px,3vh,26px);animation:title-in .8s ease-out both}.title-brand h1{position:relative;margin:0;filter:drop-shadow(0 1px 2px #fff1d0a6) drop-shadow(0 3px 3px #0009)}.title-brand img{display:block;width:100%;height:auto}.title-brand h1:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(#243d60,var(--logo-navy) 52%,#10233f);mask:url(/assets/title_logo.webp) center / 100% 100% no-repeat}.title-sub,.title-intro{font-family:var(--body-font);text-shadow:0 1px 3px #08161d;word-break:keep-all}.title-sub{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;margin:6px 0 8px;font-size:clamp(12px,1.2vw,14px);font-weight:600;color:var(--logo-navy);text-shadow:0 1px 3px #ffefd5}.title-sub:before,.title-sub:after{content:"";width:19%;height:1px;background:currentColor}.title-intro{margin:0 0 15px;max-width:min(410px,86vw);font-size:11px;line-height:1.7;color:#fff9eb}.title-buttons{position:relative;top:8px;display:flex;flex-direction:column;gap:6px;animation:title-in .8s .3s ease-out both}.title-buttons button{width:min(205px,84vw);min-height:44px;padding:5px 16px;border:0;border-image:none;background:url(/assets/title_button.webp) center / 100% 100% no-repeat;font-size:16px;color:#fff0c5}.title-buttons button:not(:disabled):hover{filter:brightness(1.2) drop-shadow(0 0 8px rgba(255,214,107,.8))}.title-note{margin:14px 0 0 6px;font-size:15px;font-weight:700;color:#fff3d7;text-shadow:0 1px 3px #08161d}@keyframes title-in{0%{opacity:0;transform:translateY(-14px)}}.help{z-index:30}.slots{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(500px,calc(100vw - 32px));max-height:calc(100vh - 80px);overflow-y:auto;z-index:25;box-sizing:border-box;padding:18px 22px;font-size:14px}.slots h2{margin:0 0 8px;font-family:var(--title-font);font-weight:400;font-size:22px;color:#8a3a12}.slot-row{display:flex;align-items:center;gap:6px;padding:6px 2px;border-bottom:1px dashed var(--line)}.slot-info{flex:1;min-width:0}.slot-info b{font-family:var(--title-font);font-weight:400;font-size:17px}.slot-row button{font-size:13px;min-width:74px}button.danger{color:#ffd0c8;filter:hue-rotate(-25deg) saturate(1.6) brightness(.95)}.slot-foot{display:flex;justify-content:space-between;gap:6px;margin-top:10px}.slot-foot button{font-size:14px}#t-continue{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}#t-continue small{display:block;font-family:var(--body-font);font-size:11px;font-weight:500;line-height:1;color:#a2adba;text-shadow:none}.wait-hint{font-size:14px;padding:6px 10px;font-weight:700;color:#9c4f00;animation:wait-blink 1.6s ease-in-out infinite}@keyframes wait-blink{50%{opacity:.88}}.ic{height:1.35em;width:auto;vertical-align:-.32em;filter:drop-shadow(0 1px 1px rgba(0,0,0,.3))}.menu button .ic{height:22px;vertical-align:middle}.tool .ico .ic{height:28px}.mood-img{height:36px;width:auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}.slots h2 .ic,.p-title .ic{height:1.2em}.trade-row{flex-wrap:wrap}.trade-res{min-width:120px;font-weight:700}.trade-btns{display:flex;gap:3px;margin-left:auto}.trade-btns button{font-size:12px;padding:2px 4px;display:flex;flex-direction:column;align-items:center;line-height:1.2}.trade-total{font-size:10.5px;color:#ffe08a;white-space:nowrap}.trade-total .ic{width:10px;height:10px;vertical-align:-1px}.trade-total.bad{color:#ff9a86}.research-row{flex-wrap:wrap;gap:4px 8px;align-items:center}.research-row .trade-btns{align-items:center;gap:6px}.pips{display:inline-flex;gap:3px;margin-left:4px;vertical-align:middle}.pip{width:9px;height:9px;border-radius:50%;background:#d9c9a3;border:1px solid #8a6a3a}.pip.on{background:#e0a526}.tier-box{padding:4px 6px;margin:2px 0 4px;border:1px dashed var(--line);border-radius:6px;line-height:1.35}.tier-name b{font-family:var(--title-font);font-size:17px;color:#8a3a12}.tool.locked,.tool.built{filter:grayscale(1);opacity:.5}.tool.off{filter:grayscale(1);opacity:.45;cursor:default}.tool.locked:after,.tool.built:after{content:attr(data-lock);position:absolute;left:0;right:0;top:40%;font-size:9px;color:#fff;background:#2a1d17d9;border-radius:3px;padding:1px 0}.tier-up{text-align:center;padding:10px 26px;animation:tierPop .5s ease-out}.tier-up-title{font-family:var(--title-font);font-size:18px;color:#8a3a12}.tier-up-name{font-family:var(--title-font);font-size:32px;color:#b3261e;margin:2px 0}.ending{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;pointer-events:auto;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#280a068c,#0a0402e0);animation:endingFade 1.6s ease-out}.ending.hidden{display:none}.ending-card{width:min(560px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow-y:auto;padding:18px 26px 20px;text-align:center;line-height:1.6;font-size:14px}.ending-art{width:100%;border-radius:4px;margin-bottom:10px}.ending-kicker{font-family:var(--title-font);font-size:14px;color:var(--ink-muted);letter-spacing:.2em}.ending-title{font-family:var(--title-font);font-size:38px;color:#b3261e;margin:0 0 6px}.ending-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin:10px 0 14px;font-weight:700;color:#8a3a12}.ending-btns{display:flex;justify-content:center;gap:10px}.ending-btns button{font-size:15px;padding:7px 16px}@keyframes endingFade{0%{opacity:0}to{opacity:1}}@keyframes tierPop{0%{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}.top{top:11px;left:11px;right:11px;gap:13px}.side-row{gap:14px}.city-sidebar{gap:13px}.bottom{bottom:11px;left:281px;right:11px;gap:13px}.panel,.toast{border:2px solid transparent;border-radius:0;background-clip:padding-box;border-image:url(/assets/ui_slot.png) 34 / 9px / 6px stretch;box-shadow:0 4px 10px #140c0473}button{border:2px solid transparent;border-radius:0;border-image:url(/assets/ui_wood_button.png) 30 36 fill / 7px 9px stretch;background:none;color:#fff3d6;text-shadow:0 1px 2px #1e1208,0 0 3px #1e1208}button.active{background:none;filter:brightness(1.25) saturate(1.15);box-shadow:0 0 0 2px #ffd66b,0 0 8px #ffd66baa;color:#ffe9a8}.tool,.toolbar .tool{border-image:url(/assets/ui_slot.png) 34 fill / 9px stretch}.tool .name{color:#fff3d6;text-shadow:0 1px 2px #1e1208,0 0 3px #1e1208}.tool .cost{color:#ffe08a;text-shadow:0 1px 2px #1e1208}.tool.active{box-shadow:0 0 0 2px #ffd66b,0 0 10px #ffd66bcc}.sect{border-top:none;margin:7px -6px 3px;padding:3px 0 6px;text-align:center;color:#fff3d6;font-size:14px;text-shadow:0 1px 2px #3a0a04,0 0 3px #3a0a04;background:url(/assets/ui_ribbon.png) center / 100% 100% no-repeat}#title button{border-image:none}.toolbar .tool{width:56px;min-width:56px;padding:5px 2px 4px}.toolbar .tool .name{font-size:11.5px;max-width:52px;overflow:hidden;text-overflow:clip}.tool-tabs{display:flex;gap:4px;pointer-events:auto;margin-bottom:-6px}.tool-tab{font-size:14px;padding:4px 12px 5px;min-width:70px}.toolbar .tool.hidden{display:none}.toolbar .tool{width:max-content;min-width:68px;padding:6px 6px 5px}.toolbar .tool .name{font-size:13px;max-width:none}.toolbar .tool .cost{font-size:10.5px}.toolbar .tool .ico img{max-width:46px;max-height:34px}.toolbar .tool .ico{height:32px}.dialog{position:relative;display:flex;align-items:flex-end;width:clamp(440px,calc(100vw - 600px),680px);pointer-events:auto;margin-bottom:2px}.dialog.hidden{display:none}.dialog.pop{animation:dlgPop .28s ease-out}@keyframes dlgPop{0%{transform:translateY(18px);opacity:0}to{transform:none;opacity:1}}.dlg-portrait{position:relative;width:132px;height:132px;object-fit:contain;object-position:bottom;align-self:flex-end;margin:0 -140px 6px 8px;z-index:2;cursor:pointer;filter:drop-shadow(0 3px 4px rgba(20,12,4,.4))}.dlg-body{flex:1;min-height:144px;padding:8px 14px 6px 150px;cursor:pointer}.dlg-name{display:flex;align-items:baseline;gap:8px}.dlg-name b{font-family:var(--title-font);font-weight:400;font-size:19px;color:#8a3a12}.dlg-title{font-size:12px;color:var(--ink-muted)}.dlg-count{margin-left:auto;font-size:12px;color:var(--ink-muted)}.dlg-text{font-size:15.5px;line-height:1.5;color:var(--ink);min-height:46px;margin-top:2px;white-space:pre-wrap}.dlg-choices{display:flex;flex-wrap:nowrap;gap:6px;margin-top:6px}.dlg-choice{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;font-size:14px;padding:5px 6px 6px}.dlg-choice small{white-space:normal;text-align:center;line-height:1.25}.dlg-choice small{font-family:var(--body-font);font-size:11px;font-weight:700;color:#ffe08a;margin-top:1px}.dlg-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:18px}.dlg-focus{font-size:12px;padding:2px 10px}.dlg-focus.hidden,.dlg-more.hidden{display:none}.dlg-more{font-size:12px;color:#8a3a12;animation:dlgBlink 1s infinite}@keyframes dlgBlink{50%{opacity:.2}}.dialog.warn .dlg-body{box-shadow:0 0 0 2px #e08a1e,0 4px 14px #e08a1e8c}.dialog.danger .dlg-body{animation:dlgDanger .9s ease-in-out infinite}@keyframes dlgDanger{0%,to{box-shadow:0 0 0 2px #b3261e,0 4px 12px #b3261e80}50%{box-shadow:0 0 0 3px #ff5a4a,0 4px 20px #ff5a4acc}}.log-row{align-items:flex-start;gap:8px}.log-pt{width:44px;height:44px;object-fit:contain;flex:none}.log-row.danger{background:#b3261e14}.log-row.warn{background:#e08a1e14}.walker-bubble{position:fixed;z-index:40;transform:translate(-50%,calc(-100% - 10px));max-width:210px;padding:6px 10px 7px;background:#fff8e6;border:2px solid #8a6a3a;border-radius:12px;box-shadow:0 3px 8px #28190a59;color:#3b2a17;font-size:13px;line-height:1.4;text-align:center;word-break:keep-all;pointer-events:none;transition:opacity .2s}.walker-bubble b{display:block;font-size:11px;color:#8a5a2b;margin-bottom:1px}.walker-bubble:after{content:"";position:absolute;left:50%;bottom:-9px;transform:translate(-50%);border:8px solid transparent;border-top-color:#8a6a3a;border-bottom:0}.walker-bubble:before{content:"";position:absolute;left:50%;bottom:-6px;transform:translate(-50%);border:7px solid transparent;border-top-color:#fff8e6;border-bottom:0;z-index:1}.saveas{padding:4px 2px 10px;border-bottom:1px dashed var(--line)}.saveas-row{display:flex;gap:6px;margin-top:6px}.saveas-row input{flex:1;min-width:0;font:inherit;font-size:14px;padding:4px 8px;border:1px solid #a07a4a;border-radius:4px;background:#fffaf0;color:#3a2410}.saveas-row button{font-size:13px;white-space:nowrap}.snap-row{padding-left:18px}.snap-row .slot-info b{font-size:15px}.snap-head{margin-top:8px}.knight-box{margin:4px 0}.k-btns{display:flex;gap:4px;margin-top:3px}.k-btns button{flex:1;font-size:12px;padding:3px 2px;white-space:nowrap}.stat b.full{color:#e2553b}.dip-row{flex-direction:column;align-items:stretch;gap:4px}.dip-head b{font-family:var(--title-font);font-weight:400;font-size:17px}.dip-rel{display:flex;align-items:center;gap:6px}.dip-bar{width:120px}.dip-btns{display:flex;flex-wrap:wrap;gap:4px}.dip-btns button{min-width:0;font-size:12px}.moved-acts{display:none!important}.info-acts{display:flex;flex-direction:column;gap:4px;margin-top:6px}button.info-act{margin-top:4px;font-size:13px}.area-bar{padding:5px 6px;display:grid;gap:4px;font-size:12px;word-break:keep-all}.area-bar.hidden{display:none}.area-bar .chips{display:flex;flex-wrap:wrap;gap:3px}.area-bar .chips button{padding:2px 7px;font-size:12px}.area-bar .chips button.active{outline:2px solid var(--gold-light);font-weight:700}.menu-items{display:flex;gap:3px}.m-only,.m-label{display:none}#ui{word-break:keep-all;overflow-wrap:break-word}#game{touch-action:none}button{touch-action:manipulation}html,body{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;-webkit-touch-callout:none}body.mobile .m-only{display:revert}body.mobile li.m-only{display:list-item}body.mobile .d-only,body.mobile .tool .key,body.mobile .tool-preview,body.mobile [data-tool=move],body.mobile .overlay-btn,body.mobile .area-bar:not(.carrying),body.mobile #s-houses-wrap,body.mobile #s-wood-d,body.mobile #s-stone-d,body.mobile .speed button:nth-child(4){display:none!important}body.mobile .top{top:5px;left:4px;right:4px;gap:6px}body.mobile .topbar{gap:10px;padding:3px 8px;min-height:40px}body.mobile .stat{gap:3px;font-size:13px}body.mobile .stat .ico img{height:20px}body.mobile .stat b{font-size:17px}body.mobile .sub{font-size:12px}body.mobile .daybar{width:28px}body.mobile .speed{gap:3px}body.mobile .speed button{font-size:12px;min-width:34px;min-height:30px;white-space:nowrap}body.mobile #b-status{margin-left:auto;font-size:14px;min-height:30px;padding:3px 10px;white-space:nowrap}body.mobile .menu{margin-left:0;position:relative}body.mobile #b-menu{font-family:var(--body-font);font-size:18px;min-width:38px;min-height:30px}body.mobile .menu-items{display:none}body.mobile .menu.open .menu-items{display:flex;flex-direction:column;gap:4px;position:absolute;top:calc(100% + 10px);right:-6px;z-index:20;padding:6px;width:168px;background:#f4ecdb url(/assets/ui_panel_linen.webp) repeat center / 224px 224px;border:2px solid transparent;border-image:url(/assets/ui_slot.png) 34 / 9px / 6px stretch;box-shadow:0 4px 10px #140c0473}body.mobile .menu.open .menu-items button{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 10px;font-size:15px;text-align:left;white-space:nowrap}body.mobile .menu.open .m-label{display:inline;text-shadow:0 1px 2px #1e1208,0 0 3px #1e1208}body.mobile .side-row{display:block}body.mobile .center-col{position:fixed;top:52px;left:80px;right:80px;gap:4px}body.mobile .raid,body.mobile .protest,body.mobile .wait-hint,body.mobile .tier-up{max-width:min(460px,100%);font-size:13px;line-height:1.45;padding:5px 10px}body.mobile .p-title{font-size:16px}body.mobile .p-actions{flex-wrap:wrap}body.mobile .p-actions button{font-size:13px;min-height:32px;white-space:nowrap}body.mobile .tier-up-name{font-size:26px}body.mobile .city-sidebar{position:fixed;left:4px;top:54px;display:block}body.mobile .map-tools{grid-template-columns:60px;gap:4px;padding:0}body.mobile .map-tools .tool{width:60px;padding:4px 2px}body.mobile .map-tools .tool .ico{height:24px}body.mobile .map-tools .tool .ico img{max-height:24px;max-width:34px}body.mobile .tool .name{font-size:12px}body.mobile .status{display:none}body.mobile.show-status .city-sidebar{z-index:16}body.mobile.show-status .status{display:flex;position:fixed;z-index:15;top:54px;left:4px;bottom:6px;width:min(300px,46vw);max-height:none!important;font-size:13px;line-height:1.45;padding:8px 10px}body.mobile.show-status .status .sub,body.mobile.show-status .status .small{font-size:12.5px}body.mobile .status button{min-height:32px}body.mobile .tax-ctl button{min-width:34px;min-height:30px;font-size:12px}body.mobile .info-wrap{display:none;position:fixed;z-index:12;top:54px;right:4px;width:min(310px,44vw);max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px)}body.mobile .info-wrap.pinned{display:block}body.mobile .info{max-height:inherit;font-size:13px;line-height:1.5;padding:8px 40px 10px 10px}body.mobile .info .title{font-size:17px}body.mobile .cond-head{font-size:14px}body.mobile .info button{min-height:34px;font-size:13px}body.mobile .info-close{position:absolute;z-index:1;top:6px;right:6px;width:32px;height:32px;padding:0;font-family:var(--body-font);font-size:15px;pointer-events:auto}body.mobile .bottom{bottom:max(4px,env(safe-area-inset-bottom));left:70px;right:4px;gap:4px}body.mobile .tool-tabs,body.mobile .toolbar{pointer-events:auto;max-width:100%!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}body.mobile .tool-tabs::-webkit-scrollbar,body.mobile .toolbar::-webkit-scrollbar{display:none}body.mobile .tool-tabs{margin-bottom:0;gap:3px;flex-wrap:nowrap}body.mobile .tool-tab{flex:none;min-width:0;font-size:14px;padding:4px 10px;min-height:32px;white-space:nowrap}body.mobile .toolbar{justify-content:flex-start;transform:none!important;padding:2px;gap:3px}body.mobile .toolbar .tool{min-width:64px;padding:4px 5px 3px}body.mobile .toolbar .tool .ico{height:28px}body.mobile .toolbar .tool .ico img{max-width:40px;max-height:28px}body.mobile .toolbar .tool .name{font-size:12.5px}body.mobile .toolbar .tool .cost{font-size:11px}body.mobile .tool.locked:after,body.mobile .tool.built:after{font-size:10.5px}body.mobile .toasts{max-width:100%}body.mobile .toast{font-size:13px;line-height:1.4;padding:5px 12px;text-align:center;max-width:min(520px,100%)}body.mobile .toast.good{font-size:14px}body.mobile .toast:nth-last-child(n+3){display:none}body.mobile .dialog{width:min(600px,100%)}body.mobile .dlg-portrait{width:84px;height:84px;margin:0 -92px 4px 4px}body.mobile .dlg-body{min-height:92px;padding:6px 12px 4px 96px}body.mobile .dlg-name b{font-size:16px}body.mobile .dlg-title,body.mobile .dlg-count{font-size:12px}body.mobile .dlg-text{font-size:14px;line-height:1.45;min-height:40px;white-space:pre-line}body.mobile .dlg-choice{font-size:13px;min-height:36px;padding:4px 5px}body.mobile .dlg-choice small{font-size:11.5px}body.mobile .dlg-focus,body.mobile .dlg-more{font-size:12px}body.mobile .help,body.mobile .slots{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;width:min(600px,calc(100vw - 24px));padding:12px 16px;font-size:14px;line-height:1.55}body.mobile .help h2,body.mobile .slots h2{font-size:19px}body.mobile .levels{font-size:12.5px}body.mobile .help button,body.mobile .slots button{min-height:34px}body.mobile .ending-card{font-size:13.5px}body.mobile .ending-title{font-size:30px}body.mobile .walker-bubble{font-size:13px}body.mobile .title-box{left:max(5%,env(safe-area-inset-left));padding-block:10px}body.mobile .title-brand{width:min(360px,60vw,74vh);top:0;margin-bottom:6px}body.mobile .title-sub{white-space:nowrap;font-size:12px;margin:4px 0 6px}body.mobile .title-intro{font-size:12.5px;line-height:1.6;margin-bottom:8px}body.mobile .title-buttons{top:0;gap:5px}body.mobile .title-buttons button{min-height:40px;width:min(200px,40vw);font-size:15px}body.mobile .title-note{margin-top:8px;font-size:13px}@media(orientation:portrait)and (pointer:coarse){body.mobile:after{content:"📱 화면을 가로로 돌려 주세요";position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;font-family:var(--title-font);font-size:22px;color:#fff3d6;background:#1b1f2a;pointer-events:auto}}body.mobile #b-sound svg{filter:brightness(0) invert(.95) sepia(.25)}@media all{body.mobile.fit-1 #s-gold-d,body.mobile.fit-1 #s-food-d,body.mobile.fit-1 .daybar{display:none}body.mobile.fit-1 .topbar{gap:8px}}@media all{body.mobile.fit-2 .m-wide,body.mobile.fit-2 .stat.day .sub{display:none}body.mobile.fit-2 #s-day:after{content:"일";font-family:var(--body-font);font-size:12px;font-weight:700;color:var(--ink-muted);margin-left:1px}body.mobile.fit-2 .topbar{gap:6px}body.mobile.fit-2 .speed button{min-width:30px}}body.mobile .dialog{position:fixed;z-index:14;left:0;right:0;bottom:max(4px,env(safe-area-inset-bottom));width:min(680px,calc(100vw - 12px));margin:0 auto}@media all{body.mobile.fit-3 .stat .ico img{height:18px}body.mobile.fit-3 .stat{gap:2px}body.mobile.fit-3 .stat b{font-size:15px}}body.mobile .toolbar,body.mobile .tool-tabs{position:fixed;top:54px;bottom:4px;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;width:auto;max-width:none!important;margin:0}body.mobile .toolbar{right:4px;width:72px;padding:0;gap:4px}body.mobile .toolbar .tool{width:72px;min-width:0;flex:none}body.mobile .toolbar .tool .name{max-width:66px;overflow:hidden;text-overflow:ellipsis}body.mobile .tool-tabs{right:80px;width:64px;gap:4px}body.mobile .tool-tab{width:64px;padding:4px 2px;font-size:13px;min-height:34px}body.mobile .bottom{right:152px}body.mobile .center-col{left:72px;right:152px}.speed button svg{display:block;height:12px;width:auto;margin:0 auto;filter:drop-shadow(0 1px 1px #1e1208)}.undo-ico svg{height:26px;width:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))}body.mobile{--side-l: max(4px, calc(env(safe-area-inset-left) - 12px) );--side-r: max(4px, calc(env(safe-area-inset-right) - 12px) );--col-top: 42px}body.mobile .city-sidebar,body.mobile.show-status .status{left:var(--side-l)}body.mobile .bottom{left:calc(var(--side-l) + 66px);right:calc(var(--side-r) + 148px)}body.mobile .center-col{left:calc(var(--side-l) + 68px);right:calc(var(--side-r) + 148px)}body.mobile .toolbar{right:var(--side-r)}body.mobile .tool-tabs{right:calc(var(--side-r) + 76px)}body.mobile .info-wrap{right:var(--side-r)}body.mobile .city-sidebar,body.mobile.show-status .status,body.mobile .toolbar,body.mobile .tool-tabs,body.mobile .info-wrap{top:var(--col-top)}body.mobile .center-col{top:calc(var(--col-top) - 2px)}body.mobile .info-wrap{max-height:calc(100vh - var(--col-top) - 6px);max-height:calc(100dvh - var(--col-top) - 6px)}body.mobile .top{top:3px}body.mobile .topbar{min-height:32px;padding:2px 8px}body.mobile .stat{font-size:12px}body.mobile .stat .ico img{height:17px}body.mobile .stat b{font-size:15px}body.mobile .sub{font-size:11px}body.mobile .daybar{height:6px}body.mobile .speed button{min-height:26px;min-width:32px;padding:2px 6px}body.mobile .speed button svg{height:10px}body.mobile #b-status{min-height:26px;font-size:13px;padding:2px 8px}body.mobile #b-menu{min-height:26px;min-width:34px;font-size:16px;padding:0 6px}body.mobile.fit-3 .stat .ico img{height:15px}body.mobile.fit-3 .stat b{font-size:14px}body.mobile .tool-tab:first-child{margin-top:auto}body.mobile .tool-tab:last-child{margin-bottom:auto}.status .row>span:first-child{white-space:nowrap;flex:none}.status .row>span+span{text-align:right;min-width:0}body.mobile .speed button,body.mobile #b-status,body.mobile #b-menu{display:inline-flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:3px}body.mobile #b-menu{line-height:1}body.mobile button.active,body.mobile .tool.active,body.mobile .tool-tab.active{box-shadow:none;outline:none;filter:brightness(1.4) saturate(1.1)}body.mobile .city-sidebar{bottom:4px;display:flex;flex-direction:column;justify-content:center}body.mobile .dlg-portrait{align-self:center;margin-top:0;margin-bottom:0;object-position:center}.tool-hint{display:none}body.mobile .tool-hint:not(.hidden){display:block;max-width:min(460px,100%);padding:4px 10px 5px;font-size:12.5px;line-height:1.45;cursor:pointer}body.mobile .th-head{display:flex;align-items:center;gap:6px;white-space:nowrap}body.mobile .th-head b{font-family:var(--title-font);font-weight:400;font-size:15px}body.mobile .th-ico img{height:20px;width:auto;vertical-align:middle}body.mobile .th-cost{margin-left:auto;font-weight:700;color:var(--gold)}body.mobile .th-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}body.mobile .tool-hint.open .th-desc{display:block}body.mobile .area-bar.carrying:not(.hidden){display:grid!important;position:fixed;z-index:13;top:calc(var(--col-top) + 2px);left:50%;transform:translate(-50%);width:max-content;max-width:calc(100vw - 320px);font-size:12.5px;text-align:center;pointer-events:auto}body.mobile .area-bar.carrying .chips{justify-content:center;flex-wrap:nowrap}body.mobile .area-bar.carrying .chips button{font-size:13px;min-height:32px;padding:2px 10px;white-space:nowrap}body.mobile .toasts{margin-bottom:calc(var(--dlg-h, 0px) + 4px)}body.mobile .raid:not(.hidden){display:flex;align-items:center;gap:8px;padding:3px 6px 3px 10px;max-width:100%}body.mobile .raid .p-title{font-size:14px;white-space:nowrap}body.mobile .raid .p-sub{margin:0;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}body.mobile .raid .p-actions{margin:0;flex:none}body.mobile .raid .p-actions button{min-height:28px;font-size:12.5px;padding:1px 8px}body.mobile .win-x{display:block;position:sticky;top:0;float:right;z-index:2;width:32px;height:32px;margin:-4px -6px 0 8px;padding:0;font-family:var(--body-font);font-size:15px}body:not(.mobile) .win-x{display:none!important}
