:root {
  --ink: #171b1a;
  --muted: #5a625e;
  --paper: #f7f3ea;
  --panel: #fffaf0;
  --line: #d8cab8;
  --moss: #58705a;
  --leaf: #86a36f;
  --rust: #a8523e;
  --berry: #7b3f63;
  --night: #1f2931;
  --gold: #d6a84f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(31, 41, 49, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--night);
  background: var(--gold);
  border-radius: 6px;
  font-size: 0.82rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-radius: 6px;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(31, 41, 49, 0.1), rgba(31, 41, 49, 0.96)),
    radial-gradient(circle at 20% 18%, #485762 0 12%, transparent 34%),
    linear-gradient(145deg, #263540 0%, #5c523f 54%, #253224 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  background:
    repeating-linear-gradient(92deg, rgba(101, 126, 78, 0.65) 0 18px, rgba(51, 78, 50, 0.7) 18px 34px),
    linear-gradient(#3f5a34, #273a27);
  transform: skewY(-2deg);
  transform-origin: 100% 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.moon {
  position: absolute;
  top: 9%;
  right: 14%;
  width: clamp(72px, 10vw, 130px);
  aspect-ratio: 1;
  background: #f2d995;
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(242, 217, 149, 0.55);
}

.cabin {
  position: absolute;
  right: 10%;
  bottom: 18vh;
  width: clamp(130px, 18vw, 230px);
  height: clamp(90px, 12vw, 150px);
  background: #5f4134;
  border: 5px solid #2a2220;
  clip-path: polygon(0 34%, 48% 0, 100% 34%, 100% 100%, 0 100%);
}

.cabin::before {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 24%;
  height: 35%;
  background: #f0b85f;
  border: 4px solid #2a2220;
}

.grave {
  position: absolute;
  bottom: 15vh;
  width: 42px;
  height: 58px;
  background: #a8aca0;
  border: 4px solid #545a55;
  border-radius: 22px 22px 4px 4px;
  opacity: 0.88;
}

.grave-a {
  left: 62%;
}

.grave-b {
  left: 69%;
  transform: scale(0.82) rotate(4deg);
}

.field-row {
  position: absolute;
  left: -4%;
  right: -4%;
  height: 22px;
  background: rgba(214, 168, 79, 0.35);
  transform: rotate(-4deg);
}

.row-a {
  bottom: 26vh;
}

.row-b {
  bottom: 31vh;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(72px, 14vh, 128px);
  text-align: center;
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.release-countdown {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 auto 16px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.release-countdown h2 {
  margin: 0 0 6px;
  font-size: clamp(1.18rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.release-countdown p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.countdown-kicker {
  margin-bottom: 6px;
  color: var(--rust) !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-grid span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.countdown-grid strong {
  display: block;
  color: var(--berry);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.countdown-grid em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.search-panel {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
}

.search-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-panel input {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.search-panel button,
.hero-actions a,
.filter,
.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--rust);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-actions a {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.hero-actions a:last-child {
  color: var(--ink);
  background: var(--gold);
}

.official-shot {
  display: inline-block;
  width: min(240px, 66vw);
  margin: 22px 0 0;
  padding: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(23, 27, 26, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.official-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.official-shot figcaption {
  margin-top: 6px;
  font-size: 0.76rem;
}

.quick-stats,
.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  transform: translateY(-34px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quick-stats article {
  padding: 22px;
  background: var(--panel);
}

.quick-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rust);
  font-size: 1.65rem;
}

.quick-stats span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(44px, 7vw, 86px) 0;
}

.two-column,
.tracker {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-intro {
  color: var(--muted);
  line-height: 1.8;
}

.route-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-list span {
  color: var(--berry);
  font-weight: 900;
}

.route-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.filter.is-active {
  color: #fff;
  background: var(--moss);
  border-color: var(--moss);
}

.guide-grid,
.need-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-card,
.need-list article,
.suspect-board article,
.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.guide-card[hidden] {
  display: none;
}

.guide-card span {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card h3,
.need-list h3,
.suspect-board h3 {
  margin: 8px 0 10px;
  font-size: 1.18rem;
}

.guide-card p,
.need-list p,
.suspect-board p {
  color: var(--muted);
  line-height: 1.65;
}

.guide-card p {
  flex: 1;
}

.ghost-button {
  align-self: flex-start;
  color: var(--moss);
  background: #eef3e8;
}

.tracker {
  background: #efe8dc;
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1160px) / 2));
  padding-left: max(18px, calc((100vw - 1160px) / 2));
}

.spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.suspect-board {
  display: grid;
  gap: 12px;
}

.suspect-board article {
  padding: 18px;
}

.suspect-board input {
  width: 100%;
  accent-color: var(--berry);
}

.spoiler-box {
  grid-column: 2;
  padding: 18px;
  color: #fff;
  background: var(--night);
  border-radius: 8px;
}

.need-list article {
  padding: 20px;
}

.roadmap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 18px;
}

.timeline span {
  color: var(--rust);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

dialog {
  width: min(620px, calc(100% - 30px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(31, 41, 49, 0.55);
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--night);
  font-size: 1.4rem;
  cursor: pointer;
}

#dialog-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  padding: 28px 18px 42px;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  background: var(--night);
}

footer p {
  margin: 0;
}

.content-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.content-page h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.lead {
  max-width: 780px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.page-panel {
  margin-top: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-panel h2,
.template-grid h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.page-panel p,
.template-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.template-grid article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.related-links a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 16px;
  color: #fff;
  background: var(--moss);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header,
  .section-head,
  .two-column,
  .tracker,
  .roadmap {
    display: block;
  }

  .site-header {
    position: static;
  }

  nav {
    margin-top: 12px;
    justify-content: flex-start;
  }

  .quick-stats,
  .guide-grid,
  .need-list,
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    margin-top: 16px;
  }

  .release-countdown {
    grid-template-columns: 1fr;
  }

  .suspect-board,
  .timeline {
    margin-top: 22px;
  }

  .spoiler-box {
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .search-panel div,
  .countdown-grid,
  .quick-stats,
  .guide-grid,
  .need-list,
  .template-grid,
  .route-list li,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .search-panel button {
    width: 100%;
  }

  .cabin {
    right: 2%;
  }
}
