/* ==========================================================================
   ŻUREK: A BOWL OF POLISH SOUL — 100% PURE CSS ART
   DEV.to Frontend Challenge 2026: Comfort Food Edition
   Author: johnnylemonny
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & RESET
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #0f0c09;
  --bg-surface: #18130f;
  --bg-card: rgba(28, 22, 17, 0.9);
  --border-subtle: rgba(255, 230, 190, 0.12);
  --border-highlight: rgba(212, 147, 84, 0.4);
  
  --color-crust-dark: #4a2c11;
  --color-crust-mid: #78471c;
  --color-crust-light: #ab6f38;
  --color-crust-flour: #d6b896;
  --color-crumb: #e0cca9;
  
  --color-broth: #dfd2be;
  --color-broth-shadow: #b3a58e;
  --color-yolk: #ff8c00;
  --color-yolk-glow: #ffa726;
  --color-sausage: #d89f82;
  --color-sausage-sear: #612711;
  --color-herb: #437a38;
  --color-herb-bright: #689f38;
  --color-copper: #c27838;
  --color-copper-glow: rgba(194, 120, 56, 0.4);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: #f7eee3;
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   2. AMBIENT LIGHTING & TABLETOP
   -------------------------------------------------------------------------- */
.art-experience {
  width: 100%;
  max-width: 980px;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 40%, rgba(204, 119, 34, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(218, 165, 32, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s var(--ease-smooth);
}

body.hearth-mode .ambient-glow {
  background: 
    radial-gradient(circle at 50% 45%, rgba(255, 140, 0, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 25% 75%, rgba(255, 69, 0, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 215, 0, 0.14) 0%, transparent 45%);
  animation: hearthFlicker 3.5s infinite alternate ease-in-out;
}

@keyframes hearthFlicker {
  0% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1.05; transform: scale(1.02) translateY(-4px); }
  100% { opacity: 0.95; transform: scale(0.99); }
}

.table-surface {
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(15, 12, 9, 0.85) 0%, rgba(24, 19, 15, 0.95) 100%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 2px, transparent 2px, transparent 8px);
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. HEADER & INTRO
   -------------------------------------------------------------------------- */
.header {
  text-align: center;
  max-width: 680px;
  margin-bottom: 2rem;
  z-index: 5;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(194, 120, 56, 0.12);
  border: 1px solid var(--border-highlight);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f0be82;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #ff9800;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff9800;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff7eb 20%, #e2c092 60%, #b88648 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #bfaea0;
}

.subtitle strong {
  color: #f7dfbe;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. ART STAGE & CANVAS
   -------------------------------------------------------------------------- */
.canvas-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 1.5rem;
  perspective: 1000px;
}

.dish-container {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s var(--ease-spring);
}

/* Base Shadow under Platter */
.platter-shadow {
  position: absolute;
  width: 460px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 70%);
  bottom: 25px;
  z-index: 1;
  filter: blur(8px);
}

/* Rustic Slate Board */
.slate-board {
  position: absolute;
  width: 440px;
  height: 340px;
  border-radius: 40px;
  background: 
    linear-gradient(145deg, #241d18 0%, #15100d 100%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
  box-shadow: 
    0 25px 40px -10px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255, 230, 200, 0.12),
    inset 0 -2px 4px rgba(0,0,0,0.7);
  bottom: 45px;
  z-index: 2;
  transform: rotateX(25deg);
}

/* Linen Cloth Accent */
.linen-cloth {
  position: absolute;
  width: 280px;
  height: 320px;
  right: -25px;
  top: 15px;
  background: 
    repeating-linear-gradient(0deg, rgba(230, 215, 195, 0.08) 0px, rgba(230, 215, 195, 0.08) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(230, 215, 195, 0.08) 0px, rgba(230, 215, 195, 0.08) 1px, transparent 1px, transparent 6px),
    linear-gradient(135deg, #382c23 0%, #291f18 100%);
  border-radius: 12px;
  box-shadow: 
    2px 8px 20px rgba(0,0,0,0.5),
    inset 0 0 15px rgba(0,0,0,0.4);
  transform: rotate(12deg);
}

/* --------------------------------------------------------------------------
   5. SOURDOUGH BREAD BOWL (CHLEB ŻURKOWY)
   -------------------------------------------------------------------------- */
.bread-bowl {
  position: relative;
  width: 320px;
  height: 300px;
  z-index: 4;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.bread-bowl:hover {
  transform: scale(1.015);
}

.bread-outer-crust {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 48% 52% / 48% 46% 54% 52%;
  background: 
    radial-gradient(circle at 45% 35%, var(--color-crust-flour) 0%, transparent 22%),
    radial-gradient(circle at 75% 65%, var(--color-crust-flour) 0%, transparent 18%),
    radial-gradient(ellipse at 50% 45%, var(--color-crust-light) 0%, var(--color-crust-mid) 45%, var(--color-crust-dark) 85%);
  box-shadow: 
    0 20px 35px -5px rgba(0,0,0,0.7),
    inset 0 3px 6px rgba(255, 230, 190, 0.3),
    inset 0 -8px 16px rgba(0,0,0,0.6);
  border: 2px solid rgba(120, 71, 28, 0.4);
}

.bread-lip {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  bottom: 35px;
  border-radius: 50% 50% 48% 52% / 46% 48% 52% 54%;
  background: 
    radial-gradient(ellipse at 50% 40%, var(--color-crumb) 0%, var(--color-crust-light) 65%, var(--color-crust-dark) 95%);
  box-shadow: 
    inset 0 6px 14px rgba(60, 30, 10, 0.7),
    inset 0 -4px 8px rgba(0, 0, 0, 0.4);
}

.bread-interior-hollow {
  position: absolute;
  top: 35px;
  left: 35px;
  right: 35px;
  bottom: 45px;
  border-radius: 50%;
  background: #2a180b;
  box-shadow: inset 0 10px 25px rgba(0,0,0,0.85);
}

/* --------------------------------------------------------------------------
   6. STEAMING ŻUREK SOUP SURFACE
   -------------------------------------------------------------------------- */
.soup-surface {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 50px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    inset 0 4px 15px rgba(50, 30, 10, 0.6),
    inset 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.broth-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 40% 35%, #fff1dc 0%, var(--color-broth) 40%, var(--color-broth-shadow) 85%);
  animation: brothSimmer 6s infinite alternate ease-in-out;
}

@keyframes brothSimmer {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.015) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.oil-swirl {
  position: absolute;
  border-radius: 50%;
  filter: blur(1.5px);
  pointer-events: none;
}

.oil-swirl-1 {
  width: 90px;
  height: 60px;
  top: 30px;
  left: 35px;
  background: radial-gradient(ellipse, rgba(184, 134, 11, 0.45) 0%, rgba(107, 142, 35, 0.25) 55%, transparent 70%);
  transform: rotate(-25deg);
}

.oil-swirl-2 {
  width: 110px;
  height: 70px;
  bottom: 25px;
  right: 30px;
  background: radial-gradient(ellipse, rgba(205, 133, 63, 0.4) 0%, rgba(85, 107, 47, 0.2) 60%, transparent 70%);
  transform: rotate(35deg);
}

.oil-swirl-3 {
  width: 50px;
  height: 40px;
  top: 70px;
  right: 55px;
  background: radial-gradient(ellipse, rgba(184, 134, 11, 0.35) 0%, transparent 65%);
}

.pepper-specks {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 45%, #231911 1.2px, transparent 1.5px),
    radial-gradient(circle at 65% 30%, #1f160e 1.5px, transparent 1.8px),
    radial-gradient(circle at 45% 75%, #2a1e14 1.2px, transparent 1.5px),
    radial-gradient(circle at 75% 65%, #20170f 1px, transparent 1.3px),
    radial-gradient(circle at 35% 20%, #1a120b 1.4px, transparent 1.6px),
    radial-gradient(circle at 80% 45%, #281c12 1.2px, transparent 1.5px);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   7. INGREDIENTS WITH ANCHORED BEACONS
   -------------------------------------------------------------------------- */
.interactive-ingredient {
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), filter 0.3s;
  position: absolute;
}

.interactive-ingredient:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.6));
  z-index: 20 !important;
}

.interactive-ingredient.active-highlight {
  filter: drop-shadow(0 0 14px #ff9800) brightness(1.1);
  transform: scale(1.15);
  z-index: 25 !important;
}

/* Anchored Glowing Beacons */
.ingredient-beacon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff9800;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px #ff9800, 0 2px 6px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.4s var(--ease-smooth);
  z-index: 30;
}

body.inspect-mode .ingredient-beacon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 10px #ff9800; }
  50% { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 18px #ffa726; }
}

/* Halved Soft-Boiled Farm Egg */
.egg-half {
  width: 76px;
  height: 98px;
  top: 40px;
  left: 45px;
  transform: rotate(-22deg);
  z-index: 5;
}

.egg-white {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  background: 
    radial-gradient(circle at 35% 35%, #ffffff 0%, #fdf8f0 60%, #e2d7c5 95%);
  box-shadow: 
    2px 5px 12px rgba(40, 25, 10, 0.4),
    inset -2px -2px 6px rgba(0,0,0,0.1),
    inset 2px 2px 4px rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

.egg-yolk {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 35% 30%, #ffe082 0%, var(--color-yolk-glow) 35%, var(--color-yolk) 70%, #d84315 100%);
  box-shadow: 
    inset 0 1px 3px rgba(255,255,255,0.6),
    inset 0 -2px 5px rgba(180, 50, 0, 0.6),
    0 2px 6px rgba(160, 60, 0, 0.35);
  margin-top: 10px;
}

.yolk-core {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 8px;
  left: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb300 0%, transparent 80%);
}

.yolk-highlight {
  position: absolute;
  width: 10px;
  height: 6px;
  top: 6px;
  left: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(-30deg);
  filter: blur(0.5px);
}

.egg-shadow {
  position: absolute;
  width: 80px;
  height: 95px;
  border-radius: 50%;
  background: rgba(30, 20, 10, 0.25);
  top: 4px;
  left: 4px;
  z-index: -1;
  filter: blur(4px);
}

/* Biała Kiełbasa Slices */
.sausage-slice {
  width: 58px;
  height: 44px;
  border-radius: 50%;
  z-index: 4;
}

.sausage-meat {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 40% 40%, #edd3c4 0%, var(--color-sausage) 55%, #a86c52 90%);
  box-shadow: 
    0 4px 8px rgba(30, 15, 5, 0.35),
    inset 0 1px 3px rgba(255,255,255,0.4),
    inset 0 -2px 5px rgba(80, 30, 10, 0.5);
  border: 1.5px solid #8d5239;
  overflow: hidden;
}

.sausage-sear {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 24px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--color-sausage-sear) 0%, rgba(97, 39, 17, 0.4) 60%, transparent 80%);
}

.sausage-speck {
  position: absolute;
  border-radius: 50%;
  background: var(--color-herb);
}

.sausage-speck.s1 { width: 3px; height: 2px; top: 18px; left: 15px; }
.sausage-speck.s2 { width: 2.5px; height: 2px; bottom: 12px; right: 18px; }

.sausage-1 { bottom: 45px; left: 70px; transform: rotate(15deg); }
.sausage-2 { top: 55px; right: 50px; transform: rotate(-35deg); }
.sausage-3 { bottom: 55px; right: 65px; transform: rotate(50deg); }

/* Bacon Lardons (Skwarki) */
.lardon {
  background: linear-gradient(135deg, #7c3f1d 0%, #441e0c 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  border-radius: 2px;
  z-index: 4;
}

.lardon-1 { width: 8px; height: 6px; top: 125px; left: 120px; transform: rotate(25deg); }
.lardon-2 { width: 7px; height: 5px; top: 95px; right: 110px; transform: rotate(-15deg); }
.lardon-3 { width: 9px; height: 6px; bottom: 85px; left: 140px; transform: rotate(40deg); }
.lardon-4 { width: 6px; height: 5px; bottom: 35px; right: 120px; transform: rotate(-30deg); }

/* Fresh Marjoram Sprig */
.marjoram-sprig {
  width: 50px;
  height: 50px;
  top: 110px;
  left: 115px;
  z-index: 6;
}

.marjoram-stem {
  position: absolute;
  width: 2px;
  height: 38px;
  background: #335928;
  top: 6px;
  left: 24px;
  border-radius: 1px;
  transform: rotate(32deg);
}

.leaf {
  position: absolute;
  width: 14px;
  height: 9px;
  background: radial-gradient(ellipse at 40% 40%, var(--color-herb-bright) 0%, var(--color-herb) 80%, #2c4c20 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.leaf-1 { top: 4px; left: 14px; transform: rotate(-40deg); }
.leaf-2 { top: 12px; left: 28px; transform: rotate(25deg); }
.leaf-3 { top: 22px; left: 16px; transform: rotate(-60deg); }
.leaf-4 { top: 28px; left: 26px; transform: rotate(45deg); }
.leaf-5 { top: 38px; left: 22px; transform: rotate(10deg); }

/* Confit Garlic Clove */
.garlic-clove {
  width: 18px;
  height: 28px;
  bottom: 85px;
  left: 45px;
  border-radius: 50% 50% 35% 65% / 65% 45% 55% 35%;
  background: radial-gradient(circle at 40% 30%, #fffde7 0%, #fff176 40%, #e0a800 85%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  transform: rotate(-45deg);
  z-index: 4;
}

/* --------------------------------------------------------------------------
   8. BREAD LID & WOODEN SPOON
   -------------------------------------------------------------------------- */
.bread-lid {
  width: 140px;
  height: 130px;
  top: 10px;
  right: -30px;
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  background: 
    radial-gradient(circle at 45% 35%, var(--color-crust-flour) 0%, transparent 25%),
    radial-gradient(ellipse at 50% 40%, var(--color-crust-light) 0%, var(--color-crust-mid) 60%, var(--color-crust-dark) 95%);
  box-shadow: 
    -10px 15px 25px rgba(0, 0, 0, 0.65),
    inset 0 2px 4px rgba(255, 230, 190, 0.4);
  transform: rotate(28deg);
  z-index: 3;
}

.wooden-spoon {
  position: absolute;
  width: 180px;
  height: 45px;
  bottom: 0px;
  right: -55px;
  transform: translate(0, 0) rotate(-18deg);
  transform-origin: 25px 20px; /* Anchored to center of spoon bowl */
  z-index: 7;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring);
}

.wooden-spoon:hover {
  transform: translate(0, -4px) rotate(-12deg) scale(1.04);
}

.spoon-handle {
  position: absolute;
  width: 130px;
  height: 10px;
  right: 0;
  top: 18px;
  border-radius: 5px 2px 2px 5px;
  background: linear-gradient(180deg, #8a572a 0%, #543314 60%, #3a2009 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.2);
}

.spoon-bowl {
  position: absolute;
  width: 55px;
  height: 38px;
  left: 0;
  top: 4px;
  border-radius: 50%;
  background: 
    radial-gradient(ellipse at 40% 40%, #9e6734 0%, #683c16 65%, #422209 100%);
  box-shadow: 
    inset 0 3px 6px rgba(0,0,0,0.6),
    0 5px 12px rgba(0,0,0,0.4);
}

.spoon-soup-drop {
  position: absolute;
  width: 22px;
  height: 14px;
  top: 12px;
  left: 15px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff5e6 0%, var(--color-broth) 70%);
  opacity: 0.9;
}

/* Stir Action Animation */
.wooden-spoon.stirring {
  animation: stirMotion 2.4s var(--ease-smooth);
}

@keyframes stirMotion {
  0% {
    transform: translate(0, 0) rotate(-18deg);
  }
  15% {
    transform: translate(-30px, -90px) rotate(-28deg);
  }
  30% {
    /* Dip spoon bowl directly into the center of the liquid broth */
    transform: translate(-92px, -173px) rotate(-18deg);
  }
  45% {
    /* Swirl inside soup (top-left quadrant) */
    transform: translate(-120px, -195px) rotate(-30deg);
  }
  60% {
    /* Swirl inside soup (top-right quadrant) */
    transform: translate(-65px, -195px) rotate(-10deg);
  }
  75% {
    /* Swirl inside soup (bottom-right quadrant) */
    transform: translate(-65px, -150px) rotate(-5deg);
  }
  88% {
    /* Lift spoon out of broth */
    transform: translate(-30px, -80px) rotate(-22deg);
  }
  100% {
    transform: translate(0, 0) rotate(-18deg);
  }
}

/* Liquid Ripple Waves */
.ripple-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 245, 230, 0.65);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-wave.active {
  animation: rippleExpand 1.5s ease-out;
}

@keyframes rippleExpand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.85; }
  50% { opacity: 0.45; }
  100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. ETHEREAL RISING STEAM
   -------------------------------------------------------------------------- */
.steam-container {
  position: absolute;
  top: -80px;
  left: 60px;
  right: 60px;
  height: 160px;
  pointer-events: none;
  z-index: 10;
}

.steam-wisp {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 245, 235, 0.45) 0%, rgba(255, 235, 210, 0.18) 50%, transparent 75%);
  filter: blur(12px);
  opacity: 0;
  transform: translateY(40px) scale(0.6);
}

.wisp-1 { width: 80px; height: 120px; left: 40px; animation: steamRise 4.5s infinite linear; }
.wisp-2 { width: 90px; height: 140px; left: 110px; animation: steamRise 5.2s infinite linear 1.2s; }
.wisp-3 { width: 75px; height: 110px; right: 50px; animation: steamRise 4.8s infinite linear 2.4s; }
.wisp-4 { width: 100px; height: 150px; left: 80px; animation: steamRise 6s infinite linear 3.6s; }
.wisp-5 { width: 60px; height: 90px; right: 90px; animation: steamRise 4.2s infinite linear 0.7s; }

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(60px) scaleX(0.7) scaleY(0.8) rotate(0deg); }
  20% { opacity: 0.6; }
  60% { opacity: 0.35; transform: translateY(-30px) scaleX(1.2) scaleY(1.4) rotate(12deg); }
  100% { opacity: 0; transform: translateY(-90px) scaleX(1.8) scaleY(2) rotate(-8deg); }
}

body.boost-steam .steam-wisp { filter: blur(8px); }
body.boost-steam .wisp-1 { animation-duration: 2.8s; }
body.boost-steam .wisp-2 { animation-duration: 3.1s; }
body.boost-steam .wisp-3 { animation-duration: 2.9s; }
body.boost-steam .wisp-4 { animation-duration: 3.4s; }

/* --------------------------------------------------------------------------
   10. CONTROLS PANEL
   -------------------------------------------------------------------------- */
.controls-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  z-index: 5;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(35, 27, 21, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: #eedcc8;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s var(--ease-spring);
}

.ctrl-btn:hover {
  background: rgba(55, 42, 33, 0.95);
  border-color: var(--border-highlight);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.ctrl-btn:active {
  transform: scale(0.97);
}

.ctrl-btn.active {
  background: linear-gradient(135deg, rgba(194, 120, 56, 0.35) 0%, rgba(139, 69, 19, 0.35) 100%);
  border-color: #d49354;
  color: #fffae8;
  box-shadow: 0 0 15px rgba(212, 147, 84, 0.3);
}

.btn-icon {
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   11. INGREDIENT SPOTLIGHT HUD CARD (DOPPELRAND)
   -------------------------------------------------------------------------- */
.spotlight-hud {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  z-index: 5;
  transition: all 0.3s var(--ease-smooth);
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-copper);
  text-transform: uppercase;
}

.hud-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
  border-radius: 50%;
}

.hud-polish-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #f7be82;
}

.hud-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.hud-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d4c5b5;
  margin-bottom: 0.75rem;
}

.hud-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: #eedcc8;
}

/* --------------------------------------------------------------------------
   12. FOOTER CARD & TECH BREAKDOWN
   -------------------------------------------------------------------------- */
.footer-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  z-index: 5;
}

.footer-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffdfba;
  margin-bottom: 0.75rem;
}

.story-column p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #c4b3a4;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-list li {
  font-size: 0.85rem;
  color: #c4b3a4;
  line-height: 1.5;
  position: relative;
  padding-left: 1.2rem;
}

.tech-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #c27838;
  font-size: 0.75rem;
}

.tech-list code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #f7be82;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS & ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .art-experience { padding: 1.5rem 1rem 3rem; }
  .canvas-stage { height: 380px; transform: scale(0.85); }
  .footer-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .spotlight-hud { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .canvas-stage { height: 320px; transform: scale(0.72); }
  .controls-panel { gap: 0.5rem; }
  .ctrl-btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .broth-base, .steam-wisp, .badge-dot, .ingredient-beacon, .ambient-glow {
    animation: none !important;
  }
  .wooden-spoon.stirring { animation: none !important; }
}
