/* ============================================
   MARK & CASSIE - 18.04.26
   Stationery-matched. Monopoly-inspired.
   Over-engineered for the sake of it.
   ============================================ */

:root {
  --cream: #f5f2ec;
  --cream-cool: #f0f2f5;
  --white: #ffffff;
  --ink: #2a2a2a;
  --ink-light: #555;
  --ink-faint: #999;
  --red: #d4202c;
  --blue: #0066a4;
  --green: #1a9e3f;
  --yellow: #f5e642;
  --orange: #e8861a;
  --purple: #7b4fa0;
  --cyan: #17a6d4;

  --font-display: 'Anek Devanagari', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --font-monopoly: 'Futura', 'Futura PT', 'Century Gothic', 'Apple SD Gothic Neo', sans-serif;

  --border: 3px;
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.65;
  /* Subtle paper grain texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 600; }

.container { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1020px; }

/* ---- Particle Canvas ---- */
#particle-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ---- Alpaca ---- */
.alpaca-hidden {
  position: fixed; bottom: -200px; right: 40px;
  z-index: 10000; pointer-events: none;
  transition: bottom 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.alpaca-hidden.alpaca-peek { bottom: -30px; }
.alpaca-svg { width: 90px; height: auto; }

/* ---- Animate base ---- */
[data-animate] { opacity: 0; transform: translateY(50px); }
[data-animate="fade-left"] { transform: translateX(80px) translateY(0); }

/* ===========================================================
   HERO - mirrors the printed invite layout
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--gutter) 40px;
  overflow: hidden;
}

/* Static confetti scatter (like the invite) */
.confetti-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  background: var(--c);
  transform: rotate(var(--r));
  opacity: 0.7;
}

.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  position: relative;
}

/* Left column - big type + info */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.8rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-title-line { display: block; }

.hero-arrow-wrap {
  position: absolute;
  left: clamp(200px, 30vw, 380px);
  top: clamp(20px, 4vw, 60px);
  z-index: 2;
}
.hero-arrow {
  width: clamp(70px, 8vw, 110px);
  opacity: 0.85;
}

.hero-ring { margin-bottom: 14px; }
.ring-icon {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}
.ring-icon:hover { transform: rotate(12deg) scale(1.12); }

.hero-names {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.hero-invite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

/* DM Mono for the important bits - typewriter punch */
.hero-details { margin-bottom: 0; }
.hero-event {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.6;
}
.hero-time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Right column - photo booth strip */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.polaroid {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
  overflow: hidden;
}

.polaroid-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.polaroid-1 { transform: rotate(-3deg); }
.polaroid-2 { transform: rotate(2deg); margin-top: 24px; }
.polaroid-3 { transform: rotate(1.5deg); margin-top: -14px; }
.polaroid-4 { transform: rotate(-2deg); margin-top: 16px; }

/* ===========================================================
   COUNTDOWN
   =========================================================== */
.countdown-wrapper {
  max-width: 520px;
  margin: 48px auto 0;
  text-align: center;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-digits { display: flex; gap: 3px; }

.flip-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 6vw, 42px);
  height: clamp(42px, 8vw, 58px);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  /* Subtle split-flap line */
  background-image: linear-gradient(transparent 49%, rgba(255,255,255,0.08) 49%, rgba(255,255,255,0.08) 51%, transparent 51%);
}

.countdown-colon {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--ink);
  padding-top: clamp(8px, 1.5vw, 14px);
  opacity: 0.4;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin-top: 8px;
}

.countdown-done { padding: 20px; }
.countdown-done-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ===========================================================
   SECTIONS
   =========================================================== */
.section {
  padding: clamp(32px, 5vw, 56px) 0;
  position: relative;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

/* ===========================================================
   KEY TIMES - Monopoly property cards
   =========================================================== */
.times-row {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 24px);
  flex-wrap: wrap;
}

.monopoly-card-detail {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.4;
  margin-top: 10px;
}

.monopoly-card {
  width: clamp(180px, 22vw, 220px);
  background: var(--white);
  border: var(--border) solid var(--ink);
  position: relative;
  text-align: center;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
/* Red outer border removed */
.monopoly-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 6px 10px 0 rgba(0,0,0,0.08);
}

.monopoly-card-color {
  display: none;
}

.monopoly-card-inner { padding: 24px 16px 28px; }


.monopoly-card-label {
  display: block;
  font-family: var(--font-monopoly);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.4vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 12px;
}

.monopoly-card-time {
  display: block;
  font-family: var(--font-monopoly);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ===========================================================
   TITLE DEED
   =========================================================== */
.title-deed {
  max-width: 360px;
  margin: 0 auto;
  background: var(--white);
  border: var(--border) solid var(--ink);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.title-deed:hover {
  box-shadow: 8px 12px 0 rgba(0,0,0,0.07);
}


.deed-inner {
  padding: 28px 28px 32px;
  text-align: center;
}

.deed-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.deed-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.deed-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.deed-rule {
  height: 2px;
  background: var(--ink);
  margin: 16px 0;
}

.deed-list { text-align: left; }
.deed-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.15);
}
.deed-row:last-child { border-bottom: none; }
.deed-row dt { font-weight: 400; white-space: nowrap; }
.deed-row dd { font-weight: 500; text-align: right; }

.deed-bottom {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ===========================================================
   DIRECTIONS
   =========================================================== */
.mono-address {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-light);
  text-align: center;
  margin-bottom: 36px;
}

.map-frame {
  border: var(--border) solid var(--ink);
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 5px 7px 0 rgba(0,0,0,0.06);
}
.map-frame img { width: 100%; display: block; }

#directions .container { text-align: center; }

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: var(--border) solid var(--ink);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-maps:hover {
  transform: translateY(-3px);
  box-shadow: 4px 6px 0 rgba(0,0,0,0.1);
}
.btn-maps:active {
  transform: translateY(0);
  box-shadow: none;
}

.marquee-banner {
  margin-top: 32px;
  padding: 14px 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  font-family: var(--font-monopoly);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


.marquee-track--slow {
  animation-duration: 22s;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-content { white-space: normal; text-align: center; display: block; padding: 0 20px; }
}

/* Confetti rain */
.confetti-section { position: relative; }
.confetti-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.confetti-section .container { position: relative; z-index: 1; }

/* ===========================================================
   SCROLL PROGRESS BAR
   =========================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.08);
  z-index: 9998;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.1s linear;
}
.scroll-progress-label {
  position: absolute;
  right: 6px;
  top: 6px;
  font-family: var(--font-monopoly);
  font-weight: 700;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scroll-progress-label.visible { opacity: 1; }

/* ===========================================================
   CHANCE CARD
   =========================================================== */
.chance-card {
  max-width: 300px;
  height: 200px;
  margin: 0 auto;
  perspective: 800px;
  cursor: pointer;
}
.chance-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.chance-card.flipped .chance-card-inner {
  transform: rotateY(180deg);
}
.chance-card-front,
.chance-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--white);
  border: var(--border) solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.chance-card-back {
  transform: rotateY(180deg);
}
.chance-q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--ink);
  line-height: 1;
}
.chance-label {
  font-family: var(--font-monopoly);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-top: 8px;
}
.chance-tap {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-top: 12px;
}
.chance-message {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ===========================================================
   CONFETTI CANNON
   =========================================================== */
.cannon-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 18px;
}
.cannon-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: var(--border) solid var(--ink);
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.cannon-btn:hover {
  transform: scale(1.12);
  box-shadow: 4px 6px 0 rgba(0,0,0,0.1);
}
.cannon-btn:active {
  transform: scale(0.88);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.15);
  background: #f0ede7;
}
.cannon-btn-inner {
  font-size: 2.5rem;
  line-height: 1;
}

/* ===========================================================
   DOUBLES MESSAGE
   =========================================================== */
.doubles-msg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-top: 12px;
  animation: doubles-flash 0.4s ease 3;
}
@keyframes doubles-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===========================================================
   TYPEWRITER EFFECT
   =========================================================== */
.deed-typewriter {
  overflow: hidden;
  border-right: 2px solid transparent;
}
.deed-typewriter.typing {
  border-right-color: var(--ink);
  animation: blink-cursor 0.6s step-end infinite;
}
.deed-typewriter.typed {
  border-right-color: transparent;
}
@keyframes blink-cursor {
  50% { border-right-color: transparent; }
}

/* ===========================================================
   ON THE DAY - side by side cards
   =========================================================== */
.day-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  max-width: 700px;
  margin: 0 auto;
}

.stationery-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: block;
}

/* ===========================================================
   STATIONERY CARDS (Unplugged, Gifts)
   =========================================================== */
.stationery-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: var(--border) solid var(--ink);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.stationery-card:hover {
  box-shadow: 6px 8px 0 rgba(0,0,0,0.06);
}

.stationery-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.stationery-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ===========================================================
   DICE
   =========================================================== */
.dice-zone { margin: 28px auto; text-align: center; }

.dice-scene {
  display: inline-flex; gap: 20px;
  perspective: 600px; cursor: pointer; padding: 16px;
}

.die {
  width: 52px; height: 52px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotateX(-20deg) rotateY(20deg);
}

.die-face {
  position: absolute; width: 52px; height: 52px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  display: grid; padding: 7px;
}
.die-1 { transform: rotateY(0deg) translateZ(26px); place-items: center; }
.die-2 { transform: rotateY(180deg) translateZ(26px); grid-template-columns: 1fr 1fr; align-content: space-between; }
.die-2 .dot:first-child { justify-self: start; align-self: start; }
.die-2 .dot:last-child { justify-self: end; align-self: end; }
.die-3 { transform: rotateY(90deg) translateZ(26px); grid-template-columns: 1fr; }
.die-3 .dot:nth-child(1) { justify-self: end; align-self: start; }
.die-3 .dot:nth-child(2) { justify-self: center; align-self: center; }
.die-3 .dot:nth-child(3) { justify-self: start; align-self: end; }
.die-4 { transform: rotateY(-90deg) translateZ(26px); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: center; }
.die-5 { transform: rotateX(90deg) translateZ(26px); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; place-items: center; }
.die-5 .dot:nth-child(3) { grid-column: 1 / -1; }
.die-6 { transform: rotateX(-90deg) translateZ(26px); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; place-items: center; }

.dot {
  width: 9px; height: 9px;
  background: var(--ink); border-radius: 50%;
}

.dice-cta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  padding: 52px var(--gutter);
  text-align: center;
}

.footer-ring {
  margin: 0 auto 12px;
}

.footer-date {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-top: 20px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 48px var(--gutter) 32px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero-left {
    display: flex; flex-direction: column; align-items: center;
  }
  .hero-title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-arrow-wrap { display: none; }
  .photo-strip { max-width: 320px; margin: 0 auto; gap: 10px; }
  .times-row { gap: 12px; }
  .monopoly-card { width: calc(50% - 8px); min-width: 140px; }
  .stationery-card { padding: 28px 22px; }
  .day-cards { grid-template-columns: 1fr; max-width: 400px; }
  .section { padding: clamp(28px, 5vw, 48px) 0; }
  .countdown-wrapper { margin-top: 28px; }
  .countdown { gap: 4px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .photo-strip { max-width: 260px; gap: 8px; }
  .flip-digit { width: 26px; height: 38px; font-size: 1rem; }
  .countdown-colon { font-size: 1rem; }
}

/* ===========================================================
   PARTY MODE
   =========================================================== */
.cannon-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-top: 10px;
}

body.party-mode {
  animation: party-bg 0.4s linear infinite;
}

@keyframes party-bg {
  0% { background-color: #d4202c; }
  14% { background-color: #0066a4; }
  28% { background-color: #f5e642; }
  42% { background-color: #1a9e3f; }
  57% { background-color: #e8861a; }
  71% { background-color: #7b4fa0; }
  85% { background-color: #17a6d4; }
  100% { background-color: #d4202c; }
}

body.party-mode .hero-title,
body.party-mode .sec-title,
body.party-mode .cannon-label,
body.party-mode .footer-date,
body.party-mode .countdown-label,
body.party-mode .countdown-colon,
body.party-mode .cannon-hint {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255,255,255,0.6);
}

body.party-mode .title-deed,
body.party-mode .stationery-card,
body.party-mode .map-frame {
  animation: party-bounce 0.3s ease infinite alternate;
}

@keyframes party-bounce {
  0% { transform: scale(1) rotate(-1deg); }
  100% { transform: scale(1.03) rotate(1deg); }
}

body.party-mode .marquee-track {
  animation-duration: 3s !important;
}

body.party-mode .die {
  animation: party-spin 0.5s linear infinite;
}

@keyframes party-spin {
  0% { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

body.party-mode .cannon-btn {
  animation: party-pulse 0.2s ease infinite alternate;
  background: var(--white);
}

@keyframes party-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  100% { transform: scale(1.15); box-shadow: 0 0 30px 10px rgba(255,255,255,0.3); }
}

body.party-mode .hero-names,
body.party-mode .hero-event,
body.party-mode .hero-time,
body.party-mode .mono-address,
body.party-mode .hero-invite {
  color: rgba(255,255,255,0.85);
}

body.party-mode .flip-digit {
  animation: party-digit 0.15s ease infinite alternate;
}

@keyframes party-digit {
  0% { transform: scale(1); }
  100% { transform: scale(1.08) rotate(2deg); }
}

body.party-mode .polaroid {
  animation: party-photo 0.4s ease infinite alternate;
}
body.party-mode .polaroid-1 { animation-delay: 0s; }
body.party-mode .polaroid-2 { animation-delay: 0.1s; }
body.party-mode .polaroid-3 { animation-delay: 0.2s; }
body.party-mode .polaroid-4 { animation-delay: 0.3s; }

@keyframes party-photo {
  0% { transform: rotate(-5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.05); }
}

body.party-mode .confetti-piece {
  animation: party-confetti 0.3s linear infinite alternate !important;
  display: block !important;
}

@keyframes party-confetti {
  0% { opacity: 1; transform: rotate(0deg) scale(1.5); }
  100% { opacity: 0.5; transform: rotate(180deg) scale(2); }
}

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  #particle-canvas { display: none !important; }
  .confetti-piece { display: none; }
}
