:root{font-family:system-ui,sans-serif;color:#fbecd6;background:#37364f;color-scheme:dark;--line:#908392;--paper:#f1c399;--pale:#dfe8b3;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}*{box-sizing:border-box}body,#root{height:100%;width:100%;margin:0;overflow:hidden}button{min-height:44px;font:inherit;color:inherit;background:#544b62;border:1px solid #a194a4;border-radius:5px;cursor:pointer}button:disabled{opacity:.49;cursor:default}button:not(:disabled):hover{filter:brightness(1.15)}button:focus-visible{outline:3px solid #fff4af;outline-offset:2px}.game{height:100vh;height:100dvh;width:100%;display:grid;grid-template-rows:auto minmax(0,1fr);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#413c54;overflow:hidden}header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#654c55;border-bottom:1px solid #b29192;padding:10px clamp(9px,2vw,23px);z-index:1}.brand{display:flex;align-items:center;gap:9px;min-width:0}.seal{display:grid;place-content:center;flex:none;width:45px;height:45px;border-radius:6px;background:#e6b18a;color:#564557;font-size:32px}.brand p,.mono,.strip,.stamp,.legend,.cert,.gauge,.metrics{font:700 10px/1.24 var(--mono);letter-spacing:.082em}.brand p{margin:0 0 3px;color:#f1cbaa}.brand h1{font-size:clamp(22px,4vw,35px);line-height:1;margin:0;letter-spacing:-.058em}.full{flex:none;padding:0 8px;background:#5a4757;border-color:#bd9b9e;font-size:13px;font-weight:750}.full i{font-style:normal;color:var(--paper);font-size:16px}.layout{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) clamp(310px,34vw,460px)}.lab{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;gap:8px;padding:clamp(8px,2vw,22px)}.strip,.legend{display:flex;justify-content:space-between;align-items:center;gap:5px;color:#ecdfd4}.strip b{background:#eec49e;color:#514453;border-radius:3px;padding:3px 5px;margin-right:4px}.legend{border-top:1px solid var(--line);padding-top:4px;flex-wrap:wrap}.legend button{padding:0 8px;font-size:11px;font-weight:730}.tower{position:relative;min-height:0;overflow:hidden;border:1px solid #9d8d9c;border-radius:8px;background:radial-gradient(ellipse at 45% 46%,#6f627c,#494258 73%);box-shadow:inset 0 0 34px #383348}.tower .canvas,.tower .plan{position:absolute;inset:0;width:100%;height:100%}.tower canvas{width:100%;height:100%;display:block}.tower .plan{padding:clamp(10px,3vw,38px)}.stamp{position:absolute;color:#f1e6d7;pointer-events:none}.stamp b{display:inline-block;background:var(--paper);width:6px;height:6px;border-radius:2px}.stamp.top{top:11px;left:11px}.stamp.bottom{bottom:11px;right:11px}.desk{min-height:0;overflow:auto;overscroll-behavior:contain;border-left:1px solid #aa98a3;background:#55495e;padding:clamp(8px,2vw,19px);scrollbar-color:#a593a5 #574b61}.readout{min-height:75px;border-bottom:1px solid var(--line);margin-bottom:6px;padding:0 0 7px}.readout .mono{color:#f3c5a7;margin:0}.readout h2{font-size:clamp(21px,2.85vw,29px);line-height:1.06;letter-spacing:-.052em;margin:3px 0 4px}.readout p{font-size:12px;line-height:1.36;margin:0;color:#ebe1df}.cert,.gauge{display:flex;justify-content:space-between;gap:4px;padding:5px;margin:5px 0;border:1px solid #9a899d;border-radius:4px;background:#473e58;color:#eadfe3;font-size:9px}.cert b,.gauge b{color:var(--pale)}fieldset{border:0;margin:5px 0;padding:0;min-width:0}legend{font-size:12px;color:#f5d0ae;font-weight:780;padding:2px 0 4px}.three,.actions,.metrics{display:grid;gap:5px;grid-template-columns:repeat(3,1fr)}.actions,.metrics{grid-template-columns:1fr 1fr;margin:6px 0}.three button{font-size:11px;padding:2px;font-weight:750}.three small{display:block;font-size:8px;margin-top:2px}.actions button{font-size:12px;font-weight:760}.wide{grid-column:1/-1}.gold{background:var(--paper);color:#503d4d;border-color:#ffddba}[aria-pressed=true]{background:#dae3b3;color:#443f50;border-color:#eef1ce;box-shadow:inset 0 -3px #b6c099}kbd{border:1px solid #ad9dac;border-radius:3px;font:750 10px var(--mono);padding:1px 4px;margin-left:3px}.progress{width:100%;height:7px;accent-color:#ecbf96}.metrics>div{border:1px solid #98889b;background:#493e56;border-radius:4px;padding:5px}.metrics b{display:block;font-size:9px;color:#f4caa9}.metrics span{display:block;margin-top:2px;font-size:10px}.notice{font-size:12px;color:var(--paper)}@media(orientation:portrait)and (max-width:740px){header{padding:6px 8px}.seal{width:34px;height:34px;font-size:23px}.brand{gap:6px}.brand p{font-size:8px}.brand h1{font-size:clamp(20px,5vw,24px)}.full{font-size:12px;padding-inline:5px}.layout{grid-template-columns:1fr;grid-template-rows:minmax(146px,43%) minmax(0,1fr)}.lab{padding:6px 7px;gap:4px}.desk{padding:6px 7px 10px;border-left:0;border-top:1px solid #9f8ba2}.strip,.stamp,.legend{font-size:8px}.stamp.top{top:6px;left:6px}.stamp.bottom{bottom:6px;right:6px}.readout{min-height:0}}@media(orientation:landscape)and (max-height:445px){header{padding:3px 8px}.seal{width:34px;height:34px;font-size:23px}.brand p{font-size:8px}.brand h1{font-size:22px}.layout{grid-template-columns:minmax(0,1fr) minmax(253px,41%)}.lab{padding:5px;gap:4px}.desk{padding:6px 7px}.strip,.stamp,.legend{font-size:8px}.legend button{font-size:10px}.readout{min-height:0}}@media(max-width:350px){.full i{display:none}.legend,.gauge{font-size:7px}}
