:root {
  --black: #050006;
  --white: #fff8ff;
  --hot-pink: #ff149d;
  --bubble-pink: #ff9bbe;
  --acid-green: #a7ff00;
  --toxic-green: #1dff6a;
  --sun: #ffe236;
  --cyan: #00e5ff;
  --violet: #8b2cff;
  --ink: #111;
  --panel: rgba(5, 0, 6, 0.82);
  --line: 3px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 20, 157, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, 0.12) 1px, transparent 1px),
    var(--black);
  background-size: 28px 28px;
  color: var(--white);
  font-family: Arial Black, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

.site-shell {
  width: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
  padding-bottom: clamp(78px, 8vw, 112px);
  border-bottom: 5px solid var(--ink);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/derpina.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(1.24) contrast(1.08) blur(1px);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 20, 157, 0.1), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 52%);
}

.noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 10% 20%, var(--hot-pink) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, var(--acid-green) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 85%, var(--cyan) 0 2px, transparent 3px);
  background-size: 31px 29px, 37px 33px, 41px 39px;
  animation: staticDrift 7s steps(2, end) infinite;
}

.hero__content {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  padding-bottom: 0;
  z-index: 2;
}

.hero__character {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 720px);
  margin: 0;
  aspect-ratio: 0.92;
  border: 5px solid var(--ink);
  background: var(--hot-pink);
  box-shadow:
    16px 16px 0 var(--acid-green),
    -12px -12px 0 var(--cyan);
  transform: rotate(2deg);
  overflow: hidden;
  animation: characterFloat 5s ease-in-out infinite;
}

.hero__character::before {
  position: absolute;
  inset: 12px;
  z-index: 2;
  content: "";
  border: 3px dashed rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.hero__character::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  content: "$princess";
  padding: 8px 12px;
  border: var(--line);
  background: var(--sun);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--hot-pink);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  text-transform: uppercase;
}

.hero__character img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 53% 45%;
  filter: saturate(1.16) contrast(1.04);
  transform: scale(1.14);
}

.sigil,
.section-tag {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: var(--line);
  background: var(--acid-green);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--hot-pink);
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.78;
  text-transform: lowercase;
  text-shadow:
    5px 5px 0 var(--hot-pink),
    -4px -4px 0 var(--cyan),
    9px 9px 0 var(--ink);
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0.68;
  pointer-events: none;
}

.glitch::before {
  color: var(--cyan);
  transform: translate(7px, -4px);
  clip-path: inset(0 0 48% 0);
  animation: glitchTop 2.8s infinite;
}

.glitch::after {
  color: var(--hot-pink);
  transform: translate(-6px, 5px);
  clip-path: inset(46% 0 0 0);
  animation: glitchBottom 3.3s infinite;
}

.hero__lede {
  width: 100%;
  max-width: 760px;
  margin-top: 26px;
  padding: 18px 22px;
  border: var(--line);
  background: rgba(255, 248, 255, 0.92);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--violet);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2.1vw, 1.38rem);
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.enter-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 20px;
  border: var(--line);
  background: var(--hot-pink);
  color: var(--white);
  box-shadow: 7px 7px 0 var(--acid-green);
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.enter-link:hover {
  transform: translate(5px, 5px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--acid-green);
}

.hero-actions,
.final-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.hero-actions a,
.hero-actions span,
.final-links a,
.final-links span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border: var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions a,
.final-links a {
  background: var(--cyan);
  box-shadow: 6px 6px 0 var(--hot-pink);
}

.hero-actions span,
.final-links span {
  background: var(--sun);
  box-shadow: 6px 6px 0 var(--acid-green);
}

.crown {
  position: absolute;
  top: clamp(22px, 4vw, 58px);
  right: clamp(20px, 6vw, 90px);
  width: clamp(92px, 14vw, 170px);
  aspect-ratio: 1.35;
  border: var(--line);
  background: var(--sun);
  box-shadow: 10px 10px 0 var(--cyan);
  transform: rotate(8deg);
  animation: floaty 4s ease-in-out infinite;
}

.crown span {
  position: absolute;
  bottom: 52%;
  width: 34%;
  aspect-ratio: 1;
  border: var(--line);
  background: var(--sun);
  transform: rotate(45deg);
}

.crown span:nth-child(1) {
  left: 6%;
}

.crown span:nth-child(2) {
  left: 33%;
  bottom: 66%;
}

.crown span:nth-child(3) {
  right: 6%;
}

.ticker {
  position: absolute;
  right: -20px;
  bottom: 22px;
  left: -20px;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-block: 3px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-size: clamp(0.85rem, 2.2vw, 1.3rem);
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-1.3deg);
}

.ticker span {
  padding-inline: clamp(22px, 6vw, 76px);
}

.lore-strip {
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  min-height: 220px;
  border-bottom: 5px solid var(--ink);
  overflow-x: auto;
}

.lore-strip p {
  display: grid;
  place-items: center;
  min-width: 150px;
  min-height: 220px;
  padding: 18px;
  border-right: 3px solid var(--ink);
  color: var(--ink);
  font-size: clamp(1.2rem, 3.2vw, 2.55rem);
  line-height: 0.95;
  text-align: center;
  text-transform: lowercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.lore-strip p:hover {
  z-index: 2;
  transform: scale(1.04) rotate(-2deg);
  filter: saturate(1.5);
}

.lore-strip p:nth-child(1) { background: var(--hot-pink); }
.lore-strip p:nth-child(2) { background: var(--acid-green); }
.lore-strip p:nth-child(3) { background: var(--cyan); }
.lore-strip p:nth-child(4) { background: var(--bubble-pink); }
.lore-strip p:nth-child(5) { background: var(--sun); }
.lore-strip p:nth-child(6) { background: var(--violet); color: var(--white); }

.manifesto,
.archive,
.final-claim {
  padding: clamp(44px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.manifesto {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 20, 157, 0.3), transparent 38%),
    var(--black);
}

.manifesto h2,
.archive h2,
.final-claim h2 {
  max-width: 960px;
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.86;
  text-transform: lowercase;
  text-shadow: 5px 5px 0 var(--ink), 8px 8px 0 var(--hot-pink);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.1fr);
  gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.manifesto__grid p {
  border: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 9px 9px 0 var(--cyan);
  padding: clamp(20px, 3vw, 34px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.28;
}

.manifesto__grid .manifesto__large {
  background: var(--hot-pink);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(2rem, 4.6vw, 4.3rem);
  line-height: 0.92;
  text-transform: lowercase;
  text-shadow: 4px 4px 0 var(--ink);
}

.manifesto__grid .manifesto__claim {
  grid-column: 1 / -1;
  background: var(--acid-green);
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(2rem, 5.2vw, 5.3rem);
  line-height: 0.9;
  text-transform: lowercase;
  box-shadow: 12px 12px 0 var(--hot-pink);
}

.archive {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 226, 54, 0.12) 1px, transparent 1px),
    #120018;
  background-size: 44px 44px;
}

.archive__intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.relic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(30px, 5vw, 56px);
}

.relic {
  min-height: 260px;
  padding: 22px;
  border: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--hot-pink);
  transform: rotate(var(--tilt));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.relic:nth-child(1) { --tilt: -1.5deg; }
.relic:nth-child(2) { --tilt: 1.2deg; box-shadow: 8px 8px 0 var(--acid-green); }
.relic:nth-child(3) { --tilt: -0.8deg; box-shadow: 8px 8px 0 var(--cyan); }
.relic:nth-child(4) { --tilt: 1.6deg; box-shadow: 8px 8px 0 var(--sun); }

.relic:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 13px 13px 0 var(--violet);
}

.relic span {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--sun);
  font-size: 0.9rem;
}

.relic h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 0.9;
  text-transform: lowercase;
}

.relic p {
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.final-claim {
  min-height: 82svh;
  display: grid;
  place-content: center;
  position: relative;
  background:
    linear-gradient(rgba(5, 0, 6, 0.7), rgba(5, 0, 6, 0.88)),
    url("assets/derpina.jpg") center / cover;
  border-top: 5px solid var(--ink);
  text-align: center;
}

.final-claim .sigil {
  justify-self: center;
}

.final-claim h2 {
  max-width: 11ch;
  text-shadow:
    5px 5px 0 var(--hot-pink),
    -5px -5px 0 var(--cyan),
    10px 10px 0 var(--ink);
}

.final-claim p:last-child {
  margin-top: 26px;
  color: var(--sun);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
}

.final-links {
  justify-content: center;
}

.final-links a,
.final-links span {
  font-size: clamp(0.82rem, 2vw, 1rem);
}

@keyframes staticDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -6px); }
  50% { transform: translate(-6px, 5px); }
  75% { transform: translate(5px, 8px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(12px) rotate(4deg); }
}

@keyframes characterFloat {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes glitchTop {
  0%, 85%, 100% { transform: translate(7px, -4px); }
  88% { transform: translate(14px, -2px); }
  91% { transform: translate(-7px, -5px); }
}

@keyframes glitchBottom {
  0%, 78%, 100% { transform: translate(-6px, 5px); }
  81% { transform: translate(-13px, 8px); }
  84% { transform: translate(8px, 4px); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 24px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.1) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent);
  }

  .hero__image {
    background-position: 58% center;
  }

  .hero__character {
    grid-row: 1;
    justify-self: center;
    width: min(92vw, 560px);
    aspect-ratio: 1.08;
    margin-top: 56px;
  }

  .hero__content {
    grid-row: 2;
  }

  .crown {
    top: 18px;
    right: 18px;
  }

  .manifesto__grid,
  .relic-grid {
    grid-template-columns: 1fr;
  }

  .archive__intro {
    display: block;
  }

  .relic {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 18px;
    padding-bottom: 78px;
  }

  .hero__content {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    padding-bottom: 0;
  }

  .hero__character {
    width: min(278px, calc(100vw - 76px));
    aspect-ratio: 0.88;
    margin-top: 68px;
    box-shadow:
      9px 9px 0 var(--acid-green),
      -7px -7px 0 var(--cyan);
  }

  .hero__character img {
    object-position: 52% 44%;
    transform: scale(1.24);
  }

  .hero__character::before {
    inset: 8px;
  }

  .hero__character::after {
    right: 10px;
    bottom: 10px;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 15vw, 4rem);
    text-shadow:
      3px 3px 0 var(--hot-pink),
      -3px -3px 0 var(--cyan),
      6px 6px 0 var(--ink);
  }

  .glitch::before {
    transform: translate(4px, -3px);
  }

  .glitch::after {
    transform: translate(-4px, 3px);
  }

  .hero__lede {
    width: min(300px, calc(100vw - 56px));
    max-width: 100%;
    padding: 14px;
    font-size: 0.76rem;
  }

  .enter-link {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .hero-actions span {
    justify-content: center;
    width: min(300px, calc(100vw - 56px));
    font-size: 0.78rem;
  }

  .ticker {
    font-size: 0.68rem;
  }

  .lore-strip {
    grid-template-columns: repeat(6, 150px);
  }

  .manifesto,
  .archive,
  .final-claim {
    padding-inline: 16px;
  }

  .manifesto h2,
  .archive h2,
  .final-claim h2 {
    font-size: clamp(2.4rem, 16vw, 4.6rem);
  }
}

@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;
  }
}
