/* ============================================
   TOKENS
============================================ */
:root{
  --cream: #FBF3E7;
  --cream-deep: #F3E6D3;
  --blush: #F4A9A8;
  --lilac: #B6A6CA;
  --honey: #F0C75E;
  --plum: #3D2C3E;
  --plum-soft: #6B5468;
  --tape-blush: rgba(244,169,168,0.85);
  --tape-lilac: rgba(182,166,202,0.85);
  --tape-honey: rgba(240,199,94,0.85);
  --shadow: rgba(61,44,62,0.18);

  --font-hand: 'Caveat', cursive;
  --font-body: 'Quicksand', sans-serif;
  --font-caption: 'Patrick Hand', cursive;
}

*{ box-sizing: border-box; }

html, body{
  margin:0; padding:0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-body);
  min-height: 100vh;
}

.hidden{ display:none !important; }

/* paper texture (subtle, css-only) */
body{
  background-image:
    radial-gradient(circle at 20% 10%, rgba(244,169,168,0.10), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(182,166,202,0.12), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(240,199,94,0.10), transparent 45%);
}

/* ============================================
   SHARED: tape + doodles
============================================ */
.tape{
  position:absolute;
  width: 90px; height: 28px;
  background: var(--tape-blush);
  opacity:0.85;
  box-shadow: 0 2px 6px var(--shadow);
}

.doodle{
  display:inline-block;
  font-size: 1.6rem;
  filter: saturate(1.1);
}

@media (prefers-reduced-motion: no-preference){
  .floaters .doodle{ animation: drift 6s ease-in-out infinite; }
  .d2{ animation-delay: 0.6s; }
  .d3{ animation-delay: 1.2s; }
  .d4{ animation-delay: 1.8s; }
}
@keyframes drift{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-10px) rotate(4deg); }
}

/* ============================================
   STATE: LOCKED
============================================ */
#state-locked{
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  padding: 24px;
}
.locked-card{
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 48px 36px;
  max-width: 420px;
  text-align:center;
  box-shadow: 0 12px 30px var(--shadow);
  transform: rotate(-1deg);
}
.tape-locked{
  top:-14px; left:50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape-honey);
}
.eyebrow{
  font-family: var(--font-caption);
  color: var(--plum-soft);
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}
.locked-card h1{
  font-family: var(--font-hand);
  font-size: 3rem;
  margin: 0 0 12px;
  color: var(--plum);
}
.locked-note{
  font-size: 0.95rem;
  color: var(--plum-soft);
  line-height: 1.5;
}
.locked-card .doodle{ margin-top: 12px; font-size: 2rem; }

/* ============================================
   STATE: ACTIVE — tabs
============================================ */
#state-active{ min-height: 100vh; padding-bottom: 60px; }

.tabs{
  display:flex; flex-wrap: wrap;
  gap: 6px;
  justify-content:center;
  padding: 28px 16px 8px;
}
.tab{
  font-family: var(--font-caption);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(243, 230, 211, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--plum);
  padding: 10px 18px 8px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 3px 8px var(--shadow);
  transform: rotate(-1deg);
  transition: transform 0.15s ease, background 0.15s ease;
}
.tab:nth-child(2n){ transform: rotate(1deg); }
.tab:hover{ transform: translateY(-2px) rotate(0deg); }
.tab.is-active{
  background: var(--blush);
  color: #fff;
}
.tab:focus-visible{ outline: 3px solid var(--lilac); outline-offset: 2px; }

main{ max-width: 880px; margin: 0 auto; padding: 24px 20px; }

.page{ display:none; animation: fadeIn 0.35s ease; }
.page.is-visible{ display:block; }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(6px);} to{opacity:1; transform:none;} }

.section-title{
  font-family: var(--font-hand);
  font-size: 2.4rem;
  text-align:center;
  margin: 8px 0 28px;
}

/* ============================================
   HOME
============================================ */
#home{ text-align:center; position:relative; padding-top: 12px; }
.floaters{ position:relative; height: 0; }
.floaters .doodle{ position:absolute; }
.d1{ top:-10px; left:8%; }
.d2{ top:10px; right:10%; }
.d3{ top:60px; left:18%; }
.d4{ top:40px; right:22%; }

.home-title{
  font-size: 4rem;
  margin: 36px 0 4px;
  color: var(--plum);
}
.home-sub{
  font-family: var(--font-caption);
  color: var(--plum-soft);
  margin: 0 0 28px;
}
.home-note{
  font-family: var(--font-caption);
  color: var(--plum-soft);
  margin-top: 28px;
}

.polaroid-stack{
  display:flex; justify-content:center; gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0;
}

/* ============================================
   POLAROIDS (used in home + photo grid)
============================================ */
.polaroid{
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 10px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 18px var(--shadow);
  width: 180px;
  transition: transform 0.2s ease;
}
.polaroid:hover{ transform: translateY(-4px) rotate(0deg) !important; }
.polaroid img, .polaroid .ph-fallback{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display:block;
  background: linear-gradient(135deg, var(--cream-deep), #fff);
  border: 1px solid #eee;
}
.ph-fallback{
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-caption);
  color: var(--plum-soft);
  font-size: 0.85rem;
  text-align:center;
  padding: 8px;
}
.polaroid figcaption{
  font-family: var(--font-caption);
  font-size: 0.95rem;
  text-align:center;
  margin-top: 8px;
  color: var(--plum-soft);
}
.polaroid:nth-child(odd){ transform: rotate(-3deg); }
.polaroid:nth-child(even){ transform: rotate(2deg); }

.photo-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px 18px;
  padding: 8px 4px 24px;
}

/* ============================================
   VIDEOS
============================================ */
.video-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.video-card{
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 18px var(--shadow);
}
.video-card video{
  width:100%; border-radius: 2px; display:block; background:#000;
}
.video-card figcaption{
  font-family: var(--font-caption);
  margin-top: 8px;
  color: var(--plum-soft);
  text-align:center;
}

/* ============================================
   LETTER
============================================ */
.letter-paper{
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: 3px;
  box-shadow: 0 10px 26px var(--shadow);
  font-family: var(--font-caption);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--plum);
  white-space: pre-wrap;
}

/* ============================================
   SONGS
============================================ */
.song-list{ max-width: 560px; margin: 0 auto; display:flex; flex-direction:column; gap: 18px; }
.song-card{
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 16px 18px;
  border-radius: 8px;
  box-shadow: 0 6px 16px var(--shadow);
}
.song-title{ font-family: var(--font-hand); font-size: 1.5rem; margin:0; }
.song-artist{ font-family: var(--font-caption); color: var(--plum-soft); margin: 0 0 10px; }
.song-note{ font-family: var(--font-caption); color: var(--plum-soft); font-size: 0.9rem; margin-top: 8px; }
.song-card audio{ width: 100%; }

/* ============================================
   STATE: ENDED
============================================ */
#state-ended{
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  background: #2b2b2b;
  filter: grayscale(1);
}
.ended-wrap{ text-align:center; padding: 24px; }
.ended-message{
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: #f1f1f1;
  letter-spacing: 0.01em;
}

/* ============================================
   ENVELOPE
============================================ */
.envelope-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.envelope-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.envelope-wrapper {
  position: relative;
  width: 280px;
  height: 180px;
  background: var(--cream-deep);
  border-radius: 4px;
  box-shadow: 0 15px 35px var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-bottom: 24px;
}
.envelope-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
}
.envelope-flap {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 100px solid var(--honey);
  transform-origin: top;
  transition: transform 0.6s ease-in-out;
  z-index: 3;
}
.envelope-wrapper.is-opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.envelope-body {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blush) 0%, var(--lilac) 100%);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.envelope-wax {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #c33;
  color: #fff;
  font-family: var(--font-hand);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.3);
  z-index: 4;
  transition: opacity 0.3s;
}
.envelope-wrapper.is-opening .envelope-wax {
  opacity: 0;
}
.envelope-hint {
  font-family: var(--font-caption);
  color: var(--plum-soft);
  animation: pulseHint 2s infinite;
}
@keyframes pulseHint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   TIMELINE
============================================ */
.timeline-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 24px;
  width: 2px;
  background: var(--tape-blush);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 64px;
}
.timeline-dot {
  position: absolute;
  left: 17px; top: 6px;
  width: 16px; height: 16px;
  background: var(--cream);
  border: 3px solid var(--lilac);
  border-radius: 50%;
  box-shadow: 0 2px 6px var(--shadow);
}
.timeline-date {
  font-family: var(--font-caption);
  color: var(--plum-soft);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.timeline-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 6px 16px var(--shadow);
}
.timeline-title {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--plum);
}
.timeline-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   EASTER EGGS & ANIMALS
============================================ */
.easter-egg {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
.easter-egg:hover { transform: scale(1.15) rotate(-5deg); }

.animal-bird { top: -30px; right: 20px; font-size: 1.8rem; }
.animal-bird.is-flying { animation: flyAway 8s ease-in-out forwards; }
@keyframes flyAway {
  0% { transform: translate(0, 0) scale(1) scaleX(-1); }
  20% { transform: translate(-100px, -50px) scale(1.2) scaleX(-1); }
  80% { transform: translate(-800px, -200px) scale(0.5) scaleX(-1); }
  100% { transform: translate(0, 0) scale(1) scaleX(1); }
}

.animal-dog { top: 120px; right: 10%; z-index: 5; }
.animal-dog.is-happy { animation: bounceDog 0.6s ease infinite; }
@keyframes bounceDog { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.animal-bunny { top: -30px; right: 10%; }
.animal-bunny.is-hopping { animation: hopBunny 0.5s ease-out; }
@keyframes hopBunny { 0% { transform: translateY(0); } 50% { transform: translateY(-30px); } 100% { transform: translateY(0); } }

.animal-cat { top: -25px; right: 20px; }
.animal-cat.is-awake { animation: stretchCat 1s ease; }
@keyframes stretchCat { 50% { transform: scaleX(1.2) scaleY(0.8); } }

.animal-butterfly {
  position: absolute;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  animation: flutter 12s ease-in-out infinite alternate;
}
.b1 { top: 50px; left: 15%; animation-delay: 0s; }
.b2 { top: 150px; right: 15%; animation-delay: -4s; }
@keyframes flutter {
  0% { transform: translate(0, 0) rotate(-10deg); }
  50% { transform: translate(40px, -30px) rotate(10deg); }
  100% { transform: translate(-20px, -60px) rotate(-15deg); }
}

/* ============================================
   MAGICAL BURST & BACKGROUND
============================================ */
.burst-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  z-index: 9999;
  animation: popParticle 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes popParticle {
  0% { transform: translate(0,0) scale(0.5); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

.magic-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle 2px at 10% 20%, rgba(255,255,255,0.4), transparent),
                    radial-gradient(circle 3px at 40% 60%, rgba(255,255,255,0.2), transparent),
                    radial-gradient(circle 2px at 80% 10%, rgba(255,255,255,0.5), transparent),
                    radial-gradient(circle 4px at 70% 80%, rgba(240,199,94,0.3), transparent);
  background-size: 200px 200px;
  animation: slowDrift 60s linear infinite;
  opacity: 0.5;
}
@keyframes slowDrift { from { background-position: 0 0; } to { background-position: 400px 400px; } }

/* ============================================
   TWILIGHT MODE
============================================ */
body.twilight-mode {
  background: #1A1A2E;
  color: #EAEAEA;
}
body.twilight-mode::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent, rgba(0,0,0,0.6));
  pointer-events: none; z-index: 0;
}
body.twilight-mode .magic-bg { opacity: 1; }
body.twilight-mode .envelope-wrapper { background: #2A2A4A; }
body.twilight-mode .envelope-body { background: linear-gradient(135deg, #4A2A4A, #1A1A3A); }
body.twilight-mode .tab,
body.twilight-mode .polaroid,
body.twilight-mode .video-card,
body.twilight-mode .letter-paper,
body.twilight-mode .song-card,
body.twilight-mode .timeline-content {
  background: rgba(30, 30, 50, 0.65);
  border-color: rgba(255,255,255,0.1);
  color: #EAEAEA;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
body.twilight-mode .tab.is-active { background: #5E3E7E; color: #fff; }
body.twilight-mode .home-title, body.twilight-mode .section-title, body.twilight-mode .timeline-title { color: #FFF; text-shadow: 0 0 8px rgba(255,255,255,0.2); }
body.twilight-mode .home-sub, body.twilight-mode .home-note, body.twilight-mode .eyebrow, body.twilight-mode .locked-note, body.twilight-mode .timeline-date, body.twilight-mode .timeline-desc { color: #B0B0C0; }

.twilight-switch {
  position: fixed; bottom: 20px; right: 20px;
  background: none; border: none; font-size: 2rem;
  cursor: pointer; z-index: 100;
  transition: transform 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.twilight-switch:hover { transform: scale(1.1) rotate(15deg); }

/* Polaroid Flip */
.polaroid.is-flipping { animation: flip3d 0.8s ease-in-out; }
@keyframes flip3d { 0% { transform: perspective(600px) rotateY(0); } 50% { transform: perspective(600px) rotateY(180deg) scale(1.1); } 100% { transform: perspective(600px) rotateY(360deg); } }

#tabs { position: relative; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 480px){
  .home-title{ font-size: 2.8rem; }
  .section-title{ font-size: 1.9rem; }
}

/* ============================================
   CAKE SCREEN & CANDLES
============================================ */
#cake-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

.cake-container {
  text-align: center;
  position: relative;
}

.cake-text {
  font-size: 3rem;
  color: var(--plum);
  margin-bottom: 40px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cake {
  position: relative;
  width: 250px;
  height: 200px;
  margin: 0 auto;
}

.cake-body {
  position: absolute;
  bottom: 20px;
  width: 250px;
  height: 100px;
  background: var(--tape-blush);
  border-radius: 20px 20px 5px 5px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.1), 0 10px 20px var(--shadow);
  z-index: 2;
}

.cake-body::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
}

.cake-bottom {
  position: absolute;
  bottom: 0;
  left: -25px;
  width: 300px;
  height: 20px;
  background: #E8D3C3;
  border-radius: 10px;
  box-shadow: 0 10px 20px var(--shadow);
}

.candle {
  position: absolute;
  bottom: 120px;
  width: 16px;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 5px,
    var(--blush) 5px,
    var(--blush) 10px
  );
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  z-index: 3;
}

.candle:nth-child(1) { left: 50px; }
.candle:nth-child(2) { left: 117px; height: 75px; bottom: 120px; }
.candle:nth-child(3) { right: 50px; }

.flame {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 25px;
  background: #f59e0b;
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 20px #f59e0b, 0 0 40px #f59e0b, 0 0 60px #f59e0b;
  animation: flicker 0.1s infinite alternate;
  transform-origin: bottom center;
  transition: all 0.5s ease;
}

.flame.blown-out {
  opacity: 0;
  transform: translateX(-50%) scale(0) translateY(-20px);
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 1; }
}

.mic-hint {
  margin-top: 30px;
  font-family: var(--font-caption);
  color: var(--plum-soft);
  font-size: 0.9rem;
}

/* ============================================
   GRAFFITI CANVAS & TOOLBAR
============================================ */
.graffiti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000;
  pointer-events: none; /* Disabled by default */
  cursor: crosshair;
}

.graffiti-canvas.is-active {
  pointer-events: auto;
}

.floating-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  z-index: 9001;
}

.toolbar-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.toolbar-btn:hover {
  transform: scale(1.1);
}

.toolbar-btn.is-active {
  background: var(--tape-honey);
  border-color: #f59e0b;
}

#graffiti-colors {
  background: rgba(255,255,255,0.9);
  padding: 10px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: opacity 0.3s, transform 0.3s;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-swatch:hover, .color-swatch.is-selected {
  transform: scale(1.2);
  border-color: #333;
}

.text-btn {
  font-family: var(--font-caption);
  font-size: 0.9rem;
  border-radius: 10px;
  width: auto;
  padding: 0 10px;
  height: 30px;
}

/* Volume Hint */
.volume-hint {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #ef4444;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: bounceHint 2s infinite;
  z-index: 100;
  transition: opacity 0.5s ease;
}
.volume-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.volume-icon {
  font-size: 1.5rem;
  animation: pulseIcon 1s infinite;
}
@keyframes bounceHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Cake Cutting & Smoke */
.smoke {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  filter: blur(5px);
  animation: smokeRise 2s forwards;
  opacity: 0;
  pointer-events: none;
}
@keyframes smokeRise {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  100% { transform: translateY(-50px) scale(3); opacity: 0; }
}

.cut-ready {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" style="font-size: 24px;"><text y="24">🔪</text></svg>'), pointer;
}
.cut-ready:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.cake.is-cut {
  pointer-events: none;
}
.cake.is-cut::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 4px;
  height: 150px;
  background: #2d2d2d;
  transform: translateX(-50%);
  z-index: 10;
  animation: sliceAnim 0.5s forwards;
}
@keyframes sliceAnim {
  0% { height: 0; }
  100% { height: 150px; }
}
.cake.is-cut .cake-body {
  animation: cakeSplit 0.5s 0.2s forwards;
}
@keyframes cakeSplit {
  100% { filter: drop-shadow(5px 0 0 rgba(0,0,0,0.1)); opacity: 0.9; }
}
