:root {
  /* Space Mono accents from Google Fonts only for cursor glyphs Mono* Mono** */
  --solar-peach: #FFB26B;
  --lava-coral: #FF4F64;
  --deep-plum: #241326;
  --honey-cream: #FFF1C7;
  --tangerine: #FF7A1A;
  --monster-violet: #7C3AED;
  --night-magenta: #4A183D;
  --warm-shift: 0;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--honey-cream);
  background:
    radial-gradient(circle at calc(25% + var(--pointer-x) * .02) calc(12% + var(--pointer-y) * .02), rgba(255, 178, 107, .65), transparent 30rem),
    radial-gradient(circle at 85% 15%, rgba(255, 79, 100, .48), transparent 28rem),
    linear-gradient(135deg, var(--deep-plum), var(--night-magenta) 48%, #6f2039 72%, var(--tangerine));
  font-family: "Nunito Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 178, 107, calc(var(--warm-shift) * .08)), rgba(255, 79, 100, calc(var(--warm-shift) * .09)));
  mix-blend-mode: screen;
  z-index: 1;
}

.stage { position: relative; isolation: isolate; min-height: 100vh; }

.sunset-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 1px, transparent 1px 5px);
}

.terminal-nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  font-family: "Baloo 2", system-ui, sans-serif;
}

.terminal-nav a {
  color: var(--deep-plum);
  text-decoration: none;
  background: rgba(255, 241, 199, .82);
  border: 3px solid var(--tangerine);
  border-radius: 999px;
  padding: .28rem .85rem;
  box-shadow: .35rem .35rem 0 rgba(36, 19, 38, .45);
  transform: rotate(-1deg);
}

.terminal-nav a:nth-child(even) { transform: rotate(1.5deg); }

.monster-shadow {
  position: fixed;
  left: 50%;
  top: 5%;
  width: min(88vw, 58rem);
  height: min(78vw, 47rem);
  transform: translateX(-50%) translate(calc(var(--pointer-x) * .02), calc(var(--pointer-y) * .015));
  background: radial-gradient(ellipse at 50% 55%, rgba(36, 19, 38, .72), rgba(74, 24, 61, .38) 58%, transparent 69%);
  filter: blur(.5px);
  z-index: -2;
  opacity: .88;
}

.horn, .eye, .tail-arc { position: absolute; display: block; }
.horn { width: 12rem; height: 7rem; background: var(--monster-violet); top: 4rem; border-radius: 9rem 9rem 1rem 1rem; box-shadow: 1.3rem 1.3rem 0 rgba(255, 122, 26, .38); }
.horn-left { left: 7rem; transform: rotate(-28deg); }
.horn-right { right: 7rem; transform: rotate(28deg); }
.eye { width: 3.2rem; height: 3.2rem; background: var(--lava-coral); border-radius: 50% 50% 50% 14%; top: 18rem; box-shadow: 0 0 2rem var(--lava-coral); animation: blink 5s infinite; }
.eye-left { left: 34%; transform: rotate(-45deg); }
.eye-right { right: 34%; transform: rotate(-45deg); animation-delay: .2s; }
.tail-arc { right: 3rem; bottom: 2rem; width: 17rem; height: 17rem; border: 2.2rem solid var(--tangerine); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(35deg); opacity: .75; }

.float-field { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.shape { position: absolute; filter: drop-shadow(.7rem .8rem 0 rgba(36, 19, 38, .32)); animation: drift 8s ease-in-out infinite; }
.bracket { font-family: "DynaPuff"; font-size: clamp(4rem, 10vw, 10rem); color: var(--tangerine); }
.tooth { width: 0; height: 0; border-left: 2rem solid transparent; border-right: 2rem solid transparent; border-top: 5rem solid var(--honey-cream); }
.pill { width: 9rem; height: 3rem; background: var(--monster-violet); border-radius: 999px; border: .35rem solid var(--honey-cream); }
.heart-frag { width: 4rem; height: 4rem; background: var(--lava-coral); transform: rotate(45deg); border-radius: .8rem; }
.heart-frag::before, .heart-frag::after { content: ""; position: absolute; width: 4rem; height: 4rem; background: var(--lava-coral); border-radius: 50%; }
.heart-frag::before { left: -2rem; }
.heart-frag::after { top: -2rem; }
.speech { width: 8rem; height: 5rem; background: var(--honey-cream); border: .35rem solid var(--deep-plum); border-radius: 2rem; }
.speech::after { content: ""; position: absolute; right: 1.2rem; bottom: -1.2rem; border-top: 1.4rem solid var(--deep-plum); border-left: 1.2rem solid transparent; }
.triangle { width: 0; height: 0; border-left: 3rem solid transparent; border-right: 3rem solid transparent; border-bottom: 6rem solid var(--solar-peach); }
.comet { font-family: "Space Mono", monospace; color: var(--honey-cream); font-size: 2.6rem; text-shadow: 1.2rem .2rem 0 var(--lava-coral), 2.4rem .4rem 0 var(--tangerine); }
.shape-a { left: 5%; top: 18%; }
.shape-b { right: 12%; top: 20%; animation-delay: -2s; }
.shape-c { left: 12%; bottom: 22%; animation-delay: -4s; }
.shape-d { right: 18%; bottom: 24%; animation-delay: -3s; }
.shape-e { right: 4%; top: 48%; animation-delay: -1s; }
.shape-f { left: 42%; top: 8%; animation-delay: -5s; }
.shape-g { left: 7%; top: 58%; animation-delay: -2.5s; }
.shape-h { right: 5%; bottom: 7%; animation-delay: -6s; }

.scene {
  min-height: 100vh;
  position: relative;
  z-index: 5;
  display: grid;
  align-items: center;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.2rem, 5vw, 5rem);
}

.hero-scene { place-items: center; padding-top: 8rem; }

.wordmark {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: max-content;
  max-width: 110vw;
  color: var(--solar-peach);
  font-family: "DynaPuff", system-ui, cursive;
  font-size: clamp(4.6rem, 15vw, 14.5rem);
  line-height: .78;
  letter-spacing: -.08em;
  text-shadow: .45rem .55rem 0 var(--lava-coral), 1rem 1.2rem 0 rgba(36, 19, 38, .6);
  opacity: .92;
  z-index: -1;
}

.wordmark span { display: inline-block; animation: wobble 5s ease-in-out infinite; }
.wordmark span:nth-child(3n) { transform: rotate(5deg); animation-delay: -.8s; }
.wordmark span:nth-child(4n) { transform: rotate(-6deg); animation-delay: -1.4s; }

.terminal-window {
  width: min(58rem, 94vw);
  background: rgba(36, 19, 38, .96);
  border: .45rem solid var(--tangerine);
  border-radius: 2.2rem;
  overflow: hidden;
  box-shadow: 1.5rem 1.6rem 0 rgba(74, 24, 61, .72), 0 0 5rem rgba(255, 178, 107, .32);
}

.hero-terminal { transform: rotate(-2deg); }
.terminal-top { display: flex; align-items: center; gap: .55rem; padding: .9rem 1rem; background: var(--honey-cream); color: var(--deep-plum); font-family: "Baloo 2"; font-weight: 800; }
.dot { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--deep-plum); }
.coral { background: var(--lava-coral); } .peach { background: var(--solar-peach); } .violet { background: var(--monster-violet); }
.terminal-label { margin-left: .5rem; }
.terminal-body { padding: clamp(1.4rem, 4vw, 3rem); }
.boot-stamp, .final-code { font-family: "Space Mono", monospace; color: var(--solar-peach); font-size: .9rem; letter-spacing: .05em; }
h1, h2 { font-family: "DynaPuff", system-ui, cursive; margin: 0; }
h1 { font-size: clamp(4rem, 12vw, 10rem); line-height: .8; color: var(--honey-cream); text-shadow: .3rem .35rem 0 var(--monster-violet); }
h2 { font-size: clamp(2.8rem, 8vw, 7rem); line-height: .86; color: var(--deep-plum); }
.typed-row, .final-command { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; font-family: "Baloo 2"; font-weight: 800; font-size: clamp(1.5rem, 4vw, 3.1rem); color: var(--solar-peach); }
.prompt-mark { color: var(--lava-coral); }
.confession-cursor, .heart-cursor { width: 1.35rem; height: 2.4rem; display: inline-block; background: var(--lava-coral); border-radius: .22rem; animation: cursorPulse .82s steps(2) infinite, cursorMorph 4s ease-in-out infinite; box-shadow: 0 0 1.2rem var(--lava-coral); }
.hero-copy { max-width: 37rem; font-size: clamp(1.15rem, 2.5vw, 1.55rem); line-height: 1.45; color: rgba(255, 241, 199, .86); }
.signal-key { cursor: pointer; border: .35rem solid var(--deep-plum); background: var(--lava-coral); color: var(--honey-cream); border-radius: 1.4rem; padding: 1rem 1.35rem; font-family: "Baloo 2"; font-weight: 800; font-size: clamp(1.2rem, 3vw, 2rem); box-shadow: .7rem .8rem 0 var(--tangerine), 1.15rem 1.25rem 0 rgba(255, 241, 199, .36); transform: rotate(2deg); transition: transform .25s ease, box-shadow .25s ease; }
.signal-key.is-pressed, .signal-key:hover { transform: rotate(-1deg) translate(.4rem, .4rem); box-shadow: .25rem .3rem 0 var(--tangerine), .55rem .6rem 0 rgba(255, 241, 199, .3); }

.scene-kicker { font-family: "Baloo 2"; font-weight: 800; font-size: clamp(1.1rem, 3vw, 2rem); color: var(--deep-plum); background: var(--solar-peach); border: .25rem solid var(--deep-plum); border-radius: 999px; padding: .35rem 1rem; width: max-content; box-shadow: .45rem .45rem 0 var(--lava-coral); transform: rotate(-4deg); }
.speech-terminal, .final-card { max-width: 58rem; margin-top: 1.2rem; padding: clamp(1.5rem, 4vw, 3rem); background: rgba(255, 241, 199, .94); border: .45rem solid var(--deep-plum); border-radius: 3rem 3rem 3rem .8rem; box-shadow: 1.2rem 1.3rem 0 rgba(255, 122, 26, .72); }
.tilted-left { transform: rotate(2deg); }
.diagnostics { margin-top: 2rem; display: grid; gap: 1.2rem; }
.diag-line { position: relative; overflow: hidden; min-height: 4rem; border-radius: 999px; border: .28rem solid var(--deep-plum); background: rgba(255, 178, 107, .7); color: var(--deep-plum); font-family: "Baloo 2"; font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; padding: .55rem 1rem; }
.diag-line span { position: relative; z-index: 2; }
.diag-line i { position: absolute; inset: .45rem auto .45rem .45rem; width: 20%; border-radius: 999px; background: linear-gradient(90deg, var(--lava-coral), var(--tangerine), var(--honey-cream)); animation: loadSweep 3s ease-in-out infinite; }
.diag-line.morphed { border-radius: 1.4rem 999px 999px 1.4rem; }
.diag-line.morphed i { width: 86%; clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%); }
.orbital { position: absolute; right: 8vw; top: 22vh; width: 20rem; height: 20rem; border: .4rem dashed rgba(255, 241, 199, .65); border-radius: 50%; animation: spin 16s linear infinite; }
.orbital span { position: absolute; width: 8rem; height: 4rem; background: var(--monster-violet); border-radius: 8rem 8rem .5rem .5rem; }
.orbital span:first-child { left: -2rem; top: 5rem; transform: rotate(-40deg); }
.orbital span:last-child { right: -2rem; bottom: 5rem; transform: rotate(140deg); }
.prompt-stack { width: min(62rem, 94vw); display: grid; gap: 1.2rem; transform: rotate(-1deg); }
.prompt-stack p { margin: 0; padding: 1.1rem 1.4rem; background: rgba(36, 19, 38, .9); border: .32rem solid var(--tangerine); border-radius: 1.8rem; font-family: "Baloo 2"; font-size: clamp(1.3rem, 3vw, 2.25rem); box-shadow: .8rem .8rem 0 rgba(255, 79, 100, .5); }
.prompt-stack em { color: var(--solar-peach); font-style: normal; }
.abstract-face { position: absolute; right: 10vw; bottom: 12vh; width: 20rem; height: 14rem; background: rgba(74, 24, 61, .88); border-radius: 50% 50% 38% 38%; border: .45rem solid var(--solar-peach); transform: rotate(7deg); }
.face-eye { position: absolute; top: 4rem; width: 3rem; height: 3rem; background: var(--lava-coral); border-radius: 50% 50% 50% 15%; transform: rotate(-45deg); }
.face-eye.one { left: 5rem; } .face-eye.two { right: 5rem; }
.face-mouth { position: absolute; left: 50%; bottom: 3rem; width: 7rem; height: 2.2rem; border-bottom: .6rem solid var(--honey-cream); border-radius: 50%; transform: translateX(-50%); }
.mini-terminal { margin-left: auto; transform: rotate(2deg); }
.protocol-lines p { margin: .8rem 0; font-family: "Baloo 2"; font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--honey-cream); }
.protocol-lines span { display: inline-block; color: var(--lava-coral); margin-right: .7rem; font-family: "Space Mono"; }
.sunset-loop-ring { position: absolute; left: 6vw; bottom: 12vh; width: 24rem; height: 24rem; border: 2.4rem solid var(--solar-peach); border-left-color: var(--lava-coral); border-bottom-color: var(--monster-violet); border-radius: 50%; box-shadow: 1.2rem 1.2rem 0 rgba(36, 19, 38, .44); animation: spin 22s linear infinite reverse; }
.final-scene { place-items: center; }
.final-card { transform: rotate(-2deg); text-align: left; }
.final-card p { color: var(--night-magenta); }
.final-command { color: var(--deep-plum); background: var(--solar-peach); border: .28rem solid var(--deep-plum); border-radius: 1.5rem; padding: .8rem 1rem; }
.heart-cursor { height: 2rem; transform: rotate(45deg); border-radius: .25rem; animation: heartBeat .9s ease-in-out infinite; }
.heart-cursor::before, .heart-cursor::after { content: ""; position: absolute; width: 1.35rem; height: 1.35rem; background: var(--lava-coral); border-radius: 50%; }
.heart-cursor::before { left: -.68rem; } .heart-cursor::after { top: -.68rem; }
.claw-divider { position: absolute; left: 8vw; bottom: 10vh; display: flex; gap: 1rem; transform: rotate(-18deg); }
.claw-divider span { width: 2.4rem; height: 9rem; background: var(--honey-cream); border: .25rem solid var(--deep-plum); border-radius: 999px 999px 1rem 1rem; box-shadow: .5rem .5rem 0 var(--tangerine); }

@keyframes drift { 0%,100% { transform: translate3d(0,0,0) rotate(-4deg); } 50% { transform: translate3d(1.2rem,-1.6rem,0) rotate(8deg); } }
@keyframes blink { 0%, 92%, 100% { transform: rotate(-45deg) scaleY(1); } 95% { transform: rotate(-45deg) scaleY(.08); } }
@keyframes wobble { 0%,100% { translate: 0 0; } 50% { translate: 0 -.08em; } }
@keyframes cursorPulse { 0%, 45% { opacity: 1; } 46%, 100% { opacity: .18; } }
@keyframes cursorMorph { 0%,72%,100% { border-radius: .22rem; transform: none; } 80% { border-radius: 50% 50% 50% 12%; transform: rotate(-18deg) scaleX(1.25); } 88% { clip-path: polygon(0 0, 100% 50%, 0 100%); } }
@keyframes loadSweep { 0% { width: 14%; transform: translateX(0); } 50% { width: 72%; transform: translateX(1rem); } 100% { width: 20%; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heartBeat { 0%,100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(45deg) scale(1.18); } }

@media (max-width: 760px) {
  .terminal-nav { position: absolute; }
  .terminal-nav a { font-size: .82rem; padding: .15rem .5rem; }
  .wordmark { top: 15vh; }
  .hero-terminal, .tilted-left, .mini-terminal, .final-card { transform: rotate(0deg); }
  .orbital, .abstract-face, .sunset-loop-ring { opacity: .38; right: -6rem; left: auto; }
  .shape { opacity: .55; }
}
