:root {
  color-scheme: dark;
  --bg: #070c13;
  --panel: rgba(14, 24, 36, .88);
  --panel-strong: #111d2b;
  --panel-soft: #0c1622;
  --line: rgba(164, 200, 221, .14);
  --line-bright: rgba(111, 237, 210, .38);
  --text: #f0f7fa;
  --muted: #8fa3b1;
  --cyan: #65eddb;
  --cyan-deep: #1bafaf;
  --blue: #6ca8ff;
  --amber: #ffc86c;
  --danger: #fb7794;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
.starfield, .starfield::before, .starfield::after { position: fixed; inset: 0; pointer-events: none; }
.starfield { z-index: -2; background: radial-gradient(circle at 80% -10%, rgba(45, 125, 156, .2), transparent 31rem), radial-gradient(circle at 10% 100%, rgba(56, 84, 150, .12), transparent 32rem), #070c13; }
.starfield::before, .starfield::after { content: ""; background-image: radial-gradient(#d1ebec 1px, transparent 1.4px), radial-gradient(#78d5cf 1px, transparent 1.4px); background-position: 0 0, 63px 83px; background-size: 137px 151px, 211px 199px; opacity: .18; }
.starfield::after { background-size: 317px 293px, 487px 421px; opacity: .14; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 238px minmax(0, 1fr); grid-template-rows: 74px 1fr; transition: opacity .3s ease; }
.app-shell.is-hidden { opacity: 0; pointer-events: none; }
.topbar { position: sticky; top: 0; z-index: 3; grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; min-height: 74px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: rgba(7, 12, 19, .88); backdrop-filter: blur(18px); }
.brand { flex: 0 0 210px; display: flex; align-items: center; gap: 10px; letter-spacing: .12em; }
.brand-mark, .gate-logo { display: grid; place-items: center; border: 1px solid var(--line-bright); color: var(--cyan); background: rgba(101, 237, 219, .08); box-shadow: inset 0 0 16px rgba(101, 237, 219, .09); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 35px; height: 35px; border-radius: 11px; }
.brand div:last-child { display: grid; line-height: 1.05; font-size: 11px; }
.brand span { color: var(--muted); font-weight: 600; }
.brand strong { color: var(--text); font-size: 13px; }
.resource-ticker { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 8px; max-width: 780px; }
.resource { min-width: 0; padding: 8px 11px; border: 1px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.resource:hover { border-color: var(--line); }
.resource-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.resource-label, .cost-token { display: inline-flex; align-items: center; gap: 5px; }
.resource-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 0 4px rgba(178, 235, 255, .18)); }
.resource-icon--ticker { width: 19px; height: 19px; margin: -3px 0; }.resource-icon--cost { width: 16px; height: 16px; }.resource-icon--inline { width: 14px; height: 14px; margin: -2px 1px -2px 0; }
.resource strong { display: block; margin-top: 3px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; letter-spacing: -.04em; }
.resource .positive { color: var(--cyan); }.resource .warning { color: var(--amber); }
.commander { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.icon-button { border: 0; color: var(--muted); background: transparent; font-size: 18px; }.icon-button:hover { color: var(--cyan); }
.sidebar { grid-row: 2; display: flex; flex-direction: column; padding: 20px 14px 16px; border-right: 1px solid var(--line); background: rgba(7, 13, 20, .66); }
.planet-card { display: grid; gap: 5px; margin: 0 4px 20px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(140deg, rgba(101, 237, 219, .075), transparent 65%); }
.planet-card strong { color: var(--cyan); font-size: 14px; }.planet-card span:not(.eyebrow) { color: var(--muted); font-size: 10px; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
nav { display: grid; gap: 5px; }
nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; font-size: 13px; }
nav button span { width: 17px; color: #668097; text-align: center; font-size: 16px; } nav button:hover { color: var(--text); background: rgba(255,255,255,.035); }
nav button.active { border-color: rgba(101, 237, 219, .18); color: var(--text); background: linear-gradient(90deg, rgba(101, 237, 219, .13), rgba(101,237,219,.02)); } nav button.active span { color: var(--cyan); }
.sidebar-footer { display: grid; gap: 4px; margin: auto 5px 2px; padding: 14px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .1em; }.sidebar-footer strong { color: #bdd0d9; font-size: 10px; }.sidebar-footer small { color: var(--cyan); font-size: 10px; letter-spacing: 0; }
.content { width: min(1240px, 100%); min-height: 0; margin: 0 auto; padding: 38px clamp(20px, 3.5vw, 54px) 58px; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }.view-heading h1 { margin: 4px 0 0; font-size: clamp(27px, 3.3vw, 38px); letter-spacing: -.045em; }.view-heading p { max-width: 610px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }.sector-label { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.grid { display: grid; gap: 15px; }.overview-grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: 0 10px 40px rgba(0, 0, 0, .11); }.panel-inner { padding: 19px; }
.production-control { margin-bottom: 18px; }.production-control h2 { margin: 0 0 7px; font-size: 18px; }.production-control p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }.production-control-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.production-control-stats span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; }.production-control-stats strong { display: block; margin-top: 4px; color: var(--text); font-size: 15px; }.production-control-stats .warning strong { color: var(--amber); }.production-control-stats .positive strong { color: var(--cyan); }.contact-console select[data-production-load] { min-width: 82px; padding: 7px 9px; border: 1px solid var(--line-bright); border-radius: 7px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }.panel-title h2, .panel-title h3 { margin: 0; color: #e8f4f4; font-size: 14px; letter-spacing: -.01em; }.panel-title span { color: var(--muted); font-size: 11px; }
.hero-panel { min-height: 280px; padding: 25px; background: linear-gradient(135deg, rgba(31, 96, 115, .58), rgba(15, 28, 45, .93) 55%, rgba(7, 13, 20, .97)); }.hero-panel h2 { max-width: 420px; margin: 15px 0 9px; font-size: clamp(23px, 3vw, 33px); line-height: 1.08; letter-spacing: -.045em; }.hero-panel p { max-width: 470px; margin: 0; color: #b6cbd4; font-size: 14px; line-height: 1.55; }.planet-art { display:block; background-image:linear-gradient(135deg,rgba(8,14,23,.14),rgba(8,14,23,.14)),url("/assets/planet-biomes-concept.png"); background-repeat:no-repeat; background-size:300% 200%; background-position:var(--planet-position); }.hero-planet-art { float:right; width: min(44%, 210px); aspect-ratio: 1.55; margin: -5px 0 14px 18px; border:1px solid rgba(129,234,221,.25); border-radius:15px; box-shadow:0 17px 34px rgba(0,0,0,.25); }.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; clear: both; margin-top: 14px; }.metric { padding: 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(4, 10, 17, .35); }.metric span { display: block; color: var(--muted); font-size: 10px; }.metric strong { display: block; margin-top: 4px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; }.field-meter { clear:both; margin-top:16px; padding:10px 12px; border:1px solid rgba(101,237,219,.16); border-radius:10px; background:rgba(5,14,21,.3); }.field-meter span { color:#bad3d8; font-size:11px; }.field-meter b { color:var(--cyan); font-family:"SFMono-Regular",Consolas,monospace; }.field-meter i { display:block; height:5px; margin-top:8px; border-radius:99px; background:linear-gradient(90deg,var(--cyan-deep),var(--cyan)); }
.queue-stack { display: grid; gap: 8px; }.queue-row, .log-row { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4, 10, 17, .27); }.queue-row.waiting { border-style:dashed; opacity:.78; }.queue-row.waiting .progress i { width:8% !important; opacity:.35; }.queue-top { display: flex; justify-content: space-between; gap: 8px; color: #d9e9ed; font-size: 12px; }.queue-top span { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }.progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #172431; }.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-deep), var(--cyan)); box-shadow: 0 0 12px var(--cyan); transition: width .5s linear; }
.queue-cancel { margin-top: 9px; border: 1px solid rgba(251,119,148,.45); border-radius: 7px; background: rgba(91,24,34,.28); color: #ffc1ce; padding: 6px 8px; font-size: 10px; cursor: pointer; }.queue-cancel:hover { background: rgba(136,35,54,.42); }
.empty-state { padding: 23px 12px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5; }.empty-state strong { display: block; margin-bottom: 5px; color: #d9e9ed; }
.stat-list { display: grid; gap: 10px; }.stat-line { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.stat-line:last-child { padding-bottom: 0; border: 0; }.stat-line strong { color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }.energy-good { color: var(--cyan) !important; }.energy-warning { color: var(--amber) !important; }
.tip { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid rgba(108, 168, 255, .2); border-radius: 11px; color: #aec8e6; background: rgba(79, 130, 207, .08); font-size: 12px; line-height: 1.5; }.tip b { color: var(--blue); }
.entity-list { display: grid; gap: 12px; }.entity-card { position: relative; display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 7px 14px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(100deg, rgba(19, 34, 47, .84), rgba(10, 18, 27, .84)); }.entity-card.locked { opacity: .58; }.entity-art { grid-row:1 / span 2; width:122px; height:92px; border:1px solid rgba(101,237,219,.19); border-radius:10px; object-fit:cover; background:#08121c; }.entity-icon { position:absolute; left:101px; top:80px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-bright); border-radius: 12px; color: var(--cyan); background: rgba(7,18,28,.92); box-shadow:0 6px 15px rgba(0,0,0,.24); font-size: 16px; }.entity-info { grid-column:2; min-width:0; }.entity-info h2 { margin: 0; font-size: 15px; }.entity-info p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; color: #b8ced7; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }.meta .negative { color: var(--amber); }.entity-action { grid-column:2; display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; align-items:center; min-width:0; text-align:left; }.entity-action .level { margin:0; color: var(--muted); font-size: 11px; }.entity-action .level strong { color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }.entity-action .cost { grid-column:1; margin:3px 0 0; }.entity-action button { grid-column:2; grid-row:1 / span 2; }.cost { margin: 0 0 8px; color: #a9c3ce; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.5; }.cost b { color: #e0eef1; font-weight: 600; }.cost-token { margin-right: 7px; white-space: nowrap; }.cost-token--metal { color: #d7e4e6; }.cost-token--crystal { color: #98d8ff; }.cost-token--tritium { color: #aefc99; }
.primary-button, .secondary-button { min-height: 37px; padding: 9px 13px; border-radius: 9px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }.primary-button { border: 1px solid rgba(101,237,219,.56); color: #04130f; background: linear-gradient(135deg, #8dfff0, #54d9cc); box-shadow: 0 8px 22px rgba(68, 213, 197, .13); }.primary-button:hover { filter: brightness(1.08); }.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .42; }.secondary-button { border: 1px solid var(--line); color: #c8dde3; background: #11202d; }.secondary-button:hover { border-color: var(--line-bright); color: var(--cyan); }.wide { width: 100%; }
.unlock-note { margin-top: 7px; color: var(--amber); font-size: 10px; line-height: 1.35; }.badge { display: inline-block; padding: 3px 7px; border: 1px solid rgba(101,237,219,.18); border-radius: 99px; color: var(--cyan); background: rgba(101,237,219,.07); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.galaxy-map { position: relative; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(circle at 50% 50%, rgba(45,132,147,.15), transparent 2%, transparent 36%, rgba(3,10,19,.65) 75%), rgba(10, 18, 27, .84); }.galaxy-map::before { content:""; position:absolute; inset:15%; border:1px solid rgba(101,237,219,.12); border-radius:50%; box-shadow:0 0 0 70px rgba(101,237,219,.025), 0 0 0 140px rgba(101,237,219,.018); }.world-marker { position: absolute; display: grid; place-items: center; width: 14px; height: 14px; border: 2px solid #b8fffa; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); }.world-marker.home { left: 49%; top: 48%; width: 23px; height: 23px; }.world-marker.enemy { background: var(--danger); border-color: #ffd3dd; box-shadow: 0 0 18px var(--danger); }.world-marker.neutral { background: var(--amber); border-color: #fff2c9; box-shadow: 0 0 18px var(--amber); }.world-marker.unknown { width:25px; height:25px; color:#f6edcf; border-color:#ffe7a3; background:#795d31; box-shadow:0 0 18px #ffd477; font-size:13px; font-weight:800; }.map-label { position: absolute; color: #c8e1e6; font-size: 10px; white-space: nowrap; }.map-label small { display: block; color: var(--muted); font-size: 9px; }.mission-list { display: grid; gap: 12px; }.mission-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(14, 24, 36, .73); }.mission-card.colonization { border-color:rgba(255,200,108,.32); background:linear-gradient(105deg,rgba(95,75,32,.25),rgba(14,24,36,.8)); }.mission-card h2 { margin: 0; font-size: 14px; }.mission-card p { margin: 6px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.mission-card .risk { color: var(--amber); font-size: 10px; }.mission-card .reward { color: var(--cyan); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.ranking { display: grid; gap: 7px; }.ranking-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 3px; border-bottom: 1px solid var(--line); font-size: 12px; }.ranking-row:last-child { border: 0; }.ranking-row span { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; }.ranking-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ranking-row em { color: var(--cyan); font-style: normal; font-size: 11px; }
.upgrade-path { display:grid; gap:5px; margin:0; padding:0; list-style:none; }.upgrade-path li { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); color:#b9ced4; font-size:11px; }.upgrade-path li:last-child { border:0; }.upgrade-path li > span { color:#6c8491; font-size:13px; }.upgrade-path li.done > span, .upgrade-path li.done strong { color:var(--cyan); }.upgrade-path small { color:var(--muted); font-family:"SFMono-Regular",Consolas,monospace; font-size:10px; }.planet-registry { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:11px; }.planet-mini-card { display:grid; grid-template-columns:94px minmax(0,1fr); gap:11px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:11px; background:rgba(5,13,21,.24); }.planet-mini-card.active { border-color:rgba(101,237,219,.38); background:linear-gradient(100deg,rgba(101,237,219,.11),rgba(5,13,21,.25)); }.planet-mini-art { width:94px; height:61px; border:1px solid rgba(101,237,219,.19); border-radius:8px; }.planet-mini-card h3 { margin:5px 0 2px; font-size:13px; }.planet-mini-card p { overflow:hidden; margin:0; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.planet-mini-card strong { display:block; margin-top:5px; color:var(--cyan); font-family:"SFMono-Regular",Consolas,monospace; font-size:10px; }
.planet-mini-card { width:100%; color:inherit; text-align:left; font:inherit; cursor:pointer; }.planet-mini-card:hover, .planet-mini-card:focus-visible { border-color:rgba(101,237,219,.58); outline:none; box-shadow:0 0 0 3px rgba(101,237,219,.09); }.planet-mini-card small { display:block; margin-top:4px; color:var(--muted); font-size:9px; }
.raid-list { display:grid; gap:12px; }.raid-card { display:grid; grid-template-columns:minmax(240px,1.2fr) minmax(210px,.8fr) auto; gap:16px; align-items:center; padding:16px; border:1px solid rgba(251,119,148,.27); border-radius:13px; background:linear-gradient(105deg,rgba(83,26,43,.19),rgba(14,24,36,.82)); }.raid-world { display:flex; gap:12px; align-items:center; min-width:0; }.raid-planet { flex:0 0 auto; width:62px; height:62px; border-radius:50%; }.raid-world h2 { margin:5px 0 3px; font-size:15px; }.raid-world p { overflow:hidden; margin:0; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font-size:11px; }.raid-stats { display:flex; flex-wrap:wrap; gap:7px; color:#bacdd6; font-family:"SFMono-Regular",Consolas,monospace; font-size:10px; }.raid-stats span { padding:5px 7px; border:1px solid var(--line); border-radius:99px; background:rgba(3,9,16,.3); }.raid-note { margin:0; color:#d3aeb8; font-size:10px; line-height:1.45; }.player-world { pointer-events:none; }
.log-list { display: grid; gap: 8px; }.log-row { display: grid; grid-template-columns: 76px 1fr; gap: 13px; color: #c8d9df; font-size: 12px; line-height: 1.45; }.log-row time { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }.log-row.mission { border-color: rgba(108,168,255,.22); }.log-row.combat { border-color: rgba(251,119,148,.24); }.log-row.system { border-color: rgba(101,237,219,.18); }
.notification-list .log-row { padding: 9px 10px; }.notification-list .log-row > span { display: grid; gap: 2px; }.notification-list small { color: var(--muted); font-size: 11px; }.notification-list .notification-high { border-color: rgba(251,119,148,.62); background: rgba(91, 24, 34, .22); }.notification-list .scan { border-color: rgba(126, 205, 255, .35); }
.archive-section { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 10, 17, .2); }.mail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }.mail-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4, 10, 17, .33); }.mail-card.unread { border-color: var(--cyan); box-shadow: inset 3px 0 var(--cyan); }.mail-card h3 { margin: 9px 0 6px; font-size: 15px; }.mail-card p { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.mail-card small { color: var(--muted); font-size: 11px; }.mail-card .primary-button, .mail-card .secondary-button { margin-top: 9px; }.mail-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.mail-card-head time { color: var(--muted); font-size: 10px; font-family: "SFMono-Regular", Consolas, monospace; }.message-compose { display: grid; gap: 10px; }.message-compose label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }.message-compose input, .message-compose textarea, .player-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: rgba(3, 8, 15, .5); color: var(--text); padding: 10px; font: inherit; }.message-compose textarea { resize: vertical; min-height: 90px; }.player-search { display: flex; gap: 9px; }.player-search input { flex: 1; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 12; display: grid; gap: 8px; width: min(360px, calc(100vw - 44px)); }.toast { padding: 13px 15px; border: 1px solid var(--line-bright); border-radius: 11px; color: #ddfbf8; background: rgba(11, 28, 36, .95); box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease-out; }.toast.error { border-color: rgba(251,119,148,.65); color: #ffe1e8; } @keyframes toast-in { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:none; } }
.commander-gate { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 22px; background: rgba(3, 8, 14, .7); backdrop-filter: blur(8px); transition: opacity .35s ease, visibility .35s ease; }.commander-gate.hidden { visibility: hidden; opacity: 0; }.gate-card { position: relative; width: min(480px, 100%); padding: 38px; border: 1px solid rgba(101,237,219,.28); border-radius: 20px; background: linear-gradient(145deg, rgba(18,35,49,.94), rgba(7,14,23,.96)); box-shadow: 0 40px 120px rgba(0,0,0,.52); text-align: center; }.gate-logo { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 19px; font-size: 16px; }.auth-switch { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:0 0 20px; padding:4px; border:1px solid var(--line); border-radius:11px; background:rgba(3,9,16,.55); }.auth-switch button { padding:8px; border:0; border-radius:7px; color:var(--muted); background:transparent; font-size:11px; font-weight:700; }.auth-switch button.active { color:#05130f; background:var(--cyan); }.gate-card h1 { margin: 10px 0 12px; font-size: 31px; letter-spacing: -.05em; }.gate-card > p:not(.eyebrow) { margin: 0 auto 24px; max-width: 350px; color: var(--muted); font-size: 14px; line-height: 1.6; }.gate-card label { display: block; margin-bottom: 7px; color: #bcd4db; text-align: left; font-size: 11px; }.gate-card input { width: 100%; margin-bottom: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: rgba(3,9,16,.6); }.gate-card input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(101,237,219,.08); }.gate-card .primary-button { width: 100%; min-height: 45px; font-size: 12px; }.gate-card .primary-button span { margin-left: 7px; font-size: 17px; }.gate-card small { display: block; margin-top: 15px; color: #718896; font-size: 10px; }.gate-orbit { position: absolute; width: 900px; height: 320px; border: 1px solid rgba(101,237,219,.12); border-radius: 50%; }.orbit-one { transform: rotate(31deg); }.orbit-two { width: 680px; height: 250px; transform: rotate(-42deg); border-color: rgba(108,168,255,.13); }
.build-actions { grid-column:2; grid-row:1 / span 2; display:grid; gap:6px; }.build-actions button { grid-column:auto; grid-row:auto; white-space:nowrap; }.queue-badge { display:inline-block; margin-left:6px; padding:2px 5px; border:1px solid rgba(108,168,255,.28); border-radius:99px; color:var(--blue); background:rgba(108,168,255,.08); font-size:9px; font-weight:600; vertical-align:middle; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }.topbar { position: relative; flex-wrap: wrap; gap: 12px; padding: 11px 16px; }.brand { flex: 1; }.resource-ticker { order: 3; width: 100%; max-width: none; }.sidebar { grid-row: 2; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }.planet-card, .sidebar-footer { display: none; } nav { display: flex; overflow-x: auto; gap: 4px; } nav button { width: auto; padding: 8px 10px; white-space: nowrap; font-size: 11px; }.content { padding: 26px 18px 44px; }.overview-grid, .two-column { grid-template-columns: 1fr; }.three-column { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resource-ticker { grid-template-columns: repeat(2, 1fr); }.resource { padding: 7px 9px; }.commander { font-size: 11px; }.view-heading { display: block; margin-bottom: 20px; }.view-heading h1 { font-size: 28px; }.hero-planet-art { width:100%; float:none; margin:0 0 15px; }.metric-row { grid-template-columns: 1fr; }.entity-card { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; padding: 14px; }.entity-art { grid-column:1 / -1; grid-row:auto; width:100%; height:136px; }.entity-icon { position:static; width:42px; height:42px; border-radius:12px; }.entity-action { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; min-width: 0; text-align: left; }.entity-action .level { margin: 0; }.entity-action .cost { grid-column: 1 / -1; }.entity-action button { grid-column:2; grid-row:1; }.build-actions button { grid-column:auto; grid-row:auto; }.mission-card, .raid-card { grid-template-columns: 1fr; gap: 12px; }.mission-card .primary-button, .raid-card .primary-button { width: 100%; }.gate-card { padding: 29px 20px; }.gate-card h1 { font-size: 27px; } }

/* Static, correctly proportioned planet portraits reuse the project's original biome artwork. */
.planet-art { animation: none !important; transform: none !important; }
.hero-planet-art { width: min(43%, 218px); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(205, 176, 122, .58); box-shadow: 0 0 0 9px rgba(5, 15, 25, .55), 0 0 0 10px rgba(205, 176, 122, .23), 0 20px 44px rgba(0, 0, 0, .5), inset 0 0 24px rgba(0,0,0,.35); }
.planet-mini-art { width: 76px; height: 76px; aspect-ratio: 1; border-radius: 50%; border-color: rgba(205, 176, 122, .42); box-shadow: 0 0 0 3px rgba(205, 176, 122, .09); }
.planet-mini-card { grid-template-columns: 76px minmax(0, 1fr); }
.dashboard-unread { display: inline-flex; align-items: center; gap: 8px; margin: 5px 0 10px; padding: 9px 13px; border: 1px solid rgba(255, 100, 116, .6); border-radius: 9px; color: #ffe1e3; background: rgba(119, 25, 40, .34); box-shadow: 0 0 18px rgba(196, 42, 68, .1); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.dashboard-unread:hover, .dashboard-unread:focus-visible { background: rgba(157, 34, 53, .52); outline: 2px solid rgba(255, 151, 161, .35); }
.next-step { display: grid; gap: 7px; margin-bottom: 16px; padding: 15px; border: 1px solid rgba(236, 192, 109, .38); border-radius: 11px; background: linear-gradient(130deg, rgba(132, 87, 31, .23), rgba(9, 24, 34, .45)); }
.next-step strong { color: #ffe2ab; font-size: 14px; }
.next-step p { margin: 0; color: #c4cfd0; font-size: 11px; line-height: 1.5; }
.next-step button { justify-self: start; margin-top: 3px; }
.upgrade-path li.current { color: #f5d598; }
.upgrade-path li.current > span { color: #f5d598; }
.report-actions { display: grid; justify-items: start; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.report-actions small { color: var(--muted); line-height: 1.4; }
.gate-music-link { display: block; margin: 15px auto 2px; color: #ffdc9a; font-size: 12px; text-decoration: none; }
.gate-music-link:hover, .gate-music-link:focus-visible { color: #fff1d1; text-decoration: underline; }
.commander-gate { overflow-y: auto; align-content: start; }
.gate-card { margin: auto 0; }
.system-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.system-nav .eyebrow { margin: 0; text-align: center; }
.system-nav button { min-width: 34px; padding: 5px 8px; }
@media (max-width: 600px) { .hero-planet-art { width: min(72vw, 220px); margin: 0 auto 22px; float: none; } }
@media (max-width: 600px) { .production-control-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
