:root {
  color-scheme: dark;
  --ink: #020a22;
  --navy: #031b5a;
  --blue: #0753d5;
  --cyan: #3eeaff;
  --cyan-soft: #a5f7ff;
  --orange: #ff7a19;
  --orange-light: #ffbc37;
  --green: #23dc79;
  --paper: #eefcff;
  --glass: rgba(2, 22, 78, 0.7);
  --line: rgba(78, 228, 255, 0.38);
  --shadow: rgba(1, 8, 29, 0.48);
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: #020817;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow: hidden;
  background: #020817;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.stage {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--navy);
}

.scene,
.scene__image,
.scene__vignette,
.scene__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: -3;
  overflow: hidden;
  background: #06266a;
}

.scene__image {
  inset: -4%;
  background-image: url("assets/stunk-city-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -7px), 0)
    scale(1.05);
  transition: transform 180ms ease-out;
}

.scene__vignette {
  background:
    linear-gradient(90deg, rgba(1, 11, 44, 0.92) 0%, rgba(1, 18, 66, 0.7) 31%, rgba(2, 26, 87, 0.08) 66%),
    linear-gradient(0deg, rgba(2, 8, 28, 0.76) 0%, transparent 30%, rgba(1, 9, 35, 0.16) 100%);
}

.scene__grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(79, 226, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 226, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 48%);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -24px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(62, 234, 255, 0.9);
  opacity: 0;
  animation: rise var(--duration) linear var(--delay) infinite;
}

.orange-streak {
  position: absolute;
  right: -14%;
  width: 48%;
  height: 3px;
  transform-origin: right center;
  transform: rotate(-27deg);
  background: linear-gradient(90deg, transparent, var(--orange-light), transparent);
  filter: drop-shadow(0 0 10px var(--orange));
  opacity: 0.72;
  animation: streak 4.8s ease-in-out infinite;
}

.orange-streak--one {
  top: 24%;
}

.orange-streak--two {
  top: 42%;
  right: -5%;
  width: 35%;
  animation-delay: -2.1s;
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(18px, 2.4vw, 46px) clamp(22px, 4.7vw, 90px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 3px 0 #020817;
}

.wordmark__spark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #04102e;
  border-radius: 11px;
  background: var(--orange);
  color: #05153f;
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 1000;
  box-shadow: 3px 4px 0 #03102e;
  transform: rotate(-5deg);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.pill {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  padding: 0 20px;
  border: 2px solid rgba(106, 235, 255, 0.56);
  border-radius: 999px;
  color: #fff;
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 4, 25, 0.25);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pill::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 46%, transparent 70%);
  content: "";
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.pill:hover::before,
.pill:focus-visible::before {
  transform: translateX(120%);
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--cyan);
  background: rgba(20, 90, 202, 0.84);
  outline: none;
  transform: translateY(-3px) rotate(-1deg);
}

.pill--glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.pill__icon {
  font-size: 1rem;
}

.pill__dot {
  width: 10px;
  height: 10px;
  border: 2px solid #06132e;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(35, 220, 121, 0.8);
}

.hero {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(500px, 0.94fr) minmax(570px, 1.06fr);
  align-items: center;
  gap: 1vw;
  padding: clamp(100px, 8vw, 146px) clamp(32px, 5.5vw, 106px) clamp(88px, 7.2vw, 132px);
}

.hero__copy {
  position: relative;
  z-index: 5;
  max-width: 770px;
  padding-top: 1.5vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1vh;
  padding: 8px 13px;
  border: 1px solid rgba(124, 238, 255, 0.46);
  border-radius: 999px;
  background: rgba(3, 29, 99, 0.62);
  color: var(--cyan-soft);
  font-size: clamp(0.72rem, 0.68vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  backdrop-filter: blur(12px);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(35, 220, 121, 0.6);
  animation: live 1.8s ease-out infinite;
}

.title {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5.4rem, 7.6vw, 9.2rem);
  font-weight: 1000;
  letter-spacing: -0.035em;
  line-height: 0.73;
  text-transform: uppercase;
  transform: skewY(-2deg);
}

.title span {
  display: block;
  width: max-content;
  -webkit-text-stroke: clamp(2px, 0.2vw, 4px) #030b20;
  paint-order: stroke fill;
  filter: drop-shadow(0.055em 0.07em 0 #04102f);
}

.title__stunk {
  color: #f4fdff;
}

.title__baton {
  margin-left: 0.19em;
  color: var(--orange);
  text-shadow: 0 0 32px rgba(255, 114, 20, 0.25);
}

.manifesto {
  margin: clamp(20px, 2.3vh, 30px) 0 0;
  color: #d8faff;
  font-size: clamp(1.15rem, 1.32vw, 1.62rem);
  line-height: 1.34;
  text-shadow: 0 2px 12px #01103c;
}

.manifesto strong {
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(20px, 2.5vh, 32px);
}

.ca-button {
  position: relative;
  display: inline-flex;
  min-width: 246px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 10px 22px;
  border: 4px solid #030b20;
  border-radius: 14px;
  background: var(--green);
  color: #03142a;
  cursor: pointer;
  font-size: clamp(0.98rem, 1vw, 1.2rem);
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow: 7px 8px 0 #03102e, 0 0 32px rgba(35, 220, 121, 0.2);
  transform: rotate(-1deg);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ca-button:hover,
.ca-button:focus-visible {
  background: #67ff9f;
  outline: none;
  box-shadow: 4px 5px 0 #03102e, 0 0 42px rgba(35, 220, 121, 0.45);
  transform: translate(3px, 3px) rotate(1deg);
}

.ca-button:active {
  box-shadow: 1px 2px 0 #03102e;
  transform: translate(6px, 6px);
}

.ca-button__label {
  opacity: 0.65;
}

.ca-button__value {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-icon {
  position: relative;
  width: 21px;
  height: 21px;
  margin-left: 8px;
}

.copy-icon span {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #03142a;
  border-radius: 2px;
}

.copy-icon span:first-child {
  top: 2px;
  left: 2px;
}

.copy-icon span:last-child {
  right: 1px;
  bottom: 1px;
  background: var(--green);
}

.copy-hint {
  color: rgba(202, 249, 255, 0.74);
  font-size: clamp(0.68rem, 0.64vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lore-card {
  position: relative;
  max-width: 630px;
  margin-top: clamp(22px, 3vh, 38px);
  padding: clamp(17px, 1.4vw, 24px) clamp(18px, 1.6vw, 30px);
  border: 2px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 4px 22px 22px 4px;
  background: linear-gradient(110deg, rgba(3, 21, 74, 0.84), rgba(5, 45, 121, 0.55));
  box-shadow: 0 20px 60px rgba(1, 7, 30, 0.28);
  backdrop-filter: blur(14px);
}

.lore-card__label {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 4px 10px;
  border: 2px solid #020b23;
  border-radius: 5px;
  background: var(--orange);
  color: #03102e;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  transform: rotate(-1deg);
}

.lore-card p {
  margin: 0;
  color: #d4f8ff;
  font-size: clamp(0.88rem, 0.88vw, 1.06rem);
  line-height: 1.48;
}

.lore-card p + p {
  margin-top: 0.7em;
}

.hero__visual {
  position: relative;
  z-index: 3;
  align-self: end;
  height: min(82vh, 900px);
  min-height: 580px;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 5px), 0);
  transition: transform 180ms ease-out;
}

.character {
  position: absolute;
  right: -3vw;
  bottom: -4.7vh;
  display: block;
  width: min(52vw, 920px);
  min-width: 670px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(18px 24px 18px rgba(0, 5, 27, 0.44));
  transform-origin: 56% 83%;
  animation: character-idle 4.6s ease-in-out infinite;
}

.character::after {
  position: absolute;
  right: 9%;
  bottom: 4%;
  width: 72%;
  height: 10%;
  border-radius: 50%;
  background: rgba(0, 5, 28, 0.44);
  content: "";
  filter: blur(22px);
  z-index: -1;
}

.character:focus-visible {
  border-radius: 42%;
  outline: 4px solid var(--cyan);
  outline-offset: 4px;
}

.character__image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.character__glow {
  position: absolute;
  z-index: 1;
  top: 18%;
  left: 20%;
  width: 66%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 230, 255, 0.38), transparent 67%);
  filter: blur(20px);
  animation: glow-breathe 3.2s ease-in-out infinite;
}

.baton-flare {
  position: absolute;
  z-index: 4;
  top: 17%;
  left: 28.5%;
  width: 17%;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #fff, var(--cyan), transparent);
  box-shadow: 0 0 20px #fff;
  opacity: 0;
  transform: rotate(66deg) translateX(-140px);
  animation: baton-shine 4.4s ease-in-out infinite 1.8s;
}

.character.is-bonking {
  animation: bonk 640ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.status-card {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 15px;
  border: 3px solid #030c25;
  border-radius: 10px;
  background: #eafcff;
  color: #03102e;
  box-shadow: 6px 7px 0 #03102e;
  font-size: clamp(0.63rem, 0.6vw, 0.75rem);
  letter-spacing: 0.08em;
  transform: rotate(var(--tilt));
  animation: badge-float 3.6s ease-in-out infinite;
}

.status-card span {
  opacity: 0.55;
  font-weight: 900;
}

.status-card strong {
  font-size: 1.08em;
  font-weight: 1000;
}

.status-card--top {
  --tilt: 3deg;
  top: 17%;
  right: 1%;
}

.status-card--bottom {
  --tilt: -4deg;
  right: 13%;
  bottom: 15%;
  background: var(--green);
  animation-delay: -1.5s;
}

.character-hint {
  position: absolute;
  z-index: 9;
  right: 34%;
  bottom: 7.5%;
  color: rgba(230, 252, 255, 0.7);
  font-size: clamp(0.65rem, 0.62vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 10px #02133f;
  transform: rotate(-3deg);
  animation: hint-pulse 2.2s ease-in-out infinite;
}

.bonk-word {
  position: absolute;
  z-index: 12;
  top: 24%;
  right: 12%;
  color: var(--orange-light);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.4rem, 5vw, 6.4rem);
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  -webkit-text-stroke: 4px #030b20;
  paint-order: stroke fill;
  filter: drop-shadow(8px 9px 0 rgba(3, 11, 32, 0.7));
  transform: scale(0.5) rotate(-14deg);
}

.bonk-word.is-visible {
  animation: word-pop 900ms cubic-bezier(0.2, 1.2, 0.3, 1);
}

.ticker {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(48px, 5.1vh, 64px);
  overflow: hidden;
  border-top: 4px solid #03102e;
  border-bottom: 4px solid #03102e;
  background: var(--orange);
  color: #03102e;
  transform: rotate(-0.6deg) scaleX(1.02);
  transform-origin: center;
}

.ticker__track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: clamp(22px, 2vw, 42px);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.48rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}

.ticker__track i {
  font-family: Arial, sans-serif;
  font-size: 0.72em;
  font-style: normal;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 8vh;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 3px solid #03102e;
  border-radius: 10px;
  background: #eafff1;
  color: #052318;
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  box-shadow: 6px 7px 0 #03102e;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 25px) rotate(-2deg);
}

.toast.is-visible {
  animation: toast-in 2s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 680ms cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.reveal--1 { animation-delay: 80ms; }
.reveal--2 { animation-delay: 170ms; }
.reveal--3 { animation-delay: 290ms; }
.reveal--4 { animation-delay: 390ms; }
.reveal--5 { animation-delay: 490ms; }

.reveal--visual {
  transform: translateX(35px);
  animation-delay: 220ms;
  animation-duration: 850ms;
}

@keyframes reveal {
  to { opacity: 1; transform: translate(0, 0); }
}

@keyframes character-idle {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.9deg); }
}

@keyframes bonk {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-18px) rotate(-5deg) scale(1.025); }
  55% { transform: translateY(7px) rotate(4deg) scale(0.99); }
  78% { transform: translateY(-4px) rotate(-1.5deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.62; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes baton-shine {
  0%, 66%, 100% { opacity: 0; transform: rotate(66deg) translateX(-160px); }
  73% { opacity: 1; }
  84% { opacity: 0; transform: rotate(66deg) translateX(210px); }
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-8px) rotate(calc(var(--tilt) * -0.7)); }
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.58; transform: translateY(0) rotate(-3deg); }
  50% { opacity: 1; transform: translateY(-3px) rotate(-3deg); }
}

@keyframes word-pop {
  0% { opacity: 0; transform: scale(0.45) rotate(-18deg); }
  25% { opacity: 1; transform: scale(1.12) rotate(-7deg); }
  72% { opacity: 1; transform: scale(1) rotate(-10deg); }
  100% { opacity: 0; transform: translateY(-28px) scale(1.12) rotate(-7deg); }
}

@keyframes rise {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  12% { opacity: 0.75; }
  88% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(60px); }
}

@keyframes streak {
  0%, 100% { opacity: 0.2; transform: rotate(-27deg) translateX(18%); }
  45% { opacity: 0.85; }
  60% { opacity: 0.6; transform: rotate(-27deg) translateX(-32%); }
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(35, 220, 121, 0.7); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(35, 220, 121, 0); }
}

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

@keyframes toast-in {
  0% { opacity: 0; transform: translate(-50%, 25px) rotate(-2deg); }
  16%, 80% { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }
  100% { opacity: 0; transform: translate(-50%, -14px) rotate(-2deg); }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(440px, 0.9fr) minmax(500px, 1.1fr);
    padding-right: 32px;
    padding-left: 48px;
  }

  .title {
    font-size: clamp(5rem, 8.2vw, 7.3rem);
  }

  .character {
    right: -15vw;
    width: 68vw;
  }

  .status-card--top { right: -1%; }
  .status-card--bottom { right: 7%; }
}

@media (max-width: 860px), (max-height: 700px) and (max-width: 1180px) {
  body {
    overflow-y: auto;
  }

  .stage {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }

  .topbar {
    position: relative;
    padding: 18px 18px 0;
  }

  .wordmark span:last-child {
    display: none;
  }

  .nav-actions {
    gap: 7px;
  }

  .pill {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.7rem;
  }

  .hero {
    display: flex;
    height: auto;
    min-height: calc(100svh - 64px);
    flex-direction: column;
    gap: 0;
    padding: 46px 20px 88px;
  }

  .hero__copy {
    width: 100%;
    max-width: 650px;
  }

  .title {
    font-size: clamp(4.4rem, 21vw, 7.5rem);
  }

  .manifesto {
    font-size: 1.12rem;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .lore-card {
    margin-top: 30px;
  }

  .hero__visual {
    width: 100%;
    height: min(108vw, 720px);
    min-height: 440px;
    margin-top: -10px;
  }

  .character {
    right: 50%;
    bottom: -5%;
    width: min(124vw, 780px);
    min-width: 520px;
    transform: translateX(50%);
  }

  .character::after {
    right: 14%;
  }

  @keyframes character-idle {
    0%, 100% { transform: translateX(50%) translateY(0) rotate(-0.6deg); }
    50% { transform: translateX(50%) translateY(-10px) rotate(0.8deg); }
  }

  @keyframes bonk {
    0% { transform: translateX(50%) translateY(0) rotate(0); }
    28% { transform: translateX(50%) translateY(-15px) rotate(-5deg) scale(1.02); }
    58% { transform: translateX(50%) translateY(6px) rotate(4deg); }
    100% { transform: translateX(50%) translateY(0) rotate(0); }
  }

  .status-card--top {
    top: 15%;
    right: 0;
  }

  .status-card--bottom {
    right: 2%;
    bottom: 15%;
  }

  .character-hint {
    right: 50%;
    bottom: 3%;
    transform: translateX(50%) rotate(-3deg);
  }

  .scene__vignette {
    background: linear-gradient(180deg, rgba(1, 11, 44, 0.82), rgba(1, 18, 66, 0.35) 55%, rgba(2, 8, 28, 0.7));
  }
}

@media (max-width: 520px) {
  .nav-actions .pill span:not(.pill__icon, .pill__dot) {
    display: none;
  }

  .nav-actions .pill {
    width: 44px;
    padding: 0;
  }

  .hero {
    padding-top: 32px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .title {
    line-height: 0.78;
  }

  .ca-button {
    width: 100%;
    min-width: 0;
  }

  .copy-hint {
    align-self: center;
  }

  .lore-card p {
    font-size: 0.92rem;
  }

  .hero__visual {
    height: 116vw;
    min-height: 420px;
  }

  .character {
    min-width: 500px;
  }

  .status-card {
    padding: 9px 11px;
  }
}

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

  .particle,
  .orange-streak,
  .baton-flare {
    display: none;
  }
}
