/* assets/style.css */
:root {
  --bg: #070a12;
  --panel: rgba(15, 23, 42, 0.75);
  --card: rgba(17, 24, 39, 0.72);
  --stroke: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.7);
  --accent: #fbbf24;
  --reveal: #ff4da6;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --max: 1000px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: radial-gradient(
    1200px 800px at 30% 10%,
    #111827 0%,
    #070a12 60%,
    #05060a 100%
  );
  overflow-x: hidden;
}
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}
.sky-art {
  width: 110%;
  height: auto;
  position: absolute;
  left: -5%;
  top: -6%;
  opacity: 0.9;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}
.fog {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      closest-side at 20% 60%,
      rgba(255, 255, 255, 0.06),
      transparent 70%
    ),
    radial-gradient(
      closest-side at 60% 40%,
      rgba(255, 255, 255, 0.045),
      transparent 70%
    ),
    radial-gradient(
      closest-side at 80% 65%,
      rgba(255, 255, 255, 0.04),
      transparent 70%
    );
  filter: blur(18px);
  opacity: 0.6;
  animation: drift 16s linear infinite;
}
.fog-b {
  animation-duration: 22s;
  opacity: 0.45;
}
@keyframes drift {
  0% {
    transform: translate3d(-2%, 0, 0);
  }
  50% {
    transform: translate3d(2%, -1%, 0);
  }
  100% {
    transform: translate3d(-2%, 0, 0);
  }
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 28px;
}
.top {
  padding: 10px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sigil {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(251, 191, 36, 0.28),
      transparent 60%
    ),
    rgba(2, 6, 23, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: 0.2px;
}
.sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.78),
    rgba(2, 6, 23, 0.62)
  );
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}
.hero h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}

.lockline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  font-size: 12px;
}
.countdown {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.25);
}

.present-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.present {
  position: relative;
  width: 220px;
  height: 220px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateZ(0);
}
.present:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.5);
  outline-offset: 6px;
  border-radius: 18px;
}
.present-box {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 70px;
  bottom: 22px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.03)
    ),
    rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.present-lid {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 42px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04)
    ),
    rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.26);
  transform-origin: 50% 95%;
  transition: transform 650ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.present-ribbon {
  position: absolute;
  left: 50%;
  top: 42px;
  bottom: 22px;
  width: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(251, 191, 36, 0.95),
    rgba(251, 191, 36, 0.35)
  );
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.35));
}
.present-tag {
  position: absolute;
  left: 50%;
  top: 102px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 12px;
}
.present.opening .present-lid {
  transform: rotateX(55deg) translateY(-6px);
}

.reveal-stage {
  min-height: 86px;
  width: 100%;
  text-align: center;
}
.reveal-card {
  display: inline-block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.reveal-head {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.reveal-result {
  font-size: 28px;
  margin-top: 6px;
  letter-spacing: 2px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 77, 166, 0.25);
}
.smoke {
  position: relative;
  width: 260px;
  height: 90px;
  margin: 8px auto 0;
  pointer-events: none;
}
.smoke::before,
.smoke::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 70%,
      rgba(255, 255, 255, 0.14),
      transparent 58%
    ),
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 65%,
      rgba(255, 255, 255, 0.1),
      transparent 60%
    );
  opacity: 0.6;
  animation: puff 2.2s ease-in-out infinite;
}
.smoke::after {
  opacity: 0.45;
  animation-duration: 2.7s;
}
@keyframes puff {
  0% {
    transform: translateY(12px) scale(0.95);
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-8px) scale(1.03);
    opacity: 0;
  }
}

/* =========================
   Buttons (glowy + spooky)
   ========================= */
.btn,
.audio-btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);

  /* Depth + sheen */
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(251, 191, 36, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.26);

  color: rgba(248, 250, 252, 0.98);
  font-weight: 850;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;

  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;

  backdrop-filter: blur(8px);
  transform: translateZ(0);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    filter 140ms ease;
}

.btn:hover,
.audio-btn:hover {
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.52),
    0 0 0 5px rgba(251, 191, 36, 0.09);
}

.btn:active,
.audio-btn:active {
  transform: translateY(0);
  filter: brightness(0.99);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.48),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
}

.btn:focus-visible,
.audio-btn:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.5);
  outline-offset: 4px;
}

/* Variants */
.btn.primary,
.audio-btn.primary {
  border-color: rgba(251, 191, 36, 0.52);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(251, 191, 36, 0.30), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.22);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(251, 191, 36, 0.14) inset,
    0 0 30px rgba(251, 191, 36, 0.11);
}

.btn.ghost,
.audio-btn.ghost {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.btn:disabled,
.audio-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Link-style buttons (Cancel / Clear) */
.link {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;

  color: rgba(226, 232, 240, 0.82);
  font-weight: 800;
  letter-spacing: 0.15px;
  cursor: pointer;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease,
    color 140ms ease;
}

.link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(248, 250, 252, 0.95);
  transform: translateY(-1px);
}

.link:active { transform: translateY(0); }

.link:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.45);
  outline-offset: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}
.field span {
  color: var(--muted);
  font-size: 12px;
}
.field input {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}
.field input:focus {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.hint-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.foot {
  margin-top: 16px;
  text-align: center;
  opacity: 0.75;
}

/* Confetti particles */
.particle {
  position: fixed;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  top: -20px;
  left: 50%;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0.9;
  pointer-events: none;
  z-index: 9999;
}

/* Reveal styling */
body.is-revealed {
  --accent: var(--reveal);
}
body.is-revealed .present-ribbon {
  background: linear-gradient(
    180deg,
    rgba(255, 77, 166, 0.95),
    rgba(255, 77, 166, 0.35)
  );
}
body.is-revealed .reveal-result {
  color: var(--reveal);
  text-shadow: 0 0 20px rgba(255, 77, 166, 0.28);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9998;
}
.modal.show {
  display: flex;
}
.modal-card {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.92),
    rgba(2, 6, 23, 0.88)
  );
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  padding: 16px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .present {
    width: 210px;
    height: 210px;
  }
}
/* ===== WOW UPGRADE PACK ===== */

/* Star canvas */
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.75;
  mix-blend-mode: screen;
}

/* Cinematic intro overlay */
.intro {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(
    900px 500px at 50% 40%,
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0.72)
  );
  backdrop-filter: blur(8px);
  z-index: 9999;
}
.intro.show {
  display: flex;
}
.intro-card {
  width: min(720px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.92),
    rgba(2, 6, 23, 0.9)
  );
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.7);
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.intro-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(251, 191, 36, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 77, 166, 0.14),
      transparent 58%
    );
  filter: blur(14px);
  animation: introGlow 6s ease-in-out infinite;
}
@keyframes introGlow {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(0deg);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(2%, 1%, 0) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(-2%, -2%, 0) rotate(0deg);
    opacity: 0.75;
  }
}
.intro-kicker {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
  font-size: 12px;
  margin-bottom: 10px;
  position: relative;
}
.intro-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  position: relative;
}
.intro-sub {
  color: rgba(226, 232, 240, 0.75);
  margin: 0 0 14px;
  position: relative;
}
.intro-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.6);
  position: relative;
}
.btn-big {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  letter-spacing: 0.6px;
  position: relative;
}

/* Audio button */
.audio-btn {
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  font-weight: 700;
}
.audio-btn:hover {
  border-color: rgba(251, 191, 36, 0.35);
}
@media (max-width: 640px) {
  .audio-btn {
    margin-top: 10px;
  }
  .top .brand {
    flex: 1 1 auto;
  }
  .top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Present: 3D tilt + glow */
.present {
  transform-style: preserve-3d;
  perspective: 900px;
}
.present::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  background: radial-gradient(
    circle at 50% 60%,
    rgba(251, 191, 36, 0.18),
    transparent 60%
  );
  filter: blur(18px);
  opacity: 0.9;
  transition: opacity 300ms ease;
  z-index: -1;
}
.present:hover::after {
  opacity: 1;
}

/* Use CSS variables set by JS for tilt */
.present {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 160ms ease;
}
.present.opening {
  animation: shake 420ms ease-in-out;
}
@keyframes shake {
  0% {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
      translate3d(0, 0, 0);
  }
  25% {
    transform: rotateX(calc(var(--rx, 0deg) + 2deg))
      rotateY(calc(var(--ry, 0deg) - 2deg)) translate3d(1px, -1px, 0);
  }
  50% {
    transform: rotateX(calc(var(--rx, 0deg) - 2deg))
      rotateY(calc(var(--ry, 0deg) + 2deg)) translate3d(-1px, 1px, 0);
  }
  100% {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
      translate3d(0, 0, 0);
  }
}

/* Reveal bloom: makes it feel like the room lights up pink */
body.is-revealed::before {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 77, 166, 0.28),
      transparent 55%
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(255, 77, 166, 0.14),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.08),
      transparent 62%
    );
  filter: blur(0px);
  opacity: 0;
  transition: opacity 600ms ease;
  z-index: 9997;
}
body.bloom::before {
  opacity: 1;
}
/* ===== HERO IMAGE ===== */
.hero-media {
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

/* Subtle “film” overlay */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.08),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(251, 191, 36, 0.1),
      transparent 60%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.45;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  filter: saturate(0.9) contrast(1.05);
  transform: translateZ(0);
}

/* Make it “pop” after reveal */
body.is-revealed .hero-media {
  border-color: rgba(255, 77, 166, 0.28);
  box-shadow:
    0 22px 80px rgba(255, 77, 166, 0.12),
    0 22px 80px rgba(0, 0, 0, 0.45);
}
body.is-revealed .hero-media::before {
  opacity: 0.3;
}
body.is-revealed .hero-img {
  filter: saturate(1.05) contrast(1.08);
}

.hero-caption {
  margin-top: 8px;
  text-align: center;
}
/* ===== Layout upgrade ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Top row: text + image */
.hero-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

/* Make buttons feel intentional */
.hero-actions {
  justify-content: flex-start;
}

/* Image column: more “poster” feel */
.hero-media {
  margin-top: 0;
  align-self: stretch;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Stage row: spotlight + floor glow */
.hero-stage {
  position: relative;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 22px;
  display: flex;
  justify-content: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto 0;
  height: 240px;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(720px, 92%);
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.55),
    transparent 70%
  );
  filter: blur(2px);
  pointer-events: none;
}

.present-wrap {
  width: 100%;
  max-width: 780px;
  gap: 12px;
}

/* Make the present more “centerpiece” */
.present {
  width: 260px;
  height: 260px;
}

.reveal-stage {
  min-height: 110px;
}

.reveal-card {
  width: min(680px, 100%);
  padding: 18px 18px;
}

.reveal-result {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 2px;
}

/* Responsive: stack top row on mobile */
@media (max-width: 860px) {
  .hero-top {
    grid-template-columns: 1fr;
  }
  .present {
    width: 230px;
    height: 230px;
  }
}

/* ===== PNG Box Swap (box_closed.png / box_open.png) ===== */
.present.present-swap {
  width: 290px;
  height: 290px;
}

.present.present-swap .box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
  transform: translateZ(0);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Default: only the closed box is visible */
.present.present-swap .box-open {
  opacity: 0;
  transform: scale(0.98);
}
.present.present-swap .box-closed {
  opacity: 1;
}

/* When revealed, swap to the open box (no JS changes needed) */
body.is-revealed .present.present-swap .box-open {
  opacity: 1;
  transform: scale(1);
}
body.is-revealed .present.present-swap .box-closed {
  opacity: 0;
  transform: scale(1.02);
}

/* Move the OPEN tag to the lower third so it looks like a seal */
.present.present-swap .present-tag {
  top: auto;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

/* When opened, fade the tag a bit */
body.is-revealed .present.present-swap .present-tag {
  opacity: 0.25;
}

/* Add a little pink glow after reveal */
body.is-revealed .present.present-swap .box-img {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 28px rgba(255, 77, 166, 0.2));
}

@media (max-width: 860px) {
  .present.present-swap {
    width: 250px;
    height: 250px;
  }
}

/* resize the background image and make it cover the entire viewport without distortion */
.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
