:root {
  color-scheme: dark;
  --bg: #090b18;
  --panel: rgba(21, 23, 43, .78);
  --line: rgba(173, 183, 239, .13);
  --text: #f5f4ff;
  --muted: #999ab7;
  --accent: #92f0d9;
  --accent-rgb: 146, 240, 217;
  --pink: #f1a1ca;
  --link-text: #dcfff7;
  --body-copy: #c2c3d6;
  --nav-color: #a5a6bf;
  --hover-panel: rgba(26, 28, 49, .91);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font-display); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.space-backdrop { position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 78% 23%, rgba(94, 59, 136, .2), transparent 31%), radial-gradient(ellipse at 15% 56%, rgba(44, 99, 120, .1), transparent 31%), radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,.78) 50%, transparent 100%), radial-gradient(1px 1px at 25% 38%, rgba(255,255,255,.62) 50%, transparent 100%), radial-gradient(1px 1px at 44% 16%, rgba(255,255,255,.64) 50%, transparent 100%), radial-gradient(1px 1px at 62% 49%, rgba(255,255,255,.55) 50%, transparent 100%), radial-gradient(1px 1px at 88% 71%, rgba(255,255,255,.7) 50%, transparent 100%), radial-gradient(1px 1px at 76% 10%, rgba(255,255,255,.56) 50%, transparent 100%), radial-gradient(1px 1px at 34% 75%, rgba(255,255,255,.48) 50%, transparent 100%); }
.page-shell { width: min(1100px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--font-mono); letter-spacing: .08em; }
.brand-mark { color: var(--accent); font-size: 23px; line-height: 1; }
.brand-slash { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; align-items: center; gap: 23px; }
.site-nav a { color: var(--nav-color); font-size: 11px; transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.station-status, .section-label, .eyebrow, .card-index, .clock-card div > span, .footer, .note-stamp, .cat-caption { font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; }
.station-status { color: #b1b4cc; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 11px rgba(var(--accent-rgb), .8); }
.mode-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(22, 24, 44, .62); color: #dbd9eb; padding: 10px 14px; border-radius: 7px; font-size: 11px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.mode-toggle:hover { border-color: rgba(var(--accent-rgb), .55); color: var(--accent); background: rgba(22, 24, 44, .9); }
.mode-icon { font-size: 15px; line-height: 1; }
.hero { min-height: 460px; display: grid; grid-template-columns: 1fr .88fr; align-items: center; position: relative; padding: 46px 0 54px; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 1; padding-bottom: 2px; }
.eyebrow { color: var(--accent); display: flex; align-items: center; gap: 9px; margin: 0 0 24px; }
.eyebrow-line { display: inline-block; width: 19px; height: 1px; background: var(--accent); }
.eyebrow-id { color: #676981; margin-left: 5px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(39px, 5.2vw, 63px); letter-spacing: -.065em; line-height: 1.04; font-weight: 500; margin-bottom: 19px; }
.title-period { color: var(--accent); }
#display-name { color: var(--accent); }
.hero-description { max-width: 375px; color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.primary-link { min-height: 43px; display: inline-flex; align-items: center; gap: 22px; padding: 0 14px; border: 1px solid rgba(var(--accent-rgb), .34); border-radius: 5px; color: var(--link-text); font-size: 11px; background: rgba(var(--accent-rgb), .065); transition: background .2s, transform .2s; }
.primary-link:hover { background: rgba(var(--accent-rgb), .14); transform: translateY(-2px); }
.arrow { color: var(--accent); font-size: 16px; }
.hero-art { height: 365px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(164, 168, 215, .18); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 340px; height: 150px; }
.orbit-two { width: 295px; height: 235px; transform: rotate(52deg); border-color: rgba(var(--accent-rgb), .13); }
.cat-astronaut { position: relative; z-index: 2; width: 230px; filter: drop-shadow(0 17px 32px rgba(108, 82, 162, .29)); animation: float 5s ease-in-out infinite; }
.cat-astronaut svg { display: block; width: 100%; overflow: visible; }
.cat-caption { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: max-content; text-align: center; color: #d4d5ec; font-size: 8px; line-height: 1.9; }
.cat-caption span { color: #8485a6; font-size: 7px; }
.planet { position: absolute; border-radius: 50%; }
.planet-one { width: 26px; height: 26px; right: 6%; top: 76px; background: radial-gradient(circle at 33% 28%, #deb2f2, #7a63aa 66%, #45385f); box-shadow: 0 0 20px rgba(188, 142, 237, .28); }
.planet-two { width: 10px; height: 10px; left: 9%; bottom: 82px; background: #ffc6a9; box-shadow: 0 0 14px rgba(255, 198, 169, .5); }
.spark { position: absolute; color: var(--accent); }
.spark-one { top: 61px; left: 14%; font-size: 17px; }
.spark-two { right: 12%; bottom: 70px; font-size: 22px; color: var(--pink); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.dashboard { padding: 39px 0 35px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.section-label { color: #777a9b; margin-bottom: 8px; font-size: 9px; }
h2 { font-size: 25px; letter-spacing: -.045em; font-weight: 500; margin-bottom: 0; }
.clock-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(20, 22, 41, .55); }
.clock-icon { color: var(--accent); font-size: 23px; line-height: 1; }
.clock-card div { display: flex; flex-direction: column; gap: 3px; }
.clock-card time { font: 500 15px var(--font-mono); }
.clock-card div > span { color: #8486a3; font-size: 8px; }
.launch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.launch-card { min-height: 166px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; padding: 17px 18px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: transform .2s, border-color .2s, background .2s; }
.launch-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -67px; top: -74px; border-radius: 50%; background: var(--card-glow); opacity: .11; transition: opacity .2s; }
.launch-card:hover { transform: translateY(-4px); border-color: var(--card-border); background: var(--hover-panel); }
.launch-card:hover::after { opacity: .19; }
.card-java { --card-glow: #ffae77; --card-border: rgba(255, 174, 119, .45); }
.card-godot { --card-glow: #91afff; --card-border: rgba(145, 175, 255, .48); }
.card-cats { --card-glow: #f1a1ca; --card-border: rgba(241, 161, 202, .48); }
.card-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 8px; font-size: 19px; }
.java-icon { background: rgba(255, 169, 110, .1); color: #ffb477; }
.godot-icon { background: rgba(137, 166, 255, .1); color: #a4baff; font-size: 21px; }
.cat-icon { background: rgba(242, 150, 194, .11); color: #f2a4cd; font-size: 24px; }
.card-index { color: #8587a2; font-size: 8px; margin-bottom: 5px; }
.card-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.card-description { color: #9294b0; font-size: 10px; line-height: 1.5; }
.card-arrow { position: absolute; right: 16px; bottom: 16px; color: #8789a7; font-size: 16px; transition: color .2s, transform .2s; }
.launch-card:hover .card-arrow { color: var(--card-glow); transform: translate(2px, -2px); }
.about-section, .interests-section { padding: 36px 0 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { font-size: 25px; }
.about-card { min-height: 120px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 21px 22px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(105deg, rgba(var(--accent-rgb), .055), rgba(21, 23, 43, .78) 42%); }
.about-mark { align-self: start; color: var(--accent); font-size: 21px; }
.about-card p { max-width: 760px; margin: 0; color: var(--body-copy); font-size: 13px; line-height: 1.85; }
.about-coordinate { color: #737691; font: 8px var(--font-mono); letter-spacing: .09em; white-space: nowrap; }
.interests-section { padding-bottom: 36px; }
.interests-section .launch-card { min-height: 176px; }
.launch-card h3 { margin-top: 0; }
.launch-card p { margin-top: 0; margin-bottom: 0; }
.contact-section { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; overflow: hidden; padding: 25px 26px; margin-bottom: 34px; border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 8px; background: linear-gradient(110deg, rgba(var(--accent-rgb), .07), rgba(24, 24, 46, .72) 70%); }
.contact-section .section-label { margin-bottom: 7px; }
.contact-section h2 { margin-bottom: 5px; }
.contact-copy { max-width: 490px; margin: 0; color: #999bb5; font-size: 11px; line-height: 1.7; }
.contact-star { position: absolute; right: 28%; top: 18px; color: var(--accent); opacity: .45; }
.contact-link { flex-shrink: 0; }
.optional-label { color: #797b98; font-size: 10px; }
.text-area { min-height: 92px; height: auto; padding: 10px 11px; resize: vertical; line-height: 1.6; }
.contact-link[hidden] { display: none; }
.mission-note { min-height: 63px; display: flex; align-items: center; gap: 13px; padding: 12px 17px; margin-top: 14px; border: 1px solid rgba(var(--accent-rgb), .15); border-radius: 7px; background: linear-gradient(100deg, rgba(var(--accent-rgb), .055), rgba(25, 24, 46, .45) 65%); }
.note-icon { color: var(--accent); font-size: 19px; }
.mission-note p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.mission-note strong { font-size: 11px; font-weight: 500; }
.mission-note p span { color: #999bb5; font-size: 10px; }
.note-stamp { margin-left: auto; color: #747894; font-size: 8px; white-space: nowrap; }
.footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #777991; font-size: 8px; }
.footer span span { color: var(--accent); }
.footer a { color: inherit; }
.footer a:hover { color: var(--accent); }
.footer .footer-star { color: var(--pink); }
.settings-dialog { width: min(420px, calc(100% - 32px)); padding: 26px; color: var(--text); background: #111326; border: 1px solid rgba(174, 183, 239, .2); border-radius: 12px; box-shadow: 0 24px 90px rgba(0, 0, 0, .55); }
.settings-dialog::backdrop { background: rgba(4, 5, 13, .72); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 23px; }
.close-button { border: 0; background: transparent; color: #a6a8bf; font-size: 25px; cursor: pointer; line-height: 1; }
.field-label { display: block; color: #c5c6d9; font-size: 11px; margin: 17px 0 8px; }
.text-input { display: block; width: 100%; height: 42px; padding: 0 11px; color: var(--text); background: #191b31; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.text-input::placeholder { color: #777991; }
.text-input option { background: #191b31; }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.reset-button, .save-button { border-radius: 5px; padding: 10px 13px; font-size: 11px; cursor: pointer; }
.reset-button { border: 1px solid var(--line); background: transparent; color: #b4b5ca; }
.save-button { border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .12); color: #e1fff9; }
.save-button span { color: var(--accent); margin-left: 9px; }
@media (min-width: 1250px) { .page-shell { width: min(1100px, calc(100% - 100px)); } }
@media (max-width: 700px) {
  .page-shell { width: calc(100% - 38px); }
  .topbar { height: 68px; }
  .topbar-right { gap: 12px; }
  .station-status { font-size: 0; gap: 0; }
  .status-dot { width: 7px; height: 7px; }
  .mode-toggle { padding: 9px 10px; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding: 54px 0 29px; }
  .hero-copy { grid-row: 1; }
  .hero-art { height: 285px; grid-row: 2; margin-top: 0; }
  .cat-astronaut { width: 195px; }
  .orbit-one { width: 290px; height: 132px; }
  .orbit-two { width: 254px; height: 205px; }
  .planet-one { top: 51px; right: 8%; }
  .planet-two { bottom: 61px; }
  .spark-one { top: 43px; }
  .spark-two { bottom: 48px; }
  .dashboard { padding-top: 31px; }
  .about-card { grid-template-columns: auto 1fr; gap: 12px; padding: 17px; }
  .about-coordinate { grid-column: 2; }
  .contact-section { padding: 20px; }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 32px); }
  .brand { font-size: 10px; }
  .topbar-right { gap: 10px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 9px; }
  .mode-toggle { font-size: 10px; gap: 5px; }
  h1 { font-size: clamp(39px, 11vw, 52px); }
  .hero-description { max-width: 310px; font-size: 13px; }
  .hero-art { height: 270px; }
  .dashboard-heading { align-items: center; }
  h2 { font-size: 22px; }
  .clock-card { padding: 7px 9px; gap: 6px; }
  .clock-card time { font-size: 13px; }
  .clock-card div > span { font-size: 7px; }
  .launch-grid { grid-template-columns: 1fr; gap: 9px; }
  .launch-card { min-height: 126px; padding: 13px 15px; }
  .card-icon { width: 31px; height: 31px; margin-bottom: 8px; }
  .card-index { position: absolute; top: 20px; left: 57px; }
  .card-title { font-size: 15px; }
  .card-description { font-size: 10px; }
  .card-arrow { bottom: 18px; }
  .mission-note { align-items: flex-start; padding: 12px; }
  .mission-note p span { line-height: 1.5; }
  .note-stamp { display: none; }
  .contact-section { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 25px; }
  .contact-star { right: 23px; top: 20px; }
  .footer { font-size: 7px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2fb;
  --panel: rgba(255, 255, 255, .76);
  --line: rgba(80, 76, 119, .17);
  --text: #22213a;
  --muted: #5f607c;
  --accent: #087c70;
  --accent-rgb: 8, 124, 112;
  --pink: #bd4f88;
  --link-text: #075d55;
  --body-copy: #484963;
  --nav-color: #555671;
  --hover-panel: rgba(255, 255, 255, .98);
}

:root[data-theme="light"] .space-backdrop {
  background:
    radial-gradient(ellipse at 78% 23%, rgba(176, 146, 225, .2), transparent 31%),
    radial-gradient(ellipse at 15% 56%, rgba(132, 208, 198, .17), transparent 31%),
    radial-gradient(1px 1px at 8% 12%, rgba(63, 54, 102, .52) 50%, transparent 100%),
    radial-gradient(1px 1px at 25% 38%, rgba(63, 54, 102, .42) 50%, transparent 100%),
    radial-gradient(1px 1px at 44% 16%, rgba(63, 54, 102, .45) 50%, transparent 100%),
    radial-gradient(1px 1px at 62% 49%, rgba(63, 54, 102, .38) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 71%, rgba(63, 54, 102, .48) 50%, transparent 100%),
    radial-gradient(1px 1px at 76% 10%, rgba(63, 54, 102, .4) 50%, transparent 100%),
    radial-gradient(1px 1px at 34% 75%, rgba(63, 54, 102, .36) 50%, transparent 100%);
}

:root[data-theme="light"] .station-status,
:root[data-theme="light"] .section-label { color: #62627f; }
:root[data-theme="light"] .eyebrow { color: #087c70; }
:root[data-theme="light"] .eyebrow-id,
:root[data-theme="light"] .card-index,
:root[data-theme="light"] .about-coordinate,
:root[data-theme="light"] .footer { color: #696a84; }
:root[data-theme="light"] .mode-toggle {
  background: rgba(255, 255, 255, .68);
  color: #363650;
}
:root[data-theme="light"] .mode-toggle:hover { background: #fff; }
:root[data-theme="light"] .orbit { border-color: rgba(81, 77, 129, .22); }
:root[data-theme="light"] .orbit-two { border-color: rgba(var(--accent-rgb), .2); }
:root[data-theme="light"] .cat-caption { color: #41415d; }
:root[data-theme="light"] .cat-caption span { color: #666783; }
:root[data-theme="light"] .clock-card {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line);
}
:root[data-theme="light"] .clock-card div > span { color: #656681; }
:root[data-theme="light"] .card-description,
:root[data-theme="light"] .contact-copy { color: #62637d; }
:root[data-theme="light"] .card-java { --card-border: rgba(183, 102, 37, .42); }
:root[data-theme="light"] .card-godot { --card-border: rgba(66, 96, 190, .42); }
:root[data-theme="light"] .card-cats { --card-border: rgba(190, 74, 135, .42); }
:root[data-theme="light"] .about-card {
  background: linear-gradient(105deg, rgba(var(--accent-rgb), .08), rgba(255, 255, 255, .85) 42%);
}
:root[data-theme="light"] .contact-section {
  background: linear-gradient(110deg, rgba(var(--accent-rgb), .09), rgba(255, 255, 255, .85) 70%);
}
:root[data-theme="light"] .footer .footer-star { color: #bd4f88; }