
:root{color-scheme:dark;--ink:#e9eadb;--muted:#a5b7bd;--soft:#7f9ba3;--stroke:rgba(189,217,214,.17);--gold:#eecb91;--teal:#8ccabb;--glass:rgba(10,28,38,.72)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0b1f2c;color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,sans-serif;font-size:13px}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible{outline:2px solid #f7d09c;outline-offset:2px}
#viewport{position:absolute;inset:0;overflow:hidden}#viewport canvas{width:100%;height:100%;display:block;outline:none}#vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 47%,transparent 24%,rgba(4,15,24,.16) 67%,rgba(2,7,16,.65) 100%)}#top-glint{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(11,29,40,.46) 0,transparent 23%,transparent 74%,rgba(7,18,29,.66) 100%)}
.glass{background:var(--glass);backdrop-filter:blur(23px) saturate(120%);-webkit-backdrop-filter:blur(23px) saturate(120%);border:1px solid rgba(189,217,214,.18);box-shadow:0 16px 45px rgba(3,13,23,.3), inset 0 0 0 1px rgba(255,255,255,.025)}
#topbar{position:absolute;left:0;right:0;top:0;height:84px;padding:17px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:3;border-bottom:1px solid rgba(217,222,208,.13);background:linear-gradient(to bottom,rgba(9,26,37,.72),rgba(11,25,37,.10))}
.brand{display:flex;align-items:center;gap:14px}.brandmark{border:1px solid rgba(229,205,150,.55);height:45px;width:45px;display:grid;place-items:center;color:#efd49b;font-size:25px;transform:rotate(45deg)}.brandmark::first-letter{transform:rotate(-45deg)}.brand .eyebrow,.eyebrow{color:#c3d7cf;font-size:9px;letter-spacing:.27em;font-weight:700}.brandtitle{font:600 23px/1.2 'Cinzel',Georgia,serif;letter-spacing:.07em;color:#fff1d2;margin-top:5px;white-space:nowrap}.brandtitle span{font-weight:400;color:#bcd7cd}
.topmeta{display:flex;align-items:center;gap:23px;font-size:11px;letter-spacing:.12em;font-weight:700;color:#e6e1cd}.live{color:#adddba;white-space:nowrap}.live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#91dfac;box-shadow:0 0 12px #6feab7;margin-right:8px;animation:pulse 2s infinite}@keyframes pulse{50%{opacity:.35;box-shadow:0 0 4px #6feab7}}.iconbtn,.control-btn{border:1px solid var(--stroke);background:rgba(151,178,177,.08);border-radius:8px;height:33px;min-width:33px;font-size:16px;transition:.2s}.iconbtn:hover,.control-btn:hover{border-color:var(--gold);background:rgba(241,205,153,.12)}
#left-panel,#right-panel{position:absolute;top:102px;bottom:96px;z-index:3;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(149,187,174,.22) transparent;padding:21px;width:295px;border-radius:12px}
#left-panel{left:22px}#right-panel{right:22px;width:320px}.secthead{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;letter-spacing:.16em;color:#dfdfca;font-weight:700}.tinycode{font-size:9px;color:#90bab5;letter-spacing:.06em}.intro{font-size:12px;color:#b2c4c7;line-height:1.7;margin-top:17px}.rule{border-top:1px solid var(--stroke);margin:20px 0}.panel-label{font-size:10px;letter-spacing:.12em;font-weight:700;color:#c9d8ce;display:flex;justify-content:space-between;gap:6px}.panel-label span{font-size:9px;letter-spacing:0;color:#7fa1a4;font-weight:500}.stat-feature{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.stat-large{font:500 40px/1.1 'Cinzel',Georgia,serif;color:#f1ddae}.sub{color:#94b0ad;font-size:11px;margin-top:5px}.ringinfo{border:3px solid #8dc6ac;border-left-color:#426e6d;border-radius:50%;height:70px;width:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 25px #63a98f18}.ringinfo div{font-size:19px;color:#d1eacc;font-weight:700}.ringinfo small{font-size:8px;letter-spacing:.06em;color:#a1b5a4}
.line-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px}.line-stat span{color:#a8bdc0}.line-stat strong{font-weight:600;color:#e5e5d5;text-align:right}.resource-list{display:grid;gap:14px;margin-top:16px}.res-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a4b9bc;letter-spacing:.045em}.res-top span{display:flex;align-items:center;gap:9px}.res-top i{font-style:normal;font-size:14px}.res-top strong{color:#f5e5c4;font-weight:700;font-size:12px}.meter{margin-top:7px;width:100%;height:4px;border-radius:4px;overflow:hidden;background:rgba(219,233,226,.11)}.meter>div{height:100%;border-radius:4px;transition:width .6s}
.tinygrid{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:17px 9px}.tinygrid>div{display:flex;flex-direction:column;gap:6px}.tinygrid span{font-size:10px;color:#8faeb3}.tinygrid strong{font-size:13px;color:#d9dfd3;font-weight:600}
#center-top{position:absolute;top:106px;left:50%;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:13px;z-index:3;pointer-events:none;white-space:nowrap}.location{display:flex;align-items:center;gap:10px;background:rgba(12,32,43,.61);border:1px solid var(--stroke);border-radius:50px;padding:11px 19px;color:#f6e5c6;font-size:10px;letter-spacing:.18em;box-shadow:0 8px 22px #06152139}.location .dot{background:#ffcd82;width:5px;height:5px;transform:rotate(45deg);box-shadow:0 0 8px #f9cd85}.event-banner{display:none;font-size:10px;letter-spacing:.18em;padding:12px 20px;border-radius:7px;border:1px solid rgba(255,190,135,.48);color:#ffe8c6;background:rgba(88,39,40,.83);text-shadow:0 0 10px #fcad6e}.event-banner.active{display:block;animation:pulse .9s infinite}
.selected-title{font:500 26px/1.2 'Cinzel',Georgia,serif;color:#f2dfb4;margin-top:20px;overflow-wrap:break-word}.selected-subtitle{font-size:11px;color:#94b5b8;margin:9px 0 18px}.selected-metrics{padding:8px 0 10px}.selected-metrics .line-stat{margin-top:11px}.subbutton{background:rgba(139,178,163,.06);border:1px solid rgba(159,193,178,.23);border-radius:6px;padding:11px 14px;width:100%;text-align:center;font-size:11px;color:#d3e0d1;transition:.18s}.subbutton:hover{background:#93bda527;border-color:#b2d8b6}
.action-list{display:grid;gap:9px;margin-top:13px}.action{position:relative;display:flex;align-items:center;gap:10px;padding:10px;text-align:left;background:rgba(119,158,153,.065);border:1px solid rgba(165,205,184,.13);border-radius:7px;width:100%;min-height:67px;transition:background .2s,border-color .2s,transform .2s}.action.affordable:hover{background:rgba(195,204,159,.16);border-color:rgba(233,210,147,.51);transform:translateX(-2px)}.action:disabled{opacity:.44;cursor:not-allowed}.actionicon{width:35px;height:36px;flex-shrink:0;display:grid;place-items:center;font-size:23px;color:#ebcc95;background:rgba(233,208,150,.095);border:1px solid rgba(233,208,150,.13);border-radius:6px}.actionmain{display:flex;flex-direction:column;gap:4px;min-width:0}.actionmain strong{font-weight:600;color:#e4e9d8;font-size:11px}.actionmain small{color:#8eacad;line-height:1.3;font-size:9px}.actionmain .cost{color:#c7ac84;font-size:9px}.arrow{font-size:15px;color:#d6c59b;opacity:.65;margin-left:auto}
.chronicle{display:grid;gap:14px;margin-top:15px;padding-bottom:8px}.chronicle-entry{display:grid;grid-template-columns:8px 1fr;column-gap:8px;row-gap:4px}.chronicle-entry i{height:6px;width:6px;border-radius:50%;background:#90c0bc;margin-top:5px}.chronicle-entry.warning i{background:#e5b16f}.chronicle-entry.danger i{background:#d57773}.chronicle-entry.positive i{background:#8dd0a0}.chronicle-entry p{margin:0;font-size:10px;line-height:1.55;color:#bad0cd}.chronicle-entry span{grid-column:2;color:#6a939a;font-size:9px;letter-spacing:.05em}
.map-panel{position:absolute;bottom:101px;left:332px;z-index:3;width:258px;padding:12px;border-radius:9px}.map-title{font-size:9px;font-weight:700;letter-spacing:.14em;display:flex;justify-content:space-between;color:#d3e4cf}.map-title span{font-size:8px;color:#88a5a4;letter-spacing:.04em}#minimap{margin-top:10px;width:100%;height:195px;display:block;cursor:crosshair}
#bottom-bar{position:absolute;z-index:3;bottom:22px;left:332px;right:359px;height:59px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;padding:8px 17px;gap:12px}.keyboard-hint{font-size:10px;letter-spacing:.02em;color:#aac2c3;white-space:nowrap}.keyboard-hint strong{font-size:9px;color:#ead0a5}.keyboard-hint b{color:#6a8889;margin:0 5px}.sim-controls{display:flex;align-items:center;gap:8px}.speedcontrol{display:flex;border:1px solid var(--stroke);padding:3px;border-radius:6px;background:#06152151}.speedcontrol button{border:0;background:transparent;border-radius:4px;font-weight:700;color:#9baeb3;font-size:11px;min-width:36px;height:26px}.speedcontrol button.active{background:rgba(209,208,162,.23);color:#ffe6b5}.control-btn{font-size:15px;height:34px;min-width:34px}.control-btn.active{color:#e5cb84;border-color:#bca36c}
.watermark{position:absolute;bottom:5px;right:27px;z-index:3;color:#aec0bb;font-size:8px;letter-spacing:.12em;opacity:.7}.watermark span{padding:0 6px;color:var(--gold)}
#toast{position:absolute;bottom:103px;left:50%;transform:translate(-50%,10px);z-index:8;opacity:0;pointer-events:none;padding:14px 19px;background:rgba(18,43,47,.94);border:1px solid #8fc7af55;border-radius:8px;color:#e9f1d7;box-shadow:0 11px 44px #0009;transition:.25s;font-size:12px;white-space:nowrap;max-width:80vw;overflow:hidden;text-overflow:ellipsis}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast[data-level=warning]{border-color:#e9a78388;color:#f4d6be}
.overlay{position:fixed;inset:0;background:rgba(4,15,25,.73);backdrop-filter:blur(12px);z-index:9;display:flex;align-items:center;justify-content:center;padding:22px}.overlay.hidden{display:none}.modal{max-width:690px;width:100%;padding:39px;position:relative;border-radius:13px;background:rgba(14,31,40,.96)}.modal h1{font:500 30px/1.3 'Cinzel',Georgia,serif;color:#f1e0b7;margin:12px 0 18px}.modal p{font-size:13px;color:#b6c9c8;line-height:1.8}.helpcols{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.helpcols h3{font:500 16px 'Cinzel',Georgia,serif;color:#e2d2b1;margin:0 0 9px}.helpcols p{font-size:12px;margin:0}.helpfoot{font-size:11px!important;color:#95b4b5!important;border-top:1px solid var(--stroke);padding-top:18px}.close{position:absolute;top:15px;right:17px;border:0;background:none;font-size:27px;color:#afc5c2}.primary{background:#d2b582;border:1px solid #f1c99a;color:#172a31;border-radius:6px;font-weight:700;font-size:12px;letter-spacing:.09em;padding:15px 22px;margin-top:10px}.primary:hover{background:#f3d29a}.hud-hidden #left-panel,.hud-hidden #right-panel,.hud-hidden #center-top,.hud-hidden .map-panel,.hud-hidden #bottom-bar,.hud-hidden #topbar,.hud-hidden .watermark{opacity:0;pointer-events:none;transition:opacity .2s}
@media(max-width:1360px){#left-panel{left:14px;width:262px}#right-panel{right:14px;width:282px}#bottom-bar{left:288px;right:307px}.map-panel{left:288px;width:218px}#minimap{height:155px}.keyboard-hint{font-size:9px}.keyboard-hint b{margin:0 2px}.brandtitle{font-size:21px}}
@media(max-width:1100px){#topbar{padding:12px 17px;height:72px}#left-panel,#right-panel{top:85px;bottom:88px;padding:14px;width:238px}#left-panel{left:10px}#right-panel{right:10px}.map-panel{display:none}#bottom-bar{left:259px;right:259px;bottom:10px;padding:7px 10px}.keyboard-hint{display:none}.sim-controls{margin:auto}#center-top{top:87px}.brandtitle{font-size:18px}}
@media(max-width:680px){#topbar{height:62px}.brandmark{height:32px;width:32px;font-size:19px}.brandtitle{font-size:14px}.brand .eyebrow{font-size:7px}.topmeta{gap:8px}.topmeta .live{display:none}#clock{font-size:9px}#left-panel{top:76px;bottom:auto;height:178px;width:calc(100% - 20px);overflow:auto;left:10px;padding:12px}#left-panel .intro,#left-panel .rule,#left-panel .resource-list,#left-panel .panel-label,#left-panel .tinygrid,#left-panel .line-stat{display:none}#left-panel .stat-feature{margin:6px 0 0}.stat-large{font-size:27px}.ringinfo{height:55px;width:55px}.ringinfo div{font-size:16px}#right-panel{top:auto;bottom:75px;left:10px;right:10px;width:auto;height:224px;padding:13px}#right-panel .selected-title{font-size:17px;margin-top:10px}#right-panel .selected-subtitle{margin:5px 0 9px}#right-panel .selected-metrics{display:none}#right-panel .rule{margin:10px 0}#right-panel .action-list{grid-template-columns:1fr 1fr;max-height:98px;overflow:auto}#right-panel .action{min-height:58px;padding:5px}.actionicon{width:22px;height:25px;font-size:15px}.actionmain strong{font-size:9px}.actionmain small:not(.cost){display:none}#right-panel .chronicle,#right-panel .panel-label:last-of-type{display:none}#center-top{top:264px}.location{font-size:8px;padding:7px 12px}#bottom-bar{bottom:7px;left:10px;right:10px;height:55px}.watermark{display:none}.modal{padding:23px}.modal h1{font-size:22px}.helpcols{grid-template-columns:1fr;gap:16px}}
