:root {
  --bg: #050507;
  --bg-2: #101014;
  --panel: rgba(22, 22, 29, 0.72);
  --panel-strong: rgba(17, 17, 23, 0.94);
  --text: #fff7fb;
  --muted: #c8bdc7;
  --dim: #887f8d;
  --pink: #ff92c2;
  --hot-pink: #ff4f9a;
  --lavender: #b8a7ff;
  --cream: #fff1d9;
  --good: #96ffd8;
  --warn: #ffd38a;
  --danger: #ff6f9c;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Comic Sans MS", "Bradley Hand", "Segoe Print", cursive;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 146, 194, 0.17), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(184, 167, 255, 0.15), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(255, 79, 154, 0.12), transparent 28rem),
    linear-gradient(140deg, #050507 0%, #0d0d12 48%, #161018 100%);
  color: var(--text);
  cursor: default;
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

button {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 146, 194, 0.18), transparent 68%);
  filter: blur(10px);
  opacity: 0.72;
  transition: transform 90ms linear;
}

.ambient,
.particles,
.hidden-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient {
  z-index: 0;
}

.particles,
.hidden-hearts {
  z-index: 1;
}

.ambient span {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: rgba(255, 146, 194, 0.09);
  filter: blur(34px);
  animation: floatOrb 15s ease-in-out infinite;
}

.ambient span:nth-child(1) {
  top: 4%;
  left: -9rem;
}

.ambient span:nth-child(2) {
  top: 10%;
  right: -8rem;
  background: rgba(184, 167, 255, 0.11);
  animation-delay: -4s;
}

.ambient span:nth-child(3) {
  bottom: -12rem;
  left: 24%;
  background: rgba(255, 79, 154, 0.1);
  animation-delay: -8s;
}

.ambient span:nth-child(4) {
  right: 22%;
  bottom: -13rem;
  background: rgba(150, 255, 216, 0.055);
  animation-delay: -11s;
}

.particle,
.heart {
  position: absolute;
  opacity: 0;
  animation: driftUp linear infinite;
}

.particle {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 13px rgba(255, 146, 194, 0.8);
}

.heart {
  color: rgba(255, 146, 194, 0.34);
  font-size: 1rem;
  text-shadow: 0 0 20px rgba(255, 146, 194, 0.6);
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.screen {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 100vh;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.985);
  scrollbar-color: rgba(255, 146, 194, 0.45) rgba(255, 255, 255, 0.06);
  transition: opacity 720ms ease, transform 720ms ease, visibility 720ms;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.panel {
  position: relative;
  width: min(980px, 100%);
  margin: auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 14, 0.62);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(26px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.075) 48%, transparent 62%),
    radial-gradient(circle at 12% 0%, rgba(255, 146, 194, 0.18), transparent 22rem);
  transform: translateX(-50%);
  animation: shimmer 7s ease-in-out infinite;
}

.window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  gap: 0.55rem;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.2);
}

.window-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #ff6b86;
}

.window-bar span:nth-child(2) {
  background: #ffd166;
}

.window-bar span:nth-child(3) {
  background: #83f5bb;
}

.window-bar p {
  margin: 0 0 0 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.micro-label,
.section-title span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 146, 194, 0.24);
  border-radius: 999px;
  background: rgba(255, 146, 194, 0.09);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal-panel {
  min-height: 580px;
  padding-bottom: 1.5rem;
}

.boot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1.3rem;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.terminal-copy {
  position: relative;
  z-index: 1;
  min-height: 14rem;
  padding: 1.3rem 0;
  color: #e1fff0;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  line-height: 1.9;
  text-shadow: 0 0 16px rgba(150, 255, 216, 0.22);
}

.terminal-line {
  opacity: 0;
  transform: translateY(10px);
  animation: lineIn 430ms ease forwards;
}

.terminal-line::before {
  content: "> ";
  color: var(--pink);
}

.loading-wrap {
  position: relative;
  z-index: 1;
}

.loading-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.loading-track,
.check-row i,
.long-loader {
  display: block;
  width: 100%;
  height: 0.78rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.loading-fill,
.check-row b,
.long-loader span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lavender), var(--pink), var(--cream));
  box-shadow: 0 0 24px rgba(255, 146, 194, 0.56);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-meme {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.cat-meme:hover {
  transform: translateY(-5px) rotate(-1.5deg);
  border-color: rgba(255, 146, 194, 0.5);
  background: rgba(255, 146, 194, 0.105);
}

.cat-face {
  color: var(--pink);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--sans);
  font-size: 1.85rem;
  text-shadow: 0 0 18px rgba(255, 146, 194, 0.65);
}

.cat-meme strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-meme small {
  max-width: 11rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.meme-img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(255, 146, 194, 0.24);
}

.boot-cat {
  min-height: 12rem;
  padding: 1rem;
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  pointer-events: none;
}

.boot-cat.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: memeWiggle 1.3s ease both;
}

.candidate-detected {
  position: relative;
  z-index: 1;
  margin: 0.8rem auto 0;
  color: var(--warn);
  font-family: var(--mono);
  font-weight: 800;
  text-align: center;
  opacity: 0;
}

.candidate-detected.is-visible {
  opacity: 1;
  animation: pulseGlow 1.25s ease infinite;
}

.audio-note {
  position: relative;
  z-index: 1;
  margin: 0.8rem 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-align: center;
}

.primary-btn,
.secondary-btn {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 13rem;
  margin: 1.15rem auto 0;
  padding: 0.95rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 146, 194, 0.92), rgba(184, 167, 255, 0.86)),
    rgba(255, 255, 255, 0.09);
  color: white;
  box-shadow: 0 18px 42px rgba(255, 79, 154, 0.24);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.secondary-btn {
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  box-shadow: none;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 24px 62px rgba(255, 79, 154, 0.38);
  filter: saturate(1.12);
}

.primary-btn i {
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.primary-btn::before,
.secondary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 28%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-120%);
  transition: transform 650ms ease;
}

.primary-btn:hover::before,
.secondary-btn:hover::before {
  transform: translateX(120%);
}

.playful-btn:hover {
  animation: playfulBounce 520ms ease both;
}

.delayed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 450ms ease, transform 450ms ease, box-shadow 220ms ease;
}

.delayed.is-ready {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.open-panel,
.intro-panel,
.checks-panel,
.scrapbook-panel,
.doodle-panel,
.buildup-panel,
.pacing-panel,
.final-panel,
.message-panel {
  padding: clamp(1.3rem, 4vw, 2.4rem);
}

.open-panel,
.intro-panel {
  display: grid;
  justify-items: center;
  min-height: 560px;
  align-content: center;
  text-align: center;
}

.open-panel h1,
.intro-panel h1 {
  margin: 1rem 0 0.4rem;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-shadow: 0 0 38px rgba(255, 146, 194, 0.28);
}

.intro-panel h2 {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  letter-spacing: -0.04em;
}

.intro-panel h2 span {
  color: var(--warn);
}

.open-panel p,
.intro-panel p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.open-soft {
  margin-top: 0.7rem !important;
  color: var(--cream) !important;
  font-family: var(--hand);
  font-weight: 800;
}

.sticker-note {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 146, 194, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pink);
  font-family: var(--hand);
  transform: rotate(-5deg);
}

.top-left {
  top: 1.4rem;
  left: 1.4rem;
}

.bottom-right {
  right: 1.4rem;
  bottom: 1.4rem;
  transform: rotate(5deg);
}

.section-title {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.6vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.check-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.74rem;
}

.check-row {
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.check-row i {
  margin-top: 0.55rem;
}

.check-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.check-row div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.54rem;
}

.check-row span {
  color: var(--muted);
}

.check-row strong {
  color: var(--good);
  font-family: var(--mono);
  white-space: nowrap;
}

.result-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  width: fit-content;
  margin: 1.05rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 211, 138, 0.28);
  border-radius: 18px;
  background: rgba(255, 211, 138, 0.09);
  text-align: center;
}

.result-card span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.result-card strong {
  color: var(--warn);
}

.scrapbook-panel {
  width: min(1100px, 100%);
}

.scrapbook-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.scrap-card {
  display: grid;
  align-content: space-between;
  min-height: 8.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(18px) rotate(var(--tilt, -1deg)) scale(0.96);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scrap-card:nth-child(2n) {
  --tilt: 1.4deg;
}

.scrap-card:nth-child(3n) {
  --tilt: -2deg;
}

.scrap-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, -1deg)) scale(1);
}

.scrap-card:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.03);
}

.scrap-card span {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.scrap-card p {
  margin: 1rem 0 0;
  color: var(--text);
  font-family: var(--hand);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.tone-2 {
  background-color: rgba(184, 167, 255, 0.08);
}

.tone-3 {
  background-color: rgba(255, 211, 138, 0.06);
}

.tone-4 {
  background-color: rgba(150, 255, 216, 0.045);
}

.tone-5 {
  background-color: rgba(255, 79, 154, 0.07);
}

.doodle-panel {
  min-height: 610px;
}

.doodle-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  min-height: auto;
  padding: 1rem;
  overflow: hidden;
  border: 1px dashed rgba(255, 146, 194, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 146, 194, 0.13), transparent 10rem),
    radial-gradient(circle at 76% 62%, rgba(184, 167, 255, 0.12), transparent 11rem),
    rgba(0, 0, 0, 0.16);
}

.doodle {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 4.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: var(--hand);
  font-size: 1.45rem;
  font-weight: 900;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
  animation: doodleFloat 3.5s ease-in-out infinite;
}

.photo-board {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  pointer-events: auto;
}

.photo-sticker {
  position: relative;
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--tilt));
  transition: transform 220ms ease, border-color 220ms ease;
}

.photo-sticker:hover {
  border-color: rgba(255, 146, 194, 0.5);
  transform: translateY(-6px) rotate(0deg) scale(1.04);
}

.photo-sticker img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: 14px;
  object-fit: cover;
  background:
    radial-gradient(circle, rgba(255, 146, 194, 0.15), transparent 60%),
    rgba(0, 0, 0, 0.25);
}

.photo-sticker span {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 0.82rem;
  line-height: 1;
  text-align: center;
}

.photo-sticker.is-missing {
  opacity: 0.42;
}

.photo-sticker.is-missing img {
  display: none;
}

.photo-sticker.is-missing::before {
  content: "drop photo here 💗";
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  border: 1px dashed rgba(255, 146, 194, 0.38);
  border-radius: 14px;
  color: var(--pink);
  font-family: var(--hand);
  text-align: center;
}

.photo-1 {
  --tilt: -6deg;
}

.photo-2 {
  --tilt: 4deg;
}

.photo-3 {
  --tilt: -3deg;
}

.photo-4 {
  --tilt: 5deg;
}

.photo-5 {
  --tilt: -4deg;
}

.photo-6 {
  --tilt: 3deg;
}

.doodle:hover {
  transform: scale(1.12) rotate(-4deg);
  border-color: rgba(255, 146, 194, 0.52);
  background: rgba(255, 146, 194, 0.12);
}

.doodle.is-bouncing {
  animation: doodleBounce 600ms ease both;
}

.sticker-1 {
  grid-column: 1;
  grid-row: 1;
}

.sticker-2 {
  grid-column: 2;
  grid-row: 1;
  animation-delay: -0.7s;
}

.sticker-3 {
  grid-column: 3;
  grid-row: 1;
  animation-delay: -1.2s;
}

.sticker-4 {
  grid-column: 4;
  grid-row: 1;
  animation-delay: -1.8s;
}

.sticker-5 {
  grid-column: 5;
  grid-row: 1;
  animation-delay: -2.4s;
}

.sticker-6 {
  grid-column: 6;
  grid-row: 1;
  animation-delay: -3s;
}

.doodle-hint {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: center;
}

.doodle-message {
  position: fixed;
  z-index: 24;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.86);
  color: var(--text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  font-family: var(--hand);
  pointer-events: none;
  transform: translate(-50%, -100%);
  animation: doodleMessage 1.8s ease forwards;
}

.buildup-panel {
  width: min(900px, 100%);
}

.pacing-panel {
  display: grid;
  justify-items: center;
  width: min(940px, 100%);
  min-height: 560px;
  align-content: center;
  text-align: center;
}

.pacing-panel h1 {
  margin: 1rem 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-shadow: 0 0 36px rgba(255, 146, 194, 0.32);
}

.pacing-panel p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.review-stamp {
  position: relative;
  z-index: 1;
  margin: 1.35rem 0 0.4rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255, 146, 194, 0.48);
  border-radius: 18px;
  color: var(--pink);
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 0 0 28px rgba(255, 146, 194, 0.18);
}

.evidence-panel,
.vote-panel,
.letter-panel {
  justify-items: stretch;
  text-align: left;
}

.evidence-grid,
.vote-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

.evidence-card,
.vote-card {
  min-height: 13rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 146, 194, 0.12), transparent 10rem),
    rgba(0, 0, 0, 0.18);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.evidence-card {
  display: grid;
  align-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.evidence-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  border-color: rgba(255, 146, 194, 0.44);
}

.evidence-card.is-unlocked {
  border-color: rgba(150, 255, 216, 0.42);
  background:
    radial-gradient(circle at 35% 0%, rgba(150, 255, 216, 0.12), transparent 10rem),
    rgba(0, 0, 0, 0.18);
}

.evidence-card span,
.vote-card span {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-card strong,
.vote-card strong {
  display: block;
  margin: 0.8rem 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.evidence-card small {
  color: var(--muted);
}

.vote-card {
  display: grid;
  align-content: center;
  text-align: center;
  transition: transform 260ms ease, border-color 260ms ease;
}

.vote-card.is-counting {
  animation: warningBuzz 520ms ease both;
  border-color: rgba(255, 211, 138, 0.4);
}

.vote-card.is-approved {
  border-color: rgba(150, 255, 216, 0.42);
  transform: translateY(-5px);
}

.vote-card.is-approved strong {
  color: var(--good);
}

.sure-panel {
  overflow: visible;
}

.runaway-btn {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.runaway-btn.has-run-away {
  transform: translate(90px, -28px) rotate(4deg) scale(1.03);
}

.letter-panel {
  width: min(820px, 100%);
}

.letter-lines {
  position: relative;
  z-index: 1;
  min-height: 22rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 146, 194, 0.12), transparent 16rem),
    rgba(0, 0, 0, 0.16);
}

.letter-lines .terminal-line {
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  line-height: 1.85;
  letter-spacing: -0.025em;
}

.letter-lines .terminal-line::before {
  content: "";
}

.soft-title span {
  border-color: rgba(255, 241, 217, 0.22);
  background: rgba(255, 241, 217, 0.08);
  color: var(--cream);
}

.typing-card {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 146, 194, 0.1), transparent 15rem),
    rgba(0, 0, 0, 0.16);
}

.soft-lines {
  min-height: 22rem;
}

.soft-lines .terminal-line {
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  letter-spacing: -0.025em;
  text-shadow: 0 0 28px rgba(255, 146, 194, 0.18);
}

.soft-lines .terminal-line::before {
  content: "";
}

.home-line {
  margin-top: 0.5rem;
  color: var(--pink);
  font-family: var(--hand);
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 0 36px rgba(255, 146, 194, 0.4);
}

.final-panel {
  display: grid;
  place-items: center;
  min-height: 640px;
  text-align: center;
}

.decision-stage,
.reveal-stage {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.decision-stage h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.065em;
}

.long-loader {
  width: min(540px, 100%);
  height: 1rem;
  margin: 0 auto 1.35rem;
}

.error-stack {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.error-card {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 111, 156, 0.3);
  border-radius: 16px;
  background: rgba(255, 111, 156, 0.1);
  color: #ffc3d4;
  font-family: var(--mono);
  opacity: 0;
  transform: translateY(8px);
  animation: lineIn 450ms ease forwards;
}

.code-block {
  display: none;
  min-height: 13rem;
  margin: 1.5rem auto 0;
  padding: 1.2rem;
  border: 1px solid rgba(150, 255, 216, 0.18);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.24);
  color: #e1fff0;
  box-shadow: inset 0 0 45px rgba(150, 255, 216, 0.05);
  font-family: var(--mono);
  text-align: left;
  white-space: pre-wrap;
}

.final-panel.blackout {
  animation: blackout 2s ease both;
}

.reveal-stage {
  display: none;
}

.reveal-stage.is-visible {
  display: block;
  animation: revealIn 1.2s ease both;
}

.reveal-stage p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-family: var(--mono);
}

.reveal-stage h1 {
  margin: 0.8rem 0 0.4rem;
  color: #fff;
  font-size: clamp(3rem, 10vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
  text-shadow:
    0 0 28px rgba(255, 146, 194, 0.9),
    0 0 90px rgba(255, 79, 154, 0.48);
}

.reveal-stage h1 span {
  display: inline-block;
  animation: heartBeat 900ms ease infinite;
}

.reveal-stage h2,
.reveal-stage h3 {
  margin: 0.7rem 0;
}

.reveal-stage h2 {
  color: var(--good);
  font-family: var(--mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
}

.reveal-stage h3 {
  color: var(--pink);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
}

.message-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.message-card {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 146, 194, 0.14), transparent 18rem),
    rgba(255, 255, 255, 0.055);
}

.message-card p {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.55;
}

.message-card h1 {
  margin: 1rem 0;
  color: var(--text);
  font-family: var(--hand);
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-shadow: 0 0 42px rgba(255, 146, 194, 0.48);
}

.message-card small {
  color: var(--pink);
  font-size: 1rem;
  font-weight: 800;
}

.reveal-us-btn.is-hidden {
  display: none;
}

.us-reveal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  width: min(820px, 100%);
  margin-top: 1.2rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(255, 146, 194, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 146, 194, 0.18), transparent 16rem),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.us-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.us-reveal img {
  width: 100%;
  max-height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.us-reveal div {
  text-align: left;
}

.us-reveal span {
  display: inline-flex;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 146, 194, 0.24);
  border-radius: 999px;
  background: rgba(255, 146, 194, 0.09);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.us-reveal h2 {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.us-reveal p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.us-reveal small {
  color: var(--cream);
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 800;
}

.toast-zone {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  gap: 0.7rem;
  pointer-events: none;
}

.toast {
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(14, 14, 20, 0.84);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  color: var(--text);
  animation: toastIn 4.2s ease forwards;
}

.toast strong {
  display: block;
  color: var(--pink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-meme {
  position: fixed;
  z-index: 18;
  width: 13rem;
  padding: 1rem;
  pointer-events: auto;
  animation: floatingMeme 4.6s ease forwards;
}

.tooltip-egg {
  position: fixed;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 12;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(255, 146, 194, 0.22);
  cursor: help;
}

.tooltip-egg::after {
  content: "bro was suffering but aesthetically";
  position: absolute;
  left: 0;
  bottom: 1.8rem;
  width: max-content;
  max-width: 15rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(10, 10, 14, 0.9);
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tooltip-egg:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.confetti {
  position: fixed;
  top: -1rem;
  z-index: 28;
  width: 0.7rem;
  height: 1rem;
  pointer-events: none;
  animation: confettiFall 3.4s ease-in forwards;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3rem, -2rem, 0) scale(1.08);
  }
}

@keyframes driftUp {
  0% {
    opacity: 0;
    transform: translateY(110vh) translateX(0) rotate(0deg);
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-12vh) translateX(var(--x-drift)) rotate(180deg);
  }
}

@keyframes shimmer {
  50% {
    transform: translateX(38%);
  }
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes memeWiggle {
  0% {
    transform: translateY(12px) scale(0.85) rotate(-7deg);
  }
  45% {
    transform: translateY(0) scale(1.06) rotate(5deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes pulseGlow {
  50% {
    text-shadow: 0 0 24px rgba(255, 211, 138, 0.8);
  }
}

@keyframes warningBuzz {
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

@keyframes playfulBounce {
  30% {
    transform: translateY(-6px) rotate(-1.5deg) scale(1.025);
  }
  65% {
    transform: translateY(-2px) rotate(1.5deg) scale(1.01);
  }
}

@keyframes doodleFloat {
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes doodleBounce {
  35% {
    transform: scale(1.22) rotate(-8deg);
  }
  70% {
    transform: scale(0.96) rotate(5deg);
  }
}

@keyframes doodleMessage {
  0% {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.9);
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -170%) scale(1);
  }
}

@keyframes glitchShake {
  0%,
  100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: translate(-6px, 3px);
    filter: hue-rotate(24deg);
  }
  50% {
    transform: translate(5px, -3px);
    filter: hue-rotate(-24deg);
  }
  75% {
    transform: translate(-3px, -2px);
  }
}

@keyframes blackout {
  0% {
    filter: brightness(1);
  }
  28%,
  72% {
    filter: brightness(0);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.93);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heartBeat {
  50% {
    transform: scale(1.16);
  }
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateX(1rem) scale(0.96);
  }
  12%,
  84% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(1rem) scale(0.96);
  }
}

@keyframes floatingMeme {
  0% {
    opacity: 0;
    transform: translateY(1rem) rotate(-4deg) scale(0.92);
  }
  14%,
  84% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-3rem) rotate(3deg) scale(1);
  }
}

@keyframes confettiFall {
  to {
    opacity: 0;
    transform: translateY(110vh) rotate(720deg);
  }
}

@media (max-width: 920px) {
  .screen {
    position: absolute;
    min-height: 100svh;
    padding: 1rem;
  }

  .boot-grid,
  .scrapbook-grid {
    grid-template-columns: 1fr;
  }

  .boot-cat {
    min-height: auto;
    width: min(15rem, 100%);
    margin: 0 auto;
  }

  .scrapbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doodle-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .evidence-grid,
  .vote-grid {
    grid-template-columns: 1fr;
  }

  .pacing-panel {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .panel {
    border-radius: 24px;
  }

  .terminal-panel,
  .open-panel,
  .intro-panel,
  .checks-panel,
  .scrapbook-panel,
  .doodle-panel,
  .buildup-panel,
  .pacing-panel,
  .final-panel,
  .message-panel {
    min-height: auto;
    padding: 1rem;
  }

  .terminal-copy {
    min-height: 12rem;
    font-size: 0.9rem;
  }

  .intro-panel h1,
  .reveal-stage h1,
  .message-card h1 {
    letter-spacing: -0.065em;
  }

  .scrapbook-grid {
    grid-template-columns: 1fr;
  }

  .check-row div {
    display: grid;
    gap: 0.35rem;
  }

  .soft-lines {
    min-height: 24rem;
  }

  .letter-lines {
    min-height: 23rem;
  }

  .code-block {
    min-height: 23rem;
    padding: 1rem;
  }

  .doodle-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doodle {
    min-height: 4rem;
  }

  .sticker-note {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 921px) {
  .screen {
    padding: 0.8rem 2rem;
  }

  .terminal-panel,
  .open-panel,
  .intro-panel,
  .checks-panel,
  .scrapbook-panel,
  .doodle-panel,
  .buildup-panel,
  .pacing-panel,
  .final-panel,
  .message-panel {
    padding: 1.15rem;
  }

  .terminal-panel,
  .open-panel,
  .intro-panel,
  .final-panel {
    min-height: calc(100vh - 1.6rem);
  }

  .boot-grid {
    padding: 1rem 1rem 0;
  }

  .terminal-copy {
    min-height: 10rem;
    padding: 0.9rem 0;
    line-height: 1.65;
  }

  .section-title {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .section-title h2 {
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  }

  .check-list {
    gap: 0.42rem;
  }

  .check-row {
    padding: 0.55rem 0.75rem;
  }

  .scrapbook-grid {
    gap: 0.52rem;
  }

  .scrap-card {
    min-height: 7rem;
    padding: 0.75rem;
  }

  .scrap-card p {
    margin-top: 0.55rem;
    font-size: 1rem;
  }

  .doodle-stage {
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .photo-board {
    gap: 0.55rem;
  }

  .soft-lines {
    min-height: 17rem;
  }

  .letter-lines {
    min-height: 16rem;
  }

  .soft-lines .terminal-line {
    line-height: 1.55;
    font-size: 1.08rem;
  }

  .code-block {
    min-height: 18rem;
  }

  .message-card {
    padding: 1.8rem;
  }
}

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