:root {
  --bg: #070707;
  --panel: #0c0c0c;
  --panel-light: #111;
  --ink: #f3f1e9;
  --muted: #8c8c88;
  --line: rgba(255, 255, 255, 0.12);
  --acid: #c7ff1a;
  --green: #1ed760;
  --purple: #9f76ff;
  --player-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--acid) var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  cursor: none;
}

button,
a,
input {
  cursor: none;
}

button {
  color: inherit;
  font: inherit;
}

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

#background-canvas {
  position: fixed;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--acid);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(199, 255, 26, 0.6);
  transition: width 0.25s, height 0.25s, background 0.25s;
}

.cursor-ring.is-hovering {
  width: 58px;
  height: 58px;
  background: rgba(199, 255, 26, 0.1);
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 86px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.logo i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
  animation: pulse 1.8s ease-in-out infinite;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.build-progress {
  width: 70px;
  height: 2px;
  overflow: hidden;
  background: #333;
}

.build-progress i {
  display: block;
  width: 74%;
  height: 100%;
  background: var(--acid);
  animation: load-line 2s cubic-bezier(0.7, 0, 0.2, 1) both;
}

.contact-link {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-link svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.25s;
}

.contact-link:hover svg {
  transform: translate(3px, -3px);
}

main {
  padding-bottom: var(--player-height);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 130px 5vw 60px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  width: min(46vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(159, 118, 255, 0.16);
  filter: blur(120px);
  animation: blob-float 9s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, 84vw);
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px 0.7vw;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--acid);
}

h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(63px, 11.8vw, 185px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.72;
  text-transform: uppercase;
}

h1 .line {
  display: block;
  overflow: hidden;
  padding-right: 0.08em;
  white-space: nowrap;
}

h1 .line > span {
  display: inline-block;
  animation: title-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-two {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 233, 0.75);
  transform: translateX(7vw);
}

.line-two > span {
  animation-delay: 0.12s !important;
}

.line-three {
  transform: translateX(17vw);
}

.line-three > span {
  animation-delay: 0.24s !important;
}

.line-three b {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--acid);
  font-size: 0.76em;
  font-weight: 800;
  letter-spacing: -0.1em;
  transform: rotate(10deg);
  animation: smile-in 0.9s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, smile-float 3s 1.6s ease-in-out infinite;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 72%;
  margin: 45px 0 0 auto;
}

.hero-bottom p,
.section-title p {
  margin: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-transform: uppercase;
}

.reveal {
  animation: fade-up 0.8s 0.85s ease both;
}

.scroll-button {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.25s, background 0.25s;
  animation: float 2.4s ease-in-out infinite;
}

.scroll-button:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bg);
}

.scroll-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.side-copy {
  position: absolute;
  z-index: 2;
  bottom: 12vh;
  display: flex;
  gap: 28px;
  color: #676763;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.side-copy-left {
  left: 3vw;
}

.side-copy-right {
  right: 3vw;
  transform: rotate(180deg);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 16s linear infinite;
}

.orbit span {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.orbit-one {
  right: -10vw;
  top: 8vh;
  width: 33vw;
  height: 33vw;
}

.orbit-two {
  left: -8vw;
  bottom: 3vh;
  width: 19vw;
  height: 19vw;
  animation-direction: reverse;
  animation-duration: 11s;
}

.orbit-two span {
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
}

.playground {
  min-height: 100vh;
  padding: 9vw 7vw 12vw;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.88), #070707 25%);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-number {
  display: block;
  margin-bottom: 14px;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.section-title h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(48px, 7.5vw, 110px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.section-title h2 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--ink);
}

.game-shell {
  border: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.82);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.game-topline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.game-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.game-stat:last-child {
  border: 0;
}

.game-stat span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-stat strong {
  font-family: "DM Mono", monospace;
  font-size: 16px;
  font-weight: 400;
}

.game-stage {
  position: relative;
  height: min(62vh, 600px);
  min-height: 390px;
  overflow: hidden;
  cursor: crosshair;
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(circle at center, #000, transparent 77%);
}

.stage-message {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.35s, transform 0.35s;
}

.stage-message.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.message-index {
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stage-message h3 {
  margin: 18px 0 28px;
  font-family: "Syne", sans-serif;
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: -0.07em;
  line-height: 0.86;
  text-transform: uppercase;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px 14px 23px;
  border: 0;
  border-radius: 40px;
  background: var(--acid);
  color: var(--bg);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s, box-shadow 0.25s;
}

.start-button:hover {
  box-shadow: 0 0 32px rgba(199, 255, 26, 0.25);
  transform: scale(1.04);
}

.start-button svg {
  width: 27px;
  height: 27px;
  padding: 7px;
  border-radius: 50%;
  background: var(--bg);
  fill: var(--acid);
}

.target {
  position: absolute;
  z-index: 3;
  display: none;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 30px rgba(199, 255, 26, 0.12);
  transform: translate(-50%, -50%);
  animation: target-pulse 0.9s ease-in-out infinite alternate;
}

.target span,
.target i,
.target b {
  position: absolute;
  inset: 50% auto auto 50%;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.target span {
  width: 9px;
  height: 9px;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.target i {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(199, 255, 26, 0.45);
}

.target b {
  width: 88px;
  height: 1px;
  border-radius: 0;
  background: rgba(199, 255, 26, 0.5);
  box-shadow: 0 0 0;
}

.target b::after {
  position: absolute;
  left: 50%;
  top: -44px;
  content: "";
  width: 1px;
  height: 88px;
  background: rgba(199, 255, 26, 0.5);
}

.ticker {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  color: var(--bg);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  font-family: "Syne", sans-serif;
  font-size: clamp(25px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  animation: marquee 18s linear infinite;
}

.ticker-track i {
  font-size: 0.5em;
  font-style: normal;
}

.music-player {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  width: 100%;
  height: var(--player-height);
  padding: 10px 18px;
  border-top: 1px solid #262626;
  background: rgba(3, 3, 3, 0.96);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.track-info {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.cover {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #151515;
}

.cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, #222 0 2px, #070707 3px 7px);
}

.cover-fallback span {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.track-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}

.track-copy > span {
  color: #a7a7a7;
}

.track-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.track-title strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
}

.heart-button,
.control-button,
.play-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
}

.heart-button {
  margin-left: 12px;
}

.heart-button svg {
  width: 17px;
  fill: none;
  stroke: #aaa;
  stroke-width: 1.6;
  transition: fill 0.2s, stroke 0.2s, transform 0.2s;
}

.heart-button.is-liked svg {
  fill: var(--green);
  stroke: var(--green);
  transform: scale(1.1);
}

.player-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.control-button {
  color: #a7a7a7;
  transition: color 0.2s, transform 0.2s;
}

.control-button:hover,
.control-button.active {
  color: var(--green);
  transform: scale(1.08);
}

.control-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.play-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform 0.2s;
}

.play-button:hover {
  transform: scale(1.08);
}

.play-button svg {
  width: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.play-button .pause-icon {
  display: none;
}

.play-button.is-playing .play-icon {
  display: none;
}

.play-button.is-playing .pause-icon {
  display: block;
}

.progress-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-family: "DM Mono", monospace;
  font-size: 8px;
}

input[type="range"] {
  --range-progress: 0%;
  width: 100%;
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 5px;
  outline: none;
  background: linear-gradient(to right, #fff var(--range-progress), #4c4c4c var(--range-progress));
}

input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

input[type="range"]:hover::-webkit-slider-thumb {
  opacity: 1;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

#volume {
  max-width: 95px;
  --range-progress: 80%;
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes smile-in {
  from { opacity: 0; transform: rotate(30deg) scale(0); }
  to { opacity: 1; transform: rotate(10deg) scale(1); }
}

@keyframes smile-float {
  50% { transform: rotate(2deg) translateY(-8px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

@keyframes load-line {
  from { width: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blob-float {
  to { transform: translate(14vw, 7vh) scale(1.15); }
}

@keyframes float {
  50% { transform: translateY(8px); }
}

@keyframes target-pulse {
  to { transform: translate(-50%, -50%) scale(1.12) rotate(45deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 850px) {
  :root {
    --player-height: 86px;
  }

  body,
  button,
  a,
  input {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring,
  .topbar-center,
  .player-right,
  .heart-button,
  .side-copy {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr 1fr;
    height: 70px;
    padding: 0 20px;
  }

  .hero {
    min-height: 90svh;
    padding: 110px 20px 50px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 88px);
    line-height: 0.79;
  }

  h1 .line {
    max-width: 100%;
  }

  .contact-link span {
    display: none;
  }

  .contact-link svg {
    width: 18px;
  }

  .line-two {
    transform: translateX(0);
  }

  .line-three {
    transform: translateX(4vw);
  }

  .hero-bottom {
    width: 100%;
    margin-top: 36px;
  }

  .orbit-one {
    width: 75vw;
    height: 75vw;
  }

  .orbit-two {
    width: 44vw;
    height: 44vw;
  }

  .playground {
    min-height: auto;
    padding: 90px 15px 100px;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    margin-top: 24px;
  }

  .game-stat {
    padding: 14px 12px;
  }

  .game-stat span {
    display: none;
  }

  .game-stage {
    height: 55vh;
  }

  .music-player {
    grid-template-columns: 1fr 1fr;
    padding: 9px 12px;
  }

  .player-center {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
  }

  .controls {
    gap: 11px;
  }

  .controls .control-button:first-child,
  .controls .control-button:last-child,
  .controls #previous {
    display: none;
  }

  .progress-row {
    display: none;
  }

  .cover {
    width: 52px;
    height: 52px;
  }

  .track-info {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
