@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&display=swap");

:root {
  color: #ffffff;
  background: #080202;
  font-family: Poppins, Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
}

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

button {
  font: inherit;
}

.hero-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 48%, rgba(146, 14, 10, 0.42), transparent 24%),
    radial-gradient(circle at 76% 28%, rgba(208, 14, 12, 0.25), transparent 22%),
    #080202;
  perspective: 900px;
  isolation: isolate;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 26%, rgba(0, 0, 0, 0.56));
  z-index: 3;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
}

.site-header {
  position: absolute;
  top: clamp(22px, 4vw, 48px);
  left: clamp(22px, 4vw, 56px);
  right: clamp(22px, 4vw, 56px);
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand-stack,
.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.brand-mark {
  min-width: 62px;
  min-height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  line-height: 0.86;
  text-transform: lowercase;
  opacity: 0;
}

.header-brand-logo {
  display: block;
  width: clamp(132px, 10vw, 196px);
  height: auto;
  min-height: 0;
  filter: invert(1) brightness(2.35) contrast(1.12);
}

.adidas-mark {
  position: relative;
  align-content: end;
  padding-top: 22px;
  font-size: 13px;
}

.adidas-mark::before {
  content: "";
  position: absolute;
  top: 0;
  width: 42px;
  height: 26px;
  background:
    linear-gradient(72deg, transparent 38%, #fff 39% 56%, transparent 57%),
    linear-gradient(108deg, transparent 38%, #fff 39% 56%, transparent 57%),
    linear-gradient(0deg, transparent 38%, #fff 39% 57%, transparent 58%);
  clip-path: polygon(50% 0, 100% 72%, 62% 72%, 62% 100%, 38% 100%, 38% 72%, 0 72%);
}

.locker-mark {
  width: 74px;
  min-width: 74px;
  min-height: 48px;
  padding: 5px 6px;
  background: #fff;
  color: #221111;
  font-size: 18px;
  text-transform: none;
  place-items: center start;
}

.top-nav {
  justify-content: flex-end;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.collection-link {
  min-width: 210px;
  padding: 17px 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  text-align: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.collection-link:hover {
  color: #170303;
  background: #fff;
  transform: translateY(-1px);
}

.language-link {
  padding: 13px 0;
}

.menu-button {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: currentColor;
}

.copy-layer {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 4;
  width: min(780px, calc(100vw - 36px));
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.mode-main .copy-layer {
  top: auto;
  bottom: clamp(84px, 9vw, 128px);
  width: min(620px, calc(100vw - 36px));
}

.hero-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  transform-style: preserve-3d;
}

.hero-title {
  margin: 0;
  color: #ff1711;
  font-size: clamp(34px, 4.3vw, 82px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.58);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.mode-main .hero-title {
  color: #fff;
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.82);
}

.mode-main .hero-kicker {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.kit-hover-copy {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 4;
  width: min(420px, 34vw);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

.kit-hover-copy.kit-away {
  left: 23%;
  top: 56%;
}

.kit-hover-copy.kit-home {
  left: 50%;
  top: 56%;
}

.kit-hover-copy.kit-third {
  left: 76%;
  top: 56%;
}

.kit-eyebrow {
  margin: 0 0 8px;
  color: #018d45;
  font-size: var(--kit-eyebrow-size, clamp(16px, 1.7vw, 30px));
  font-style: italic;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  transform-style: preserve-3d;
  text-shadow: none;
}

.kit-title {
  margin: 0;
  color: #fff;
  font-size: var(--kit-title-size, clamp(34px, 4.1vw, 78px));
  font-style: italic;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  transform-style: preserve-3d;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.kit-title-line,
.kit-title-char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.kit-title-line {
  display: block;
}

.kit-underline {
  display: block;
  width: clamp(28px, 3.2vw, 56px);
  height: 4px;
  margin-top: 18px;
  background: #008d45;
  box-shadow: 0 0 16px rgba(0, 168, 81, 0.45);
}

.mode-main .title-line {
  display: inline-block;
  padding: 9px 18px 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.08);
}

.title-line {
  display: block;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  white-space: nowrap;
  will-change: transform;
}

.title-char {
  display: inline-block;
  min-width: 0.02em;
  transform-style: preserve-3d;
  transform-origin: 50% 54%;
  will-change: transform, opacity;
  backface-visibility: visible;
}

.title-space {
  width: 0.28em;
}

.scene-status {
  position: absolute;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(52px, 7vw, 84px);
  z-index: 5;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 12, 0.42);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
  backdrop-filter: blur(16px);
}

.scene-controls {
  position: absolute;
  top: 132px;
  right: clamp(18px, 3vw, 32px);
  z-index: 7;
  width: min(380px, calc(100vw - 36px));
  max-height: calc(100svh - 230px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 10, 10, 0.58);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.scene-controls.is-collapsed {
  width: 230px;
  max-height: none;
  overflow: visible;
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.scene-controls.is-collapsed .controls-header {
  margin-bottom: 0;
}

.controls-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls-header strong,
.json-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.controls-header button,
.json-tools button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
  min-height: 30px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
}

.controls-grid {
  display: grid;
  gap: 9px;
}

.control-section-title {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.control-field {
  display: grid;
  gap: 5px;
}

.control-field > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 66px;
  align-items: center;
  gap: 10px;
}

.control-row input[type="range"] {
  width: 100%;
  accent-color: #ff2119;
}

.control-row input[type="number"] {
  width: 66px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 4px 6px;
  font-size: 11px;
}

.json-tools {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.json-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.json-tools textarea {
  width: 100%;
  height: 180px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.88);
  padding: 10px;
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.json-error {
  margin: 0;
  color: #ff6c66;
  font-size: 11px;
}

.legal-line {
  position: absolute;
  left: clamp(18px, 3vw, 32px);
  bottom: 16px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  white-space: nowrap;
}

.storyboard-id {
  position: fixed;
  right: clamp(18px, 2.8vw, 34px);
  bottom: clamp(16px, 2.2vw, 30px);
  z-index: 45;
  min-width: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(10px);
}

.back-to-hero {
  position: absolute;
  left: clamp(22px, 4vw, 56px);
  top: 128px;
  z-index: 7;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.back-to-hero:hover {
  background: #fff;
  color: #050505;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  pointer-events: auto;
}

.intro-screen::before,
.intro-screen::after,
.intro-vignette {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-screen::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, 0.035) 50%, transparent 70%);
  opacity: 0.75;
}

.intro-screen::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 44px);
  mix-blend-mode: screen;
  opacity: 0.2;
}

.intro-vignette {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 33%, rgba(0, 0, 0, 0.62) 73%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.94));
  z-index: 1;
}

.intro-smoke,
.intro-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.intro-smoke span {
  position: absolute;
  width: clamp(320px, 34vw, 620px);
  height: clamp(180px, 22vw, 390px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 50%, rgba(255, 255, 255, 0.1), transparent 58%),
    radial-gradient(circle at 58% 42%, rgba(0, 130, 80, 0.11), transparent 62%);
  filter: blur(42px);
  opacity: 0.2;
  mix-blend-mode: screen;
}

.intro-smoke span:nth-child(1) {
  left: 8%;
  top: 36%;
}

.intro-smoke span:nth-child(2) {
  right: 6%;
  top: 24%;
}

.intro-smoke span:nth-child(3) {
  left: 34%;
  bottom: 4%;
}

.intro-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.32);
  opacity: 0.24;
}

.intro-stage {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100vw - 44px));
  height: min(680px, calc(100svh - 56px));
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.intro-brand {
  position: absolute;
  left: 50%;
  top: 44%;
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.intro-brand-logo {
  display: block;
  width: clamp(150px, 12vw, 230px);
  height: auto;
  filter: invert(1) brightness(2.45) contrast(1.12);
}

.loading-track {
  position: absolute;
  left: 50%;
  top: calc(44% + 118px);
  width: min(390px, 62vw);
  display: grid;
  gap: 11px;
  transform: translateX(-50%);
}

.loading-track-bg {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(118, 118, 118, 0.58);
}

.loading-track-fill,
.loading-track-liquid {
  position: absolute;
  inset: 0;
  display: block;
}

.loading-track-fill {
  background:
    linear-gradient(
      90deg,
      #008c3f 0%,
      #0aa84f 33%,
      #f5f6f0 33%,
      #ffffff 66%,
      #c71316 66%,
      #ff1f24 100%
    );
  background-size: min(390px, 62vw) 100%;
  background-repeat: no-repeat;
  width: 0%;
  right: auto;
  border-radius: inherit;
  box-shadow: none;
}

.loading-track-liquid {
  width: 46%;
  background:
    radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.48), transparent 18%),
    radial-gradient(circle at 72% 46%, rgba(255, 255, 255, 0.34), transparent 16%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  mix-blend-mode: screen;
  filter: blur(4px);
}

.loading-percent {
  justify-self: end;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.loading-experience,
.intro-presents {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.loading-experience {
  top: calc(44% + 182px);
}

.intro-presents {
  top: calc(50% + 72px);
  filter: blur(16px);
}

.intro-armor,
.intro-goal {
  position: absolute;
  left: 50%;
  top: 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(41px, 4.85vw, 83px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  will-change: transform, opacity, filter;
}

.intro-goal {
  top: 52%;
  font-size: clamp(41px, 4.85vw, 83px);
  transform-style: preserve-3d;
}

.armor-char,
.goal-char {
  display: inline-block;
  min-width: 0.42em;
  will-change: transform, opacity, filter;
}

.armor-o {
  color: #fff;
  text-shadow: none;
}

.intro-goal .goal-char {
  transform-origin: center 65%;
}

.intro-goal .goal-anchor-o {
  color: #fff;
  text-shadow: none;
}

.skip-intro-button {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3.2vw, 44px);
  z-index: 6;
  transform: translateX(-50%);
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.skip-intro-button:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .brand-stack {
    gap: 10px;
  }

  .brand-mark {
    transform-origin: left top;
  }

  .locker-mark {
    width: 58px;
    min-width: 58px;
    min-height: 40px;
    font-size: 14px;
  }

  .adidas-mark {
    min-width: 48px;
    font-size: 11px;
  }

  .collection-link {
    min-width: 0;
    width: 46px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    position: relative;
  }

  .collection-link::after {
    content: "";
    position: absolute;
    inset: 13px 12px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  .language-link {
    display: none;
  }

  .copy-layer {
    top: 63%;
  }

  .mode-main .copy-layer {
    top: auto;
    bottom: 96px;
  }

  .hero-title {
    font-size: clamp(24px, 6vw, 38px);
  }

  .mode-main .hero-title {
    font-size: clamp(22px, 7vw, 34px);
  }

  .scene-status {
    left: 18px;
    right: 18px;
    bottom: 44px;
  }

  .scene-controls {
    top: auto;
    left: 18px;
    right: 18px;
    bottom: 86px;
    width: auto;
    max-height: 36svh;
  }

  .scene-controls.is-collapsed {
    left: auto;
    width: 216px;
  }

  .legal-line {
    max-width: calc(100vw - 36px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .loading-title {
    flex-wrap: wrap;
  }

  .loading-scan {
    height: 120px;
  }
}
