@font-face {
  font-family: "Pixelify UG";
  src: url("assets/fonts/PixelifySans-UG.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #120a1c;
  --bg-2: #1b1029;
  --panel: rgba(30, 18, 44, 0.72);
  --line: rgba(242, 196, 106, 0.28);
  --gold: #f2c46a;
  --gold-2: #ffdf9a;
  --ember: #f08a2c;
  --ember-2: #ffb347;
  --violet: #9b5cff;
  --text: #efe6d8;
  --muted: #b9a9c4;
  --pixel: "Pixelify UG", "Courier New", monospace;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 4px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--pixel);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(30px, 4.2vw, 50px); color: var(--gold-2); text-shadow: 0 2px 0 #000, 0 0 24px rgba(240, 138, 44, 0.35); }
h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--text); }

h2, .hero__hook, .hero__lead, .section__lead, .finale p, .card p { text-wrap: balance; }

section[id] { scroll-margin-top: 70px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: #000;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin: 0 0 14px;
}

.btn {
  --b: #2a1206;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: #1a0d04;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--ember-2) 45%, var(--ember) 100%);
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 2px var(--b),
    0 0 0 4px var(--gold),
    0 6px 0 4px #5a2a0b,
    0 10px 30px rgba(240, 138, 44, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 2px var(--b),
    0 0 0 4px var(--gold-2),
    0 8px 0 4px #5a2a0b,
    0 14px 44px rgba(255, 179, 71, 0.6);
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--b), 0 0 0 4px var(--gold), 0 2px 0 4px #5a2a0b; }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 6px; }
.btn--big { font-size: clamp(20px, 2vw, 24px); padding: 18px 34px; }
.btn--small { font-size: 16px; padding: 8px 16px; box-shadow: 0 0 0 2px var(--b), 0 0 0 3px var(--gold), 0 4px 0 3px #5a2a0b; }
.btn--small:hover { box-shadow: 0 0 0 2px var(--b), 0 0 0 3px var(--gold-2), 0 5px 0 3px #5a2a0b, 0 8px 22px rgba(255, 179, 71, 0.5); }
.btn--ghost {
  color: var(--text);
  background: rgba(18, 10, 28, 0.55);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 2px var(--line), 0 0 0 4px rgba(0, 0, 0, 0.35);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  color: var(--gold-2);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(155, 92, 255, 0.35);
}
.btn__glyph { font-size: 0.9em; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-solid {
  background: rgba(14, 8, 22, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold-2);
  font-family: var(--pixel);
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav.is-solid .nav__brand { opacity: 1; }
.nav__brand img { width: 44px; height: 44px; object-fit: contain; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
  font-family: var(--pixel);
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}
.nav__links a:hover { color: var(--gold-2); opacity: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px 16px 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url("assets/hero.webp") center 40% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(18, 10, 28, 0.25) 0%, rgba(18, 10, 28, 0.62) 62%, rgba(18, 10, 28, 0.9) 100%),
    linear-gradient(180deg, rgba(18, 10, 28, 0.5) 0%, rgba(18, 10, 28, 0) 25%, rgba(18, 10, 28, 0) 60%, var(--bg) 100%);
}
@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}
.hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: var(--ember-2);
  box-shadow: 0 0 8px 2px rgba(255, 150, 60, 0.8);
  opacity: 0;
  animation: rise linear infinite;
}
.ember--violet { background: #c9a2ff; box-shadow: 0 0 8px 2px rgba(155, 92, 255, 0.85); }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translate3d(var(--sway, 30px), -105vh, 0); opacity: 0; }
}
.hero__inner { max-width: 860px; }
.hero__logo { margin: 0 auto 6px; width: min(460px, 78vw); }
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(155, 92, 255, 0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__hook {
  font-family: var(--pixel);
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--gold-2);
  margin: 6px 0 10px;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, 0.9);
}
.hero__lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.hero__meta {
  margin: 28px 0 0;
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-shadow: 0 1px 8px #000;
}
.hero__down {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.hero__down span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gold);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

.meander {
  height: 22px;
  margin: 0 auto;
  max-width: var(--max);
  opacity: 0.55;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22' viewBox='0 0 28 22'%3E%3Cpath d='M0 19H26V3H8V14H20V8H14' fill='none' stroke='%23f2c46a' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / 28px 22px;
  border-top: 2px solid rgba(242, 196, 106, 0.5);
  border-bottom: 2px solid rgba(242, 196, 106, 0.5);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) clamp(16px, 4vw, 40px);
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section__lead { color: var(--muted); font-size: 19px; margin: 18px 0 0; }

.frame {
  position: relative;
  background: #07040c;
  border: 2px solid rgba(242, 196, 106, 0.55);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.6),
    0 0 0 6px rgba(242, 196, 106, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.6);
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(242, 196, 106, 0.7));
}
.frame::before { top: -8px; left: -8px; }
.frame::after { bottom: -8px; right: -8px; }

.video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s ease; }
.video:hover img, .video:focus-visible img { filter: brightness(1.12); }
.video:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember-2), var(--ember));
  box-shadow: 0 0 0 4px #2a1206, 0 0 0 7px var(--gold), 0 0 50px rgba(240, 138, 44, 0.8);
  transition: transform 0.2s ease;
}
.video__play::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 28px;
  border-style: solid;
  border-width: 20px 0 20px 30px;
  border-color: transparent transparent transparent #1a0d04;
}
.video:hover .video__play { transform: scale(1.08); }
.video__note {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-family: var(--pixel);
  font-size: 13px;
  color: rgba(239, 230, 216, 0.75);
  text-shadow: 0 1px 4px #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.descent { position: relative; }
.realm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  margin: 0 0 clamp(60px, 8vw, 110px);
}
.realm:last-child { margin-bottom: 0; }
.realm--flip .realm__media { order: 2; }
.realm__media {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
}
.realm__media video {
  max-height: 520px;
  width: auto;
  image-rendering: pixelated;
  border-radius: 2px;
}
.realm__num {
  font-family: var(--pixel);
  font-size: 46px;
  line-height: 1;
  color: var(--ember);
  text-shadow: 0 0 22px rgba(240, 138, 44, 0.55);
  margin: 0 0 10px;
}
.realm__num span { font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-shadow: none; vertical-align: middle; }
.realm__text h3 { margin-bottom: 14px; }
.realm__text p:last-child { color: var(--muted); margin: 0; }

.bestiary { position: relative; }
.bestiary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 55%, rgba(155, 92, 255, 0.14), transparent 65%);
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  text-align: center;
  padding: 18px 14px 20px;
  background: linear-gradient(180deg, rgba(36, 22, 52, 0.85), rgba(16, 9, 24, 0.9));
  border: 2px solid rgba(242, 196, 106, 0.25);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 30px color-mix(in srgb, var(--glow) 45%, transparent);
}
.card__art {
  height: 170px;
  display: grid;
  place-items: end center;
  margin-bottom: 14px;
  background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 70%);
}
.card__art img {
  max-height: 160px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}
.card:hover .card__art img { transform: scale(1.06); }
.card h3 { font-size: 21px; color: var(--gold-2); margin-bottom: 6px; }
.card p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); font-style: italic; }
.card--unknown .card__art img {
  filter: drop-shadow(0 0 1px #c9a2ff) drop-shadow(0 0 10px rgba(155, 92, 255, 0.9));
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.shots a {
  display: block;
  height: 100%;
  border: 2px solid rgba(242, 196, 106, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; }
.shots a:hover img, .shots a:focus-visible img { transform: scale(1.05); filter: brightness(1.1); }
.shots a:hover, .shots a:focus-visible { border-color: var(--gold); }

.finale {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: clamp(90px, 12vw, 160px) 16px;
  overflow: hidden;
}
.finale__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/shots/32_storm.webp") center / cover no-repeat;
}
.finale__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 10, 28, 0.72) 30%, rgba(18, 10, 28, 0.72) 70%, var(--bg) 100%);
}
.finale__inner { max-width: 720px; margin: 0 auto; }
.finale h2 { font-size: clamp(36px, 5.5vw, 64px); }
.finale p { font-size: 20px; margin: 16px 0 32px; text-shadow: 0 1px 10px #000; }
.finale__meta { font-family: var(--pixel); font-size: 15px !important; color: var(--muted); letter-spacing: 0.08em; margin: 28px 0 0 !important; }
.follow {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.follow a {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(18, 10, 28, 0.7);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.follow a:hover, .follow a:focus-visible { border-color: var(--gold); color: var(--gold-2); }

.footer {
  text-align: center;
  padding: 34px 16px 44px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.footer p { margin: 4px 0; }

.gauge {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.gauge.is-on { opacity: 1; }
.gauge__label {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.gauge__track {
  position: relative;
  width: 4px;
  height: 34vh;
  background: rgba(242, 196, 106, 0.18);
}
.gauge__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--gold), var(--ember), #c2321f);
}
.gauge__dot {
  position: absolute;
  left: 50%;
  top: var(--p, 0%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--ember-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 12px var(--ember);
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(6, 3, 10, 0.92); }
.lightbox img { max-width: 94vw; max-height: 88vh; border: 2px solid var(--gold); border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(18, 10, 28, 0.85);
  color: var(--gold-2);
  font-size: 18px;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .gauge { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero__bg { background-image: url("assets/hero_small.webp"); background-position: 35% 40%; }
  .nav__links { display: none; }
  .hero { padding: 84px 16px 70px; }
  .hero__logo { width: min(300px, 62vw); }
  .hero__lead { margin-bottom: 24px; }
  .eyebrow { font-size: 13px; }
  .nav .btn--small { margin-left: auto; }
  .realm, .realm--flip { grid-template-columns: 1fr; }
  .realm--flip .realm__media { order: 0; }
  .realm__media video { max-height: 420px; }
  .realm__text { text-align: center; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__art { height: 140px; }
  .card__art img { max-height: 130px; }
  .shots li:first-child { grid-column: span 2; grid-row: auto; }
  .btn--big { width: 100%; justify-content: center; }
  .hero__cta { gap: 18px; }
  .btn--ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg, .hero__logo img, .card--unknown .card__art img, .hero__down span { animation: none; }
  .hero__embers { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
