:root {
  color-scheme: dark;
  --bg-a: #3a0620;
  --bg-b: #d72f88;
  --bg-c: #ff7fbd;
  --ink: #fff8fd;
  --muted: #f5cde6;
  --soft: rgba(255, 255, 255, 0.12);
  --softer: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.18);
  --hot: #ff4fa3;
  --gold: #ffd166;
  --mint: #ffc2dc;
  --night: #1f0715;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-a);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 141, 194, 0.66), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(255, 194, 220, 0.28), transparent 22rem),
    linear-gradient(155deg, var(--bg-a), var(--bg-b) 54%, #7a1554 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 16px 120px;
}

.hero {
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 0 24px;
}

.hero__status,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  background: rgba(47, 9, 31, 0.5);
  color: var(--muted);
  backdrop-filter: blur(18px);
  border-radius: 999px;
}

.hero__status {
  padding: 8px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.25rem;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 4.35rem;
  line-height: 0.84;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 28rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.48;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(128px, 0.78fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.hero-photo {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.hero-photo__scan {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-bottom: 8px;
  padding: 7px 9px;
  color: #dcfff8;
  border: 1px solid rgba(115, 251, 211, 0.28);
  border-color: rgba(255, 179, 212, 0.38);
  border-radius: 999px;
  background: rgba(57, 10, 36, 0.56);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  object-position: 50% 16%;
  filter: grayscale(1) contrast(1.08) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.hero-photo figcaption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.hero-photo figcaption span {
  display: block;
  padding: 8px;
  border-radius: 10px;
  background: rgba(57, 10, 36, 0.44);
}

.hero-photo.is-missing {
  display: none;
}

.mission-panel,
.step-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  border-radius: var(--radius);
}

.mission-panel {
  min-width: 0;
  height: 100%;
  padding: 12px;
}

.panel-header,
.progress-label,
.gauge__top,
.step-meta,
.unlock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-wrap {
  margin-top: 14px;
}

.progress-label {
  margin-bottom: 8px;
  font-size: 0.74rem;
  color: var(--muted);
}

.progress-track,
.mini-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar,
.mini-track > div {
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hot), var(--gold), var(--mint));
  transition: width 480ms ease;
}

.gauges {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.gauge {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(57, 10, 36, 0.38);
}

.gauge__top {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.gauge__top strong {
  color: var(--ink);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  padding: 6px 8px;
  font-size: 0.68rem;
}

.console {
  margin-top: 12px;
  padding: 10px;
  color: #ffe7f2;
  border: 1px solid rgba(255, 179, 212, 0.3);
  border-radius: 14px;
  background: rgba(57, 10, 36, 0.5);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.simulator {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px auto;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 28px), 492px);
  padding: 8px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 18px;
  background: rgba(47, 9, 31, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.simulator__status {
  min-width: 0;
  padding: 0 4px;
  color: var(--muted);
}

.simulator__status span,
.simulator__status strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulator__status span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.simulator__status strong {
  margin-top: 2px;
  color: var(--gold);
  font-size: 0.84rem;
}

.simulator__arrow,
.simulator__real {
  min-height: 42px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.simulator__arrow {
  font-size: 1.8rem;
  line-height: 1;
}

.simulator__real {
  padding: 0 12px;
  color: #22081c;
  background: linear-gradient(90deg, var(--gold), #ff9bc9);
  font-weight: 800;
  font-size: 0.78rem;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  transform: translateY(8px);
  animation: rise 420ms ease forwards;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-120%);
  animation: scan 5s ease-in-out infinite;
}

.step-card.is-locked {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.07);
}

.step-meta {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.pill {
  padding: 7px 10px;
  font-size: 0.76rem;
  color: var(--ink);
}

.step-card h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 1.48rem;
  line-height: 1.05;
}

.step-card p,
.step-card li {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.52;
}

.step-card strong {
  color: var(--ink);
}

.info-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.info-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.info-item span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.info-item b {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.checklist,
.team-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.checklist li,
.team-list li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.quiz {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.question {
  padding: 12px;
  border-radius: 16px;
  background: rgba(57, 10, 36, 0.38);
}

.question h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.answers {
  display: grid;
  gap: 8px;
}

.answer {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.answer.is-selected {
  border-color: rgba(255, 209, 102, 0.82);
  background: rgba(255, 209, 102, 0.18);
}

.cta {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  color: #22081c;
  font-weight: 850;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--gold), #ff9bc9);
  box-shadow: 0 16px 34px rgba(255, 111, 179, 0.22);
}

.cta[disabled] {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.glitch {
  color: var(--gold);
  animation: glitch 900ms steps(2, end) 2;
}

.hidden {
  display: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan {
  45%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
    text-shadow: none;
  }
  25% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 var(--mint), 2px 0 var(--hot);
  }
  50% {
    transform: translate(-2px, 1px);
    text-shadow: 2px 0 var(--mint), -2px 0 var(--hot);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 3.7rem;
  }

  .hero-grid {
    grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1fr);
    gap: 10px;
  }

  .hero-photo,
  .mission-panel {
    border-radius: 16px;
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 28px;
  }

  .hero {
    min-height: 38vh;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-photo {
    align-self: flex-start;
  }

  h1 {
    font-size: 5rem;
  }
}
