/* v0.3 Nebula Command – colorful space atmosphere and permanent resource radar */
:root{
 --bg:#050713;--surface:#0d1426;--panel:#16152e;--panel2:#1a2442;--stroke:#38496e;
 --muted:#b3bcd6;--text:#f4f4ff;--accent:#6bf2f1;--light:#c4fff8;
 --gold:#ffd17e;--red:#ff718e;--green:#5af2b6;--violet:#b993ff;
 --resource-strip-height:112px;
}
html,body{background:#030613;color:var(--text)}
.game{
 background:linear-gradient(95deg,#030613b8,#050b228d 47%,#080418b1),
 url('nebula-deep.webp') center 46%/cover no-repeat fixed,#050819;
}
.game:before{opacity:.22;background-image:
 radial-gradient(1px 1px at 28px 46px,#cffbff 99%,transparent),
 radial-gradient(2px 2px at 115px 135px,#dcafff 99%,transparent),
 linear-gradient(90deg,transparent calc(100% - 1px),#7a6eb51a 100%),
 linear-gradient(transparent calc(100% - 1px),#7a6eb51a 100%);
 background-size:207px 211px,331px 255px,100px 100px,100px 100px;
 animation:spaceDrift 110s linear infinite;
}
@keyframes spaceDrift{0%{background-position:0 0}100%{background-position:210px 105px}}
.main{
 background:
 radial-gradient(ellipse at 95% 0%,#44235c42,transparent 40%),
 linear-gradient(180deg,#070b20a9,#060a1cb3 74%,#040816da);
 backdrop-filter:blur(2px);
}
.screen{background:transparent}
.topbar{
 background:linear-gradient(90deg,#080f24f5,#17122df0 36%,#081d31f8 68%,#0b1126f2);
 border-bottom:1px solid #597eaeaa;
}
.topbar:after{background:linear-gradient(90deg,transparent,#b59cff,#6cf5ff,transparent);width:35%}
.top-logo .emblem,.logo-large .emblem{
 background:radial-gradient(circle at 34% 29%,#704eaf,#163f65 65%,#10172c);
 color:#f4deff;border:1px solid #b69aff;
 box-shadow:0 0 21px #b35bff4d,inset 0 0 22px #6596ff45;
}
.top-logo b{background:linear-gradient(90deg,#70eeff,#e9b1fa,#ffc77e);color:transparent;background-clip:text}
.top-chip{background:linear-gradient(130deg,#18304a99,#2220449c);border-color:#6f6e9b7a}
.top-chip:nth-child(1)>span{color:#ffd582}
.top-chip:nth-child(2)>span{color:#88cafa}
.top-chip:nth-child(3)>span{color:#c89aff}
.sidebar{
 background:linear-gradient(180deg,#12122cfa,#10162dfa 49%,#0a1128f5);
 border-right:1px solid #7f61978c;
}
.sidebar:before{background:linear-gradient(180deg,#a56bff44,#4ecbe966,#de7dad44)}
.nav-btn .nav-icon{color:#a98bfd;filter:drop-shadow(0 0 9px #9479ff66)}
.nav-btn:nth-child(2) .nav-icon,.nav-btn:nth-child(4) .nav-icon{color:#7fdff9}
.nav-btn:nth-child(5) .nav-icon,.nav-btn:nth-child(9) .nav-icon{color:#db96ff}
.nav-btn:nth-child(6) .nav-icon{color:#ff8d94}
.nav-btn:nth-child(7) .nav-icon{color:#ffce8f}
.nav-btn.selected{border-color:#a08ee7;
 background:linear-gradient(90deg,#603d9f7a,#1b40657a 75%,transparent);
 box-shadow:inset 3px 0 #d2a1ff,0 0 25px #ad77e91e;
}
.nav-btn:hover{background:linear-gradient(90deg,#35315c98,#193b5a7d)}
.activity-bar{background:linear-gradient(180deg,#10162bf9,#0a162bed);border-left-color:#725e9d6b}
.activity-item{background:linear-gradient(125deg,#251c41,#101d33 75%);border-color:#594b7b;box-shadow:inset 2px 0 #bc8df0aa}
.activity-item:first-child{border-color:#a187c0;background:linear-gradient(120deg,#3b2459,#113551)}
.activity-heading{color:#d7b7e8}
.section-head{border-bottom-color:#7c639878}
.section-head:after{background:linear-gradient(90deg,#d7a0ff,#79efff,transparent);width:180px;box-shadow:0 0 20px #be7dff}
.section-head h1{background:linear-gradient(90deg,#ffffff,#b7eeff 62%,#dcbdfc);color:transparent;background-clip:text;filter:drop-shadow(0 0 14px #5282ff26)}
.eyebrow{color:#c099f8}
.panel{
 background:linear-gradient(150deg,#191934e8,#111a34ec 59%,#071a2ede);
 border-color:#6b648d89;
 box-shadow:inset 0 1px #ffffff17,0 14px 30px #0008;
}
.panel:nth-of-type(3n+1) .panel-title{background:linear-gradient(95deg,#42235f95,#203f597d)}
.panel:nth-of-type(3n+2) .panel-title{background:linear-gradient(95deg,#124f608a,#31275696)}
.panel:nth-of-type(3n+3) .panel-title{background:linear-gradient(95deg,#4b2e478d,#18395179)}
.panel::before{border-color:#bf8bffa6}
.panel-title h3{color:#e6e2ff}
.stat:nth-child(1){background:linear-gradient(140deg,#33214ac9,#151831e2);border-color:#9274b080}
.stat:nth-child(2){background:linear-gradient(140deg,#133b58d6,#101b37e6);border-color:#5d9edc88}
.stat:nth-child(3){background:linear-gradient(140deg,#153c40c9,#0b252bd9);border-color:#45aa9c88}
.stat:nth-child(4){background:linear-gradient(140deg,#482841c9,#1b1a32db);border-color:#c276a08a}
.stat .value{filter:drop-shadow(0 0 7px #94a3ff4b)}
.colony-scene{
 border-color:#c68febaa;box-shadow:0 25px 60px #000b,0 0 20px #ae69f74d;
}
.scene-overlay{border-color:#a5a9e59b;background:linear-gradient(160deg,#101a35e8,#3b2454a8)}
.scene-overlay small{color:#cfb4ff}
.scene-bottom span{background:#15152ce0;border-color:#8c83c69c}
.planet-pill{background:linear-gradient(150deg,#25213f,#11263b);border-color:#675d91}
.planet-pill.active{background:linear-gradient(105deg,#4c316a,#16627a);border-color:#b78ff1}
.sector{background:linear-gradient(150deg,#282242,#14233c);border-color:#5b578c}
.sector:nth-child(2n){background:linear-gradient(145deg,#20364a,#111e39)}
.sector.active{background:linear-gradient(140deg,#513578,#184766);border-color:#bcb0ff}
.building-card{background:linear-gradient(140deg,#26203c,#111f37);border-color:#615f87}
.building-card:nth-child(3n+2){background:linear-gradient(140deg,#21304c,#101e33)}
.building-card:hover{border-color:#bfa9ff;box-shadow:0 8px 25px #674ac64d}
.catalog-card{background:linear-gradient(150deg,#211e3a,#10223a);border-color:#635582}
.catalog-card:nth-child(3n){background:linear-gradient(145deg,#222541,#102e3c)}
.resource-line,.planet-row{background:linear-gradient(110deg,#2b2244,#13283e);border-color:#625b8b}
.auth-screen{
 background:linear-gradient(90deg,#030611f8 2%,#040919dc 37%,#090c245c 66%,#03061531),
 url('stellar-welcome.webp') center center/cover no-repeat,#050719;
}
.auth-planet{display:none}
.auth-content h1 em{color:#d2a8ff;text-shadow:0 0 22px #ad6eff88}
.auth-panel{background:linear-gradient(145deg,#171a39ea,#131c36f1);
 border-color:#a078ca;box-shadow:0 0 45px #462b8a55,0 26px 85px #000c}
.auth-features{color:#ebc9ff}
.auth-tabs button.active{background:linear-gradient(110deg,#59427c,#29657a)}
.galaxy-wrap{border-color:#aa85d2;box-shadow:0 18px 65px #000c,0 0 35px #7f6cd844}
.galaxy-overlay{background:linear-gradient(140deg,#20173ae7,#102b40da);border-color:#8a73b7}
.galaxy-tip{background:#201830e0;color:#d4bde3;border-color:#7a6396}
.dialog{background:linear-gradient(140deg,#282042,#0e1f37);border-color:#b08ed9}
.dialog-header{background:linear-gradient(90deg,#4b2d67,#173f59)}
.dialog-header small{color:#e2b9ff}
.primary{background:linear-gradient(110deg,#86ecf3,#80b5ef 49%,#c3a2fc);color:#0d1431;border-color:#c6b4ff}
.primary:hover{box-shadow:0 0 24px #c18bf76b}
.pill{border-color:#7770a8}
.pill.green{background:#143f35;color:#7cf7cc;border-color:#4aa987}
.pill.red{background:#4b1c39;color:#ff9aaf;border-color:#a85376}
.pill.gold{background:#4c3526;color:#ffda9c;border-color:#af7c43}
.codex-category.selected{background:linear-gradient(110deg,#5a3b7e,#1d4564);border-color:#c4a3fc}
.codex-reader{background:linear-gradient(135deg,#252047,#111a37);border-color:#6c6a9d}
.codex-article-card{background:linear-gradient(130deg,#282244,#101d39);border-color:#70628b}
.codex-article-card:hover{border-color:#d2acff}
.positive,.res-rate.positive{color:#7bffb8!important}
.negative,.res-rate.negative{color:#ff8f9b!important}
.zero,.res-rate.zero{color:#9cb5ce!important}
/* Permanent stock & net/min strip */
.resource-strip{
 position:relative;z-index:2;display:grid;grid-template-columns:210px minmax(0,1fr);
 align-items:stretch;gap:10px;
 height:var(--resource-strip-height);min-height:var(--resource-strip-height);
 padding:9px 15px 11px;
 border-bottom:1px solid #9b6db66e;
 background:linear-gradient(100deg,#15112cf6,#23163def 45%,#0d1d39f4 78%,#0b1530ee);
 box-shadow:0 8px 22px #01040d91,inset 0 -1px #b2acfe2b;
}
.resource-strip:after{content:"";position:absolute;bottom:-1px;left:23%;width:46%;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#f3a8ff,#6ffff7,transparent)}
.resource-strip-head{display:flex;flex-direction:column;align-items:stretch;gap:7px;justify-content:center}
.strip-heading{display:flex;align-items:center;gap:7px;min-width:0}
.strip-heading strong{display:block;color:#efddff;font-size:11px;letter-spacing:.09em;line-height:1.3}
.strip-heading small{display:block;font-size:9px;color:#9eb4d5;line-height:1.3;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:178px}
.resource-orbit{font-size:25px;color:#c4a1f7;text-shadow:0 0 14px #b36ce8}
.resource-scope{display:flex;gap:4px;background:#0b142b96;padding:3px;border:1px solid #7b68a168;border-radius:8px}
.resource-scope button{padding:4px 7px;border:0;border-radius:5px;background:transparent;color:#9cb5d2;font-size:10px;font-weight:800;flex:1}
.resource-scope button.selected{background:linear-gradient(105deg,#764d9d,#327593);color:#fff;box-shadow:0 0 10px #a078d851}
.resource-expand{position:absolute;top:10px;right:19px;background:#312447;border:1px solid #8769aa;color:#dbbfff;border-radius:6px;font-weight:700;padding:4px 9px;font-size:10px}
.resource-expand:hover{background:#60437c}
.resource-rail{display:flex;gap:7px;min-width:0;overflow-x:auto;align-items:stretch;padding:5px 2px 4px;scrollbar-width:thin;scrollbar-color:#7d649f #1a1735}
.resource-tile{--resource-color:#92e8f3;flex:1 0 101px;min-width:94px;display:flex;align-items:center;gap:7px;
 padding:9px 8px;position:relative;text-align:left;border:1px solid color-mix(in srgb,var(--resource-color) 50%,#2b3456);
 border-radius:9px;color:#f8f8ff;overflow:hidden;
 background:linear-gradient(142deg,color-mix(in srgb,var(--resource-color) 17%,#14172d),#0b142ae8);
 box-shadow:inset 0 1px color-mix(in srgb,var(--resource-color) 28%,transparent),0 3px 12px #0005;
 transition:transform .18s,border-color .18s}
.resource-tile:before{content:"";position:absolute;inset:auto 0 0;height:2px;background:linear-gradient(90deg,transparent,var(--resource-color),transparent);opacity:.8}
.resource-tile:hover{transform:translateY(-3px);border-color:var(--resource-color);box-shadow:0 0 22px color-mix(in srgb,var(--resource-color) 25%,transparent)}
.res-symbol{color:var(--resource-color);font-size:21px;min-width:27px;line-height:1;display:grid;place-items:center;filter:drop-shadow(0 0 9px var(--resource-color))}
.res-data{min-width:0;display:flex;flex-direction:column;gap:3px}
.res-name{font-size:10px;color:#c7d2ed;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-amount{font-size:16px;font-weight:850;color:white;white-space:nowrap;font-variant-numeric:tabular-nums}
.res-rate{font-size:10px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.resource-overview{position:relative;background:
 linear-gradient(120deg,#2b1d43ef,#132b44ef 66%,#112438db);border:1px solid #8974ad;
 border-radius:14px;padding:18px;box-shadow:0 13px 30px #0009,inset 0 1px #d2b1ff26}
.resource-overview:before{content:"";position:absolute;right:0;top:0;width:155px;height:60px;pointer-events:none;background:radial-gradient(ellipse at top right,#d789fa25,transparent)}
.resource-overview-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.resource-overview h3{font-size:23px;color:#f7eaff;text-transform:uppercase}
.resource-overview-top p{font-size:11px;color:#b1beda;margin-top:4px}
.resource-overview-more{background:linear-gradient(110deg,#443164,#1c4e66);color:#e8dbff;border:1px solid #9f81c4;border-radius:9px;font-size:11px;font-weight:800;padding:10px 14px;white-space:nowrap}
.resource-overview-more:hover{border-color:#e2aaff}
.resource-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.overview-resource-card{--resource-color:#6de;display:flex;align-items:center;gap:12px;padding:13px;text-align:left;border:1px solid color-mix(in srgb,var(--resource-color) 42%,#292745);
 border-radius:11px;background:linear-gradient(145deg,color-mix(in srgb,var(--resource-color) 13%,#12162d),#09162d);color:#fff}
.overview-resource-card:hover{transform:translateY(-2px);border-color:var(--resource-color)}
.overview-resource-icon{font-size:27px;color:var(--resource-color);filter:drop-shadow(0 0 10px var(--resource-color));min-width:33px}
.overview-resource-info{display:flex;flex-direction:column;gap:2px}
.overview-resource-info small{font-size:10px;color:#c9d2e8;font-style:normal}
.overview-resource-info strong{font-size:23px;font-variant-numeric:tabular-nums}
.overview-resource-info em{font-size:11px;font-weight:800;font-style:normal}
.resource-overview-foot{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;
 padding-top:12px;margin-top:14px;border-top:1px solid #73699691;font-size:11px;color:#c1c8df}
.resource-overview-foot strong{margin-left:4px;color:#f2f4ff}
.resource-detail-hero{--resource-color:#79edfc;display:flex;align-items:center;gap:19px;padding:20px;background:
 linear-gradient(110deg,color-mix(in srgb,var(--resource-color) 21%,#14152d),#101c34 74%);
 border-radius:12px;border:1px solid color-mix(in srgb,var(--resource-color) 49%,#353454)}
.detail-res-symbol{font-size:52px;color:var(--resource-color);filter:drop-shadow(0 0 14px var(--resource-color))}
.resource-detail-hero h2{font-size:32px;color:#fff}
.resource-detail-hero h2 small{font-size:14px;color:#adbbcf}
.resource-detail-hero p{color:#cad6e7;font-size:12px;line-height:1.6;margin-top:5px}
.resource-detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.resource-detail-stats>div{background:#161c36;border:1px solid #585279;border-radius:9px;padding:14px 11px}
.resource-detail-stats small{display:block;font-size:10px;margin-bottom:8px}
.resource-detail-stats strong{font-size:17px}
.storage-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#b9c7dd}
.storage-track{height:10px;background:#23243f;overflow:hidden;border:1px solid #584d77;border-radius:18px}
.storage-track span{display:block;height:100%;box-shadow:0 0 15px currentColor;border-radius:18px}
.resource-breakdown-title{font-size:18px}
.resource-worlds{display:flex;flex-direction:column;gap:7px}
.resource-world-row{display:grid;grid-template-columns:1.5fr repeat(4,.9fr);gap:8px;align-items:center;
 border:1px solid #544973;border-radius:8px;background:#11182f;padding:11px 12px}
.resource-world-name{min-width:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.world-dot{width:8px;height:8px;box-shadow:0 0 10px var(--world-color);background:var(--world-color);border-radius:50%}
.resource-world-name strong{font-size:11px}
.resource-world-name small{font-size:9px;color:#9baccb}
.world-stat small{display:block;font-size:9px;color:#9daccb;margin-bottom:4px}
.world-stat strong{font-size:11px}
.resource-explain{background:#1b1d37;padding:13px;border-radius:9px;color:#b9bed8;font-size:11px;line-height:1.7;border:1px solid #554d79}
.resource-summary-table{display:flex;flex-direction:column;gap:6px;overflow-x:auto}
.resource-summary-headers,.resource-summary-row{display:grid;grid-template-columns:1.5fr .9fr 1fr 1fr 1fr;gap:7px;align-items:center;min-width:520px}
.resource-summary-headers{padding:8px 12px 8px 49px;font-size:10px;color:#aab8d6}
.resource-summary-row{--resource-color:#6de;grid-template-columns:28px minmax(0,1.5fr) .9fr 1fr 1fr 1fr;
 border:1px solid #594e75;border-radius:8px;padding:10px 12px;background:linear-gradient(100deg,color-mix(in srgb,var(--resource-color) 12%,#14152c),#131c35);
 color:#eff7ff;text-align:left}
.resource-summary-row:hover{border-color:var(--resource-color)}
.resource-summary-row span,.resource-summary-row strong{font-size:11px;white-space:nowrap}
.resource-summary-row .res-symbol{font-size:19px;min-width:24px}
.resource-summary-name{font-weight:800}
.production-explainer{background:linear-gradient(110deg,#3b2253,#15394d);border:1px solid #745995;border-radius:9px;padding:13px 16px;margin-bottom:13px}
.production-explainer strong{display:block;margin-bottom:4px;font-size:15px}
.production-explainer p{font-size:11px;color:#c7cce5;line-height:1.6}
.planet-production-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.planet-production-card{--resource-color:#79edfc;text-align:left;display:flex;flex-direction:column;gap:10px;
 background:linear-gradient(135deg,color-mix(in srgb,var(--resource-color) 13%,#17142b),#0e1d35);
 border:1px solid color-mix(in srgb,var(--resource-color) 42%,#2f3558);
 border-radius:10px;padding:13px;color:white}
.planet-production-card:hover{border-color:var(--resource-color)}
.planet-production-head{display:flex;align-items:center;gap:10px}
.planet-production-head span:last-child{display:flex;flex-direction:column;gap:3px}
.planet-production-head small{font-size:10px;color:#acbad3}
.planet-production-values{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#bdc7de}
.planet-production-values b{color:#f4f8ff}
.planet-production-net{font-size:19px;font-weight:850;font-variant-numeric:tabular-nums}
@media(max-width:1500px){
 .resource-strip{grid-template-columns:185px minmax(0,1fr)}
 .resource-tile{flex-basis:108px}
}
@media(max-width:1000px){
 .resource-strip{height:124px;min-height:124px;--resource-strip-height:124px}
 .resource-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .resource-world-row{grid-template-columns:1.2fr 1fr 1fr}
 .resource-world-row .world-stat:nth-last-child(2){display:none}
}
@media(max-width:760px){
 :root{--resource-strip-height:120px}
 .resource-strip{height:var(--resource-strip-height);min-height:var(--resource-strip-height);
 display:flex;flex-direction:column;gap:5px;padding:7px 8px 5px}
 .resource-strip-head{flex-direction:row;align-items:center;gap:8px;min-height:33px}
 .strip-heading{flex:1}.strip-heading strong{font-size:10px}.strip-heading small{font-size:8px;max-width:130px}
 .resource-orbit{font-size:20px}.resource-scope{width:120px;flex:none}
 .resource-expand{position:static;flex:none;padding:6px;font-size:14px}
 .resource-expand span{display:none}
 .resource-rail{flex:1;min-height:0;padding:2px 1px 6px;overflow-x:auto;scroll-snap-type:x mandatory}
 .resource-tile{flex:0 0 125px;scroll-snap-align:start;padding:7px 9px;gap:8px}
 .resource-tile .res-symbol{font-size:23px}
 .res-name{font-size:10px}.res-amount{font-size:16px}.res-rate{font-size:10px}
 .main{height:calc(100dvh - 62px - var(--resource-strip-height) - 64px)}
 .resource-overview-top{align-items:flex-start;flex-wrap:wrap}
 .resource-overview-more{width:100%}
 .resource-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .overview-resource-card{padding:11px;gap:8px}.overview-resource-icon{min-width:22px;font-size:22px}
 .overview-resource-info strong{font-size:18px}
 .resource-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .resource-detail-stats strong{font-size:13px}
 .resource-world-row{grid-template-columns:1.25fr .75fr 1fr;gap:5px;padding:9px}
 .resource-world-row .world-stat:nth-of-type(3),.resource-world-row .world-stat:nth-of-type(4){display:none}
 .resource-detail-hero{padding:12px;gap:11px}.detail-res-symbol{font-size:38px}
 .resource-detail-hero h2{font-size:23px}
 .planet-production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .planet-production-card{padding:10px;gap:8px}
 .planet-production-values{flex-direction:column;gap:3px}
 .auth-screen{background-position:60% center}
}
@media(max-width:390px){
 .strip-heading small{max-width:103px}.resource-scope{width:102px}
 .resource-overview-grid{grid-template-columns:1fr 1fr}
 .resource-overview-foot{gap:7px}
 .resource-detail-stats{grid-template-columns:1fr 1fr}
 .resource-detail-stats div:last-child{grid-column:span 2}
}
@media(prefers-reduced-motion:reduce){.game:before{animation:none!important}}

/* Colorful miniature planets and a readable multi-world resource hub */
.planet-tabs{gap:10px;scrollbar-width:thin;scrollbar-color:#8467aa transparent}
.planet-pill{display:flex;align-items:center;gap:10px;flex:none;min-height:59px;text-align:left}
.planet-pill small{display:block;margin-top:3px;color:#b7b7d3;font-size:10px}
.planet-tab-title{display:block;font-size:12px;line-height:1.2}
.mini-planet{--planet-a:#79baff;--planet-b:#1a4072;--planet-c:#8ee8bb;
 flex:none;display:inline-block;width:34px;height:34px;border-radius:50%;position:relative;
 background:radial-gradient(circle at 27% 23%,#f7ffff88 0%,transparent 29%),
 radial-gradient(ellipse at 65% 75%,var(--planet-c) 0%,transparent 33%),
 radial-gradient(circle at 36% 28%,var(--planet-a),var(--planet-b) 68%,#050b20 96%);
 box-shadow:inset -9px -5px 12px #0008,0 0 15px color-mix(in srgb,var(--planet-a) 50%,transparent)}
.mini-earth{--planet-a:#7dc2f5;--planet-b:#215580;--planet-c:#5dd8a2}
.mini-desert{--planet-a:#ffcf7e;--planet-b:#8b3d47;--planet-c:#ef9a5b}
.mini-ice{--planet-a:#f2ffff;--planet-b:#5c84c6;--planet-c:#7ce6fa}
.mini-lava{--planet-a:#ff9e49;--planet-b:#61203b;--planet-c:#ff485b}
.mini-ocean{--planet-a:#55effc;--planet-b:#135783;--planet-c:#4dd5b1}
.mini-toxic{--planet-a:#c1f478;--planet-b:#41614c;--planet-c:#79bf74}
.mini-rock{--planet-a:#c1aec8;--planet-b:#555070;--planet-c:#a68eb9}
.planet-graphic.ocean{background:radial-gradient(circle at 28% 25%,#c1fdff,#4caac7 36%,#104f89 70%,#08152e 95%)}
.planet-graphic.toxic{background:radial-gradient(circle at 28% 25%,#e2ffaa,#77a35c 36%,#3c6852 70%,#0a1e29 95%)}
.planet-graphic.rock{background:radial-gradient(circle at 28% 25%,#ebe2fa,#8c789c 36%,#48415a 70%,#081020 95%)}
.resource-hub-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.resource-hub-metric{background:linear-gradient(130deg,#352349d6,#172b44e8);border:1px solid #7765a3;border-radius:11px;padding:16px}
.resource-hub-metric>span{display:block;color:#b8b8d7;font-size:10px;letter-spacing:.08em}
.resource-hub-metric strong{display:block;font-size:23px;margin-top:7px}
.resource-hub-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:14px}
.resource-hub-card{display:flex;flex-direction:column;gap:4px;border:1px solid #5d537c;border-radius:9px;background:linear-gradient(140deg,#25223f,#142239);padding:12px;color:white;text-align:left}
.resource-hub-card:hover{border-color:#c9a9fd;transform:translateY(-2px)}
.resource-hub-card span{font-size:11px;color:#bfc7e1}
.resource-hub-card strong{font-size:20px}
.resource-hub-card small{font-size:11px;font-weight:800}
@media(max-width:1100px){.resource-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.resource-hub-intro{grid-template-columns:1fr 1fr}.resource-hub-metric:last-child{grid-column:span 2}.resource-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
