@font-face{font-family:Jua;src:url('assets/Jua.ttf') format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:dark;--ink:#102b30;--paper:#f8edd4;--muted:#a7b8b2;--gold:#edc47e;--mint:#86dcc0;--red:#ff9a8f;--line:#b2bca133;--ui-scale:1;--ui-width:1440px;--ui-height:900px;--modal-width:900px;--modal-height:680px;--modal-scale:1;font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:var(--paper);background:#102226}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:clip;overscroll-behavior:none}body{user-select:none;-webkit-user-select:none}button{font:inherit;color:inherit;cursor:pointer;border:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default;opacity:.48}button:focus-visible{outline:3px solid #ffde9a;outline-offset:4px}button:active:not(:disabled){translate:0 2px}button,img{-webkit-user-drag:none}button>svg,svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button>img{pointer-events:none}p,h1,h2,h3{margin:0}img{max-width:100%}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game-shell{position:relative;width:100%;height:100dvh;overflow:clip;isolation:isolate;background:#152a2c}.city-backdrop,.atmosphere,#ambient{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.city-backdrop{background:#203335 url('assets/city-dusk.webp') center/cover;filter:brightness(.65);transition:filter .5s}.atmosphere{z-index:1;background:linear-gradient(90deg,#06212be8 0%,#122d2f66 46%,#18323700 75%),linear-gradient(0deg,#09222ddd,transparent 50%)}#ambient{z-index:2}.play-screen,.title-screen{position:absolute;inset:0;overflow:clip}.ui-canvas{position:absolute;left:0;top:0;width:var(--ui-width);height:var(--ui-height);transform:scale(var(--ui-scale));transform-origin:0 0;pointer-events:none}.ui-canvas button{pointer-events:auto}
.title-screen{z-index:3}.title-copy{position:absolute;left:8%;top:10%;width:580px;pointer-events:auto;z-index:3}.title-prologue{font-family:var(--game-font);font-size:23px;color:#ead8b1;margin-left:40px;text-shadow:0 3px 5px #001e20}.title-copy h1{width:600px;margin:-10px 0 -4px -20px}.title-copy h1 img{width:100%;height:370px;object-fit:contain;filter:drop-shadow(0 12px 18px #001e2266)}.tagline{font-size:18px;letter-spacing:.04em;margin:0 0 28px 35px;color:#d4dfcf;text-shadow:0 2px 4px #001d23}.title-actions{width:350px;margin-left:40px}.title-actions>.primary,.title-actions>.secondary{width:100%;font-size:24px;height:66px;min-height:66px}.title-subactions{display:flex;justify-content:center;gap:24px;margin-top:18px}.title-subactions button{background:none;display:flex;align-items:center;gap:6px;font-size:17px;color:#dddfce;text-shadow:0 2px 4px #001e23}.title-subactions img{width:40px;height:38px;object-fit:contain}.title-save{font-size:13px;margin:18px 0 0 40px;color:#b2c1b5;line-height:1.7;max-width:350px}.title-character{position:absolute;right:4%;bottom:-12%;height:102%;width:48%;filter:drop-shadow(-10px 10px 20px #001d2355)}.title-character>img{width:100%;height:100%;object-fit:contain;object-position:bottom}.character-caption{position:absolute;bottom:23%;left:29%;display:grid;gap:6px;padding:10px 22px;border-left:3px solid var(--gold);background:linear-gradient(90deg,#142b2ce8,#132b2a00);text-shadow:0 2px 4px #071d22}.character-caption span{font-family:var(--game-font);font-size:30px}.character-caption small{font-size:15px;color:var(--gold)}.title-bottom{position:absolute;bottom:25px;left:40px;right:40px;display:flex;justify-content:space-between;color:#9cb4a9;font-size:12px;text-shadow:0 2px 3px #001d23}
.primary,.secondary,.trade-action,.move-button{display:flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:12px 22px;font-family:var(--game-font);font-size:20px;border-radius:7px;border:2px solid #f7df9a;box-shadow:inset 0 3px 1px #fff5,inset 0 -5px 1px #ae754c88,0 4px 0 #0b1d21,0 6px 10px #0004;background:linear-gradient(#f1d296,#d9a964);color:#263a38;text-shadow:0 1px 0 #fff4;transition:filter .15s,translate .12s}.primary:hover:not(:disabled),.secondary:hover:not(:disabled),.trade-action:hover:not(:disabled),.move-button:hover:not(:disabled){filter:brightness(1.13)}.secondary{background:linear-gradient(#345451,#213c3e);border-color:#75958a;color:#f2e5ca;box-shadow:inset 0 2px 1px #fff2,inset 0 -4px 1px #0d252b88,0 4px 0 #0b1d21;text-shadow:0 2px 1px #092229}.secondary.danger{border-color:#d7987e;color:#ffc5b5}.positive{color:var(--mint)}.negative{color:var(--red)}
.toast{position:fixed;left:50%;bottom:max(100px,17dvh);transform:translateX(-50%);z-index:60;width:max-content;max-width:85vw;border:1px solid #c5c28c;border-radius:7px;background:#122e30f5;box-shadow:0 5px 0 #0a1e2499,0 8px 25px #0006;color:#f4e4be;font-size:clamp(12px,1.1vw,18px);padding:14px 24px;text-align:center;line-height:1.7;pointer-events:none;animation:toast-in .2s ease-out}.toast.error{border-color:#e39d82;color:#ffd1b9;background:#3b2e28f5}.section-label{display:flex;align-items:center;justify-content:space-between;color:#a8b9ad;font-size:14px;letter-spacing:.03em}.panel-close,.modal-close{display:grid;place-items:center;width:36px;height:36px;padding:0;font-size:28px;line-height:1;color:#ecd9b7;background:none;border:0;border-radius:0;box-shadow:none;z-index:3}.empty-log{font-size:14px;line-height:1.8;color:#94aaa1}.toggle{min-width:110px;height:45px;display:flex;align-items:center;justify-content:space-between;padding:5px 15px;border:2px solid #55736c;border-radius:24px;background:#112a2d;color:#9cafa7;font-size:16px}.toggle:after{content:'';width:23px;height:23px;border-radius:50%;background:#5e7770;box-shadow:0 2px 2px #0004}.toggle[aria-pressed=true]{border-color:#b8d3a4;color:#c9e7ba;background:#254541}.toggle[aria-pressed=true]:after{background:#d8ddb0}.sync-lock .plot-trade,.sync-lock .building-pick{pointer-events:none}kbd{font:inherit;font-size:.8em;border:1px solid #8b9e8b80;padding:3px 6px;border-radius:3px;background:#0a2125;color:#e8dfc4}
@keyframes toast-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
html[data-layout=portrait] .title-copy{left:0;top:10%;width:100%}html[data-layout=portrait] .title-copy h1{width:460px;margin:0 auto;height:290px}html[data-layout=portrait] .title-copy h1 img{height:290px}html[data-layout=portrait] .title-prologue{font-size:20px;margin:0;text-align:center}html[data-layout=portrait] .tagline{margin:0 0 26px;text-align:center;font-size:16px}html[data-layout=portrait] .title-actions{margin:0 auto;width:290px}html[data-layout=portrait] .title-actions>.primary,html[data-layout=portrait] .title-actions>.secondary{height:59px;min-height:59px;font-size:23px}html[data-layout=portrait] .title-character{right:-105px;bottom:-18%;height:58%;width:470px;opacity:.85}html[data-layout=portrait] .character-caption{display:none}html[data-layout=portrait] .title-save{font-size:13px;margin-left:auto;margin-right:auto;max-width:290px}html[data-layout=portrait] .title-subactions{gap:15px}html[data-layout=portrait] .title-subactions button{font-size:15px}html[data-layout=portrait] .title-bottom{font-size:11px;left:25px;right:25px}html[data-layout=portrait] .title-bottom span:first-child{display:none}html[data-layout=portrait] .title-bottom span:last-child{margin-left:auto}
html[data-layout=compact] .title-copy{top:3%;left:7%;width:460px}html[data-layout=compact] .title-copy h1{width:440px;height:255px;margin:0 0 0 -15px}html[data-layout=compact] .title-copy h1 img{height:255px}html[data-layout=compact] .title-prologue{font-size:18px;margin-left:20px}html[data-layout=compact] .tagline{font-size:16px;margin:0 0 18px 20px}html[data-layout=compact] .title-actions{width:310px;margin-left:20px}html[data-layout=compact] .title-actions>.primary,html[data-layout=compact] .title-actions>.secondary{height:54px;min-height:54px;font-size:22px}html[data-layout=compact] .title-subactions{margin-top:13px}html[data-layout=compact] .title-save{margin:12px 0 0 20px}html[data-layout=compact] .title-character{height:107%;right:3%;bottom:-16%}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}}.reduced-motion *,.reduced-motion *:before,.reduced-motion *:after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
