/* =========================================================
   CAKE / LETTER / FOOTER / OVERLAYS
   ========================================================= */

/* ---------- CAKE SECTION ---------- */
.cake-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(255, 179, 71, .13), transparent 42%),
    radial-gradient(ellipse at 20% 80%, rgba(123, 92, 255, .08), transparent 45%),
    #06070a;
}
.cake-section__watermark {
  position: absolute;
  top: 3%;
  left: 50%;
  z-index: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: 32vw;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.1em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(244, 241, 232, .035);
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
.cake-section > .section__head { position: relative; z-index: 3; }
.cake__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  margin-top: clamp(40px, 5vw, 64px);
}
.cake__copy .display { margin-top: 36px; }
.cake__copy .display em { color: var(--lime); }
.cake__lead {
  max-width: 520px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.cake__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.blow-btn { position: relative; min-width: 138px; }
.blow-btn > span:not(.blow-btn__meter),
.blow-btn em { position: relative; z-index: 2; }
.blow-btn em {
  margin-left: 4px;
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .55;
}
.blow-btn__meter {
  position: absolute;
  inset: auto auto 0 0;
  z-index: 1;
  width: 0;
  height: 100%;
  background: rgba(6, 7, 10, .16);
  transition: width .08s linear;
}
.cake__status {
  min-height: 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.cake__status.is-done { color: var(--lime); }
.wish {
  max-width: 520px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.wish label {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.wish__row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 241, 232, .035);
  transition: border-color .3s var(--ease);
}
.wish__row:focus-within { border-color: rgba(198, 255, 61, .5); }
.wish input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-size: 12px;
}
.wish input::placeholder { color: rgba(244, 241, 232, .32); }
.wish button {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.wish button:hover { background: var(--cream); transform: translateY(-1px); }
.wish__note {
  margin-top: 8px;
  color: rgba(244, 241, 232, .34);
  font-size: 9px;
  line-height: 1.5;
}
.cake__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 650px;
  perspective: 1000px;
}
.cake__glow {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, .3), transparent 62%);
  filter: blur(28px);
  transform: translate(-50%, -50%);
  animation: glowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.cake {
  position: relative;
  z-index: 2;
  width: 420px;
  height: 430px;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.cake__topper {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 6;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--lime);
  transform: translateX(-50%) rotate(-2deg);
}
.cake__topper::before,
.cake__topper::after {
  content: '';
  position: absolute;
  top: 100%;
  width: 1px;
  height: 30px;
  background: rgba(6, 7, 10, .65);
}
.cake__topper::before { left: 18px; }
.cake__topper::after { right: 18px; }
.cake__candles {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  transform: translateX(-50%);
}
.candle {
  position: relative;
  width: 10px;
  height: 62px;
  padding: 0;
  background: none;
}
.candle__wax {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, var(--lime) 0 5px, var(--cream) 5px 10px);
  box-shadow: inset -2px 0 rgba(0, 0, 0, .2), 0 2px 3px rgba(0, 0, 0, .2);
}
.candle__flame {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 12px;
  height: 20px;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 70%, #fff 0%, #ffe28a 28%, #ff9d00 62%, rgba(255, 110, 0, 0) 76%);
  box-shadow: 0 0 12px #ff9d00, 0 0 30px rgba(255, 157, 0, .55);
  filter: blur(.1px);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: flicker .16s infinite alternate;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.candle__flame::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 7px;
  border-radius: 50%;
  background: #7cc7ff;
  opacity: .5;
  filter: blur(1px);
  transform: translateX(-50%);
}
.candle__smoke {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 241, 232, .42);
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}
.candle.is-out .candle__flame {
  opacity: 0;
  transform: translateX(-50%) scale(.15);
  animation: none;
}
.candle.is-out .candle__smoke { animation: smoke 1.6s ease-out forwards; }
.cake__tier {
  position: absolute;
  left: 50%;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8ecd2 0%, #eed7ad 60%, #dfbf8e 100%);
  box-shadow:
    inset 0 7px 0 rgba(255, 255, 255, .3),
    inset 0 -10px 0 rgba(160, 110, 50, .14),
    0 12px 22px rgba(0, 0, 0, .18);
  transform: translateX(-50%);
}
.cake__tier--top {
  bottom: 238px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 200px;
  height: 80px;
}
.cake__tier--top span {
  color: #6d3d20;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  transform: translateY(4px);
}
.cake__tier--mid {
  bottom: 145px;
  z-index: 3;
  width: 290px;
  height: 95px;
}
.cake__tier--bottom {
  bottom: 40px;
  z-index: 2;
  width: 370px;
  height: 110px;
}
.cake__drip {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 22px;
  background: radial-gradient(circle at 14px 0, #fbf2dc 13px, transparent 14px) repeat-x;
  background-size: 28px 22px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .08));
}
.cake__plate {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 1;
  width: 440px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #31313a, #0c0c10);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .12);
  transform: translateX(-50%);
}
.cake__sprinkles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.cake__sprinkles i {
  position: absolute;
  width: 5px;
  height: 10px;
  border-radius: 2px;
  opacity: .9;
}
.cake__sprinkles i:nth-child(1) { top: 60%; left: 30%; background: var(--pink); transform: rotate(22deg); }
.cake__sprinkles i:nth-child(2) { top: 63%; left: 48%; background: var(--lime); transform: rotate(-18deg); }
.cake__sprinkles i:nth-child(3) { top: 70%; left: 66%; background: var(--violet); transform: rotate(36deg); }
.cake__sprinkles i:nth-child(4) { top: 58%; left: 40%; background: var(--cream); transform: rotate(-32deg); }
.cake__sprinkles i:nth-child(5) { top: 66%; left: 58%; background: var(--orange); transform: rotate(12deg); }
.cake__sprinkles i:nth-child(6) { top: 74%; left: 36%; background: var(--pink); transform: rotate(-44deg); }
.cake__sprinkles i:nth-child(7) { top: 78%; left: 62%; background: var(--lime); transform: rotate(28deg); }
.cake__sprinkles i:nth-child(8) { top: 80%; left: 44%; background: var(--violet); transform: rotate(-10deg); }
.cake__sprinkles i:nth-child(9) { top: 62%; left: 72%; background: var(--cream); transform: rotate(48deg); }
.cake__sprinkles i:nth-child(10) { top: 72%; left: 26%; background: var(--orange); transform: rotate(-24deg); }
.cake__sprinkles i:nth-child(11) { top: 84%; left: 54%; background: var(--pink); transform: rotate(18deg); }
.cake__sprinkles i:nth-child(12) { top: 68%; left: 52%; background: var(--lime); transform: rotate(-36deg); }
.cake__shadow {
  position: absolute;
  bottom: 38px;
  left: 50%;
  z-index: 0;
  width: 470px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .65), transparent 70%);
  filter: blur(12px);
  transform: translateX(-50%);
}
.cake__message {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 4;
  opacity: 0;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cake__message span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
}
.cake__message strong {
  display: block;
  margin-top: 6px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-style: italic;
  font-weight: 400;
}
.cake-section.is-celebrating .cake__message {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cake-section.is-celebrating .cake__glow {
  background: radial-gradient(circle, rgba(198, 255, 61, .35), transparent 62%);
}
.cake-section.is-celebrating .cake { animation: cakeBounce .7s var(--ease); }
.cake-section.is-celebrating .cake__tier { filter: brightness(1.06); }
.wish-sky {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.wish-star {
  position: absolute;
  bottom: 20%;
  left: var(--x, 50%);
  color: var(--lime);
  font-size: var(--s, 18px);
  text-shadow: 0 0 14px rgba(198, 255, 61, .8);
  animation: floatUp var(--dur, 5s) ease-in forwards;
}

/* ---------- LETTER SECTION ---------- */
.letter-section {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 150px);
  border-radius: 42px 42px 0 0;
  background: var(--paper);
  color: var(--ink);
}
.letter__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  margin-top: clamp(40px, 5vw, 64px);
}
.letter__copy .display { margin-top: 36px; }
.letter__copy .display em { color: var(--electric); }
.letter__lead {
  max-width: 430px;
  margin-top: 24px;
  color: #6f6b62;
  font-size: 14px;
  line-height: 1.7;
}
.letter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.letter__hint {
  margin-top: 22px;
  color: #8a8579;
  font-size: 9px;
  letter-spacing: .12em;
}
.envelope-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.envelope-wrap__note {
  margin-top: 26px;
  color: #8a8579;
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.envelope {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1.55;
  border: 0;
  background: transparent;
  text-align: left;
  filter: drop-shadow(0 30px 40px rgba(6, 7, 10, .18));
  perspective: 1200px;
  transition: transform .5s var(--ease);
}
.envelope:hover { transform: translateY(-6px) rotate(-1deg); }
.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #e7ddc8;
  box-shadow: inset 0 0 0 1px rgba(6, 7, 10, .1);
}
.envelope__letter-peek {
  position: absolute;
  top: 8%;
  right: 6%;
  left: 6%;
  height: 70%;
  border-radius: 4px;
  background: #fbf7ec;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  transform: translateY(10%);
  transition: transform .6s var(--ease);
}
.envelope__front {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  background: linear-gradient(145deg, #f0e7d4, #e3d6bd);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(6, 7, 10, .08);
}
.envelope__flap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 58%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f3ebda, #e7dcc6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .06);
  transform-origin: 50% 0;
  transition: transform .7s var(--ease), z-index .7s;
}
.envelope__seal {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px dashed rgba(6, 7, 10, .2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9ff78, var(--lime) 45%, #8fbf1e);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2), inset 0 2px 4px rgba(255, 255, 255, .4);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.envelope__address {
  position: absolute;
  bottom: 26px;
  left: 28px;
  z-index: 4;
  color: rgba(6, 7, 10, .72);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.02em;
}
.envelope__address em {
  display: block;
  margin-top: 4px;
  color: rgba(6, 7, 10, .45);
  font-family: var(--font-body);
  font-size: 7px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .12em;
}
.envelope__stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  width: 64px;
  height: 78px;
  padding: 5px;
  border: 1px dashed rgba(6, 7, 10, .3);
  background: #fbf7ec;
  transform: rotate(3deg);
}
.envelope__stamp img {
  width: 100%;
  height: 55px;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.1);
}
.envelope__hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 6;
  color: rgba(6, 7, 10, .38);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .2em;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity .3s var(--ease);
}
.envelope.is-open .envelope__flap { z-index: 1; transform: rotateX(180deg); }
.envelope.is-open .envelope__letter-peek { transform: translateY(-42%); }
.envelope.is-open .envelope__seal { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.envelope.is-open .envelope__hint { opacity: 0; }

/* ---------- LETTER MODAL ---------- */
.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.letter-modal.is-open { visibility: visible; opacity: 1; }
.letter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.letter-paper {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  padding: clamp(28px, 5vw, 60px);
  overflow-y: auto;
  border-radius: 6px;
  background-color: #f7f1e3;
  background-image: linear-gradient(rgba(6, 7, 10, .035) 1px, transparent 1px);
  background-size: 100% 28px;
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  transform: translateY(30px) rotate(-.4deg);
  transition: transform .5s var(--ease);
}
.letter-modal.is-open .letter-paper { transform: none; }
.letter-paper__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 7, 10, .07);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.letter-paper__close:hover { background: var(--lime); transform: rotate(90deg); }
.letter-paper__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6, 7, 10, .18);
  color: rgba(6, 7, 10, .45);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .16em;
}
.letter-paper h3 {
  margin: 26px 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}
.letter-paper__body p {
  margin-bottom: 15px;
  color: #3f3c35;
  font-size: 14px;
  line-height: 1.8;
}
.letter-paper__body p:last-child { margin-bottom: 0; }
.letter-paper__body strong { color: var(--ink); font-weight: 600; }
.letter-paper__sign {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  color: var(--ink);
}
.letter-paper__ps {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(6, 7, 10, .18);
  color: #7a756a;
  font-size: 10px;
  line-height: 1.5;
}
.letter-paper__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.letter-paper__actions span { color: #7a756a; font-size: 9px; }
.letter-paper__seal {
  position: absolute;
  right: 24px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  opacity: .8;
  transform: rotate(-12deg);
  box-shadow: 0 4px 12px rgba(6, 7, 10, .18);
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  background: var(--ink);
}
.footer__marquee {
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.5vw, 33px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(244, 241, 232, .28);
  animation: ticker 32s linear infinite reverse;
}
.footer__marquee-track i {
  color: var(--lime);
  font-style: normal;
  -webkit-text-stroke: 0;
}
.footer__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 80px);
}
.footer__big {
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9.8vw, 10rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.075em;
  -webkit-text-stroke: 1.5px rgba(244, 241, 232, .55);
  cursor: pointer;
  transition: color .5s var(--ease);
}
.footer__big:hover { color: var(--cream); }
.footer__big em {
  color: var(--lime);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  -webkit-text-stroke: 0;
}
.footer__big span { color: var(--lime); -webkit-text-stroke: 0; }
.footer__side { max-width: 440px; }
.footer__note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footer__socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 26px;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 232, .65);
  font-size: 11px;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer__socials a:hover { color: var(--lime); padding-left: 4px; }
.footer__cta { margin-top: 24px; }
.footer__party {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(198, 255, 61, .45);
  color: var(--lime);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}
.footer__party span { transition: transform .4s var(--ease); }
.footer__party:hover span { transform: rotate(90deg) scale(1.2); }
.footer__hint {
  margin-top: 24px;
  color: rgba(244, 241, 232, .3);
  font-size: 9px;
  line-height: 1.6;
}
.footer__hint kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(244, 241, 232, .05);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 8px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 232, .35);
  font-size: 8px;
  letter-spacing: .12em;
}
.footer__bottom i { color: var(--pink); font-style: normal; }

/* ---------- SURPRISE OVERLAY ---------- */
.surprise {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #15132a 0%, #08080f 48%, #06070a 100%);
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.surprise.is-active { visibility: visible; opacity: 1; }
.surprise__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.surprise__close:hover { border-color: var(--lime); transform: rotate(90deg); }
.surprise__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}
.surprise__count,
.surprise__boom {
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}
.surprise__count {
  color: transparent;
  font-family: var(--font-display);
  font-size: 38vw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.1em;
  -webkit-text-stroke: 2px var(--lime);
}
.surprise__count.is-pop { animation: countPop .8s var(--ease) forwards; }
.surprise__boom {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 11rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.08em;
  text-shadow: 6px 6px 0 rgba(123, 92, 255, .38);
}
.surprise__boom.is-pop { animation: boomPop .9s var(--ease) forwards; }
.surprise__card {
  position: relative;
  z-index: 3;
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(198, 255, 61, .28);
  border-radius: 24px;
  background: rgba(12, 13, 19, .92);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.surprise__card.is-visible { opacity: 1; transform: none; }
.surprise__kicker {
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
}
.surprise__card h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.06em;
}
.surprise__card h2 em {
  color: var(--lime);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
.surprise__card p {
  max-width: 460px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.surprise__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.surprise__tiny {
  display: block;
  margin-top: 20px;
  color: rgba(244, 241, 232, .3);
  font-size: 8px;
  letter-spacing: .12em;
}

/* ---------- BIG BOOM / PARTY ---------- */
.big-boom {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}
.big-boom span {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 13rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.09em;
  text-shadow: 8px 8px 0 rgba(123, 92, 255, .5);
  transform: scale(.5) rotate(-5deg);
}
.big-boom.is-active { animation: bigBoom .9s var(--ease) forwards; }
.party-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
}
.party-badge.is-visible { display: inline-flex; }
.party-badge span { font-family: var(--font-body); font-size: 14px; font-weight: 400; }
body.party-mode .grain { opacity: .06; }
body.party-mode .topbar { border-bottom-color: rgba(198, 255, 61, .3); }
body.party-mode .hero__title-line--serif { animation: partyHue 3s linear infinite; }

/* ---------- KEYFRAMES ---------- */
@keyframes glowPulse {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(.9, 1.08) rotate(2deg); }
}
@keyframes smoke {
  0% { opacity: .7; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-30%) translateY(-54px) scale(2.4); }
}
@keyframes cakeBounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-18px) scale(1.02); }
  65% { transform: translateY(4px) scale(.99); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(.6) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-420px) scale(1.1) rotate(160deg); }
}
@keyframes countPop {
  0% { opacity: 0; transform: scale(1.6); }
  22% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.8); }
}
@keyframes boomPop {
  0% { opacity: 0; transform: scale(.4) rotate(-4deg); }
  18% { opacity: 1; transform: scale(1.06) rotate(1deg); }
  55% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes bigBoom {
  0% { opacity: 0; transform: scale(.4) rotate(-6deg); }
  18% { opacity: 1; transform: scale(1.06) rotate(1deg); }
  55% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
@keyframes partyHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
