/* ===================================================
   PRECY'S BIRTHDAY ADVENTURE — VISUAL UPGRADE EDITION
   Optimized for iPhone 16 Plus (A18 chip)
   =================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --pink: #ff6b9d;
  --pink-light: #ffd4e1;
  --pink-dark: #d63770;
  --purple: #7c5cbf;
  --purple-dark: #4a2e6b;
  --gold: #ffd93d;
  --cream: #fff8f0;
  --dark: #3d2c3d;
  --mint: #7ce0cd;
  --coral: #e85b5b;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: #1a1020;
  color: var(--dark);
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #ffd4e1 0%, #c9a7e8 30%, #a8c8ff 60%, #ffd4e1 100%);
  background-size: 300% 300%;
  animation: bgShift 20s ease infinite;
}
@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.bg-hearts, .bg-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bg-heart {
  position: absolute;
  animation: floatUp linear infinite;
  opacity: 0.5;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0%   { transform: translateY(105vh) scale(0.5) rotate(0deg); opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.7; }
  100% { transform: translateY(-10vh) scale(1.1) rotate(360deg); opacity: 0; }
}

.bg-star {
  position: absolute;
  animation: twinkle 3s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ===== AMBIENT DRIFTING PARTICLES ===== */
.ambient-particle {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  animation: driftDown linear infinite;
  opacity: 0;
  will-change: transform, opacity;
}
@keyframes driftDown {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% {
    transform: translateY(110vh) translateX(var(--sway, 40px)) rotate(360deg);
    opacity: 0;
  }
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 60;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  will-change: transform, opacity;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift, 0), 110vh, 0) rotate(720deg); opacity: 0; }
}

/* ===== MUSIC BUTTON ===== */
.music-btn {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 18px));
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 22px;
  cursor: pointer;
  z-index: 70;
  box-shadow: 0 8px 20px rgba(124,92,191,0.25);
  transition: all 0.35s var(--ease-out-back);
  align-items: center;
  justify-content: center;
  position: fixed;
  overflow: hidden;
}
.music-btn:active { transform: scale(0.9); }
.music-btn.playing {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: white;
  display: flex;
}
.music-btn.playing .music-icon { animation: musicSpin 2s linear infinite; }
@keyframes musicSpin { to { transform: rotate(360deg); } }

/* ===== SCREENS WITH CINEMATIC TRANSITION ===== */
.screen {
  display: none !important;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top, 20px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  position: relative;
  z-index: 2;
}
.screen.active {
  display: flex !important;
  animation: screenEnter 0.8s var(--ease-out-expo) both;
}
@keyframes screenEnter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: blur(8px) brightness(1.5);
  }
  60% {
    filter: blur(2px) brightness(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
  }
}

/* ===== COMMON BOX ===== */
.welcome-box, .final-box, .puzzle-box, .memory-box, .shoot-box, .gift-box, .lock-box {
  background: var(--cream);
  border-radius: 32px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(74, 46, 107, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: boxEnter 0.8s var(--ease-out-back) both;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
@keyframes boxEnter {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== LOCK SCREEN ===== */
.lock-box { max-width: 520px; padding: 45px 30px; }

.lock-icon {
  font-size: 70px;
  margin-bottom: 10px;
  animation: lockShake 3s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 8px 15px rgba(124, 92, 191, 0.3));
}
@keyframes lockShake {
  0%, 90%, 100% { transform: rotate(0deg); }
  93%           { transform: rotate(-12deg); }
  96%           { transform: rotate(12deg); }
}

.lock-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
  margin: 10px 0 14px;
}

.lock-subtitle {
  font-size: 15px;
  color: #6b5b6b;
  line-height: 1.6;
  margin-bottom: 28px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 25px 0;
}

.countdown-item {
  flex: 1;
  min-width: 60px;
  max-width: 90px;
  background: linear-gradient(180deg, #ffffff, #f8f0ff);
  border-radius: 16px;
  padding: 14px 6px 10px;
  box-shadow: 0 8px 18px rgba(124, 92, 191, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.countdown-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--purple);
  opacity: 0.6;
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 26px;
  font-weight: 900;
  color: var(--pink);
  opacity: 0.5;
  padding-bottom: 20px;
  animation: sepBlink 2s ease-in-out infinite;
}
@keyframes sepBlink {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.15; }
}

.lock-hint {
  font-size: 13px;
  color: #a898a8;
  margin-top: 12px;
  animation: hintPulse 2.5s ease-in-out infinite;
}

.play-countdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 15px auto 0;
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid rgba(124,92,191,0.2);
  background: rgba(124,92,191,0.08);
  color: #7c5cbf;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-back);
  position: relative;
  overflow: hidden;
}
.play-countdown-btn:active { transform: scale(0.95); }
.play-countdown-btn.playing {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border-color: white;
  opacity: 0.8;
}

/* ===== WELCOME ===== */
.balloons {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
}
.balloon {
  position: absolute;
  font-size: 46px;
  animation: balloonFloatUpgraded 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 15px rgba(255, 107, 157, 0.3));
  will-change: transform;
}
@keyframes balloonFloatUpgraded {
  0%   { transform: translateY(0) rotate(-8deg) scale(1); }
  25%  { transform: translateY(-15px) rotate(-4deg) scale(1.05); }
  50%  { transform: translateY(-25px) rotate(6deg) scale(1.1); }
  75%  { transform: translateY(-12px) rotate(4deg) scale(1.05); }
  100% { transform: translateY(0) rotate(-8deg) scale(1); }
}
.b1 { left: 5%;  animation-delay: 0s; }
.b2 { left: 25%; animation-delay: 0.5s; }
.b3 { left: 50%; animation-delay: 1s; transform: translateX(-50%); }
.b4 { right: 25%; animation-delay: 1.5s; }
.b5 { right: 5%;  animation-delay: 2s; }

/* Extra floating balloons */
.welcome-box::before {
  content: "🎈";
  position: absolute;
  top: 15%;
  left: -20px;
  font-size: 40px;
  animation: extraBalloon 6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
}
.welcome-box::after {
  content: "🎈";
  position: absolute;
  top: 25%;
  right: -20px;
  font-size: 36px;
  animation: extraBalloon 7s ease-in-out infinite reverse;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes extraBalloon {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50%      { transform: translateY(-30px) rotate(10deg); }
}

/* ===== CAKE WITH SPARKLE AURA ===== */
.cake-wrap {
  position: relative;
  display: inline-block;
  margin: 5px 0 15px;
}
.cake-wrap::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.35), transparent 60%);
  animation: cakeHalo 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes cakeHalo {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.2); opacity: 1; }
}

.cake {
  position: relative;
  display: inline-block;
  cursor: pointer;
  animation: cakeBob 2.5s ease-in-out infinite;
  filter: drop-shadow(0 15px 25px rgba(255,107,157,0.35));
}

/* Orbiting sparkles around cake */
.cake-sparkle {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  animation: orbitSparkle 4s linear infinite;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  filter: drop-shadow(0 0 8px #ffd93d);
}
@keyframes orbitSparkle {
  0% {
    transform: rotate(0deg) translateX(80px) rotate(0deg);
    opacity: 1;
  }
  50% { opacity: 0.4; }
  100% {
    transform: rotate(360deg) translateX(80px) rotate(-360deg);
    opacity: 1;
  }
}
@keyframes cakeBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

.cake-emoji { font-size: 105px; display: block; line-height: 1; }

.candle-flame {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 26px;
  background: radial-gradient(ellipse at 50% 70%, #fff8d0 0%, #ffdd55 30%, #ff8800 70%, #ff4400 100%);
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  animation: flameWiggle 0.35s ease-in-out infinite alternate;
  transform-origin: bottom center;
  will-change: transform;
}

.candle-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,80,0.7), transparent 70%);
  animation: glowPulse 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50%      { transform: translateX(-50%) scale(1.3); opacity: 0.3; }
}
@keyframes flameWiggle {
  0%   { transform: translateX(-50%) scale(1) rotate(-4deg); }
  100% { transform: translateX(-50%) scale(1.08) rotate(4deg); }
}

.cake.blown .candle-flame { animation: flameOut 0.5s ease forwards; }
.cake.blown .candle-glow { animation: glowOut 0.6s ease forwards; }
@keyframes flameOut {
  0%   { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(0) translateY(-20px); opacity: 0; }
}
@keyframes glowOut {
  0%   { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(2); }
}

.cake-tap-hint {
  font-size: 12px;
  color: var(--purple);
  font-weight: 700;
  margin-top: 8px;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}
.cake-tap-hint.hidden { opacity: 0; }

.smoke {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
}
.cake.blown .smoke { animation: smokeRise 2s ease-out forwards; }
@keyframes smokeRise {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.5); }
  30%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-80px) scale(1.8); }
}

.small-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--purple);
  opacity: 0.75;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(124,92,191,0.08);
  border-radius: 20px;
}

.main-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--purple-dark);
}

.name-shine {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 50%, var(--pink) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineMove 3s ease infinite;
  display: inline-block;
}
@keyframes shineMove {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.type-cursor {
  display: inline-block;
  color: var(--pink);
  font-weight: 400;
  animation: blinkCursor 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.heart-beat {
  display: inline-block;
  animation: heartBeat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255,107,157,0.5));
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.15); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.08); }
}

.welcome-msg {
  font-size: 16px;
  color: #6b5b6b;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ===== BUTTONS WITH RIPPLE ===== */
.big-btn {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  border: none;
  padding: 0;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: 0 10px 0 rgba(74, 46, 107, 0.35), 0 18px 35px rgba(255, 107, 157, 0.35);
  transition: all 0.25s var(--ease-out-back);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.big-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 rgba(74, 46, 107, 0.35); }

.btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  position: relative;
  z-index: 1;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

.hint {
  font-size: 12px;
  color: #a898a8;
  margin-top: 20px;
  animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ===== PUZZLE ===== */
.puzzle-box { padding: 24px 20px; max-width: 500px; }

.game-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.game-stat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff, #f8f0ff);
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
  color: var(--purple);
  box-shadow: 0 4px 12px rgba(124, 92, 191, 0.12);
  border: 1px solid rgba(124, 92, 191, 0.08);
}

.stat-icon { font-size: 20px; }
.stat-value { display: flex; align-items: baseline; gap: 4px; }
.stat-value b { font-size: 18px; color: var(--pink-dark); }
.stat-sub { font-size: 11px; opacity: 0.55; font-weight: 700; }

.puzzle-hint {
  font-size: 13px;
  color: #998;
  margin-bottom: 14px;
  text-align: center;
  min-height: 20px;
}
.puzzle-hint.success { color: #4ec97c; font-weight: 700; }
.puzzle-hint.error { color: #e85b5b; font-weight: 700; }
.puzzle-hint.shuffle { color: #f0a020; font-weight: 700; }

.board-wrapper {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(145deg, #b86b3b 0%, #75401f 100%);
  box-shadow: 0 16px 32px rgba(60, 30, 10, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.25);
}

.board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  background: rgba(60, 30, 15, 0.25);
  border-radius: 14px;
  padding: 5px;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #ffffff 0%, #f0e5d0 100%);
  font-size: clamp(22px, 5.5vw, 34px);
  cursor: grab;
  user-select: none;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s var(--ease-out-back), filter 0.2s ease;
  position: relative;
  will-change: transform;
}

.tile:active { cursor: grabbing; transform: scale(0.96); }
.tile.dragging {
  transform: scale(1.18);
  z-index: 100;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 3px var(--gold);
}
.tile.selected {
  transform: scale(1.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 217, 61, 0.5);
}
.tile.matching {
  animation: tilePop 0.45s var(--ease-out-back) forwards;
}
@keyframes tilePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3) rotate(8deg); }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
.tile.bad-shake { animation: badShake 0.4s ease; }
@keyframes badShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.tile.new-drop { animation: tileDrop 0.4s var(--ease-out-back); }
@keyframes tileDrop {
  0%   { transform: translateY(-60px) scale(0.7); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.tile.special-bomb {
  background: radial-gradient(circle at 50% 40%, #ffdd66, #ff8800 60%, #c42d00);
  border-color: #ffcc44;
  animation: bombPulse 1s ease-in-out infinite;
}
@keyframes bombPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.7); }
  50%      { box-shadow: 0 0 35px rgba(255, 140, 0, 1); }
}
.tile.special-rocket-h {
  background: linear-gradient(90deg, #ff4488, #ff77aa 50%, #ff4488);
  background-size: 200% 100%;
  border-color: #ff88bb;
  animation: rocketH 0.6s linear infinite;
}
.tile.special-rocket-v {
  background: linear-gradient(0deg, #4488ff, #77bbff 50%, #4488ff);
  background-size: 100% 200%;
  border-color: #88bbff;
  animation: rocketV 0.6s linear infinite;
}
@keyframes rocketH {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes rocketV {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}
.tile.special-rainbow {
  background: conic-gradient(from 0deg, #ff6b9d, #ffd93d, #6bcb77, #4d96ff, #c780fa, #ff6b9d);
  border-color: white;
  animation: rainbowSpin 2s linear infinite;
  box-shadow: 0 0 25px rgba(255, 107, 157, 0.7);
}
@keyframes rainbowSpin {
  to { transform: rotate(360deg); }
}

/* ===== MATCH SPARKLES ===== */
.match-sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffd93d 50%, transparent 70%);
  pointer-events: none;
  z-index: 200;
  animation: sparkleBurst 0.8s ease-out forwards;
  box-shadow: 0 0 10px #ffd93d, 0 0 20px #ff6b9d;
  will-change: transform, opacity;
}
@keyframes sparkleBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

.float-points {
  position: absolute;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffd93d;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px #ffd93d;
  pointer-events: none;
  z-index: 250;
  animation: floatPoints 1s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes floatPoints {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -100%) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -200%) scale(1);
    opacity: 0;
  }
}

.puzzle-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 22px;
  opacity: 0.6;
}

/* ===== MEMORY ===== */
.memory-box { padding: 32px 26px; max-width: 460px; }

.memory-frame {
  position: relative;
  background: white;
  padding: 14px 14px 48px;
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(74, 46, 107, 0.35);
  transform: rotate(-2deg);
  margin: 22px auto;
  max-width: 330px;
  animation: photoIn 0.9s var(--ease-out-back) both;
  transition: transform 0.5s var(--ease-out-back);
}
.memory-frame:hover {
  transform: rotate(0deg) scale(1.03);
}
@keyframes photoIn {
  0%   { transform: rotate(-20deg) scale(0.4); opacity: 0; }
  100% { transform: rotate(-2deg) scale(1); opacity: 1; }
}

.memory-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffe4ec, #e0d0f5);
}

.photo-tape {
  position: absolute;
  width: 85px;
  height: 24px;
  background: linear-gradient(135deg, rgba(255,235,160,0.9), rgba(255,222,145,0.85));
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.frame-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: frameShine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes frameShine {
  0%   { left: -100%; }
  50%  { left: 200%; }
  100% { left: 200%; }
}

.memory-box h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  color: var(--purple);
  margin-bottom: 10px;
}

.memory-text {
  font-family: 'Dancing Script', cursive;
  font-size: 21px;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 22px;
  padding: 0 12px;
}

/* ===== SHOOTING ===== */
.shoot-box { padding: 18px; max-width: 520px; }

.codm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a2632, #0f1922);
  color: var(--mint);
  padding: 14px 18px;
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.8px;
  margin-bottom: 14px;
  border: 1px solid rgba(124, 224, 205, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(124, 224, 205, 0.15);
}
.codm-score b { color: white; font-size: 16px; }

.arena {
  position: relative;
  width: 100%;
  height: 400px;
  background:
    linear-gradient(rgba(70,150,150,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,150,150,0.06) 1px, transparent 1px),
    radial-gradient(circle at center, #25333a 0%, #0c1318 80%);
  background-size: 30px 30px, 30px 30px, auto;
  border: 2px solid rgba(124, 224, 205, 0.25);
  border-radius: 16px;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  touch-action: manipulation;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 10px 30px rgba(0,0,0,0.4);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(124,224,205,0.025) 5px);
  animation: scanMove 6s linear infinite;
}
@keyframes scanMove {
  to { background-position: 0 120px; }
}

.hud {
  position: absolute;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(124, 224, 205, 0.5);
  padding: 12px;
  z-index: 4;
  font-family: 'Fredoka', sans-serif;
}
.hud-line {
  width: 30px;
  height: 2px;
  background: var(--mint);
  margin-bottom: 6px;
  box-shadow: 0 0 8px var(--mint);
}
.hud span { display: block; margin-bottom: 2px; }
.hud b { color: var(--mint); font-size: 11px; }
.hud-tl { top: 8px; left: 8px; }
.hud-tr { top: 8px; right: 8px; text-align: right; }
.hud-tr .hud-line { margin-left: auto; }

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

.cross-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124, 224, 205, 0.7);
  border-radius: 50%;
  animation: ringRotate 12s linear infinite;
  box-shadow: inset 0 0 15px rgba(124,224,205,0.3), 0 0 15px rgba(124,224,205,0.4);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.cross-line-h, .cross-line-v {
  position: absolute;
  background: var(--mint);
  box-shadow: 0 0 6px var(--mint);
}
.cross-line-h { width: 100px; height: 2px; top: 50%; left: -10px; }
.cross-line-v { width: 2px; height: 100px; left: 50%; top: -10px; }

.cross-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--mint);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.4); opacity: 0.7; }
}

.target {
  position: absolute;
  left: 15%;
  top: 40%;
  width: 95px;
  height: 95px;
  z-index: 5;
  pointer-events: none;
  will-change: left, top;
  transform: translate(-50%, -50%);
}

.target-ring {
  position: absolute;
  inset: 0;
  border: 3px dashed rgba(255, 100, 100, 0.85);
  border-radius: 50%;
  animation: targetSpin 5s linear infinite;
  box-shadow: 0 0 20px rgba(255,100,100,0.4);
}
.ring-2 {
  inset: 8px;
  border: 2px solid rgba(255, 150, 150, 0.4);
  border-style: solid;
  animation: targetSpin 8s linear infinite reverse;
}
@keyframes targetSpin { to { transform: rotate(360deg); } }

.target-person {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  filter: drop-shadow(0 0 10px rgba(255,100,100,0.6));
  animation: targetBob 2s ease-in-out infinite;
}
@keyframes targetBob {
  50% { transform: translate(-50%, -55%) scale(1.05); }
}

.target-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral), #a82e36);
  color: white;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(232,91,91,0.4);
}

/* ===== TARGET MOTION TRAIL ===== */
.target-trail {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 100, 100, 0.6), transparent 70%);
  pointer-events: none;
  z-index: 4;
  animation: trailFade 0.5s ease-out forwards;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
@keyframes trailFade {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.hit-pop {
  position: absolute;
  font-size: 40px;
  font-weight: 900;
  color: var(--mint);
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 15px var(--mint), 0 0 30px var(--mint);
  z-index: 20;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.hit-pop.show { animation: hitPop 0.75s var(--ease-out-expo) forwards; }
@keyframes hitPop {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  40%  { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
  100% { transform: translate(-50%, -120%) scale(2.2); opacity: 0; }
}

.shot-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--flash-x, 50%) var(--flash-y, 50%), rgba(124,224,205,0.6), transparent 40%);
  pointer-events: none;
  opacity: 0;
  z-index: 15;
}
.shot-flash.fire { animation: shotFlash 0.3s ease-out; }
@keyframes shotFlash {
  0%   { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.2); }
}

.arena-message {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 15, 20, 0.9);
  color: var(--mint);
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(124, 224, 205, 0.4);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(124, 224, 205, 0.2), inset 0 0 15px rgba(124, 224, 205, 0.1);
  transition: all 0.3s ease;
}
.arena-message .dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: dotBlink 1s ease-in-out infinite;
  box-shadow: 0 0 8px var(--mint);
}
@keyframes dotBlink {
  50% { opacity: 0.3; }
}
.arena-message.hit { color: #7cf0c8; border-color: #7cf0c8; box-shadow: 0 0 25px rgba(124, 240, 200, 0.5); }
.arena-message.miss { color: #ff8888; border-color: #ff8888; animation: messageShake 0.4s ease; }
@keyframes messageShake {
  0%, 100% { transform: translateX(-50%); }
  25%      { transform: translateX(calc(-50% - 5px)); }
  75%      { transform: translateX(calc(-50% + 5px)); }
}

.shoot-hint {
  text-align: center;
  font-size: 12px;
  color: #998;
  margin-top: 14px;
}

/* ===== GIFT ===== */
.gift-box { padding: 40px 30px; }

.gift-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 34px;
  color: var(--purple);
  margin-bottom: 8px;
}

.gift-subtitle {
  font-size: 15px;
  color: #6b5b6b;
  margin-bottom: 30px;
}

.gift-wrap {
  position: relative;
  width: 220px;
  height: 200px;
  margin: 0 auto 20px;
  cursor: pointer;
  animation: giftBob 2.5s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out-back);
}
@keyframes giftBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.gift-wrap:active {
  transform: scale(0.95);
}

/* Gift shockwave */
.gift-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #ffd93d;
  pointer-events: none;
  z-index: 15;
  animation: shockwave 1s ease-out forwards;
  box-shadow: 0 0 30px #ff6b9d, inset 0 0 20px #ffd93d;
}
@keyframes shockwave {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

.gift-light-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.9), rgba(255, 107, 157, 0.5), transparent 70%);
  pointer-events: none;
  z-index: 14;
  animation: lightBurst 1.2s ease-out forwards;
  filter: blur(10px);
}
@keyframes lightBurst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% { opacity: 1; }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.gift-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 130px;
  background: linear-gradient(145deg, #ff6b9d 0%, #d63770 100%);
  border-radius: 8px 8px 12px 12px;
  overflow: hidden;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.15), 0 15px 30px rgba(214, 55, 112, 0.4);
}

.gift-ribbon-v {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 22px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffd93d 0%, #fff4a0 50%, #ffd93d 100%);
}

.gift-ribbon-h {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 22px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #ffd93d 0%, #fff4a0 50%, #ffd93d 100%);
}

.gift-lid {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 55px;
  background: linear-gradient(145deg, #ff8fb8 0%, #ff6b9d 100%);
  border-radius: 8px;
  transition: transform 1s var(--ease-out-back);
  z-index: 2;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.1), 0 8px 15px rgba(214, 55, 112, 0.35);
}
.gift-lid::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffd93d 0%, #fff4a0 50%, #ffd93d 100%);
}

.gift-bow {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 46px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.gift-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  animation: giftShine 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: 8px;
  z-index: 3;
}
@keyframes giftShine {
  0%   { left: -60%; }
  50%  { left: 160%; }
  100% { left: 160%; }
}

.gift-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gift-sparkles span {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: sparkleFloat 2s ease-in-out infinite;
}
.gift-sparkles span:nth-child(1) { top: 0;   left: 5%;   animation-delay: 0s; }
.gift-sparkles span:nth-child(2) { top: 10%; right: 8%;   animation-delay: 0.5s; }
.gift-sparkles span:nth-child(3) { bottom: 5%; left: 8%; animation-delay: 1s; }
.gift-sparkles span:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 1.5s; }
@keyframes sparkleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.8); }
  50%      { opacity: 1; transform: translateY(-10px) scale(1.3); }
}

.gift-wrap.opened .gift-lid {
  transform: translateX(-50%) translateY(-130px) rotate(-25deg);
}
.gift-wrap.opened .gift-bow {
  transform: translateX(-50%) translateY(-130px) rotate(-45deg);
}

.gift-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  pointer-events: none;
  animation: giftBurst 1.2s var(--ease-out-back) forwards;
  z-index: 10;
}
@keyframes giftBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
  50%  { opacity: 1; transform: translate(-50%, -80%) scale(1.5) rotate(180deg); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1.8) rotate(360deg); }
}

.gift-hint {
  font-size: 14px;
  color: var(--purple);
  font-weight: 700;
  animation: hintPulse 2s ease-in-out infinite;
}

.gift-confetti {
  position: fixed;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 20;
}

/* ===== FINAL ===== */
.final-box { padding: 38px 26px; max-width: 500px; max-height: 92vh; overflow-y: auto; }

.final-top {
  position: relative;
  margin-bottom: 10px;
  display: inline-block;
}

.big-heart {
  font-size: 90px;
  animation: heartBeat 1.2s ease-in-out infinite;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 10px 25px rgba(255,107,157,0.6));
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-back);
}
.big-heart:active {
  transform: scale(1.2);
}

/* Heart radiant halo */
.big-heart::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.6), transparent 70%);
  animation: heartHalo 1.5s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes heartHalo {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.heart-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,107,157,0.5), transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

.final-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 18px;
}

.letter {
  background: linear-gradient(180deg, #fffdf8 0%, #fff2f8 100%);
  border: 2px dashed var(--pink-light);
  border-radius: 22px;
  padding: 26px 22px;
  margin: 20px 0;
  position: relative;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.8);
}
.letter::before {
  content: "💌";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  background: var(--cream);
  padding: 0 10px;
  border-radius: 50%;
  line-height: 1;
}

.letter-text {
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  line-height: 1.65;
  color: var(--dark);
  margin-bottom: 12px;
}

.signature {
  font-family: 'Dancing Script', cursive;
  font-size: 25px;
  color: var(--pink-dark);
  margin-top: 18px;
  text-align: right;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid white;
  box-shadow: 0 8px 18px rgba(74,46,107,0.25);
  background: linear-gradient(135deg, #ffe4ec, #e0d0f5);
  transition: transform 0.45s var(--ease-out-back), box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}
.photos img:nth-child(odd)  { transform: rotate(-2.5deg); }
.photos img:nth-child(even) { transform: rotate(2.5deg); }
.photos img:hover {
  transform: scale(1.15) rotate(0deg);
  z-index: 5;
  position: relative;
  box-shadow: 0 18px 35px rgba(255,107,157,0.5);
}

/* ===== CURSOR TRAIL ===== */
.cursor-heart {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  font-size: 18px;
  animation: cursorHeartFade 1s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes cursorHeartFade {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.3) translateY(-40px);
    opacity: 0;
  }
}

/* ===== FIREWORKS ===== */
.fireworks-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  display: none;
}
.fireworks-canvas.active { display: block; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 150%);
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: all 0.5s var(--ease-out-back);
  z-index: 100;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  box-shadow: 0 15px 35px rgba(74,46,107,0.45), inset 0 2px 0 rgba(255,255,255,0.3);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-icon {
  font-size: 18px;
  animation: sparkleIcon 1.5s ease-in-out infinite;
}
@keyframes sparkleIcon {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.3) rotate(20deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .main-title { font-size: 34px; }
  .final-title { font-size: 26px; }
  .cake-emoji { font-size: 88px; }
  .big-heart { font-size: 75px; }
  .heart-glow { width: 130px; height: 130px; }
  .arena { height: 340px; }
  .lock-title { font-size: 28px; }
  .lock-icon { font-size: 58px; }
  .countdown-value { font-size: 24px; }
  .countdown-item { min-width: 54px; padding: 12px 4px 8px; }
  .countdown-sep { font-size: 20px; }
  .music-btn { width: 46px; height: 46px; font-size: 20px; }
  .lock-box { padding: 35px 22px; }
  .target { width: 80px; height: 80px; }
  .target-person { font-size: 34px; }
  .crosshair { width: 65px; height: 65px; }
  .cross-line-h { width: 80px; left: -8px; }
  .cross-line-v { height: 80px; top: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}