:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111;
  --panel-2: #171717;
  --text: #f5f0df;
  --muted: #a9a191;
  --line: #2b2b2b;
  --gold: #f6b93b;
  --cheese: #ffd447;
  --red: #f04b32;
  --green: #67c15e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 212, 71, 0.08), transparent 28%),
    #000;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #000;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.art-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.art-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 22%, transparent 76%, rgba(0, 0, 0, 0.84)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.72));
}

.art-drift {
  position: absolute;
  display: flex;
  gap: 7vw;
  opacity: 0.18;
  filter: saturate(0.9) contrast(1.08);
  will-change: transform;
}

.art-drift img {
  width: clamp(140px, 18vw, 300px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 212, 71, 0.16);
  background: #000;
}

.drift-a {
  top: 9vh;
  left: -18vw;
  animation: drift-a 36s ease-in-out infinite alternate;
}

.drift-b {
  right: -16vw;
  bottom: 8vh;
  animation: drift-b 42s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate3d(-4vw, 0, 0);
  }

  to {
    transform: translate3d(20vw, 8vh, 0);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(5vw, 0, 0);
  }

  to {
    transform: translate3d(-18vw, -10vh, 0);
  }
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.loader-card img {
  width: min(260px, 72vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}

.loader-kicker {
  margin: 22px 0 10px;
  color: var(--cheese);
  font-weight: 900;
  text-transform: uppercase;
}

.loader h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(36px, 9vw, 74px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.loader-bar {
  width: min(420px, 100%);
  height: 16px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101010;
}

.loader-bar span {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--cheese) 0 18px,
      var(--gold) 18px 28px,
      var(--red) 28px 36px
    );
  transition: width 120ms linear;
}

.enter-button {
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid var(--cheese);
  border-radius: 8px;
  background: var(--cheese);
  color: #101010;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.enter-button:disabled {
  border-color: var(--line);
  background: #141414;
  color: var(--muted);
  cursor: wait;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.x-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.x-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sound-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 74px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.9);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
}

.sound-button::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.sound-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sound-off {
  display: none;
}

.sound-button.is-muted {
  color: var(--muted);
}

.sound-button.is-muted::after {
  background: var(--red);
}

.sound-button.is-muted .sound-on {
  display: none;
}

.sound-button.is-muted .sound-off {
  display: block;
}

.hero {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 42px;
  padding: 50px 0 28px;
}

.ticker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--cheese);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(52px, 9vw, 126px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subhead {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.25;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141414;
  font-weight: 900;
}

.button.primary {
  background: var(--cheese);
  border-color: var(--cheese);
  color: #111;
}

.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0f0f;
}

.ca-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ca-box strong {
  color: var(--cheese);
  font-size: 15px;
  font-weight: 900;
}

.copy-ca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141414;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: none;
}

.burger-icon {
  width: 28px;
  height: 24px;
  display: grid;
  grid-template-rows: 9px 4px 6px 5px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55));
}

.burger-icon span {
  display: block;
}

.burger-icon .bun {
  position: relative;
  background: #e89d39;
  border: 1px solid #1b1204;
}

.burger-icon .bun.top {
  border-radius: 999px 999px 5px 5px;
}

.burger-icon .bun.top::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff1b7;
  box-shadow:
    8px -1px 0 #fff1b7,
    15px 1px 0 #fff1b7;
}

.burger-icon .cheese {
  background: #ffd447;
  border-inline: 1px solid #1b1204;
}

.burger-icon .patty {
  background: #613415;
  border: 1px solid #1b1204;
  border-radius: 3px;
}

.burger-icon .bun.bottom {
  border-radius: 4px 4px 999px 999px;
}

.copy-ca.is-copied {
  border-color: rgba(103, 193, 94, 0.8);
  color: var(--green);
}

.mascot-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  will-change: transform;
}

.mascot-wrap::before {
  content: "";
  position: absolute;
  inset: 11%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 212, 71, 0.24), transparent 62%);
  filter: blur(22px);
  opacity: 0.8;
  animation: mascot-glow 4.8s ease-in-out infinite;
}

.mascot-wrap img {
  width: min(100%, 650px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.float-mascot {
  animation: mascot-float 4.8s ease-in-out infinite;
  transform-origin: center;
}

.float-mascot img {
  filter: drop-shadow(0 18px 26px rgba(246, 185, 59, 0.2));
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-24px);
  }
}

@keyframes mascot-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-drift,
  .belt-track {
    animation: none;
  }
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.strip span {
  padding: 16px 12px;
  background: #0d0d0d;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
}

.scene-belt {
  padding: 52px 0 24px;
  overflow: hidden;
}

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

.belt-head h2 {
  max-width: 720px;
  text-align: right;
}

.belt-window {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #030303;
}

.belt-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 18px 14px;
  animation: belt-loop 95s linear infinite;
}

.belt-track img {
  flex: 0 0 auto;
  width: clamp(190px, 24vw, 330px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}

.belt-window:hover .belt-track {
  animation-play-state: paused;
}

.second-lineup {
  padding-top: 0;
  padding-bottom: 76px;
}

.reverse .belt-track {
  animation-name: belt-loop-reverse;
  animation-duration: 105s;
}

@keyframes belt-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@keyframes belt-loop-reverse {
  from {
    transform: translateX(calc(-50% - 7px));
  }

  to {
    transform: translateX(0);
  }
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  padding: 28px 0 0;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-shell {
  min-height: 520px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--panel-2);
  background-size: 44px 44px;
}

.chart-shell iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

.chart-placeholder {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.chart-placeholder strong {
  color: var(--text);
  font-size: 24px;
}

code {
  color: var(--cheese);
}

.body-copy {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

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

.checks li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--text);
  font-weight: 900;
}

.definition {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 52px 0 0;
}

.definition p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 900;
}

.clips {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 22px;
  padding: 52px 0 70px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clip-grid {
  display: grid;
  gap: 12px;
}

.clip-grid article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.clip-grid span {
  color: var(--red);
  font-weight: 900;
}

.clip-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  nav {
    gap: 10px;
    font-size: 12px;
  }

  .hero,
  .grid,
  .definition,
  .clips {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .mascot-wrap {
    order: -1;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .belt-head {
    display: block;
  }

  .belt-head h2 {
    text-align: left;
  }

  .chart-shell,
  .chart-shell iframe {
    min-height: 430px;
    height: 430px;
  }
}
