:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #100909; color: #fff3e7; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 74% -8%, #512112 0, transparent 33rem), #100909; }
button { font: inherit; }
.app-shell { width: min(1320px, 100%); margin: 0 auto; padding: 28px clamp(16px, 3vw, 42px) 42px; }
.topbar, .section-heading, .overview, .game-grid, .bottom-grid { display: flex; gap: 18px; }
.topbar { align-items: end; justify-content: space-between; border-bottom: 1px solid #5b3325; padding-bottom: 22px; }
h1, h2, p { margin: 0; } h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); letter-spacing: -.055em; } h2 { font-size: 1.1rem; }
.eyebrow, .year-display span, .stat-card span, .habitability, .science { color: #e59a67; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.year-display { text-align: right; } .year-display strong { display: block; margin-top: 4px; font-size: .95rem; }
.orientation-hint { display: none; color: #d9a27b; font-size: .67rem; font-weight: 700; }
.overview { display: grid; grid-template-columns: repeat(5, 1fr); margin: 22px 0; }
.stat-card, .panel { border: 1px solid #5a362b; background: linear-gradient(135deg, #281310cc, #170e0d); box-shadow: 0 18px 45px #0003; }
.stat-card { min-height: 106px; padding: 17px; border-radius: 15px; } .stat-card strong { display: block; margin: 9px 0 3px; font-size: 1.25rem; } .stat-card small { color: #c89b83; } .life-card { border-color: #668b67; background: linear-gradient(135deg, #163120, #142018); }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr); align-items: stretch; }
.panel { border-radius: 20px; padding: 22px; } .section-heading { align-items: start; justify-content: space-between; }
.habitability, .science { border: 1px solid currentColor; border-radius: 999px; padding: 7px 9px; white-space: nowrap; }
.planet-wrap { position: relative; display: grid; place-items: center; min-height: 400px; overflow: hidden; }
.mars { position: relative; width: min(62vw, 390px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #eea36a 0 2%, transparent 3%), radial-gradient(circle at 58% 70%, #9b3320 0 11%, transparent 12%), radial-gradient(circle at 30% 80%, #6e251b 0 16%, transparent 17%), linear-gradient(130deg, #ce5937, #832416 58%, #4a1713); box-shadow: inset -38px -28px 55px #230909a8, inset 16px 20px 30px #ffc18b3d, 0 0 80px #f061283d; isolation: isolate; }
.mars:before, .mars:after { content: ''; position: absolute; inset: 9% 12%; border: 2px solid #f0b38a2b; border-radius: 47% 55% 45% 57%; transform: rotate(24deg); } .mars:after { inset: 27% 8%; transform: rotate(-30deg); }
.orbit { position: absolute; border: 1px solid #dc9b7040; border-radius: 50%; } .orbit-one { width: 92%; height: 45%; transform: rotate(-22deg); } .orbit-two { width: 85%; height: 72%; transform: rotate(50deg); }
.region { position: absolute; z-index: 1; border: 1px solid #ffcf9a66; color: #fff6ef; background: #35110ab5; border-radius: 999px; padding: 7px 9px; cursor: pointer; font-size: .68rem; transition: .2s; } .region:hover, .region:focus-visible, .region.active { background: #224d37e6; border-color: #a8dfaa; transform: scale(1.06); outline: none; }
.region-north { top: 28%; left: 15%; }.region-valles { top: 49%; right: 7%; }.region-basin { bottom: 17%; left: 18%; }.region-polar { top: 5%; left: 43%; }
.region-inspector { min-height: 74px; padding: 14px; border: 1px solid #5a362b; border-radius: 12px; background: #0e0908a6; color: #d9b69f; }.region-inspector strong { color: #fff1e5; }.region-inspector .tag { display: inline-block; margin: 5px 4px 0 0; padding: 3px 7px; border-radius: 99px; background: #334b37; color: #c4edbe; font-size: .72rem; }
.intro, .advance-note { color: #c8a28e; line-height: 1.45; font-size: .88rem; }.intro { margin: 16px 0; }
.project-list { display: grid; gap: 10px; }.project { padding: 13px; border: 1px solid #59372c; background: #1b100e; border-radius: 13px; }.project-top { display: flex; justify-content: space-between; gap: 8px; }.project h3 { margin: 0; font-size: .93rem; }.project p { margin: 5px 0 10px; color: #c49f8b; font-size: .78rem; line-height: 1.35; }.project button { border: 1px solid #d98a58; border-radius: 8px; background: #6c2d1c; color: white; padding: 7px 10px; cursor: pointer; font-size: .76rem; font-weight: 800; }.project button:disabled { opacity: .45; cursor: not-allowed; }.project .deployed { color: #a9dba3; font-size: .72rem; font-weight: 700; }
.advance-button { width: 100%; margin-top: 16px; border: 0; border-radius: 12px; padding: 14px; background: linear-gradient(90deg, #c75531, #e78447); color: #fff; cursor: pointer; font-weight: 800; box-shadow: 0 9px 25px #b848284d; }.advance-button span { float: right; font-size: 1.2rem; }.advance-button:hover { filter: brightness(1.12); }.advance-note { text-align: center; margin-top: 8px; font-size: .73rem; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }.systems-list { display: grid; gap: 10px; margin-top: 16px; }.system { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #4e3028; }.system-dot { width: 9px; height: 9px; border-radius: 50%; background: #7f5540; }.system.active .system-dot { background: #9ce68f; box-shadow: 0 0 12px #9ce68f; }.system small { color: #bf9985; }.system strong { font-size: .85rem; }.system em { color: #bfe9bc; font-size: .75rem; font-style: normal; }
.mission-log { display: grid; gap: 10px; max-height: 220px; overflow: auto; margin: 16px 0 0; padding: 0; list-style: none; }.mission-log li { border-left: 2px solid #c35c38; padding: 2px 0 2px 10px; color: #d7b29b; font-size: .82rem; line-height: 1.4; }.mission-log time { color: #e99563; font-weight: 800; }
@media (max-width: 850px) and (orientation: portrait) { .overview { grid-template-columns: repeat(2, 1fr); }.overview .life-card { grid-column: span 2; }.game-grid, .bottom-grid { grid-template-columns: 1fr; }.planet-wrap { min-height: 330px; }.mars { width: min(76vw, 360px); } .orientation-hint { display: block; } }
@media (max-height: 540px) and (orientation: landscape) {
  .app-shell { padding: 10px 14px 18px; }
  .topbar { padding-bottom: 10px; gap: 12px; }
  h1 { font-size: 1.55rem; } .year-display strong { font-size: .8rem; }
  .overview { gap: 8px; margin: 10px 0; }
  .stat-card { min-height: 63px; padding: 8px 10px; border-radius: 10px; }
  .stat-card strong { margin: 4px 0 1px; font-size: .92rem; }.stat-card small { display: none; }
  .game-grid { grid-template-columns: minmax(365px, 1.22fr) minmax(285px, .78fr); gap: 12px; }
  .bottom-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .panel { padding: 13px; border-radius: 14px; }.planet-wrap { min-height: 250px; }.mars { width: min(34vw, 250px); }
  .region-inspector { min-height: 55px; padding: 8px; font-size: .75rem; }.region-inspector .tag { margin-top: 3px; }
  .intro { display: none; }.project-list { gap: 6px; }.project { padding: 8px; }.project p { margin: 3px 0 6px; font-size: .67rem; }.project button { padding: 5px 7px; font-size: .66rem; }
  .advance-button { margin-top: 9px; padding: 10px; }.advance-note { display: none; }.systems-list, .mission-log { margin-top: 8px; gap: 5px; }.system { padding: 5px 0; }.mission-log { max-height: 110px; }.mission-log li { font-size: .7rem; }
}
@media (max-width: 480px) { .app-shell { padding: 18px 12px 28px; }.topbar { align-items: start; flex-direction: column; }.year-display { text-align: left; }.overview { gap: 10px; }.stat-card { min-height: 95px; padding: 13px; }.panel { padding: 16px; }.planet-wrap { min-height: 285px; }.region { font-size: .59rem; padding: 5px; } }
