:root {
  color-scheme: dark;
  --bg: #050712;
  --bg-2: #071521;
  --surface: rgba(8, 18, 30, 0.82);
  --surface-strong: rgba(10, 28, 38, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #fff8e6;
  --muted: #b8c7c9;
  --soft: #7e9194;
  --earth: #49e4bb;
  --gold: #f3cb48;
  --green: #7bd96f;
  --blue: #62a8ff;
  --rose: #ff718c;
  --violet: #9b7cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(88, 149, 255, 0.32), transparent 34rem),
    radial-gradient(circle at 20% 20%, rgba(73, 228, 187, 0.22), transparent 24rem),
    radial-gradient(circle at 80% 24%, rgba(243, 203, 72, 0.16), transparent 22rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 56%, #040609);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px);
  background-position: 0 0, 37px 61px;
  background-size: 128px 128px, 173px 173px;
  opacity: 0.28;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.screen {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 36px;
}

.screen-loading,
.screen-error {
  display: grid;
  place-items: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 30%, #f7f0b0, #1f805f 35%, #124779 68%, #07111b 100%);
  box-shadow: 0 0 28px rgba(73, 228, 187, 0.28);
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand p {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button,
.ghost-button,
.disabled-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button {
  background: linear-gradient(135deg, rgba(73, 228, 187, 0.22), rgba(98, 168, 255, 0.18));
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
}

.disabled-button,
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  min-height: 330px;
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
}

.eyeline {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2,
h3,
p {
  margin-top: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.orbit-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  position: relative;
}

.planet {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #eaf7b0, transparent 10%),
    radial-gradient(circle at 58% 36%, #48e4ba, transparent 18%),
    radial-gradient(circle at 44% 70%, #2067c8, transparent 28%),
    radial-gradient(circle at 50% 50%, #1d7c70, #0b2f59 62%, #03182d);
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.06), 0 0 60px rgba(98, 168, 255, 0.42);
}

.orbit-icon {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  padding: 7px;
  display: grid;
  place-items: center;
}

.orbit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.orbit-icon:nth-child(2) { transform: translate(-185px, -60px); }
.orbit-icon:nth-child(3) { transform: translate(188px, -48px); }
.orbit-icon:nth-child(4) { transform: translate(-132px, 116px); }
.orbit-icon:nth-child(5) { transform: translate(138px, 112px); }

.grid,
.card-grid,
.detail-grid {
  display: grid;
  gap: 14px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
}

.panel {
  padding: 20px;
}

.panel-compact {
  max-width: 640px;
}

.card {
  min-height: 168px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin-bottom: 14px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.card:hover {
  border-color: rgba(73, 228, 187, 0.5);
}

.collection-stack {
  margin-bottom: 12px;
}

.collection-panel {
  border-color: rgba(243, 203, 72, 0.34);
  background:
    linear-gradient(135deg, rgba(243, 203, 72, 0.11), rgba(73, 228, 187, 0.08)),
    var(--surface);
}

.collection-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.collection-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.collection-heading p {
  margin-bottom: 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.collection-grid .card {
  min-height: 150px;
  background: rgba(0, 0, 0, 0.18);
}

.card.is-future {
  opacity: 0.72;
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 1.22rem;
}

.card p,
.panel p,
.facts li {
  color: var(--muted);
  line-height: 1.55;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.screen-header {
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.screen-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.screen-summary {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
  line-height: 1.6;
}

.route-strip,
.principles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.88rem;
}

.chip-active {
  color: var(--text);
  border-color: rgba(73, 228, 187, 0.5);
  background: rgba(73, 228, 187, 0.12);
}

.status {
  color: var(--gold);
}

.future {
  color: var(--soft);
}

.facts {
  padding-left: 18px;
  margin-bottom: 0;
}

.facts strong {
  color: var(--text);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.activity-media {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.activity-hero,
.media-card {
  margin: 0;
}

.activity-hero img {
  width: 100%;
  max-height: 520px;
  display: block;
  border-radius: var(--radius);
  object-fit: contain;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.media-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.media-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.trail-steps {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(243, 203, 72, 0.08);
}

.trail-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-row {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.detail-row dt {
  color: var(--gold);
  font-weight: 800;
}

.detail-row dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.record-code {
  display: inline-block;
  margin: 8px 0 0;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color: var(--gold);
}

.list-stack {
  display: grid;
  gap: 10px;
}

.vertical-actions {
  align-items: stretch;
  flex-direction: column;
}

.row-button {
  width: 100%;
  min-height: 64px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.row-button:hover {
  border-color: rgba(73, 228, 187, 0.48);
}

.row-button small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.quiet-note {
  color: var(--soft);
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .topbar,
  .hero-panel,
  .detail-grid,
  .collection-heading {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero-panel {
    min-height: auto;
  }

  .orbit-stage {
    min-height: 220px;
  }

  .orbit-icon {
    width: 54px;
    height: 54px;
  }

  .orbit-icon:nth-child(2) { transform: translate(-118px, -52px); }
  .orbit-icon:nth-child(3) { transform: translate(118px, -45px); }
  .orbit-icon:nth-child(4) { transform: translate(-88px, 92px); }
  .orbit-icon:nth-child(5) { transform: translate(90px, 90px); }
}
