:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  --bg: #f9fafb;
  --fg: #111926;
  --muted: #6b7280;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --card-bg: #fff;
  --shadow: 0 15px 50px rgb(17 25 38 / 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fdf4ff, #eef2ff);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero__eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 560px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  transition: background 0.2s ease;
  cursor: pointer;
}

.cta:hover,
.cta:focus-visible {
  background: var(--brand-dark);
}

.card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
}

.puzzle-card {
  display: grid;
  gap: 1.25rem;
}

.puzzle-meta {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.85rem;
}

.puzzle-body code,
.hint code {
  font-size: 0.95rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  background: #1119260f;
}

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

.whisper {
  color: var(--card-bg);
  user-select: text;
}

.whisper::selection {
  background: #fde68a;
  color: var(--fg);
}

.color-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.color-tile {
  position: relative;
  border-radius: 1rem;
  height: 120px;
  background: #fcd34d;
  box-shadow: inset 0 0 20px rgb(17 25 38 / 0.12);
}

.tile-core {
  display: none;
}

.console-note {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  background: #111926;
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.95rem;
}

.route-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  background: #e0e7ff;
  color: #312e81;
  font-weight: 600;
}

.aurora {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0;
}

.aurora svg {
  width: min(420px, 100%);
  border-radius: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  margin-top: auto;
}

@media (max-width: 640px) {
  .puzzle-form {
    flex-direction: column;
  }

  .puzzle-form button {
    width: 100%;
  }
}
