:root {
  color-scheme: dark;
  --black: #050506;
  --ink: #d9d3c7;
  --muted: #706a63;
  --ratio: 1.7778;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(22, 22, 24, 0.44), transparent 52%),
    #030304;
  color: var(--ink);
  font-family: "Press Start 2P", "Silkscreen", "VT323", "Courier New", monospace;
  letter-spacing: 0;
}

.scroll {
  width: 100%;
}

.scene {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #030304;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  opacity: 0.42;
  pointer-events: none;
}

.media-frame {
  --ratio: 1.7778;
  position: relative;
  width: min(100vw, calc(100svh * var(--ratio)));
  height: min(100svh, calc(100vw / var(--ratio)));
  max-width: 100vw;
  max-height: 100svh;
  overflow: hidden;
  background: #030304;
}

.scene-media,
.scene-gif {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  background: #030304;
}

.brand {
  position: absolute;
  top: clamp(14px, 3vw, 32px);
  left: clamp(14px, 3vw, 32px);
  z-index: 3;
  display: grid;
  gap: 0.45rem;
  pointer-events: none;
  text-shadow: 0 2px 0 #000, 0 0 20px rgba(182, 196, 210, 0.18);
}

.brand span:first-child {
  font-size: clamp(1rem, 2vw, 1.75rem);
  line-height: 1;
}

.brand span:last-child {
  color: var(--muted);
  font-size: clamp(0.58rem, 1vw, 0.85rem);
  line-height: 1;
}

.hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  cursor: pointer;
  opacity: 0;
  touch-action: manipulation;
}

.hotspot:focus-visible {
  opacity: 1;
  outline: 2px dashed rgba(217, 211, 199, 0.48);
  outline-offset: 2px;
}

/* Tune these percentages if the embedded artwork buttons move in a future export. */
.hotspot--buy {
  left: var(--buy-x, 36%);
  top: var(--buy-y, 78%);
  width: var(--buy-w, 28%);
  height: var(--buy-h, 8%);
}

.hotspot--x {
  left: var(--x-x, 27%);
  top: var(--x-y, 88%);
  width: var(--x-w, 14%);
  height: var(--x-h, 7%);
}

.hotspot--telegram {
  left: var(--tg-x, 59%);
  top: var(--tg-y, 88%);
  width: var(--tg-w, 14%);
  height: var(--tg-h, 7%);
}

.scene--one {
  --buy-x: 86.8%;
  --buy-y: 20.5%;
  --buy-w: 12.4%;
  --buy-h: 20.5%;
  --x-x: 3.2%;
  --x-y: 62.4%;
  --x-w: 10.6%;
  --x-h: 19%;
  --tg-x: 14%;
  --tg-y: 62.5%;
  --tg-w: 10.8%;
  --tg-h: 18.2%;
}

.scene--three {
  --x-x: 14%;
  --x-y: 86.8%;
  --x-w: 9.6%;
  --x-h: 11.8%;
  --tg-x: 23.8%;
  --tg-y: 84.6%;
  --tg-w: 10.5%;
  --tg-h: 13.2%;
}

@media (max-width: 720px) {
  .brand {
    top: 12px;
    left: 12px;
  }

  .brand span:first-child {
    font-size: 0.82rem;
  }

  .brand span:last-child {
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
