@import "https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Noto+Sans+KR:wght@400;500;700;800&display=swap";*{box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0;padding:0}html,body,#app{width:100%;height:100%;overflow:hidden}body{color:#efe6d0;background:#060506;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sound-board{background:radial-gradient(circle at 50% 20%,#6f5b3629,#0000 42%),linear-gradient(150deg,#111411,#060807 70%);place-items:center;width:100%;height:100%;padding:32px;display:grid;overflow:auto}.sound-board__panel{background:#111512f5;border:1px solid #d7b15b6b;border-radius:8px;width:min(900px,100%);padding:30px;box-shadow:0 24px 80px #000000a6}.sound-board__header{justify-content:space-between;align-items:end;gap:24px;display:flex}.sound-board__header p{color:#ad9561;letter-spacing:1.8px;font-size:11px;font-weight:800}.sound-board__header h1{color:#f1d996;margin-top:5px;font-family:Cinzel,Noto Sans KR,serif;font-size:30px}.sound-board__header span{color:#9e9b8f;margin-top:8px;font-size:13px;display:block}.sound-board__header button{color:#1a1208;cursor:pointer;background:linear-gradient(#f1cc72,#b77b24 72%,#7a4718);border:1px solid #ffeaad80;min-width:130px;padding:12px 18px;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:900;box-shadow:inset 0 1px #fffad26b,inset 0 -3px #4b260861,0 8px 20px #0000006b}.sound-board__status{color:#8eaa75;margin:22px 0 12px;font-size:12px;font-weight:700}.sound-board__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.sound-board__grid button{color:#e7deca;text-align:left;cursor:pointer;background:linear-gradient(145deg,#30352cad,#151916e0);border:1px solid #cba95833;border-radius:5px;grid-template-columns:40px 1fr 28px;align-items:center;gap:12px;min-width:0;min-height:82px;padding:13px 16px;transition:border-color .1s,background .1s,transform .1s;display:grid}.sound-board__grid button>b{color:#b99b55;font-family:Cinzel,Noto Sans KR,serif;font-size:13px}.sound-board__grid button>span{gap:5px;display:grid}.sound-board__grid button strong{color:#e9d78e;font-size:15px}.sound-board__grid button small{color:#a9a698;font-size:12px}.sound-board__grid button i{color:#c7a85c;font-size:14px;font-style:normal}.sound-board__grid button:hover,.sound-board__grid button.active{background:linear-gradient(145deg,#47402ad1,#1b1e18f0);border-color:#e7bf5fb8;transform:translateY(-1px)}.sound-board__grid button:disabled{cursor:wait;opacity:.5}.sound-board__grid button:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.sound-board footer{color:#777b72;text-align:center;margin-top:18px;font-size:12px}@media (width<=680px){.sound-board{place-items:start center;padding:16px}.sound-board__panel{padding:20px}.sound-board__header{flex-direction:column;align-items:stretch}.sound-board__grid{grid-template-columns:1fr}}.game-shell{background:linear-gradient(#080707,#0d0b0a 48%,#050505),#060506;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative;overflow:hidden}:-webkit-any(.game-shell:fullscreen,.game-shell:-webkit-full-screen){background:#060506;width:100vw;height:100vh}:is(.game-shell:fullscreen,.game-shell:fullscreen){background:#060506;width:100vw;height:100vh}.game-frame-slot{flex:none;position:relative}.game-frame{--ui-scale:1;--dock-background-width:calc(720px * var(--ui-scale));--dock-background-height:calc(179px * var(--ui-scale));--dock-play-overlap:calc(54px * var(--ui-scale));--dock-height:var(--dock-background-height);--play-height:calc((584px * var(--ui-scale)) - var(--dock-height) + var(--dock-play-overlap));width:var(--dock-background-width);height:calc(584px * var(--ui-scale));background:#060506;position:relative;overflow:hidden;box-shadow:0 0 0 1px #efe6d014,0 0 0 4px #00000061,0 22px 80px #000000b3}.title-screen{z-index:30;background:#070909;position:absolute;inset:0}.title-screen__panel{inset:calc(14px * var(--ui-scale));border:calc(1px * var(--ui-scale)) solid #e2c27980;box-shadow:inset 0 0 0 calc(3px * var(--ui-scale)) #0406068f, 0 calc(12px * var(--ui-scale)) calc(34px * var(--ui-scale)) #00000094;background:#161917 url(../assets/title/keeps-blight-gameplay-title.png) 50%/cover no-repeat;position:absolute;overflow:hidden}.title-screen__actions{top:calc(94px * var(--ui-scale));left:calc(42px * var(--ui-scale));width:calc(206px * var(--ui-scale));gap:calc(32px * var(--ui-scale));display:grid;position:absolute}.title-screen__wordmark{gap:calc(1px * var(--ui-scale));color:#f3e2b5;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(37px * var(--ui-scale));letter-spacing:calc(1.7px * var(--ui-scale));text-shadow:0 calc(2px * var(--ui-scale)) 0 #16120d, 0 calc(5px * var(--ui-scale)) calc(13px * var(--ui-scale)) #000000e0;font-weight:800;line-height:.9;display:grid}.title-screen__wordmark span:last-child{color:#c9db9b;letter-spacing:calc(1px * var(--ui-scale));font-size:.79em}.title-screen__buttons{gap:calc(9px * var(--ui-scale));display:grid}.title-screen__button,.title-screen__guide-close{min-height:calc(44px * var(--ui-scale));padding:calc(8px * var(--ui-scale)) calc(15px * var(--ui-scale));border-radius:calc(4px * var(--ui-scale));font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:calc(14px * var(--ui-scale));letter-spacing:calc(.3px * var(--ui-scale));cursor:pointer;font-weight:800;transition:transform .14s,filter .14s}.title-screen__button:hover,.title-screen__guide-close:hover{filter:brightness(1.1);transform:translateY(calc(-1px * var(--ui-scale)))}.title-screen__button:focus-visible,.title-screen__guide-close:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.title-screen__button:disabled,.title-screen__guide-close:disabled{cursor:not-allowed;filter:grayscale(.7);opacity:.58;transform:none}.title-screen__button:disabled:hover,.title-screen__guide-close:disabled:hover{filter:grayscale(.7);transform:none}.title-screen__button--primary{color:#1a1208;background:linear-gradient(#f1cc72,#b77b24 72%,#7a4718);border:1px solid #ffeaad80;box-shadow:inset 0 1px #fffad26b,inset 0 -3px #4b260861,0 8px 20px #0000006b}.title-screen__button--secondary{color:#e9dec7;border:calc(1px * var(--ui-scale)) solid #e6c57685;box-shadow:inset 0 1px 0 #fff4d61a, 0 calc(5px * var(--ui-scale)) calc(16px * var(--ui-scale)) #00000061;background:#080e0ec2}.title-screen__guide{padding:calc(26px * var(--ui-scale));background:#040808c7;place-items:center;display:grid;position:absolute;inset:0}.title-screen__guide-card{width:min(500px * var(--ui-scale), 100%);height:min(485px * var(--ui-scale), 100%);min-height:0;padding:calc(25px * var(--ui-scale));color:#efe6d0;border:calc(1px * var(--ui-scale)) solid #d3ad5a80;border-radius:calc(7px * var(--ui-scale));background:linear-gradient(155deg,#1f251ffa,#0c0f0ffa);flex-direction:column;display:flex;box-shadow:0 14px 34px #0000008c,inset 0 1px #fff4d60f}.title-screen__guide-card h2{margin-bottom:calc(18px * var(--ui-scale));color:#f1d996;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(22px * var(--ui-scale));flex:none}.title-screen__guide-card ol{align-content:start;gap:calc(10px * var(--ui-scale));min-height:0;margin:0 0 calc(22px * var(--ui-scale));padding:0 calc(8px * var(--ui-scale)) 0 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ddb4599e #05080780;counter-reset:guide-step;color:#ded5c0;font-size:calc(12px * var(--ui-scale));flex:auto;grid-template-columns:repeat(2,minmax(0,1fr));line-height:1.45;list-style:none;display:grid;overflow:hidden auto}.title-screen__guide-card ol:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.title-screen__guide-card ol::-webkit-scrollbar{width:calc(7px * var(--ui-scale))}.title-screen__guide-card ol::-webkit-scrollbar-track{background:#05080780}.title-screen__guide-card ol::-webkit-scrollbar-thumb{border-radius:calc(4px * var(--ui-scale));background:#ddb4599e}.title-screen__guide-card li{min-width:0;padding:calc(13px * var(--ui-scale)) calc(13px * var(--ui-scale)) calc(13px * var(--ui-scale)) calc(42px * var(--ui-scale));border:calc(1px * var(--ui-scale)) solid #cba95838;border-radius:calc(5px * var(--ui-scale));box-shadow:inset 0 calc(1px * var(--ui-scale)) 0 #fff4d60d, 0 calc(3px * var(--ui-scale)) calc(10px * var(--ui-scale)) #0003;counter-increment:guide-step;background:linear-gradient(145deg,#2d332ab8,#131715d1);position:relative}.title-screen__guide-card li:before{content:counter(guide-step);top:calc(12px * var(--ui-scale));left:calc(12px * var(--ui-scale));width:calc(22px * var(--ui-scale));height:calc(22px * var(--ui-scale));color:#17120a;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(11px * var(--ui-scale));background:#d6b560;border-radius:50%;place-items:center;font-weight:800;line-height:1;display:grid;position:absolute}.title-screen__guide-card li:last-child{grid-column:1/-1}.title-screen__guide-card strong{margin-bottom:calc(4px * var(--ui-scale));color:#cce19a;font-size:calc(13px * var(--ui-scale));display:block}.title-screen__guide-description{display:block}.title-screen__guide-controls{align-items:center;gap:calc(7px * var(--ui-scale));margin-top:calc(7px * var(--ui-scale));display:flex}.title-screen__guide-control{align-items:center;gap:calc(5px * var(--ui-scale));min-height:calc(27px * var(--ui-scale));padding:0 calc(8px * var(--ui-scale));color:#f8e8bd;border:calc(1px * var(--ui-scale)) solid #dfb75e57;border-radius:calc(4px * var(--ui-scale));box-shadow:inset 0 calc(1px * var(--ui-scale)) 0 #fff4d61f;font-size:calc(11px * var(--ui-scale));background:#2b1f14b3;font-weight:800;line-height:1;display:inline-flex}.title-screen__guide-control .input-command-icon{width:calc(16px * var(--ui-scale));height:calc(16px * var(--ui-scale));flex-basis:calc(16px * var(--ui-scale))}.title-screen__guide-close{color:#1a1208;background:linear-gradient(#f1cc72,#b77b24 72%,#7a4718);border:1px solid #ffeaad80;width:100%;box-shadow:inset 0 1px #fffad26b,inset 0 -3px #4b260861,0 8px 20px #0000006b}.play-area{width:100%;height:var(--play-height);background:#050506;min-width:0;min-height:0;position:absolute;top:0;left:0;overflow:hidden}.stage{background:linear-gradient(#2816161a,#04040733),#06060a;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.stage canvas{display:block;width:100%!important;height:100%!important}.hud-overlay{top:0;right:0;bottom:var(--dock-height);pointer-events:none;z-index:10;position:absolute;left:0}.hud-overlay.build-priority-dim{opacity:.45}@keyframes danger-breathe{0%,to{box-shadow:0 14px 34px #0000008c,inset 0 1px #fff4d60f}50%{box-shadow:0 14px 34px #0000008c,inset 0 1px #fff4d60f,0 0 18px #b6403557}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.interactive-ui{pointer-events:auto}.resource-icon{width:calc(26px * var(--ui-scale,1));height:calc(26px * var(--ui-scale,1));filter:drop-shadow(0 calc(2px * var(--ui-scale,1)) calc(6px * var(--ui-scale,1)) #00000085);background-image:url(../assets/generated/sprites/ui/hud/medieval-resource-icons.png);background-position:0%;background-repeat:no-repeat;background-size:auto 100%;flex:none;display:inline-block;overflow:hidden}.resource-icon.small{width:calc(16px * var(--ui-scale,1));height:calc(16px * var(--ui-scale,1))}.resource-icon.gold{background-position:0%}.resource-icon.keep{background-position:20%}.resource-icon.territory{background-position:40%}.resource-icon.mine{background-position:60%}.resource-icon.supply{background-position:80%}.resource-icon.time{background-position:100%}.hud-dock-area{z-index:12;min-width:0;min-height:0;height:var(--dock-height);grid-template-columns:1fr;grid-template-rows:calc(44px * var(--ui-scale,1)) minmax(calc(100px * var(--ui-scale,1)), 1fr);gap:calc(6px * var(--ui-scale,1));padding:calc(9px * var(--ui-scale,1)) calc(18px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1));pointer-events:auto;box-shadow:none;opacity:1;background-color:#0000;border-top:0;align-items:stretch;transition:opacity .22s;display:grid;position:absolute;bottom:0;left:0;right:0;overflow:visible}.hud-dock-area:before{content:"";z-index:1;pointer-events:none;background-image:url(../assets/generated/sprites/ui/hud/medieval-dock-background.png);background-position:top;background-repeat:no-repeat;background-size:100% 100%;height:100%;position:absolute;top:0;left:0;right:0}.hud-dock-area>*{z-index:2;position:relative}.hud-dock-area.build-control-priority,.hud-dock-area.build-control-priority>*{pointer-events:none}.hud-dock-area.build-control-priority .dock-btn.build-complete{pointer-events:auto}.hud-dock-area.build-phase-dim:before,.hud-dock-area.build-phase-dim>.resource-ledger,.hud-dock-area.build-phase-dim>.dock-message-line,.hud-dock-area.build-phase-dim .build-dock .dock-patch-block,.hud-dock-area.build-phase-dim .build-dock .dock-build-guidance>.dock-tip{opacity:.48}.hud-dock-area.build-phase-dim .build-dock .dock-build-guidance>.command-chip{opacity:1;color:#fff1c8;box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #fff4d629, 0 0 calc(8px * var(--ui-scale,1)) #f0c46214;filter:none;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000b8;background:#2c2014b8;border-color:#f0c46257}.hud-dock-area.build-phase-dim .build-dock .build-time-readout,.hud-dock-area.build-phase-dim .build-dock .dock-btn.build-complete:not(:disabled){opacity:1;filter:none}.dock-message-line{left:calc(18px * var(--ui-scale,1));right:calc(18px * var(--ui-scale,1));bottom:calc(8px * var(--ui-scale,1));z-index:2;min-width:0;min-height:calc(28px * var(--ui-scale,1));padding:0 calc(12px * var(--ui-scale,1));color:#efe6d0e6;font-size:calc(12px * var(--ui-scale,1));text-align:center;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;opacity:0;text-shadow:0 0 calc(7px * var(--ui-scale,1)) #f0c4626b, 0 calc(2px * var(--ui-scale,1)) calc(3px * var(--ui-scale,1)) #000000d1;justify-content:center;align-items:center;font-weight:800;line-height:1;display:flex;position:absolute;overflow:hidden}.dock-message-line.visible{opacity:1}.hud-corner.tl.resource-ledger{z-index:1;width:100%;height:calc(44px * var(--ui-scale,1));min-width:0;padding:0 calc(96px * var(--ui-scale,1));pointer-events:auto;scrollbar-width:none;box-shadow:none;background:0 0;border:0;border-radius:0;grid-template-columns:repeat(5,1fr);place-items:start center;gap:0;display:grid;position:relative;overflow:visible}.hud-corner.tl.resource-ledger.build-locked,.hud-corner.tl.resource-ledger.build-locked .ledger-cell{pointer-events:none}.hud-corner.tl.resource-ledger.build-locked .ledger-hover{opacity:0;visibility:hidden;transform:translateY(calc(4px * var(--ui-scale,1)))}.hud-corner.tl.resource-ledger::-webkit-scrollbar{display:none}.ledger-cell{min-width:0;width:calc(50px * var(--ui-scale,1));height:calc(44px * var(--ui-scale,1));color:#efe6d0;background:0 0;outline:none;padding:0;display:block;position:relative}.ledger-cell:after{display:none}.ledger-cell:focus-visible{outline-offset:2px;outline-offset:calc(2px * var(--ui-scale,1));outline:2px solid #f0c462e0}.ledger-cell:hover .ledger-hover,.ledger-cell:focus-within .ledger-hover,.ledger-cell:focus .ledger-hover{opacity:1;visibility:visible;transform:translateY(0)}.ledger-primary{z-index:1;min-width:0;width:calc(50px * var(--ui-scale,1));height:calc(44px * var(--ui-scale,1));color:#efe6d0;display:block;position:relative}.ledger-primary b{color:#efe6d0;min-width:0;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(16px * var(--ui-scale,1));letter-spacing:0;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000bd;white-space:nowrap;text-overflow:ellipsis;font-weight:800;line-height:1;overflow:hidden}.resource-emblem{left:50%;top:calc(41px * var(--ui-scale,1));width:calc(50px * var(--ui-scale,1));height:calc(50px * var(--ui-scale,1));filter:drop-shadow(0 calc(2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) #00000057);background:url(../assets/generated/sprites/ui/hud/medieval-resource-tower-frame.png) 50%/contain no-repeat;justify-content:center;align-items:center;display:inline-flex;position:absolute;transform:translate(-50%,-50%)}.resource-emblem .resource-icon{width:calc(28px * var(--ui-scale,1));height:calc(28px * var(--ui-scale,1));transform:translateY(calc(-9px * var(--ui-scale,1)))}.resource-emblem .resource-name{top:calc(30px * var(--ui-scale,1));right:calc(50% + var(--resource-name-gap,calc(52px * var(--ui-scale,1))));width:calc(48px * var(--ui-scale,1));color:#efe6d0;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(15px * var(--ui-scale,1));letter-spacing:0;text-align:right;white-space:nowrap;pointer-events:none;opacity:0;transform:translateX(calc(3px * var(--ui-scale,1)));-webkit-text-stroke:calc(1.7px * var(--ui-scale,1)) #1c1108f2;paint-order:stroke fill;text-shadow:0 calc(2px * var(--ui-scale,1)) calc(1px * var(--ui-scale,1)) #000000eb, 0 0 calc(5px * var(--ui-scale,1)) #ffe28abd, 0 0 calc(10px * var(--ui-scale,1)) #f5ae3a70;font-weight:900;line-height:1;transition:opacity .12s,transform .12s;position:absolute}.resource-emblem:hover .resource-name,.ledger-cell:focus-within .resource-emblem .resource-name{opacity:1;transform:translate(0)}.resource-emblem .resource-value{left:50%;top:calc(30px * var(--ui-scale,1));width:calc(116px * var(--ui-scale,1));color:#efe6d0;max-width:none;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(16px * var(--ui-scale,1));letter-spacing:0;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;-webkit-text-stroke:calc(2px * var(--ui-scale,1)) #1e1209f2;paint-order:stroke fill;text-shadow:0 calc(2px * var(--ui-scale,1)) calc(1px * var(--ui-scale,1)) #000000eb, 0 0 calc(5px * var(--ui-scale,1)) #ffe28ae0, 0 0 calc(10px * var(--ui-scale,1)) #f5ae3a8c;font-weight:900;line-height:1;position:absolute;overflow:visible;transform:translate(-50%)}.ledger-metric{align-items:center;gap:calc(4px * var(--ui-scale,1));min-width:0;padding:calc(4px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1));color:#f0c462;border:calc(1px * var(--ui-scale,1)) solid #f0c4625c;border-radius:calc(6px * var(--ui-scale,1));box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #ffe7aa24, inset 0 calc(-2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) #00000057, 0 calc(1px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) #00000059;font-size:calc(10px * var(--ui-scale,1));white-space:nowrap;background:linear-gradient(#463019db,#16110de6),#16110de6;font-weight:800;line-height:1;display:inline-flex}.ledger-metric span{color:#9b958a;font-size:calc(10px * var(--ui-scale,1));font-weight:800}.ledger-metric b{font-family:Cinzel,Noto Sans KR,serif;font-size:calc(12px * var(--ui-scale,1));line-height:1}.ledger-hover{left:calc(42px * var(--ui-scale,1));bottom:calc(100% + 9px * var(--ui-scale,1));z-index:8;min-width:calc(138px * var(--ui-scale,1));max-width:min(280px * var(--ui-scale,1), 100vw - 36px * var(--ui-scale,1));min-height:calc(34px * var(--ui-scale,1));justify-content:flex-start;align-items:center;gap:calc(7px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1));padding:calc(8px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1));color:#efe6d0;background-color:#100d0be6;background-image:url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-top-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-compact-top-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-compact-side-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-compact-side-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-stone-fill-tile.png);background-position:0 0,100% 0,0 100%,100% 100%,0 0,0 100%,0 0,100% 0,0 0;background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y,repeat;background-size:calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(16px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)), calc(16px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)), calc(7px * var(--ui-scale,1)) calc(16px * var(--ui-scale,1)), calc(7px * var(--ui-scale,1)) calc(16px * var(--ui-scale,1)), calc(32px * var(--ui-scale,1)) calc(32px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #f0c46252;border-radius:calc(7px * var(--ui-scale,1));box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #ffeeb81f, inset 0 calc(-6px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1)) #00000047, 0 calc(3px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1)) #00000094, 0 0 calc(12px * var(--ui-scale,1)) #f0c4622e;text-shadow:0 0 calc(7px * var(--ui-scale,1)) #f0c46257, 0 calc(2px * var(--ui-scale,1)) calc(3px * var(--ui-scale,1)) #000000db;opacity:0;visibility:hidden;transform:translateY(calc(4px * var(--ui-scale,1)));pointer-events:none;flex-wrap:wrap;transition:opacity .12s,transform .12s,visibility .12s;display:flex;position:absolute}.ledger-unit-count{align-items:center;gap:calc(4px * var(--ui-scale,1));min-width:0;padding:calc(4px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1));color:#efe6d0;border:calc(1px * var(--ui-scale,1)) solid #f0c46247;border-radius:calc(6px * var(--ui-scale,1));box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #ffe7aa1f, inset 0 calc(-2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) #00000057, 0 calc(1px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) #00000059;font-size:calc(11px * var(--ui-scale,1));white-space:nowrap;background:linear-gradient(#3a2f21d6,#14100de6),#14100de6;font-weight:800;line-height:1;display:inline-flex}.ledger-unit-count span{color:#9b958a;font-size:calc(10px * var(--ui-scale,1));font-weight:800}.ledger-unit-count .unit-emblem{width:calc(18px * var(--ui-scale,1));height:calc(18px * var(--ui-scale,1));flex-basis:calc(18px * var(--ui-scale,1));box-shadow:inset 0 calc(-3px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1)) #00000047, 0 calc(1px * var(--ui-scale,1)) calc(3px * var(--ui-scale,1)) #00000047;border-color:#f0c46233}.ledger-unit-count b{font-family:Cinzel,Noto Sans KR,serif;font-size:calc(12px * var(--ui-scale,1));line-height:1}.hud-top.phase-banner{top:calc(14px * var(--ui-scale,1));align-items:center;gap:calc(8px * var(--ui-scale,1));display:flex;position:absolute;left:50%;transform:translate(-50%)}.phase-chip,.wave-pill{min-height:calc(36px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(7px * var(--ui-scale,1));padding:calc(7px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1));color:#efe6d0;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(13px * var(--ui-scale,1));letter-spacing:0;text-transform:uppercase;background-color:#0e0d0de0;background-image:url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-corner.png),url(../assets/generated/sprites/ui/hud/medieval-compact-top-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-compact-top-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-compact-side-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-compact-side-repeat.png),url(../assets/generated/sprites/ui/hud/medieval-stone-fill-tile.png);background-position:0 0,100% 0,0 100%,100% 100%,0 0,0 100%,0 0,100% 0,0 0;background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat-x,repeat-x,repeat-y,repeat-y,repeat;background-size:calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(14px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)), calc(16px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)), calc(16px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)), calc(7px * var(--ui-scale,1)) calc(16px * var(--ui-scale,1)), calc(7px * var(--ui-scale,1)) calc(16px * var(--ui-scale,1)), calc(32px * var(--ui-scale,1)) calc(32px * var(--ui-scale,1));border:1px solid #c2933f29;border-radius:8px;font-weight:800;display:inline-flex;box-shadow:0 14px 34px #0000008c,inset 0 1px #fff4d60f}.phase-chip.build{color:#e0b448;border-color:#e0b4486b}.phase-chip.deploy{color:#3fb36b;border-color:#3fb36b6b}.phase-chip.battle{color:#ef6b58;border-color:#b6403594;animation:1.8s infinite danger-breathe}.wave-pill{min-width:calc(96px * var(--ui-scale,1))}.phase-mark{width:calc(16px * var(--ui-scale,1));height:calc(16px * var(--ui-scale,1));filter:drop-shadow(0 0 calc(7px * var(--ui-scale,1)) #c2933f3d);background-image:url(../assets/generated/sprites/ui/hud/medieval-phase-icons.png);background-repeat:no-repeat;background-size:auto 100%;flex:none;display:inline-block;position:relative}.phase-mark.build{background-position:0%}.phase-mark.deploy{background-position:33.333%}.phase-mark.day{background-position:66.667%}.phase-mark.danger{background-position:100%}.phase-plague-mark{width:calc(16px * var(--ui-scale,1));height:calc(16px * var(--ui-scale,1));flex:0 0 calc(16px * var(--ui-scale,1));opacity:.9;background:url(../assets/generated/sprites/ui/hud/medieval-plague-mark.png) 50% no-repeat;background-size:auto calc(16px * var(--ui-scale,1));filter:drop-shadow(0 0 calc(7px * var(--ui-scale,1)) #b640355c);display:inline-block}.hud-dock.command-dock{--dock-tower-slot-inline:calc(-10px * var(--ui-scale,1));--dock-shop-slot-inline:calc(-9px * var(--ui-scale,1));--dock-tower-slot-top:calc(14px * var(--ui-scale,1));--dock-tower-slot-width:calc(78px * var(--ui-scale,1));--dock-tower-slot-height:calc(84px * var(--ui-scale,1));z-index:1;pointer-events:auto;width:100%;min-width:0;height:100%;min-height:0;padding:calc(4px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) 0;box-shadow:none;background:0 0;border:0;border-radius:0;position:relative}.build-dock{height:100%;display:block;position:relative;overflow:visible}.build-dock>*{z-index:1;position:relative}.dock-kicker{color:#9b958a;font-size:calc(10px * var(--ui-scale,1));letter-spacing:0;font-weight:800}.dock-patch-block{left:var(--dock-shop-slot-inline);top:var(--dock-tower-slot-top);width:var(--dock-tower-slot-width);height:var(--dock-tower-slot-height);background:url(../assets/generated/sprites/ui/hud/medieval-unit-tile-normal.png) 50% no-repeat;background-size:calc(78px * var(--ui-scale,1)) calc(84px * var(--ui-scale,1));min-width:0;padding:0;display:block;position:absolute;overflow:visible}.dock-patch-block .dock-kicker{left:50%;bottom:calc(6px * var(--ui-scale,1));width:calc(64px * var(--ui-scale,1));height:calc(18px * var(--ui-scale,1));color:#efe6d0;max-width:none;font-size:calc(9px * var(--ui-scale,1));text-align:center;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000a8;justify-content:center;align-items:center;line-height:1;display:inline-flex;position:absolute;transform:translate(-50%)}.dock-patch-block:after{display:none}.wall-patch-miniature{--wall-patch-miniature-frame-width:calc(64px * var(--ui-scale,1));left:50%;top:calc(3px * var(--ui-scale,1));width:calc(64px * var(--ui-scale,1));height:calc(48px * var(--ui-scale,1));filter:drop-shadow(0 calc(4px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) #0000007a);background-image:url(../assets/generated/sprites/ui/wall-patch-miniatures.png);background-repeat:no-repeat;background-size:auto 100%;display:block;position:absolute;transform:translate(-50%)}.dock-tip{min-width:0;height:calc(32px * var(--ui-scale,1));padding:0 calc(8px * var(--ui-scale,1));color:#efe6d0c7;font-size:calc(10px * var(--ui-scale,1));text-align:center;white-space:nowrap;border-radius:calc(4px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #c2933f14;background:#08080a2e;justify-content:center;align-items:center;font-weight:800;line-height:1;display:inline-flex}.dock-build-guidance{left:calc(190px * var(--ui-scale,1));right:calc(190px * var(--ui-scale,1));top:calc(14px * var(--ui-scale,1));height:calc(74px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(6px * var(--ui-scale,1));min-width:0;padding:0;display:flex;position:absolute;overflow:hidden}.command-chip{justify-content:center;align-items:center;gap:calc(5px * var(--ui-scale,1));min-width:0;height:calc(32px * var(--ui-scale,1));padding:0 calc(9px * var(--ui-scale,1));color:#efe6d0;font-size:calc(11px * var(--ui-scale,1));white-space:nowrap;border-radius:calc(4px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #c2933f1a;box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #fff4d60b, inset 0 calc(-1px * var(--ui-scale,1)) 0 #0000002e;background:#261e1738;font-weight:800;display:inline-flex}.input-command-group{align-items:center;gap:calc(2px * var(--ui-scale,1));flex:none;display:inline-flex}.input-command-icon{width:calc(18px * var(--ui-scale,1));height:calc(18px * var(--ui-scale,1));flex:0 0 calc(18px * var(--ui-scale,1));color:#f3d58d;fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 calc(1px * var(--ui-scale,1)) calc(2px * var(--ui-scale,1)) #000000b8);overflow:visible}.input-command-icon .input-command-icon__active{fill:currentColor;stroke:none;opacity:.82}.input-command-icon.keyboard-r text{fill:currentColor;stroke:none;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:11px;font-weight:900}.build-time-readout{min-width:calc(72px * var(--ui-scale,1));height:calc(34px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(2px * var(--ui-scale,1));padding:0 calc(8px * var(--ui-scale,1));color:#f0c462;white-space:nowrap;border-radius:calc(4px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #f0c4622e;box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #fff4d612, inset 0 calc(-1px * var(--ui-scale,1)) 0 #00000038;background:#18110c4d;flex-direction:column;line-height:1;display:inline-flex}.build-time-readout span{color:#efe6d09e;font-size:calc(8px * var(--ui-scale,1));font-weight:900}.build-time-readout b{font-family:Cinzel,Noto Sans KR,serif;font-size:calc(15px * var(--ui-scale,1));letter-spacing:0;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000b8;font-weight:900}.deploy-dock{width:100%;height:100%;display:block;position:relative;overflow:visible}.deploy-dock .unit-dock{left:calc(150px * var(--ui-scale,1));right:calc(150px * var(--ui-scale,1));top:calc(14px * var(--ui-scale,1));width:auto;height:calc(74px * var(--ui-scale,1));justify-content:safe center;position:absolute}.deploy-dock>*{z-index:1;position:relative}.deploy-dock .dock-btn.shop .shop-label,.deploy-dock .dock-btn.battle .battle-label{transform:translate(-50%)}.deploy-dock .dock-btn.shop .command-icon,.deploy-dock .dock-btn.battle .command-icon{display:none}.hud-dock.command-dock .dock-tower-action{top:var(--dock-tower-slot-top);width:var(--dock-tower-slot-width);height:var(--dock-tower-slot-height);min-width:0;min-height:0;padding:calc(3px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1));white-space:nowrap;justify-content:flex-end;align-items:center;gap:calc(2px * var(--ui-scale,1));background-position:50%;background-size:auto 100%;flex-direction:column;line-height:1;display:flex;position:absolute}.hud-dock.command-dock .dock-tower-action.left{left:var(--dock-shop-slot-inline);right:auto}.hud-dock.command-dock .dock-tower-action.right{right:var(--dock-tower-slot-inline);left:auto}.hud-dock.command-dock .dock-tower-action span{left:50%;bottom:calc(6px * var(--ui-scale,1));width:calc(62px * var(--ui-scale,1));height:calc(18px * var(--ui-scale,1));padding-bottom:calc(2px * var(--ui-scale,1));font-size:calc(10px * var(--ui-scale,1));color:#efe6d0;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000a8;justify-content:center;align-items:center;line-height:1;display:inline-flex;position:absolute;transform:translate(-50%)}.build-dock .dock-btn.build-complete{background-color:#0000;background-image:url(../assets/generated/sprites/ui/hud/medieval-command-button-brass.png);background-position:50%;background-repeat:no-repeat;background-size:calc(128px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));color:#1a1208;box-shadow:none;background-position:50%;background-size:auto 100%;border:0}.build-dock .dock-btn.build-complete .command-icon{left:50%;top:calc(13px * var(--ui-scale,1));width:calc(30px * var(--ui-scale,1));height:calc(30px * var(--ui-scale,1));flex-basis:calc(30px * var(--ui-scale,1));filter:drop-shadow(0 calc(2px * var(--ui-scale,1)) calc(3px * var(--ui-scale,1)) #00000094) drop-shadow(0 0 calc(6px * var(--ui-scale,1)) #f0c4622e);margin:0;position:absolute;transform:translate(-50%)}.build-dock .dock-btn.build-complete span{left:50%;bottom:calc(6px * var(--ui-scale,1));width:calc(62px * var(--ui-scale,1));height:calc(18px * var(--ui-scale,1));padding-bottom:calc(2px * var(--ui-scale,1));font-size:calc(10px * var(--ui-scale,1));color:#efe6d0;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000a8;line-height:1;position:absolute;transform:translate(-50%)}.build-dock .dock-btn.build-complete:disabled{opacity:.48;filter:grayscale(.56)brightness(.78)}.build-dock .dock-btn.build-complete:disabled .command-icon,.build-dock .dock-btn.build-complete:disabled span{opacity:.72}.dock-btn{min-width:0;min-height:calc(84px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(7px * var(--ui-scale,1));cursor:pointer;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:800;font-size:calc(14px * var(--ui-scale,1));border-radius:3px;transition:transform .1s,filter .2s;display:inline-flex}.dock-btn:hover:not(:disabled){transform:translateY(calc(-1px * var(--ui-scale,1)));filter:brightness(1.08)}.dock-btn:active{transform:translateY(calc(1px * var(--ui-scale,1)))}.dock-btn:disabled{cursor:not-allowed;filter:grayscale(.35);opacity:.52}.dock-btn:focus-visible{outline-offset:2px;outline-offset:calc(-3px * var(--ui-scale,1));outline:2px solid #f0c462e0}.dock-btn.shop{background-color:#0000;background-image:url(../assets/generated/sprites/ui/hud/medieval-command-button-brass.png);background-position:50%;background-repeat:no-repeat;background-size:calc(128px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));background-position:center calc(50% - 6px * var(--ui-scale,1));color:#1a1208;box-shadow:none;border:0}.dock-btn.battle{background-color:#0000;background-image:url(../assets/generated/sprites/ui/hud/medieval-command-button-danger.png);background-position:50%;background-repeat:no-repeat;background-size:calc(128px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));background-position:center calc(50% - 6px * var(--ui-scale,1));color:#efe6d0;box-shadow:none;border:0}.dock-btn.build-complete{min-width:0;min-height:calc(84px * var(--ui-scale,1));gap:calc(3px * var(--ui-scale,1));padding:0 calc(12px * var(--ui-scale,1));background-color:#0000;background-image:url(../assets/generated/sprites/ui/hud/medieval-button-brass.png);background-position:50%;background-repeat:no-repeat;background-size:calc(128px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));color:#1a1208;box-shadow:none;border:0;flex-direction:column}.dock-btn.build-complete span{width:calc(104px * var(--ui-scale,1));height:calc(32px * var(--ui-scale,1));padding-bottom:calc(4px * var(--ui-scale,1));color:#efe6d0;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000a8;justify-content:center;align-items:center;display:inline-flex}.command-icon{width:calc(42px * var(--ui-scale,1));height:calc(42px * var(--ui-scale,1));flex:0 0 calc(42px * var(--ui-scale,1));filter:drop-shadow(0 calc(2px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1)) #00000080);background-image:url(../assets/generated/sprites/ui/hud/medieval-command-icons.png);background-position:0%;background-repeat:no-repeat;background-size:auto 100%;display:inline-block}.command-icon.shop{background-position:0%}.command-icon.battle{background-position:25%}.command-icon.check{background-position:50%}.command-icon.rotate{background-position:75%}.command-icon.wall{background-position:100%}.unit-dock{gap:calc(5px * var(--ui-scale,1));scrollbar-width:none;width:100%;min-width:0;padding:0 calc(4px * var(--ui-scale,1));border-radius:calc(4px * var(--ui-scale,1));box-shadow:none;-webkit-mask-image:linear-gradient(90deg, transparent, #000 calc(14px * var(--ui-scale,1)), #000 calc(100% - 14px * var(--ui-scale,1)), transparent);-webkit-mask-image:linear-gradient(90deg, transparent, #000 calc(14px * var(--ui-scale,1)), #000 calc(100% - 14px * var(--ui-scale,1)), transparent);mask-image:linear-gradient(90deg, transparent, #000 calc(14px * var(--ui-scale,1)), #000 calc(100% - 14px * var(--ui-scale,1)), transparent);background:0 0;flex-wrap:nowrap;justify-content:safe center;align-items:center;display:flex;overflow:auto hidden}.unit-dock::-webkit-scrollbar{display:none}.unit-tile{--unit-tile-ring:#efe6d00a;width:calc(62px * var(--ui-scale,1));flex:0 0 calc(62px * var(--ui-scale,1));min-height:calc(74px * var(--ui-scale,1));padding:calc(5px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1));cursor:pointer;background:url(../assets/generated/sprites/ui/hud/medieval-unit-tile-normal.png) 50% no-repeat;background-size:calc(62px * var(--ui-scale,1)) calc(74px * var(--ui-scale,1));box-shadow:inset 0 0 0 calc(1px * var(--ui-scale,1)) var(--unit-tile-ring);color:#efe6d0;border:0;border-radius:6px;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;transition:background .15s,box-shadow .15s,transform .15s;display:block;position:relative}.unit-tile:hover:not(:disabled){background:url(../assets/generated/sprites/ui/hud/medieval-unit-tile-normal.png) 50% no-repeat;background-size:calc(62px * var(--ui-scale,1)) calc(74px * var(--ui-scale,1));--unit-tile-ring:rgba($color-brass-bright, .22);transform:translateY(calc(-1px * var(--ui-scale,1)))}.unit-tile:focus{outline:none}.unit-tile:focus-visible{outline-offset:2px;outline-offset:calc(-3px * var(--ui-scale,1));outline:2px solid #f0c462e0}.unit-tile.selected{background:url(../assets/generated/sprites/ui/hud/medieval-unit-tile-selected.png) 50% no-repeat;background-size:calc(62px * var(--ui-scale,1)) calc(74px * var(--ui-scale,1));--unit-tile-ring:rgba($color-territory, .26)}.unit-tile:disabled{background:url(../assets/generated/sprites/ui/hud/medieval-unit-tile-disabled.png) 50% no-repeat;background-size:calc(62px * var(--ui-scale,1)) calc(74px * var(--ui-scale,1));opacity:.42;cursor:not-allowed}.unit-tile .unit-emblem{left:50%;top:calc(5px * var(--ui-scale,1));width:calc(36px * var(--ui-scale,1));height:calc(36px * var(--ui-scale,1));filter:none;position:absolute;transform:translate(-50%)}.unit-emblem{width:calc(34px * var(--ui-scale,1));height:calc(34px * var(--ui-scale,1));filter:drop-shadow(0 calc(3px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) #00000047);background-image:url(../assets/generated/sprites/ui/hud/medieval-resource-medallion.png);background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;border-radius:50%;flex:none;position:relative;overflow:hidden}.unit-emblem.pikeman,.unit-emblem.crossbowman,.unit-emblem.alchemist,.unit-emblem.wizard,.unit-emblem.cleric{background-position:0;background-repeat:no-repeat;background-size:auto 100%}.unit-emblem.pikeman{background-image:url(../assets/generated/sprites/units/pikeman.png)}.unit-emblem.crossbowman{background-image:url(../assets/generated/sprites/units/crossbowman.png)}.unit-emblem.alchemist{background-image:url(../assets/generated/sprites/units/alchemist.png)}.unit-emblem.wizard{background-image:url(../assets/generated/sprites/units/wizard.png)}.unit-emblem.cleric{background-image:url(../assets/generated/sprites/units/cleric.png)}.unit-emblem.training-yard,.unit-emblem.archery-range,.unit-emblem.alchemist-lab,.unit-emblem.magic-spire,.unit-emblem.chapel,.unit-emblem.supply-depot{background-image:url(../assets/generated/sprites/ui/ui-small-icons.png),url(../assets/generated/sprites/ui/hud/medieval-resource-medallion.png);background-repeat:no-repeat,no-repeat;background-size:auto calc(34px * var(--ui-scale,1)), contain;background-position:0,50%}.unit-emblem.training-yard{background-position:calc(-170px * var(--ui-scale,1)) center, center}.unit-emblem.archery-range{background-position:calc(-204px * var(--ui-scale,1)) center, center}.unit-emblem.alchemist-lab{background-position:calc(-238px * var(--ui-scale,1)) center, center}.unit-emblem.magic-spire{background-position:calc(-272px * var(--ui-scale,1)) center, center}.unit-emblem.chapel{background-position:calc(-306px * var(--ui-scale,1)) center, center}.unit-emblem.supply-depot{background-position:calc(-340px * var(--ui-scale,1)) center, center}.ut-name{left:50%;bottom:calc(5px * var(--ui-scale,1));min-width:0;max-width:calc(100% - 18px * var(--ui-scale,1));width:calc(54px * var(--ui-scale,1));height:calc(16px * var(--ui-scale,1));padding-bottom:calc(2px * var(--ui-scale,1));color:#efe6d0;font-size:calc(9px * var(--ui-scale,1));white-space:nowrap;text-overflow:ellipsis;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000a8;justify-content:center;align-items:center;font-weight:800;line-height:1.1;display:inline-flex;position:absolute;overflow:hidden;transform:translate(-50%)}.ut-cost{left:50%;top:calc(35px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(2px * var(--ui-scale,1));min-width:0;max-width:100%;height:calc(14px * var(--ui-scale,1));color:#e0b448;font-size:calc(9px * var(--ui-scale,1));font-weight:800;line-height:1;display:inline-flex;position:absolute;overflow:hidden;transform:translate(-50%)}.ut-cost b{font-size:calc(9px * var(--ui-scale,1));text-overflow:ellipsis;overflow:hidden}.ut-cost .resource-icon.small{width:calc(12px * var(--ui-scale,1));height:calc(12px * var(--ui-scale,1));transform:translateY(calc(1px * var(--ui-scale,1)))}.ut-cost.lack{color:#ef6b58}.ut-count{top:calc(31px * var(--ui-scale,1));left:calc(38px * var(--ui-scale,1));min-width:calc(14px * var(--ui-scale,1));height:calc(14px * var(--ui-scale,1));padding:0 calc(3px * var(--ui-scale,1));color:#efe6d0c7;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(9px * var(--ui-scale,1));border-radius:calc(999px * var(--ui-scale,1));filter:drop-shadow(0 calc(2px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1)) #00000057);opacity:0;transform:translateY(calc(-1px * var(--ui-scale,1)));background:url(../assets/generated/sprites/ui/hud/medieval-resource-medallion.png) 50%/contain no-repeat;border:0;justify-content:center;align-items:center;font-weight:800;line-height:1;display:inline-flex;position:absolute}.ut-count.active{opacity:1}.battle-dock{grid-template-columns:calc(118px * var(--ui-scale,1)) minmax(0, calc(420px * var(--ui-scale,1)));justify-content:center;align-items:center;gap:calc(14px * var(--ui-scale,1));padding:0 calc(130px * var(--ui-scale,1));display:grid;overflow:hidden}.battle-readout{height:calc(58px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(5px * var(--ui-scale,1));border-radius:calc(4px * var(--ui-scale,1));min-width:0;box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #ffeec614, inset 0 calc(-1px * var(--ui-scale,1)) 0 #00000038;background:linear-gradient(#ffefb80e,#0000001a),#120d0f38;flex-direction:column;display:flex}.battle-readout-label{color:#efe6d09e;font-size:calc(9px * var(--ui-scale,1));font-weight:900;line-height:1}.battle-readout-value{justify-content:center;align-items:center;gap:calc(6px * var(--ui-scale,1));color:#ef6b58;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(23px * var(--ui-scale,1));text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #000000c2, 0 0 calc(9px * var(--ui-scale,1)) #b6403552;font-weight:900;line-height:1;display:inline-flex}.battle-plague-mark{width:calc(18px * var(--ui-scale,1));height:calc(18px * var(--ui-scale,1));flex:0 0 calc(18px * var(--ui-scale,1));opacity:.86;background:url(../assets/generated/sprites/ui/hud/medieval-plague-mark.png) 50% no-repeat;background-size:auto calc(18px * var(--ui-scale,1));filter:drop-shadow(0 0 calc(7px * var(--ui-scale,1)) #b640355c);display:inline-block}.battle-progress-panel{height:calc(64px * var(--ui-scale,1));justify-content:center;gap:calc(3px * var(--ui-scale,1));min-width:0;padding:0 calc(6px * var(--ui-scale,1));flex-direction:column;display:flex}.battle-progress-panel .battle-prog-label{justify-content:center;align-items:baseline;gap:calc(4px * var(--ui-scale,1));color:#9b958a;font-size:calc(11px * var(--ui-scale,1));font-weight:800;line-height:1;display:flex}.battle-progress-panel .battle-prog-label b{color:#efe6d0;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(17px * var(--ui-scale,1))}.battle-progress-bar{min-width:0;height:calc(10px * var(--ui-scale,1));border-radius:calc(2px * var(--ui-scale,1));background:#040304b8;flex:auto;overflow:hidden}.battle-progress-bar-fill{background:#ef6b58;height:100%;transition:width .24s;display:block}.battle-progress-row{align-items:center;gap:calc(8px * var(--ui-scale,1));min-width:0;display:flex}.battle-speed-controls{gap:calc(3px * var(--ui-scale,1));flex:none;display:flex}.battle-speed-controls button{width:calc(30px * var(--ui-scale,1));height:calc(22px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #c2933f57;border-radius:calc(2px * var(--ui-scale,1));color:#efe6d0ad;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(10px * var(--ui-scale,1));cursor:pointer;background:#080708b8;padding:0;font-weight:900;line-height:1}.battle-speed-controls button:hover{color:#efe6d0;border-color:#c2933fb3}.battle-speed-controls button.active{color:#1a0b0c;box-shadow:0 0 calc(7px * var(--ui-scale,1)) #b6403552;background:#ef6b58;border-color:#ef6b58}.modal-overlay{z-index:100;padding:calc(22px * var(--ui-scale,1));pointer-events:auto;-webkit-backdrop-filter:blur(calc(3px * var(--ui-scale,1)));backdrop-filter:blur(calc(3px * var(--ui-scale,1)));background-color:#030304b8;background-image:linear-gradient(#0003,#0d0a0829),linear-gradient(90deg,#00000029,#0000 28% 72%,#0000002e);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.shop-modal.quartermaster-modal{border:1px solid #efe6d01f;border-radius:8px;position:relative;box-shadow:0 14px 34px #0000008c,inset 0 1px #fff4d60f}.shop-modal.quartermaster-modal:before{content:"";inset:calc(3px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #0000005c;border-radius:calc(8px - 3px * var(--ui-scale,1));pointer-events:none;position:absolute}.shop-modal.quartermaster-modal{width:min(680px * var(--ui-scale,1), 100%);max-height:min(720px * var(--ui-scale,1), 100% - 24px * var(--ui-scale,1));min-height:min(520px * var(--ui-scale,1), 100% - 24px * var(--ui-scale,1));box-shadow:0 calc(24px * var(--ui-scale,1)) calc(48px * var(--ui-scale,1)) #000000a3, inset 0 0 0 calc(2px * var(--ui-scale,1)) #ffefc214, inset 0 calc(18px * var(--ui-scale,1)) calc(34px * var(--ui-scale,1)) #ffe0970d, inset 0 calc(-18px * var(--ui-scale,1)) calc(36px * var(--ui-scale,1)) #0000006b;background:linear-gradient(#372d22f0 0%,#120f0dfa 26%,#0d0c0bfa 100%),linear-gradient(90deg,#00000094,#ffeeba0d 18%,#ffeeba0a 82%,#00000094);border-color:#c2933f57;flex-direction:column;padding:0;display:flex;overflow:hidden}.shop-modal.quartermaster-modal:before{inset:calc(7px * var(--ui-scale,1));border-radius:calc(8px - 7px * var(--ui-scale,1));border-color:#c2933f38}.shop-modal.quartermaster-modal:after{content:"";inset:calc(13px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #00000057;border-radius:calc(8px - 13px * var(--ui-scale,1));pointer-events:none;position:absolute}.shop-head{z-index:2;grid-template-columns:minmax(0, 1fr) auto calc(36px * var(--ui-scale,1));align-items:center;gap:calc(14px * var(--ui-scale,1));padding:calc(18px * var(--ui-scale,1)) calc(20px * var(--ui-scale,1)) calc(16px * var(--ui-scale,1));border-bottom:calc(1px * var(--ui-scale,1)) solid #c2933f3d;box-shadow:inset 0 calc(-1px * var(--ui-scale,1)) 0 #00000075, 0 calc(6px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1)) #00000040;background:linear-gradient(#483622ad,#17120ee0),linear-gradient(90deg,#c2933f29,#00000014 36%,#00000047);flex:none;display:grid;position:relative}.shop-head:after{content:"";left:calc(18px * var(--ui-scale,1));right:calc(18px * var(--ui-scale,1));bottom:calc(5px * var(--ui-scale,1));height:calc(2px * var(--ui-scale,1));pointer-events:none;background:linear-gradient(90deg,#0000,#f0c46285,#0000);position:absolute}.shop-kicker{color:#c2933f;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(11px * var(--ui-scale,1));letter-spacing:0;text-transform:uppercase;font-weight:800}.shop-title{color:#efe6d0;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(26px * var(--ui-scale,1));font-weight:800;line-height:1.1}.shop-phase{margin-top:calc(3px * var(--ui-scale,1));color:#9b958a;font-size:calc(12px * var(--ui-scale,1))}.shop-phase.open{color:#3fb36b}.shop-phase.locked{color:#ef6b58}.shop-gold{align-items:center;gap:calc(6px * var(--ui-scale,1));padding:calc(8px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1));color:#f0c462;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(18px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #c2933f24;border-radius:calc(4px * var(--ui-scale,1));box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #fff4d60b, inset 0 calc(-1px * var(--ui-scale,1)) 0 #00000038;background:#110d0a6b;font-weight:800;display:inline-flex}.shop-close-btn{width:calc(36px * var(--ui-scale,1));height:calc(36px * var(--ui-scale,1));background-color:#0000;background-image:url(../assets/generated/sprites/ui/hud/medieval-button-danger.png);background-position:50%;background-repeat:no-repeat;background-size:calc(128px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));color:#9b958a;cursor:pointer;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:calc(20px * var(--ui-scale,1));border:0;border-radius:3px;font-weight:800}.shop-close-btn:hover{color:#efe6d0;border-color:#efe6d047}.shop-close-btn:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.shop-tree-scroll{z-index:1;min-height:0;margin:calc(10px * var(--ui-scale,1)) calc(12px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1));padding:calc(12px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #efe6d014;border-radius:calc(6px * var(--ui-scale,1));box-shadow:inset 0 calc(1px * var(--ui-scale,1)) calc(5px * var(--ui-scale,1)) #00000061, inset 0 calc(-1px * var(--ui-scale,1)) 0 #fff1cd0a;scrollbar-color:#c2933f6b #00000038;scrollbar-width:thin;background:linear-gradient(#0003,#ffeec406),#0807064d;flex:auto;position:relative;overflow:auto}.shop-tree{min-width:calc(620px * var(--ui-scale,1));height:calc(2300px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #c2933f2e;border-radius:calc(6px * var(--ui-scale,1));background:linear-gradient(90deg,#3fb36b0b,#0000 30%,#c2933f0a 70%,#c2933f0f),linear-gradient(#3326192e,#05050514),#0f0c0a47;position:relative}.shop-tree-links{z-index:0;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.shop-tree-link{fill:none;stroke:#f0c46294;stroke-linecap:round;stroke-width:calc(3px * var(--ui-scale,1));vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 calc(4px * var(--ui-scale,1)) #f0c4622e)}.shop-tree-link.multi-condition{stroke-width:calc(4px * var(--ui-scale,1))}.shop-tree-link.locked{stroke:#9b63386b}.shop-tree-link.partial{stroke:#e0b448b8}.shop-tree-link.ready{stroke:#f0c462e6}.shop-tree-link.complete{stroke:#3fb36be0;filter:drop-shadow(0 0 calc(5px * var(--ui-scale,1)) #3fb36b33) drop-shadow(0 calc(1px * var(--ui-scale,1)) 0 #00000057)}.shop-skill-node{left:var(--tree-x);top:var(--tree-y);z-index:1;width:calc(178px * var(--ui-scale,1));height:calc(206px * var(--ui-scale,1));box-sizing:border-box;grid-template-columns:calc(36px * var(--ui-scale,1)) minmax(0, 1fr);gap:calc(7px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1));min-width:0;padding:calc(9px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #efe6d017;border-radius:calc(6px * var(--ui-scale,1));box-shadow:0 calc(4px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1)) #0000003d, inset 0 calc(1px * var(--ui-scale,1)) 0 #fff7da0a;background:linear-gradient(#1d1812d1,#090807e6),#0807065c;grid-template-rows:minmax(0,1fr) auto;display:grid;position:absolute;transform:translate(-50%,-50%)}.shop-skill-node.unlocked{background:linear-gradient(#1c3123ad,#090c09e6),#0807065c;border-color:#3fb36b4d}.shop-skill-node.ready:not(.unlocked){border-color:#c2933f47}.shop-skill-node.blocked{filter:grayscale(.25)}.shop-skill-node .unit-emblem{width:calc(36px * var(--ui-scale,1));height:calc(36px * var(--ui-scale,1));grid-row:1/3;align-self:center}.shop-skill-main{flex-direction:column;min-width:0;display:flex}.shop-skill-name{color:#efe6d0;font-size:calc(13px * var(--ui-scale,1));font-weight:800;line-height:1.16}.shop-skill-stats{gap:calc(2px * var(--ui-scale,1));margin-top:calc(4px * var(--ui-scale,1));color:#9b958a;font-size:calc(10px * var(--ui-scale,1));flex-direction:column;line-height:1.16;display:flex}.shop-skill-stats span{min-width:0;display:block}.shop-unit-spec{grid-template-columns:calc(38px * var(--ui-scale,1)) minmax(0, 1fr);align-items:center;gap:calc(7px * var(--ui-scale,1));margin-top:calc(7px * var(--ui-scale,1));padding:calc(5px * var(--ui-scale,1)) calc(6px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #c2933f2e;border-radius:calc(5px * var(--ui-scale,1));background:linear-gradient(#ffeab00b,#0000001f),#0000002e;display:grid}.shop-unit-spec .unit-emblem{width:calc(34px * var(--ui-scale,1));height:calc(34px * var(--ui-scale,1));grid-row:auto;align-self:center}.shop-unit-spec-lines{gap:calc(1px * var(--ui-scale,1));color:#9b958a;min-width:0;font-size:calc(9px * var(--ui-scale,1));flex-direction:column;line-height:1.12;display:flex}.shop-unit-spec-lines span{justify-content:space-between;gap:calc(6px * var(--ui-scale,1));white-space:nowrap;min-width:0;display:flex}.shop-unit-spec-lines b{color:#f0c462db;font-weight:800}.shop-skill-requirements{gap:calc(1px * var(--ui-scale,1));margin-top:calc(5px * var(--ui-scale,1));color:#f0c462db;font-size:calc(10px * var(--ui-scale,1));flex-direction:column;font-weight:800;line-height:1.22;display:flex}.shop-skill-requirements span{min-width:0;display:block}.shop-skill-requirements span.met{color:#3fb36bf5;text-shadow:0 0 calc(5px * var(--ui-scale,1)) #3fb36b2e}.shop-skill-requirements span.missing{color:#9b958a9e;filter:grayscale()}.shop-skill-buy{grid-column:1/3;grid-template-columns:minmax(0, 1fr) minmax(calc(78px * var(--ui-scale,1)), calc(92px * var(--ui-scale,1)));align-items:center;gap:calc(6px * var(--ui-scale,1));display:grid}.shop-skill-cost{align-items:center;gap:calc(4px * var(--ui-scale,1));color:#e0b448;min-width:0;font-size:calc(11px * var(--ui-scale,1));font-weight:800;display:inline-flex}.shop-skill-cost.lack{color:#ef6b58}.shop-skill-cost .resource-icon{width:calc(12px * var(--ui-scale,1));height:calc(12px * var(--ui-scale,1))}.shop-skill-buy button{min-height:calc(36px * var(--ui-scale,1));cursor:pointer;font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:calc(12px * var(--ui-scale,1));white-space:nowrap;background-color:#0000;background-image:url(../assets/generated/sprites/ui/hud/medieval-button-brass.png);background-position:50%;background-repeat:no-repeat;background-size:calc(128px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));color:#1a1208;border:calc(1px * var(--ui-scale,1)) solid #ffeaad80;box-shadow:inset 0 calc(1px * var(--ui-scale,1)) 0 #fffad224, inset 0 calc(-2px * var(--ui-scale,1)) 0 #4b260838, 0 calc(5px * var(--ui-scale,1)) calc(12px * var(--ui-scale,1)) #0000004d;border-color:#f0c4621f;border-radius:3px;font-weight:800}.shop-skill-buy button:hover:not(:disabled){filter:brightness(1.08)}.shop-skill-buy button:disabled{cursor:not-allowed;filter:grayscale(.35);opacity:.52}.shop-skill-buy button:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.shop-skill-buy button{min-height:calc(28px * var(--ui-scale,1));padding:0 calc(8px * var(--ui-scale,1));font-size:calc(11px * var(--ui-scale,1))}.gameover-screen-overlay{z-index:110;pointer-events:auto;padding:calc(12px * var(--ui-scale,1));-webkit-backdrop-filter:grayscale(.75) blur(calc(1.5px * var(--ui-scale,1)));backdrop-filter:grayscale(.75) blur(calc(1.5px * var(--ui-scale,1)));background:radial-gradient(circle at 50% 42%,#77181233,#0000 48%),linear-gradient(#050304f5,#120908eb 48%,#020203fa);justify-content:center;align-items:center;animation:2s ease-in-out both gameover-screen-in;display:flex;position:absolute;inset:0;overflow:hidden}.gameover-screen-overlay--victory-summary{animation:none}.gameover-screen-overlay:before{content:"";opacity:.82;pointer-events:none;background:repeating-linear-gradient(0deg,#ffe5b806 0 1px,#0000 1px 7px),linear-gradient(90deg,#000000b3,#0000 20% 80%,#000000b8);position:absolute;inset:0}.gameover-screen-overlay:after{content:"";box-shadow:inset 0 0 calc(96px * var(--ui-scale,1)) #000000eb, inset 0 calc(-90px * var(--ui-scale,1)) calc(80px * var(--ui-scale,1)) #000000c2;pointer-events:none;position:absolute;inset:0}.gameover-defeat-popup{z-index:2;width:calc(440px * var(--ui-scale,1));min-height:calc(250px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(10px * var(--ui-scale,1));flex-direction:column;animation:.48s cubic-bezier(.16,.84,.24,1.18) both gameover-defeat-in;display:flex;position:relative}.gameover-defeat-mark{width:calc(74px * var(--ui-scale,1));height:calc(74px * var(--ui-scale,1));margin-bottom:calc(-8px * var(--ui-scale,1));filter:drop-shadow(0 0 calc(16px * var(--ui-scale,1)) #ff1f3185) drop-shadow(0 calc(7px * var(--ui-scale,1)) calc(9px * var(--ui-scale,1)) #000c);background:url(../assets/generated/sprites/ui/hud/medieval-plague-mark.png) 50%/contain no-repeat}.gameover-defeat-banner{width:calc(420px * var(--ui-scale,1));height:calc(82px * var(--ui-scale,1));padding-bottom:calc(4px * var(--ui-scale,1));color:#fff0d2;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(42px * var(--ui-scale,1));letter-spacing:calc(5px * var(--ui-scale,1));text-shadow:0 calc(4px * var(--ui-scale,1)) 0 #260805db, 0 0 calc(15px * var(--ui-scale,1)) #ff3b2e57;filter:drop-shadow(0 calc(10px * var(--ui-scale,1)) calc(18px * var(--ui-scale,1)) #000000b3);transform:translateX(calc(4px * var(--ui-scale,1)));background:url(../assets/generated/sprites/ui/hud/medieval-message-banner.png) 50%/100% 100% no-repeat;justify-content:center;align-items:center;font-weight:800;line-height:1;display:flex}.gameover-defeat-banner span{transform:translate(calc(-4px * var(--ui-scale,1)), calc(9px * var(--ui-scale,1)))}.gameover-result-board{z-index:2;width:calc(640px * var(--ui-scale,1));height:calc(514px * var(--ui-scale,1));padding:calc(18px * var(--ui-scale,1)) calc(24px * var(--ui-scale,1)) calc(14px * var(--ui-scale,1));grid-template-rows:calc(82px * var(--ui-scale,1)) calc(92px * var(--ui-scale,1)) calc(112px * var(--ui-scale,1)) calc(112px * var(--ui-scale,1)) 1fr;gap:calc(5px * var(--ui-scale,1));border:calc(2px * var(--ui-scale,1)) solid #b27737bd;border-radius:calc(9px * var(--ui-scale,1));background:linear-gradient(#1a161247,#050404ad),url(../assets/generated/sprites/ui/hud/medieval-stone-fill-tile.png);background-size:auto, calc(64px * var(--ui-scale,1)) calc(64px * var(--ui-scale,1));box-shadow:0 calc(18px * var(--ui-scale,1)) calc(48px * var(--ui-scale,1)) #000000c7, 0 0 calc(22px * var(--ui-scale,1)) #b2281a24, inset 0 calc(1px * var(--ui-scale,1)) 0 #ffdc9e2e, inset 0 0 0 calc(5px * var(--ui-scale,1)) #090605c7, inset 0 0 0 calc(7px * var(--ui-scale,1)) #8e58255c, inset 0 0 calc(44px * var(--ui-scale,1)) #000000b3;animation:.58s cubic-bezier(.16,.84,.22,1.12) both gameover-board-in;display:grid;position:relative}.gameover-result-board>*{z-index:1;position:relative}.gameover-result-board:before{content:"";inset:calc(9px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #cf974e57;border-radius:calc(5px * var(--ui-scale,1));background:radial-gradient(circle at calc(7px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)), #c9944e 0 calc(1.5px * var(--ui-scale,1)), #3a2414 calc(2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)), transparent calc(4.5px * var(--ui-scale,1))), radial-gradient(circle at calc(100% - 7px * var(--ui-scale,1)) calc(7px * var(--ui-scale,1)), #c9944e 0 calc(1.5px * var(--ui-scale,1)), #3a2414 calc(2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)), transparent calc(4.5px * var(--ui-scale,1))), radial-gradient(circle at calc(7px * var(--ui-scale,1)) calc(100% - 7px * var(--ui-scale,1)), #c9944e 0 calc(1.5px * var(--ui-scale,1)), #3a2414 calc(2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)), transparent calc(4.5px * var(--ui-scale,1))), radial-gradient(circle at calc(100% - 7px * var(--ui-scale,1)) calc(100% - 7px * var(--ui-scale,1)), #c9944e 0 calc(1.5px * var(--ui-scale,1)), #3a2414 calc(2px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)), transparent calc(4.5px * var(--ui-scale,1)));pointer-events:none;position:absolute}.gameover-result-board:after{content:"";inset:calc(14px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #00000094;border-radius:calc(4px * var(--ui-scale,1));box-shadow:inset 0 0 calc(18px * var(--ui-scale,1)) #00000042;pointer-events:none;position:absolute}.gameover-survival{min-width:calc(138px * var(--ui-scale,1));height:calc(76px * var(--ui-scale,1));justify-content:center;justify-self:center;align-items:center;gap:calc(16px * var(--ui-scale,1));border-bottom:calc(1px * var(--ui-scale,1)) solid #f0c46257;filter:drop-shadow(0 0 calc(12px * var(--ui-scale,1)) #ffb24d24);display:flex;position:relative}.gameover-survival>strong{color:#fff0c2;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(48px * var(--ui-scale,1));font-variant-numeric:tabular-nums;text-shadow:0 calc(3px * var(--ui-scale,1)) 0 #281306, 0 0 calc(12px * var(--ui-scale,1)) #ffb95447;line-height:1}.gameover-survival:focus-visible{outline:none}.gameover-moon{width:calc(46px * var(--ui-scale,1));height:calc(46px * var(--ui-scale,1));box-shadow:0 0 calc(18px * var(--ui-scale,1)) #ffcf6f6b;background:#f5dda1;border-radius:50%;position:relative}.gameover-moon:after{content:"";width:100%;height:100%;left:calc(13px * var(--ui-scale,1));top:calc(-7px * var(--ui-scale,1));background:#191511;border-radius:50%;position:absolute}.gameover-domain-stats,.gameover-roster{align-items:stretch;gap:calc(8px * var(--ui-scale,1));padding:calc(7px * var(--ui-scale,1)) calc(10px * var(--ui-scale,1));border-radius:calc(7px * var(--ui-scale,1));display:grid}.gameover-domain-stats{border-top:calc(1px * var(--ui-scale,1)) solid #f0c46229;border-bottom:calc(1px * var(--ui-scale,1)) solid #0000008f;background:linear-gradient(#6948233d,#110d0a57);grid-template-columns:repeat(4,1fr)}.gameover-roster{grid-template-columns:repeat(5,1fr)}.allied-roster{border-top:calc(1px * var(--ui-scale,1)) solid #69f0ae38;border-bottom:calc(1px * var(--ui-scale,1)) solid #00000094;background:linear-gradient(#26494d47,#0a181a66)}.enemy-roster{padding-inline:calc(34px * var(--ui-scale,1));border-top:calc(1px * var(--ui-scale,1)) solid #ef6b5833;border-bottom:calc(1px * var(--ui-scale,1)) solid #0000009e;background:linear-gradient(#4e181857,#1b080a75);grid-template-columns:repeat(4,minmax(0,1fr))}.gameover-stat-tile{justify-content:center;align-items:center;gap:calc(1px * var(--ui-scale,1));opacity:0;min-width:0;transform:translateY(calc(8px * var(--ui-scale,1))) scale(.94);animation:gameover-stat-reveal .34s ease-out var(--reveal-delay) forwards;flex-direction:column;display:flex;position:relative}.gameover-stat-tile>strong{z-index:2;color:#f5e4bb;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(20px * var(--ui-scale,1));font-variant-numeric:tabular-nums;text-shadow:0 calc(2px * var(--ui-scale,1)) 0 #160a05, 0 0 calc(7px * var(--ui-scale,1)) #ffd98b2e;font-weight:800;line-height:1;position:relative}.gameover-stat-tile:focus-visible{outline:none}.gameover-stat-tile.enemy:after{content:"";top:calc(3px * var(--ui-scale,1));right:calc(22px * var(--ui-scale,1));width:calc(22px * var(--ui-scale,1));height:calc(22px * var(--ui-scale,1));opacity:.88;filter:drop-shadow(0 0 calc(6px * var(--ui-scale,1)) #ff1e2e85);background:url(../assets/generated/sprites/ui/hud/medieval-plague-mark.png) 50%/contain no-repeat;position:absolute}.gameover-stat-tile.silhouette{pointer-events:none}.gameover-stat-tile.silhouette.enemy:after{display:none}.gameover-stat-tile.silhouette .gameover-stat-icon{opacity:.72;filter:brightness(0) drop-shadow(0 calc(3px * var(--ui-scale,1)) calc(4px * var(--ui-scale,1)) #000000db)}.gameover-stat-tooltip{z-index:20;left:50%;bottom:calc(100% - 3px * var(--ui-scale,1));min-width:calc(112px * var(--ui-scale,1));padding:calc(6px * var(--ui-scale,1)) calc(9px * var(--ui-scale,1));justify-content:space-between;align-items:center;gap:calc(12px * var(--ui-scale,1));border:calc(1px * var(--ui-scale,1)) solid #f0c46294;border-radius:calc(4px * var(--ui-scale,1));box-shadow:0 calc(7px * var(--ui-scale,1)) calc(16px * var(--ui-scale,1)) #000000a3, inset 0 calc(1px * var(--ui-scale,1)) 0 #ffe1a41a;color:#efe6d0d1;font-size:calc(10px * var(--ui-scale,1));white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transform:translate(-50%, calc(5px * var(--ui-scale,1)));background:#110c0af5;font-weight:800;line-height:1;transition:opacity .14s,transform .14s,visibility 0s linear .14s;display:flex;position:absolute}.gameover-stat-tooltip:after{content:"";width:calc(7px * var(--ui-scale,1));height:calc(7px * var(--ui-scale,1));border-right:calc(1px * var(--ui-scale,1)) solid #f0c46294;border-bottom:calc(1px * var(--ui-scale,1)) solid #f0c46294;background:#110c0af5;position:absolute;top:100%;left:50%;transform:translate(-50%,-50%)rotate(45deg)}.gameover-stat-tooltip>strong{color:#fff0c2;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(16px * var(--ui-scale,1));font-variant-numeric:tabular-nums;line-height:1}.gameover-stat-tile:not(.silhouette):hover,.gameover-stat-tile:not(.silhouette):focus,.gameover-survival:hover,.gameover-survival:focus{z-index:30}.gameover-stat-tile:not(.silhouette):hover .gameover-stat-tooltip,.gameover-stat-tile:not(.silhouette):focus .gameover-stat-tooltip,.gameover-survival:hover .gameover-stat-tooltip,.gameover-survival:focus .gameover-stat-tooltip{opacity:1;visibility:visible;transition-delay:0s;transform:translate(-50%)}.gameover-stat-icon{width:calc(54px * var(--ui-scale,1));height:calc(54px * var(--ui-scale,1));image-rendering:pixelated;filter:drop-shadow(0 calc(4px * var(--ui-scale,1)) calc(6px * var(--ui-scale,1)) #000000b3);background-position:0;background-repeat:no-repeat;background-size:auto 100%;display:block}.gameover-stat-icon.keep{background-image:url(../assets/generated/sprites/structures/keep-states.png)}.gameover-stat-icon.mine{background-image:url(../assets/generated/sprites/structures/goldmine-states.png)}.gameover-stat-icon.gold{background-image:url(../assets/generated/sprites/ui/hud/medieval-resource-icons.png);background-position:0%;background-size:auto 100%}.gameover-stat-icon.wall{width:calc(81px * var(--ui-scale,1));background-image:url(../assets/generated/sprites/ui/wall-patch-miniatures.png);background-position:26.6667%;background-size:7600% 100%}.gameover-stat-icon.unit-pikeman{background-image:url(../assets/generated/sprites/units/pikeman.png)}.gameover-stat-icon.unit-crossbowman{background-image:url(../assets/generated/sprites/units/crossbowman.png)}.gameover-stat-icon.unit-alchemist{background-image:url(../assets/generated/sprites/units/alchemist.png)}.gameover-stat-icon.unit-wizard{background-image:url(../assets/generated/sprites/units/wizard.png)}.gameover-stat-icon.unit-cleric{background-image:url(../assets/generated/sprites/units/cleric.png)}.gameover-stat-icon.zombie-peasant{background-image:url(../assets/generated/sprites/enemies/zombie-peasant.png)}.gameover-stat-icon.zombie-brute{width:calc(64px * var(--ui-scale,1));height:calc(64px * var(--ui-scale,1));margin-block:calc(-5px * var(--ui-scale,1));background-image:url(../assets/generated/sprites/enemies/zombie-brute.png)}.gameover-stat-icon.zombie-boss{width:calc(68px * var(--ui-scale,1));height:calc(68px * var(--ui-scale,1));margin-block:calc(-7px * var(--ui-scale,1));filter:drop-shadow(0 0 calc(7px * var(--ui-scale,1)) #ff56366b);background-image:url(../assets/generated/sprites/enemies/zombie-boss.png);background-position:0;background-size:auto 100%}.gameover-stat-icon.zombie-converted{background-image:url(../assets/generated/sprites/enemies/zombie-converted.png)}.gameover-confirm{width:calc(62px * var(--ui-scale,1));height:calc(62px * var(--ui-scale,1));cursor:pointer;opacity:0;filter:drop-shadow(0 calc(5px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) #000000b8);background:url(../assets/generated/sprites/ui/hud/medieval-wax-seal.png) 50%/contain no-repeat;border:0;border-radius:50%;place-self:end center;padding:0;animation:.38s ease-out 1.9s forwards gameover-confirm-in;position:relative;transform:scale(.82)}.gameover-confirm:hover:not(:disabled){filter:brightness(1.12) drop-shadow(0 0 calc(12px * var(--ui-scale,1)) #ff964152);transform:scale(1.06)}.gameover-confirm:active:not(:disabled){transform:scale(.94)}.gameover-confirm:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.gameover-confirm:disabled{cursor:default}.gameover-confirm.defeat-confirm{margin-top:calc(5px * var(--ui-scale,1));align-self:center;animation-delay:.28s}.gameover-confirm.victory-summary-confirm{filter:drop-shadow(0 calc(5px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) #000000b8);background:url(../assets/generated/sprites/ui/victory-defense-seal.png) 50%/121% 121% no-repeat}.victory-screen-overlay{z-index:111;background:radial-gradient(circle at 50% 40%,#ffedb561,#0000 42%),linear-gradient(#fff5d133,#16211461);place-items:center;animation:1.1s ease-out both victory-screen-in;display:grid;position:absolute;inset:0;overflow:hidden}.victory-screen-overlay:before{content:"";pointer-events:none;background:linear-gradient(90deg,#060c096b,#0000 24% 76%,#060c096b);position:absolute;inset:0}.victory-screen-overlay--production,.victory-screen-overlay--credits{background-image:url(../assets/generated/sprites/ui/complete-defense-prosperity.png);background-position:50%;background-size:cover}.victory-screen-overlay--production:before,.victory-screen-overlay--credits:before{background:linear-gradient(#090f0b2e,#090f0b70 66%,#040805d1),linear-gradient(90deg,#0408057a,#0000 26% 74%,#0408057a)}.victory-success-popup,.victory-production-card,.victory-credits{z-index:1;position:relative}.victory-success-popup{width:calc(440px * var(--ui-scale,1));min-height:calc(250px * var(--ui-scale,1));justify-content:center;align-items:center;gap:calc(10px * var(--ui-scale,1));flex-direction:column;animation:.56s cubic-bezier(.16,.84,.24,1.18) both victory-success-in;display:flex}.victory-success-banner{width:calc(420px * var(--ui-scale,1));height:calc(82px * var(--ui-scale,1));padding-bottom:calc(4px * var(--ui-scale,1));color:#fff4d5;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(42px * var(--ui-scale,1));letter-spacing:calc(5px * var(--ui-scale,1));text-shadow:0 calc(4px * var(--ui-scale,1)) 0 #182b16e6, 0 0 calc(15px * var(--ui-scale,1)) #ffd87670;filter:drop-shadow(0 calc(10px * var(--ui-scale,1)) calc(18px * var(--ui-scale,1)) #0000009e);transform:translateX(calc(4px * var(--ui-scale,1)));background:url(../assets/generated/sprites/ui/hud/medieval-message-banner.png) 50%/100% 100% no-repeat;justify-content:center;align-items:center;font-weight:800;line-height:1;display:flex}.victory-success-banner span{transform:translate(calc(-4px * var(--ui-scale,1)), calc(9px * var(--ui-scale,1)))}.victory-confirm-seal{width:calc(64px * var(--ui-scale,1));height:calc(64px * var(--ui-scale,1));cursor:pointer;opacity:0;filter:drop-shadow(0 calc(5px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) #000000b8);background:url(../assets/generated/sprites/ui/victory-defense-seal.png) 50%/121% 121% no-repeat;border:0;border-radius:50%;padding:0;animation:.38s ease-out .38s forwards victory-confirm-in;display:block;overflow:hidden;transform:scale(.82)}.victory-confirm-seal:hover:not(:disabled){filter:brightness(1.26) drop-shadow(0 0 calc(12px * var(--ui-scale,1)) #ffe78e8a);transform:scale(1.06)}.victory-confirm-seal:active:not(:disabled){transform:scale(.94)}.victory-confirm-seal:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}.victory-confirm-seal:disabled{cursor:default}.victory-production-card{width:calc(410px * var(--ui-scale,1));gap:calc(8px * var(--ui-scale,1));color:#fff1c9;text-align:center;text-shadow:0 calc(3px * var(--ui-scale,1)) calc(9px * var(--ui-scale,1)) #000000d6;place-items:center;animation:2.3s ease-in-out both victory-production-float;display:grid}.victory-production-card p,.victory-production-card strong{margin:0}.victory-production-card p{font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:calc(17px * var(--ui-scale,1));letter-spacing:calc(5px * var(--ui-scale,1));text-transform:uppercase;font-weight:800}.victory-production-card strong{color:#fff8dc;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(46px * var(--ui-scale,1));letter-spacing:calc(2px * var(--ui-scale,1));font-weight:800}.victory-credits{pointer-events:none;justify-content:center;display:flex;position:absolute;inset:0}.victory-credits__content{width:min(420px * var(--ui-scale,1), 84%);padding:calc(620px * var(--ui-scale,1)) 0 calc(140px * var(--ui-scale,1));text-align:center;will-change:transform;animation:20s linear forwards victory-credits-scroll}.victory-credit-role{margin:0 0 calc(34px * var(--ui-scale,1));color:#fff1c7;text-shadow:0 calc(3px * var(--ui-scale,1)) calc(8px * var(--ui-scale,1)) #000000d1}.victory-credit-role h2,.victory-credit-role p{margin:0}.victory-credit-role h2{color:#f5dc91;font-family:Cinzel,Noto Sans KR,serif;font-size:calc(24px * var(--ui-scale,1));letter-spacing:calc(.8px * var(--ui-scale,1));font-weight:800;line-height:1.1}.victory-credit-role p{margin-top:calc(6px * var(--ui-scale,1));font-family:Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:calc(15px * var(--ui-scale,1));letter-spacing:calc(.8px * var(--ui-scale,1));font-weight:700}.victory-credit-role--final{margin-top:calc(80px * var(--ui-scale,1))}.victory-credit-role--final h2{color:#fff4d5;font-size:calc(32px * var(--ui-scale,1))}.victory-credit-role--final p{color:#dce8bc}@keyframes victory-screen-in{0%{opacity:0}to{opacity:1}}@keyframes victory-success-in{0%{opacity:0;transform:translateY(calc(20px * var(--ui-scale,1))) scale(.92)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes victory-confirm-in{to{opacity:1;transform:scale(1)}}@keyframes victory-production-float{0%{opacity:0;transform:translateY(calc(18px * var(--ui-scale,1))) scale(.94)}26%,70%{opacity:1;transform:translateY(calc(-6px * var(--ui-scale,1))) scale(1)}to{opacity:0;transform:translateY(calc(-32px * var(--ui-scale,1))) scale(1.03)}}@keyframes victory-credits-scroll{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes gameover-screen-in{0%{opacity:0}to{opacity:1}}@keyframes gameover-board-in{0%{opacity:0;transform:translateY(calc(-34px * var(--ui-scale,1))) scale(1.06)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes gameover-defeat-in{0%{opacity:0;transform:translateY(calc(-22px * var(--ui-scale,1))) scale(1.12)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes gameover-stat-reveal{to{opacity:1;transform:translateY(0)scale(1)}}@keyframes gameover-confirm-in{to{opacity:1;transform:scale(1)}}button:focus-visible,.unit-tile:focus-visible,.shop-close-btn:focus-visible{outline-offset:2px;outline:2px solid #f0c462e0}button:disabled{cursor:not-allowed;filter:grayscale(.35);opacity:.52}
