:root {
  --night: #120a1f;
  --night-2: #1d1033;
  --glass: rgba(29, 16, 51, .6);
  --line: rgba(244, 241, 255, .14);
  --pumpkin: #ff7a1a;
  --pumpkin-deep: #d95410;
  --phantom: #9466ff;
  --ghost: #f4f1ff;
  --ghost-dim: rgba(244, 241, 255, .72);
  --candle: #ffd633;
  --slime: #7cff6b;
  --radius: 22px;
  --display: "Creepster", "Nunito", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ghost);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--candle); }
img, video { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

h2 {
  font: 400 clamp(34px, 5vw, 52px)/1.1 var(--display);
  letter-spacing: .03em;
  margin: 0 0 20px;
  color: var(--ghost);
  text-shadow: 0 0 22px rgba(148, 102, 255, .55);
}

h3 { margin: 0 0 8px; font-size: 21px; font-weight: 900; }

section { padding: 64px 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(255, 214, 51, .12), transparent 40%),
    radial-gradient(ellipse at 50% 120%, rgba(255, 122, 26, .28), transparent 55%),
    linear-gradient(180deg, #0b0614 0%, var(--night-2) 55%, var(--night) 100%);
  display: flex;
  flex-direction: column;
}

.sky { position: absolute; inset: 0; pointer-events: none; }

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 78% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 8% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 60%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 64%, #fff 50%, transparent 51%);
  opacity: .55;
  animation: twinkle 6s ease-in-out infinite alternate;
}

.moon {
  position: absolute;
  top: 9%;
  right: 9%;
  width: clamp(90px, 14vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset clamp(-26px, -3vw, -14px) clamp(8px, 1.5vw, 14px) 0 0 #ffe9a3;
  filter: drop-shadow(0 0 30px rgba(255, 214, 51, .55));
  transform: rotate(-18deg);
}

.bat {
  position: absolute;
  width: 56px;
  height: 28px;
  color: #07030d;
  left: -80px;
  animation: fly 18s linear infinite;
}

.bat.b1 { top: 16%; }
.bat.b2 { top: 26%; width: 38px; height: 19px; animation-delay: -7s; animation-duration: 23s; }
.bat.b3 { top: 11%; width: 30px; height: 15px; animation-delay: -13s; animation-duration: 27s; }

.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1120px, 100% - 32px);
  margin: 18px auto 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ghost);
  text-decoration: none;
  font: 400 26px/1 var(--display);
  letter-spacing: .04em;
}

.brand-ghost { width: 26px; height: 30px; color: var(--ghost); }

.links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.links a { color: var(--ghost-dim); text-decoration: none; font-weight: 700; }
.links a:hover { color: var(--pumpkin); }

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 40px 16px 72px;
}

.hero-ghost {
  width: clamp(110px, 16vw, 170px);
  height: clamp(128px, 19vw, 198px);
  color: var(--ghost);
  filter: drop-shadow(0 0 26px rgba(244, 241, 255, .35));
  animation: float 3s ease-in-out infinite;
}

.hero h1 {
  margin: 8px 0 0;
  font: 400 clamp(64px, 13vw, 150px)/.95 var(--display);
  letter-spacing: .04em;
  text-shadow: 0 0 34px rgba(255, 122, 26, .75), 0 6px 0 #2a1245;
}

.hero h1 span { color: var(--pumpkin); }

.tagline {
  max-width: 620px;
  margin: 16px 0 26px;
  font-size: clamp(18px, 2.4vw, 23px);
  color: var(--ghost-dim);
}

.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 99px;
  border: 2px solid rgba(244, 241, 255, .3);
  color: var(--ghost);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
  transition: transform .18s cubic-bezier(.2, 1.6, .4, 1), background .2s, box-shadow .2s;
}

.btn:hover, .btn:focus-visible { transform: scale(1.06); }

.btn.primary {
  background: var(--pumpkin);
  border-color: var(--candle);
  color: var(--night);
  box-shadow: 0 0 28px rgba(255, 122, 26, .55);
}

.countdown {
  margin: 26px 0 0;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(18, 10, 31, .55);
  border: 1px solid var(--line);
  color: var(--candle);
  font-weight: 700;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.about p { color: var(--ghost-dim); margin: 0 0 16px; }
.about strong, .about em { color: var(--ghost); }

.about-pumpkin {
  width: clamp(140px, 20vw, 230px);
  height: clamp(128px, 18vw, 210px);
  filter: drop-shadow(0 0 30px rgba(255, 122, 26, .5));
  animation: wobble 4s ease-in-out infinite;
}

/* ---------- video ---------- */

.video-frame { margin: 0; }

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 2px solid rgba(148, 102, 255, .5);
  box-shadow: 0 0 60px rgba(148, 102, 255, .25);
  background: #000;
}

figcaption { margin-top: 10px; color: var(--ghost-dim); font-size: 15px; text-align: center; }

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding-top: 0;
}

.features article, .card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.features article p { margin: 0; color: var(--ghost-dim); font-size: 16px; }
.features article:nth-child(odd) h3 { color: var(--pumpkin); }
.features article:nth-child(even) h3 { color: var(--phantom); }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.shot {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night-2);
}

.shot.wide { grid-column: 1 / -1; }

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}

.shot:hover img { transform: scale(1.03); }

.shot span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(18, 10, 31, .75);
  color: var(--ghost);
  font-size: 14px;
  font-weight: 700;
}

dialog#lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(1400px, 96vw);
}

dialog#lightbox::backdrop { background: rgba(8, 4, 14, .86); }
dialog#lightbox img { border-radius: 14px; max-height: 90vh; width: auto; }

dialog#lightbox button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--pumpkin);
  color: var(--night);
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

/* ---------- play ---------- */

.play-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card ol { margin: 0; padding-left: 22px; color: var(--ghost-dim); }
.card li { margin-bottom: 8px; }
.card strong { color: var(--ghost); }
.note { margin: 12px 0 0; font-size: 15px; color: var(--candle); }

.controls { grid-column: 1 / -1; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--candle); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
tbody th { color: var(--ghost); white-space: nowrap; }
td { color: var(--ghost-dim); }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 7px;
  margin: 0 2px 2px 0;
  border-radius: 7px;
  border: 1px solid rgba(244, 241, 255, .3);
  border-bottom-width: 3px;
  background: rgba(244, 241, 255, .07);
  color: var(--ghost);
  font: 700 14px/1.5 var(--body);
  text-align: center;
}

/* ---------- roadmap ---------- */

.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.road li {
  position: relative;
  padding: 12px 16px 12px 48px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ghost-dim);
}

.road li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px dashed rgba(244, 241, 255, .4);
}

.road li.done { color: var(--ghost); }
.road li.done::before { border: 0; background: var(--slime); box-shadow: 0 0 12px rgba(124, 255, 107, .7); }

/* ---------- footer ---------- */

footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--ghost-dim);
  font-size: 14px;
}

footer p { margin: 0 0 8px; }

/* ---------- motion ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}

@keyframes fly {
  0% { transform: translateX(0) translateY(0) scaleY(1); }
  25% { transform: translateX(28vw) translateY(-18px) scaleY(.6); }
  50% { transform: translateX(56vw) translateY(10px) scaleY(1); }
  75% { transform: translateX(84vw) translateY(-12px) scaleY(.6); }
  100% { transform: translateX(115vw) translateY(0) scaleY(1); }
}

@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  body { font-size: 17px; }
  section { padding: 44px 0; }
  .links { gap: 12px; font-size: 15px; }
  .about { grid-template-columns: 1fr; }
  .about-pumpkin { justify-self: center; order: -1; }
  .gallery, .play-grid { grid-template-columns: 1fr; }
  .top .links a:nth-child(-n+2) { display: none; }
}
