/* ===== Tom & Jerry Birthday — Light Purple Theme ===== */
:root {
  --purple-light: #f0e6fa;
  --purple-mid: #e4d0f5;
  --purple-deep: #c9a8e8;
  --purple-accent: #9b6fd4;
  --purple-dark: #6b3fa0;
  --tom-blue: #4a90d9;
  --jerry-brown: #c4783a;
  --cheese-yellow: #ffd54f;
  --cartoon-red: #e74c3c;
  --cartoon-outline: #2d1b4e;
  --white: #fffef9;
  --shadow: rgba(107, 63, 160, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(160deg, var(--purple-light) 0%, var(--purple-mid) 40%, #ddd0f0 70%, var(--purple-light) 100%);
  background-attachment: fixed;
  color: var(--cartoon-outline);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(155, 111, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 144, 217, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 213, 79, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Floating Characters ===== */
.floating-chars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.float-char {
  position: absolute;
  font-size: 2rem;
  opacity: 0.35;
  animation: float-around 12s ease-in-out infinite;
}

.float-char.tom { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.float-char.jerry { top: 60%; right: 8%; animation-delay: -3s; }
.float-char.cheese { top: 30%; right: 15%; animation-delay: -6s; font-size: 1.8rem; }
.float-char.star { top: 75%; left: 12%; animation-delay: -2s; }
.float-char.heart { top: 15%; right: 25%; animation-delay: -8s; }
.float-char.cake { bottom: 20%; left: 20%; animation-delay: -5s; font-size: 2.2rem; }

@keyframes float-around {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -40px) rotate(10deg); }
  50% { transform: translate(-20px, 20px) rotate(-8deg); }
  75% { transform: translate(40px, 30px) rotate(5deg); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--cheese-yellow);
  color: var(--cartoon-outline);
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 0.4rem 1.2rem;
  border: 3px solid var(--cartoon-outline);
  border-radius: 50px;
  box-shadow: 4px 4px 0 var(--cartoon-outline);
  margin-bottom: 1.5rem;
}

.bounce-in {
  animation: bounce-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes bounce-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.title-main {
  font-family: 'Bangers', cursive;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.title-line {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--purple-dark);
  text-shadow: 3px 3px 0 var(--cheese-yellow);
  animation: wiggle 2s ease-in-out infinite;
}

.title-name {
  display: block;
  font-size: clamp(3rem, 10vw, 5.5rem);
  background: linear-gradient(135deg, var(--tom-blue), var(--purple-accent), var(--cartoon-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(3px 3px 0 var(--cartoon-outline));
  position: relative;
}

.glitch {
  animation: glitch-skew 3s infinite;
}

@keyframes glitch-skew {
  0%, 90%, 100% { transform: skew(0deg); }
  92% { transform: skew(-2deg) translateX(-2px); }
  94% { transform: skew(2deg) translateX(2px); }
  96% { transform: skew(0deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== Cake ===== */
.hero-cake {
  margin: 0 auto 1.5rem;
  width: 180px;
  height: 140px;
  position: relative;
}

.cake-layers {
  position: relative;
  width: 100%;
  height: 100%;
}

.cake-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 80px;
  background: linear-gradient(180deg, #f8b4d9 0%, #e891c0 100%);
  border: 4px solid var(--cartoon-outline);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 8px 0 #c96da8, 4px 4px 0 var(--cartoon-outline);
}

.cake-body::before {
  content: '🎂';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.candle {
  position: absolute;
  bottom: 78px;
  width: 12px;
  height: 35px;
  background: repeating-linear-gradient(90deg, var(--cheese-yellow) 0 4px, var(--white) 4px 8px);
  border: 2px solid var(--cartoon-outline);
  border-radius: 2px;
}

.candle:nth-child(1) { left: calc(50% - 40px); }
.candle:nth-child(2) { left: calc(50% - 6px); }
.candle:nth-child(3) { left: calc(50% + 28px); }

.flame {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 20px;
  background: radial-gradient(ellipse, #ffeb3b 30%, #ff9800 70%, transparent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 0.3s ease-in-out infinite alternate;
}

.flame.out {
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: all 0.5s ease;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

.candles-blown .flame {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

/* ===== Buttons ===== */
.button-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: 3px solid var(--cartoon-outline);
  border-radius: 50px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 0 var(--cartoon-outline);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--cartoon-outline);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-accent), var(--purple-dark));
  color: var(--white);
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  box-shadow: 4px 4px 0 var(--cartoon-outline);
}

.btn-action {
  background: linear-gradient(135deg, var(--cheese-yellow), #ffb300);
  color: var(--cartoon-outline);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--cartoon-outline);
}

.btn-action:hover {
  background: linear-gradient(135deg, #ffe082, var(--cheese-yellow));
}

.btn-wish {
  background: var(--tom-blue);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--cartoon-outline);
}

.btn-small {
  background: var(--purple-mid);
  color: var(--purple-dark);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 var(--cartoon-outline);
  margin-top: 1rem;
}

.btn-tiny {
  background: transparent;
  border: 2px dashed var(--purple-accent);
  color: var(--purple-accent);
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  box-shadow: none;
}

.btn-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--cartoon-outline), 0 0 15px rgba(155, 111, 212, 0.4); }
  50% { box-shadow: 4px 4px 0 var(--cartoon-outline), 0 0 30px rgba(155, 111, 212, 0.8); }
}

/* ===== Cards ===== */
main {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: rgba(255, 254, 249, 0.85);
  border: 4px solid var(--cartoon-outline);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 8px 8px 0 var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card h2 {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  color: var(--purple-dark);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-hint {
  text-align: center;
  font-size: 0.95rem;
  color: var(--purple-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.card.reveal {
  animation: card-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes card-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Chase Arena ===== */
.arena {
  position: relative;
  height: 120px;
  background: linear-gradient(90deg, var(--purple-mid), var(--purple-light));
  border: 3px dashed var(--purple-accent);
  border-radius: 12px;
  margin: 1rem 0;
  overflow: hidden;
}

.chase-char {
  position: absolute;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: left 0.3s ease, right 0.3s ease;
  z-index: 2;
  padding: 0;
  box-shadow: none;
}

.chase-char:hover { transform: scale(1.2); }

.chase-char::after { display: none; }

.tom-char {
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.jerry-char {
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.arena.chasing .tom-char {
  animation: tom-run 0.5s ease infinite;
}

.arena.chasing .jerry-char {
  animation: jerry-run 0.4s ease infinite;
}

@keyframes tom-run {
  0%, 100% { transform: translateY(-50%) scaleX(1); }
  50% { transform: translateY(-55%) scaleX(1.1); }
}

@keyframes jerry-run {
  0%, 100% { transform: translateY(-50%) scaleX(-1); }
  50% { transform: translateY(-45%) scaleX(-1.1); }
}

.chase-score {
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--purple-dark);
}

/* ===== Surprise Gift ===== */
.surprise-box {
  text-align: center;
}

.gift-wrap {
  font-size: 5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-block;
}

.gift-wrap:hover {
  animation: shake-gift 0.5s ease;
}

.gift-wrap.opened {
  animation: gift-open 0.8s ease forwards;
}

@keyframes shake-gift {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

@keyframes gift-open {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.surprise-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--purple-dark);
  font-weight: 600;
  animation: fade-up 0.6s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Wishes ===== */
.wish-display {
  background: var(--purple-light);
  border: 3px solid var(--purple-accent);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--purple-dark);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.wish-display.pop {
  animation: wish-pop 0.4s ease;
}

@keyframes wish-pop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.wish-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* ===== Secret ===== */
.secret-text {
  font-size: 1.2rem;
  text-align: center;
  padding: 1.5rem;
  font-weight: 700;
  color: var(--purple-dark);
  letter-spacing: 2px;
  min-height: 60px;
}

.secret-text.decoded {
  letter-spacing: normal;
  animation: reveal-secret 1s ease both;
}

@keyframes reveal-secret {
  from { filter: blur(10px); opacity: 0; }
  to { filter: blur(0); opacity: 1; }
}

/* ===== Love Meter ===== */
.meter-wrap {
  position: relative;
  height: 40px;
  background: var(--purple-light);
  border: 3px solid var(--cartoon-outline);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tom-blue), var(--purple-accent), var(--cartoon-red), #ff69b4);
  border-radius: 17px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.meter-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.meter-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cartoon-outline);
  text-shadow: 0 0 4px white;
}

.meter-msg {
  text-align: center;
  font-weight: 600;
  color: var(--purple-dark);
  font-size: 0.95rem;
}

.meter-wrap.overflow .meter-fill {
  animation: meter-pulse 0.5s ease infinite;
}

@keyframes meter-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* ===== Memory Grid ===== */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.memory-btn {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  border: 3px solid var(--purple-accent);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-dark);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0 var(--shadow);
  line-height: 1.4;
  min-height: 70px;
}

.memory-btn:hover {
  background: var(--cheese-yellow);
  transform: rotate(-2deg) scale(1.05);
}

.memory-btn.revealed {
  background: linear-gradient(135deg, #ff9ecb, #f8b4d9);
  color: white;
  font-size: 0.78rem;
  animation: memory-flip 0.4s ease;
}

/* ===== Love Note ===== */
.love-note-card {
  border-color: #ff69b4;
  background: linear-gradient(135deg, rgba(255,254,249,0.95), rgba(255, 200, 230, 0.25));
}

.pin-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pin-input {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 8px;
  width: 160px;
  padding: 0.75rem 1rem;
  border: 3px solid var(--cartoon-outline);
  border-radius: 12px;
  background: var(--purple-light);
  color: var(--purple-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pin-input:focus {
  border-color: var(--purple-accent);
  box-shadow: 0 0 0 4px rgba(155, 111, 212, 0.3);
}

.pin-input.pin-wrong {
  border-color: var(--cartoon-red);
  animation: pin-shake 0.4s ease;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.pin-error {
  text-align: center;
  color: var(--cartoon-red);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.pin-error.shake {
  animation: pin-shake 0.4s ease;
}

.love-note-letter {
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 3px dashed var(--purple-accent);
  border-radius: 16px;
  margin-bottom: 1rem;
  text-align: left;
}

.love-para {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: var(--purple-dark);
}

.love-para--salutation {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  color: var(--purple-accent);
  text-align: center;
}

.love-para--promise {
  background: linear-gradient(135deg, rgba(155, 111, 212, 0.15), rgba(255, 105, 180, 0.15));
  border-left: 4px solid var(--purple-accent);
  padding: 1rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-weight: 600;
}

.love-para--highlight {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  text-align: center;
  color: var(--cartoon-red);
  padding: 0.5rem;
}

.love-para--closing {
  font-weight: 800;
  text-align: center;
  font-size: 1.1rem;
  color: var(--purple-accent);
  margin-top: 1.5rem;
}

.love-note-content {
  animation: fade-up 0.6s ease both;
}

@keyframes memory-flip {
  0% { transform: rotateY(90deg); }
  100% { transform: rotateY(0); }
}

/* ===== Dance Floor ===== */
.dancers {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 3rem;
  margin: 1.5rem 0;
  min-height: 80px;
}

.dancer {
  display: inline-block;
  transition: transform 0.1s ease;
}

.dance-floor.dancing .dancer:nth-child(1) { animation: dance-bounce 0.4s ease infinite; }
.dance-floor.dancing .dancer:nth-child(2) { animation: dance-bounce 0.4s ease infinite 0.1s; }
.dance-floor.dancing .dancer:nth-child(3) { animation: dance-spin 0.6s ease infinite; }
.dance-floor.dancing .dancer:nth-child(4) { animation: dance-bounce 0.35s ease infinite 0.15s; }
.dance-floor.dancing .dancer:nth-child(5) { animation: dance-wiggle 0.5s ease infinite; }

@keyframes dance-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px) rotate(10deg); }
}

@keyframes dance-spin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes dance-wiggle {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

/* ===== Finale ===== */
.finale-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  color: var(--purple-dark);
}

.finale-big {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem !important;
  text-align: center;
  color: var(--purple-accent);
  margin: 1.5rem 0 !important;
}

.finale-card {
  background: linear-gradient(135deg, rgba(255,254,249,0.95), rgba(228,208,245,0.9));
  border-color: var(--purple-accent);
}

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--purple-dark);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--cartoon-outline);
  color: var(--cheese-yellow);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  z-index: 1000;
  border: 3px solid var(--cheese-yellow);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 78, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--white);
  border: 4px solid var(--cartoon-outline);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 12px 12px 0 var(--shadow);
  animation: card-pop 0.4s ease both;
}

.modal h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

.modal p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===== Confetti & Effects ===== */
#confetti-container,
#hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.heart-particle {
  position: absolute;
  font-size: 1.5rem;
  animation: heart-rise linear forwards;
}

@keyframes heart-rise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.firework {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  animation: firework-burst 1s ease-out forwards;
}

@keyframes firework-burst {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

.cheese-particle {
  position: fixed;
  font-size: 2rem;
  pointer-events: none;
  z-index: 100;
  animation: cheese-fly 2s ease-out forwards;
}

@keyframes cheese-fly {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(360deg) scale(0); opacity: 0; }
}

/* ===== Chase smoke trail ===== */
.smoke {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 50;
  animation: smoke-fade 1s ease forwards;
}

@keyframes smoke-fade {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2) translateY(-30px); }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .button-bar {
    gap: 0.4rem;
  }

  .btn-action {
    font-size: 0.75rem;
    padding: 0.45rem 0.8rem;
  }

  .card {
    padding: 1.2rem;
  }

  .float-char {
    font-size: 1.5rem;
  }
}

/* ===== Screen shake ===== */
body.shake {
  animation: screen-shake 0.5s ease;
}

@keyframes screen-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ===== Rainbow text ===== */
.rainbow-text {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 2s linear infinite;
}

@keyframes rainbow-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
