:root {
  color-scheme: dark;
  --bg: #111111;
  --fg: #f6f0e8;
  --muted: #c8bfb4;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 2rem;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 35%),
    var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-level="0"] {
  --bg: #132018;
}

body[data-level="1"] {
  --bg: #1b2216;
}

body[data-level="2"] {
  --bg: #2a2012;
}

body[data-level="3"] {
  --bg: #341b10;
}

body[data-level="4"] {
  --bg: #3d1010;
}

body[data-level="error"] {
  --bg: #2e1a1a;
}

.shell {
  width: min(100%, 68rem);
  margin: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 16vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.message {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.25rem, 3.1vw, 2rem);
  line-height: 1.35;
}

.explanation,
.meta,
.footer,
summary,
.ship-pax {
  color: var(--muted);
}

.explanation {
  margin: 1rem auto 0;
  max-width: 36rem;
  line-height: 1.5;
}

.meta {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.ships-wrap {
  width: min(100%, 34rem);
  margin: 2rem auto 0;
  padding: 1rem 1.1rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: " +";
}

details[open] summary::after {
  content: " -";
}

.ships {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.ships li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.ship-name {
  font-weight: 600;
}

.footer {
  width: min(100%, 68rem);
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer p {
  margin: 0.3rem 0;
}

@media (max-width: 640px) {
  body {
    padding: 1.25rem;
  }

  .ships li {
    flex-direction: column;
    gap: 0.25rem;
  }
}
