*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Theme Definitions ───────────────────────── */
:root {
  /* Default Love Theme: Postcard — Cream & Red Hearts */
  --bg-color: #fdf6ee;
  --text-color: #4a3728;
  --accent-color: #d63447;
  --accent-rgb: 214, 52, 71;
  --editor-bg: #1e1a15;
  
  --intro-bg: #ffe;
  --envelope-bg-1: #f4e4c1;
  --envelope-bg-2: #e8d4a8;
  --letter-bg-1: #fffef8;
  --letter-bg-2: #fff5e1;
  
  --envelope-border: rgba(200, 160, 100, 0.35);
  --letter-border: rgba(200, 160, 100, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.08);
  
  --pin-color-1: #e8c170;
  --pin-color-2: #c89040;
  --card-bg-1: #fffbf5;
  --card-bg-2: #fff3e0;
  --card-border: rgba(200, 160, 100, 0.25);
  
  /* Syntax Highlighting (on dark editor bg) */
  --syn-comment: #7a7060;
  --syn-keyword: #d63447;
  --syn-string: #8fbc6a;
  --syn-number: #e8a060;
  --syn-operator: #d09050;
  --syn-variable: #d4a0b0;
  --syn-function: #daa520;
  --syn-bracket: #d4b880;
}

body.birthday-theme {
  /* Birthday Theme: Luxurious Gold & Black */
  --bg-color: #0a0a0a;
  --text-color: #e0d5c0;
  --accent-color: #d4af37;
  --accent-rgb: 212, 175, 55;
  --editor-bg: #111;
  
  --intro-bg: #0a0a0a;
  --envelope-bg-1: #1a1a1a;
  --envelope-bg-2: #2a2a2a;
  --letter-bg-1: #1c1c1c;
  --letter-bg-2: #111;
  
  --envelope-border: rgba(212, 175, 55, 0.4);
  --letter-border: rgba(212, 175, 55, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.5);
  
  --pin-color-1: #f5d76e;
  --pin-color-2: #b8860b;
  --card-bg-1: #161616;
  --card-bg-2: #0e0e0e;
  --card-border: rgba(212, 175, 55, 0.2);

  /* Syntax Highlighting */
  --syn-comment: #6c7086;
  --syn-keyword: #d4af37;
  --syn-string: #a6e3a1;
  --syn-number: #fab387;
  --syn-operator: #e8c547;
  --syn-variable: #f5c2e7;
  --syn-function: #ffd700;
  --syn-bracket: #f9e2af;
}

body {
  background: var(--bg-color);
  min-height: 100vh;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  color: var(--text-color);
  overflow-x: hidden;
  transition: background 0.8s ease, color 0.8s ease;
}

/* ── Theme Toggle Button ─────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(var(--accent-rgb), 0.15);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  animation: fadeInToggle 1s ease 6s forwards;
}
.theme-toggle:hover {
  transform: scale(1.12);
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(var(--accent-rgb), 0.3);
}
.theme-toggle:active {
  transform: scale(0.95);
}
.theme-toggle-icon {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.theme-toggle:hover .theme-toggle-icon {
  transform: scale(1.15) rotate(10deg);
}

@keyframes fadeInToggle {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Intro Screen ────────────────────────────── */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--intro-bg);
  transition: opacity 1s ease, visibility 1s ease;
}
#intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope {
  position: relative;
  width: 340px;
  height: 220px;
  background: linear-gradient(135deg, var(--envelope-bg-1) 0%, var(--envelope-bg-2) 100%);
  border: 2px solid var(--envelope-border);
  border-radius: 6px;
  box-shadow: 0 10px 40px var(--shadow-color), 0 0 30px rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, var(--envelope-bg-2), var(--envelope-bg-1));
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  animation: openFlap 1s ease-out 0.5s forwards;
  z-index: 2;
}

@keyframes openFlap {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); }
}

.letter {
  position: absolute;
  bottom: 20px;
  width: 280px;
  background: linear-gradient(145deg, var(--letter-bg-1), var(--letter-bg-2));
  border: 1px solid var(--letter-border);
  border-radius: 4px;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 2rem 1.5rem;
  text-align: center;
  z-index: 3;
  animation: riseLetter 1.2s ease-out 1.4s forwards;
  transform: translateY(0);
}

@keyframes riseLetter {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-120px); }
}

.letter-line {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeText 1s ease-in 2.2s forwards;
}

@keyframes fadeText {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.letter-heart {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: var(--accent-color);
  opacity: 0;
  animation: fadeText 0.8s ease-in 3s forwards;
}

/* ── Heart Flood Screen ──────────────────────── */
.heart-flood {
  position: fixed;
  inset: 0;
  z-index: 7500;
  background: linear-gradient(135deg, var(--bg-color) 0%, rgba(var(--accent-rgb), 0.1) 50%, var(--bg-color) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  overflow: hidden;
}
.heart-flood.active {
  opacity: 1;
  pointer-events: all;
}
.heart-flood.fade-out {
  opacity: 0;
}

.flood-birthday-msg {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--accent-color);
  text-align: center;
  letter-spacing: 3px;
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4), 0 0 60px rgba(var(--accent-rgb), 0.15);
  margin-bottom: 2rem;
  padding: 0 2rem;
  opacity: 0;
  animation: fadeText 1s ease-in 0.3s forwards, bdayGlow 2s ease-in-out 1.3s infinite alternate;
}

@keyframes bdayGlow {
  0%   { text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4), 0 0 60px rgba(var(--accent-rgb), 0.15); }
  100% { text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.7), 0 0 80px rgba(var(--accent-rgb), 0.3), 0 0 120px rgba(var(--accent-rgb), 0.1); }
}

.flood-hearts-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.flood-heart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20vw;
  height: 14vh;
  animation: heartPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  user-select: none;
}
.flood-heart .flood-icon {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--accent-color);
  filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), 0.3));
  animation: heartBeat 1.2s ease-in-out infinite;
}
.flood-heart .flood-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.5rem, 1.1vw, 0.8rem);
  font-style: italic;
  color: rgba(var(--accent-rgb), 0.7);
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

@keyframes heartPop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.18); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.12); }
  60%      { transform: scale(1); }
}

/* ── Confetti / sparkle particles ────────────── */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  pointer-events: none;
  animation: sparkleFloat linear infinite;
  opacity: 0;
}

@keyframes sparkleFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  50%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ── Main Site ───────────────────────────────── */
#main-site {
  opacity: 0;
  transition: opacity 1s ease;
}
#main-site.visible {
  opacity: 1;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.col-left {
  justify-content: flex-start;
  padding-top: 3rem;
}

.editor-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--editor-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  width: 100%;
  max-width: 540px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.tab-title {
  margin-left: 12px;
  font-size: 0.8rem;
  color: rgba(var(--accent-rgb), 0.6);
  letter-spacing: 0.5px;
}

.code-area {
  background: var(--editor-bg);
  color: #cdd6f4;
  padding: 1.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-top: none;
  border-radius: 0 0 10px 10px;
  width: 100%;
  max-width: 540px;
  min-height: 420px;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-rgb), 0.05);
}

.syn-comment   { color: var(--syn-comment); font-style: italic; }
.syn-keyword   { color: var(--syn-keyword); }
.syn-string    { color: var(--syn-string); }
.syn-number    { color: var(--syn-number); }
.syn-operator  { color: var(--syn-operator); }
.syn-variable  { color: var(--syn-variable); }
.syn-function  { color: var(--syn-function); }
.syn-bracket   { color: var(--syn-bracket); }

#typewriter::after {
  content: '\25CC';
  animation: blink 1s step-end infinite;
  color: var(--accent-color);
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ── Heart Button ────────────────────────────── */
.heart-icon {
  display: inline-block;
  opacity: 0;
  font-size: 2.8rem;
  color: var(--accent-color);
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.3s ease, opacity 0.6s ease;
  user-select: none;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.5));
}
.heart-icon.visible {
  opacity: 1;
}
.heart-icon:hover {
  transform: scale(1.35);
  filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.8));
}

.heart-hint {
  opacity: 0;
  font-size: 0.75rem;
  color: rgba(var(--accent-rgb), 0.6);
  font-style: italic;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  transition: opacity 0.8s ease;
  text-align: center;
}
.heart-hint.visible {
  opacity: 1;
}

/* ── Birthday Photo Showcase (Pinned Polaroids) ── */
.bday-showcase {
  width: 100%;
  max-width: 560px;
  margin-top: 2.5rem;
  display: none; /* Hidden by default in love theme */
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 1.2s ease 0.5s;
  perspective: 800px;
}
body.birthday-theme .bday-showcase {
  display: flex;
}
.bday-showcase.visible {
  opacity: 1;
}

.bday-card {
  position: relative;
  flex: 1;
  max-width: 240px;
  background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 14px 14px 0;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(var(--accent-rgb), 0.04);
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s ease;
  will-change: transform;
}

/* Tilt the cards at opposing angles */
.bday-card--left {
  transform: rotate(-3deg);
  animation: cardFloat 4s ease-in-out infinite alternate;
}
.bday-card--right {
  transform: rotate(2.5deg);
  margin-top: 1.2rem;
  animation: cardFloat 4s ease-in-out 1s infinite alternate-reverse;
}

@keyframes cardFloat {
  0%   { transform: rotate(-3deg) translateY(0); }
  100% { transform: rotate(-3deg) translateY(-5px); }
}
.bday-card--right {
  animation-name: cardFloatR;
}
@keyframes cardFloatR {
  0%   { transform: rotate(2.5deg) translateY(0); }
  100% { transform: rotate(2.5deg) translateY(-5px); }
}

/* Straighten + lift on hover */
.bday-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.03) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(var(--accent-rgb), 0.12);
  z-index: 10;
}

/* Gold pushpin */
.bday-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pin-color-1), var(--pin-color-2));
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(var(--accent-rgb), 0.3);
  z-index: 5;
}
.bday-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

/* Photo wrapper */
.bday-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
}
.bday-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(var(--accent-rgb), 0.06) 100%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}
.bday-card:hover .bday-photo-wrap::after {
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(var(--accent-rgb), 0.12) 100%
  );
}

.bday-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bday-card:hover img {
  transform: scale(1.05);
}

/* Caption */
.bday-card .bday-caption {
  padding: 0.9rem 0.6rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.7rem;
  font-style: italic;
  color: rgba(var(--accent-rgb), 0.65);
  text-align: center;
  letter-spacing: 0.6px;
  line-height: 1.6;
  transition: color 0.4s ease;
}
.bday-card:hover .bday-caption {
  color: rgba(var(--accent-rgb), 0.9);
}

/* Decorative gold corner flourishes */
.bday-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(var(--accent-rgb), 0.25);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  transition: border-color 0.4s ease;
}
.bday-card:hover .bday-corner {
  border-color: rgba(var(--accent-rgb), 0.5);
}
.bday-corner--tl {
  top: 8px;
  left: 8px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.bday-corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ── Right Column ────────────────────────────── */
.col-right {
  background: transparent;
}

.love-message {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-color);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  opacity: 0;
  transition: opacity 1.2s ease;
  text-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2);
}
.love-message .signature {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: rgba(var(--accent-rgb), 0.7);
}
.love-message.visible {
  opacity: 1;
}

.heart-wrapper {
  position: relative;
  display: inline-block;
}

#heart-canvas {
  display: block;
  max-width: 100%;
  border-radius: 16px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--accent-rgb), 0.08) 0%,
    rgba(var(--accent-rgb), 0.03) 40%,
    transparent 70%
  );
  filter: drop-shadow(0 0 25px rgba(var(--accent-rgb), 0.1));
}

.clock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.95rem;
  color: rgba(var(--accent-rgb), 0.7);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.7;
  pointer-events: none;
  z-index: 2;
}

.clock .label {
  display: block;
  font-size: 0.72rem;
  color: rgba(var(--accent-rgb), 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.clock .digits {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

/* ── Memories Popup Overlay ──────────────────── */
.memories-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.memories-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.memories-popup {
  position: relative;
  background: linear-gradient(145deg, var(--envelope-bg-1), var(--envelope-bg-2));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--envelope-border);
  border-radius: 18px;
  padding: 2.5rem 2.5rem 1.8rem;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.memories-overlay.active .memories-popup {
  transform: scale(1) translateY(0);
}

.memories-popup .polaroid-frame {
  position: relative;
  display: inline-block;
  background: var(--editor-bg);
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: 6px;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(var(--accent-rgb), 0.05);
}

.memories-popup .polaroid-frame img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.5s ease;
}
.memories-popup .polaroid-frame img.fading {
  opacity: 0;
}

.memories-label {
  margin-top: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(var(--accent-rgb), 0.6);
  letter-spacing: 1.5px;
}

.close-memories {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(var(--accent-rgb), 0.5);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.close-memories:hover {
  color: var(--accent-color);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
  .container {
    flex-direction: column;
  }
  .col {
    padding: 1.5rem 1rem;
  }
  .code-area {
    min-height: auto;
  }
  body.birthday-theme .bday-showcase {
    flex-direction: column;
    align-items: center;
  }
  .bday-card {
    max-width: 280px;
  }
}

/* ── Floating Hearts ─────────────────────────── */
.floating-hearts {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fh {
  position: absolute;
  bottom: -30px;
  color: rgba(var(--accent-rgb), 0.15);
  font-size: 1rem;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

.fh:nth-child(1)  { left: 5%;  font-size: 0.9rem;  animation-duration: 12s; animation-delay: 0s; }
.fh:nth-child(2)  { left: 12%; font-size: 1.4rem;  animation-duration: 15s; animation-delay: 2s; }
.fh:nth-child(3)  { left: 20%; font-size: 0.7rem;  animation-duration: 11s; animation-delay: 4s; }
.fh:nth-child(4)  { left: 28%; font-size: 1.1rem;  animation-duration: 14s; animation-delay: 1s; }
.fh:nth-child(5)  { left: 35%; font-size: 0.8rem;  animation-duration: 13s; animation-delay: 5s; }
.fh:nth-child(6)  { left: 42%; font-size: 1.3rem;  animation-duration: 16s; animation-delay: 3s; }
.fh:nth-child(7)  { left: 50%; font-size: 0.6rem;  animation-duration: 10s; animation-delay: 6s; }
.fh:nth-child(8)  { left: 57%; font-size: 1.0rem;  animation-duration: 14s; animation-delay: 2s; }
.fh:nth-child(9)  { left: 63%; font-size: 1.5rem;  animation-duration: 17s; animation-delay: 0s; }
.fh:nth-child(10) { left: 70%; font-size: 0.9rem;  animation-duration: 12s; animation-delay: 4s; }
.fh:nth-child(11) { left: 76%; font-size: 1.2rem;  animation-duration: 15s; animation-delay: 7s; }
.fh:nth-child(12) { left: 82%; font-size: 0.7rem;  animation-duration: 11s; animation-delay: 1s; }
.fh:nth-child(13) { left: 88%; font-size: 1.1rem;  animation-duration: 13s; animation-delay: 3s; }
.fh:nth-child(14) { left: 93%; font-size: 0.8rem;  animation-duration: 16s; animation-delay: 5s; }
.fh:nth-child(15) { left: 97%; font-size: 1.3rem;  animation-duration: 14s; animation-delay: 8s; }

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) translateX(15px) scale(1.1);
    opacity: 0.8;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-105vh) translateX(-10px) scale(0.8);
    opacity: 0;
  }
}
