:root {
  --bg: #12091f;
  --panel: rgba(16, 12, 32, 0.95);
  --panel-2: rgba(31, 21, 53, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f5f5ff;
  --muted: #d5d7ff;
  --acid: #c7ff58;
  --gold: #ffe38a;
  --shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  background: var(--bg) url("images/space.gif") repeat;
  background-size: 320px auto;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--acid);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #fff9b3;
}

.page-shell {
  width: min(1120px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.alert-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(7, 6, 20, 0.92);
  color: var(--gold);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alert-strip img {
  width: auto;
  max-width: none;
  height: 2.3rem;
  object-fit: contain;
}

.alert-strip .micro {
  height: 1.15rem;
}

.mission-board {
  position: relative;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home-link,
.sound-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.headline-card,
.player-card,
.lyric-card,
.evidence-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
  gap: 1rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: #91efff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff2a6;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.8rem, 10vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.75rem;
  color: #fff0a2;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subhead,
.headline-card p,
.player-card p,
.evidence-card p {
  color: var(--muted);
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-cloud span {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff4bf;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-poster img {
  width: 100%;
  height: clamp(260px, 42vw, 470px);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
}

.case-caption {
  margin-top: 0.55rem;
  color: #ddd1ff;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sticker {
  position: absolute;
  z-index: 2;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.sticker-moon {
  top: -1.2rem;
  right: 1rem;
  width: clamp(72px, 10vw, 108px);
  transform: rotate(8deg);
}

.sticker-stars {
  top: 5.5rem;
  right: -0.9rem;
  width: clamp(74px, 11vw, 116px);
  transform: rotate(10deg);
}

.sticker-radioactive {
  bottom: -1rem;
  left: 1.2rem;
  width: clamp(68px, 10vw, 100px);
  transform: rotate(-11deg);
}

.sticker-bracelet {
  bottom: -1.1rem;
  right: 1.5rem;
  width: clamp(66px, 9vw, 96px);
  transform: rotate(12deg);
}

.sticker-space {
  top: -1.1rem;
  left: 1rem;
  width: clamp(78px, 11vw, 120px);
  transform: rotate(-9deg);
}

.sticker-cat {
  bottom: -1rem;
  right: 5.5rem;
  width: clamp(84px, 12vw, 124px);
  transform: rotate(-7deg);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  margin-top: 1rem;
}

.soundcloud-credit {
  margin-top: 0.4rem;
  color: #cfc0ff;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soundcloud-credit a {
  color: #d8cbff;
  text-decoration: none;
}

.question-line {
  display: block;
  color: var(--acid);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lyrics-box {
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(5, 4, 18, 0.35);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}

.annotate {
  position: relative;
  color: #fff4a8;
  text-decoration: underline dotted rgba(255, 244, 168, 0.72);
  text-underline-offset: 0.2em;
  cursor: help;
}

.annotation-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  width: min(18rem, 72vw);
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  background: rgba(8, 3, 18, 0.97);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: normal;
  box-shadow: 0 0.25rem 0.8rem rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(0.35rem);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 5;
}

.annotate:hover .annotation-text,
.annotate:active .annotation-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.blinkie-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.blinkie-rack img {
  width: auto;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.blinkie-rack .small {
  height: 2.1rem;
}

.blinkie-rack .medium {
  height: 2.6rem;
}

.blinkie-rack .long {
  height: 1.9rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.evidence-item {
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
}

.evidence-item img {
  width: 100%;
  object-fit: contain;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.14);
}

.evidence-item.tall img {
  height: 280px;
}

.evidence-item.square img {
  aspect-ratio: 1;
}

.evidence-item.wide img {
  height: 120px;
}

.evidence-item.short img {
  height: 150px;
}

.evidence-item figcaption {
  margin-top: 0.45rem;
  color: #ebdcff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    height: min(70vw, 420px);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 0.7rem, 100%);
  }

  .mission-board {
    padding: 0.85rem;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .annotation-text {
    left: 0;
    transform: translateX(0) translateY(0.35rem);
  }

  .annotate:hover .annotation-text,
  .annotate:active .annotation-text {
    transform: translateX(0) translateY(0);
  }

  .sticker-moon,
  .sticker-stars,
  .sticker-radioactive,
  .sticker-bracelet,
  .sticker-space,
  .sticker-cat {
    width: clamp(56px, 18vw, 88px);
  }

  .sticker-stars {
    top: 7.8rem;
    right: -0.5rem;
  }
}
