:root {
  --bg-primary: #0b0c0f;
  --bg-secondary: #12151b;
  --bg-surface: #181c24;
  --glass-bg: rgba(22, 26, 34, 0.84);
  --glass-border: rgba(243, 156, 18, 0.22);
  
  --text-main: #f8f1e5;
  --text-muted: #9aa2b1;
  --text-highlight: #f39c12;
  
  --accent-amber: #e58e26;
  --accent-amber-glow: rgba(229, 142, 38, 0.55);
  --accent-terracotta: #d35400;
  --accent-cream: #f5ece0;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Caveat', cursive;
  
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="golden-dusk"] {
  --bg-primary: #140c06;
  --bg-secondary: #20140b;
  --accent-amber: #f1c40f;
  --glass-border: rgba(230, 126, 34, 0.3);
}

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

html, body { width: 100%; height: 100%; overflow-x: hidden; }

body.single-page-body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

:focus-visible {
  outline: 3px solid var(--accent-amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.hidden { display: none !important; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent-amber);
  color: #000;
  font-weight: 700;
  padding: 10px 18px;
  z-index: 9999;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.ambient-glow-bg {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 70vh;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-amber-glow) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.45;
}

.rain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
}

.app-header-compact {
  position: relative;
  width: 100%;
  padding: 12px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo { display: flex; align-items: center; gap: 10px; }
.chai-icon-mini { font-size: 1.5rem; filter: drop-shadow(0 0 8px var(--accent-amber-glow)); }
.logo-group { display: flex; flex-direction: column; }
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--accent-cream); line-height: 1.1; }
.subtitle-tag { font-family: var(--font-handwriting); font-size: 0.95rem; color: var(--accent-amber); }

.scene-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 156, 18, 0.12);
  border: 1px solid var(--glass-border);
  color: var(--accent-cream);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.live-dot {
  width: 8px; height: 8px; background: var(--accent-amber); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulseDot 1.8s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-icon {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-icon:hover, .btn-icon.active {
  background: rgba(243, 156, 18, 0.2);
  border-color: var(--accent-amber);
  color: #fff;
}

.compact-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 6px 12px; border-radius: 20px; font-family: var(--font-sans); font-size: 0.85rem;
  cursor: pointer; outline: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 24px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition-smooth); border: none;
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-amber) 0%, #d35400 100%); color: #000; box-shadow: 0 4px 16px var(--accent-amber-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-amber-glow); }
.btn-secondary { background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--accent-amber); }

.single-section-stage {
  position: relative; flex-grow: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding: 12px 3% 16px; max-width: 1400px; margin: 0 auto; width: 100%; z-index: 2;
}

.scene-headline-box { text-align: center; max-width: 760px; margin: 0 auto 6px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(243, 156, 18, 0.12); border: 1px solid rgba(243, 156, 18, 0.3);
  color: var(--accent-amber); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin-bottom: 4px;
}
.dot-pulse { width: 6px; height: 6px; background-color: var(--accent-amber); border-radius: 50%; }

.scene-title { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.1vw, 2.5rem); font-weight: 700; color: #ffffff; line-height: 1.15; }
.scene-subtitle { font-size: 0.92rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   COMFORT FOOD HERO — the dish itself, front and centre.
   Pure CSS: clay kulhad of chai + a plate of samosas.
   ============================================================ */
.comfort-food-hero {
  width: 100%; max-width: 1080px; margin: 18px auto 14px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}

.hero-food-visual {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  padding: 20px 0 6px;
}

/* --- kulhad chai --- */
.hero-kulhad {
  position: relative; width: clamp(84px, 11vw, 128px);
  display: flex; flex-direction: column; align-items: center;
}

.kulhad-steam-cluster {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: 100%; height: 70px; display: flex; justify-content: center; gap: 10px;
}
.hero-steam {
  width: 10px; height: 60px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0) 100%);
  filter: blur(3px);
  animation: heroSteamRise 3.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.hero-steam.s1 { animation-delay: -0.4s; }
.hero-steam.s2 { height: 74px; animation-delay: -1.6s; }
.hero-steam.s3 { animation-delay: -2.6s; }

@keyframes heroSteamRise {
  0%   { opacity: 0; transform: translateY(0) scaleX(1) rotate(0deg); }
  20%  { opacity: 0.85; }
  70%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-46px) scaleX(1.6) rotate(6deg); }
}

.kulhad-liquid {
  position: relative; z-index: 2; width: 84%; height: 16px; margin: 0 auto;
  background: linear-gradient(90deg, #8a4b1e, #c9762f 45%, #8a4b1e);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(201, 118, 47, 0.55);
  overflow: hidden;
}
.liquid-shine {
  position: absolute; top: 2px; left: 12%; width: 30%; height: 4px;
  background: rgba(255, 224, 178, 0.65); border-radius: 50%;
  animation: liquidShimmer 2.8s ease-in-out infinite;
}
@keyframes liquidShimmer {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(60%); }
}

.kulhad-rim {
  width: 92%; height: 10px; margin: -3px auto 0;
  background: linear-gradient(180deg, #d9a066, #a9652f);
  border-radius: 4px; box-shadow: 0 3px 4px rgba(0,0,0,0.4);
}

.kulhad-body {
  position: relative; width: 100%; height: clamp(72px, 8vw, 96px);
  background: linear-gradient(180deg, #b1703a 0%, #8a4f26 55%, #6e3c1a 100%);
  clip-path: polygon(6% 0%, 94% 0%, 84% 100%, 16% 100%);
  box-shadow: 0 12px 22px rgba(0,0,0,0.55), inset -8px 0 14px rgba(0,0,0,0.25), inset 8px 0 10px rgba(255,214,170,0.12);
}
.kulhad-texture-ring {
  position: absolute; left: 8%; width: 84%; height: 1px;
  background: rgba(0,0,0,0.22);
}
.r1 { top: 30%; } .r2 { top: 55%; width: 76%; left: 12%; } .r3 { top: 78%; width: 68%; left: 16%; }

/* --- samosa plate --- */
.hero-samosa-plate {
  position: relative; width: clamp(150px, 18vw, 210px); height: clamp(74px, 9vw, 96px);
  display: flex; align-items: flex-end; justify-content: center;
}
.plate-base {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 22px; background: radial-gradient(ellipse at center, #e8e2d6 0%, #cfc7b7 70%, #a89d89 100%);
  border-radius: 50%; box-shadow: 0 8px 16px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.6);
}
.samosa-hero {
  position: relative;
  width: clamp(66px, 8.6vw, 90px);
  height: clamp(58px, 7.6vw, 80px);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background:
    radial-gradient(circle at 32% 72%, rgba(0,0,0,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 58%, rgba(0,0,0,0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 82%, rgba(0,0,0,0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 20%, rgba(255,224,170,0.35), transparent 55%),
    linear-gradient(160deg, #e8b262 0%, #cf8d34 55%, #a6691f 100%);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.45));
  margin: 0 -6px 10px;
}
.samosa-hero.s-a { transform: rotate(-8deg); }
.samosa-hero.s-b { transform: rotate(7deg); }
.samosa-hero.s-b { background:
    radial-gradient(circle at 32% 72%, rgba(0,0,0,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 58%, rgba(0,0,0,0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 82%, rgba(0,0,0,0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 20%, rgba(255,224,170,0.3), transparent 55%),
    linear-gradient(160deg, #dda458 0%, #bf7c2a 55%, #97601c 100%);
}
.samosa-crimp {
  position: absolute; top: 4%; left: 50%; width: 78%; height: 2px;
  transform: translateX(-50%) rotate(0deg);
  background: repeating-linear-gradient(90deg, rgba(90,50,10,0.55) 0 3px, transparent 3px 7px);
  clip-path: inherit;
}

.chutney-dot { position: absolute; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.chutney-mint { left: 14%; background: radial-gradient(circle at 35% 30%, #a3d977, #4f8f2e); }
.chutney-tamarind { right: 14%; background: radial-gradient(circle at 35% 30%, #8a5a2a, #4a2c0f); }

.hero-food-caption {
  max-width: 620px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6;
}
.hero-food-caption strong { color: var(--accent-cream); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .hero-steam, .liquid-shine { animation: none !important; opacity: 0.5; }
}

@media (max-width: 640px) {
  .hero-food-visual { gap: 20px; padding: 14px 0 4px; }
  .hero-food-caption { font-size: 0.82rem; padding: 0 4%; }
}

.tapri-scene-wrapper {
  position: relative; width: 100%; max-width: 1080px; height: 420px;
  margin: 6px auto 12px; background: linear-gradient(180deg, rgba(20,24,32,0.6) 0%, rgba(12,14,18,0.9) 100%);
  border: 1px solid var(--glass-border); border-radius: var(--border-radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.stall-canopy {
  position: absolute; top: 0; left: 0; width: 100%; height: 45px;
  background: repeating-linear-gradient(90deg, #1f2a38 0px, #1f2a38 40px, #141c26 40px, #141c26 80px);
  border-bottom: 4px solid #0f1620; box-shadow: 0 8px 20px rgba(0,0,0,0.6); z-index: 10;
}

.office-glass-window {
  position: absolute; top: 12px; right: 20px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 12px;
  font-size: 0.72rem; color: var(--accent-cream); z-index: 11; backdrop-filter: blur(6px);
}

.hanging-lantern {
  position: absolute; top: 40px; width: 20px; height: 28px; background: #d35400;
  border-radius: 6px; box-shadow: 0 0 15px var(--accent-amber); animation: lanternSway 4s infinite ease-in-out; transform-origin: top center;
}
.hanging-lantern.l1 { left: 15%; animation-delay: 0s; }
.hanging-lantern.l2 { left: 60%; animation-delay: 2s; }

@keyframes lanternSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.lantern-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; background: radial-gradient(circle, var(--accent-amber-glow) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.steam-container-hero {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 110px; z-index: 12; pointer-events: none;
}

.steam-word {
  position: absolute; bottom: 0; left: 50%; font-family: var(--font-handwriting);
  font-size: 1.4rem; color: var(--accent-amber); text-shadow: 0 0 10px var(--accent-amber-glow); opacity: 0;
  animation: steamWordFloat 6s infinite ease-in-out; animation-delay: var(--delay);
}
@keyframes steamWordFloat {
  0% { transform: translate(var(--offset), 20px) scale(0.8); opacity: 0; }
  30% { opacity: 0.9; } 75% { opacity: 0.6; }
  100% { transform: translate(calc(var(--offset) * 1.3), -80px) scale(1.1); opacity: 0; }
}

.speech-bubble {
  position: absolute;
  top: -115px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #111111;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
  z-index: 50;
  pointer-events: none;
  width: 220px;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubble-dev { left: -40px; }
.bubble-friends { left: 0; }
.bubble-chaiwala { right: -30px; left: auto; }

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 40px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.bubble-chaiwala::after {
  left: auto;
  right: 40px;
}

.speaker-name {
  font-size: 0.7rem;
  color: #d35400;
  font-weight: 800;
  text-transform: uppercase;
}

.bubble-text {
  font-size: 0.82rem;
  color: #222222;
  line-height: 1.2;
}

.speech-bubble.active-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: bubblePulse 2.5s infinite ease-in-out;
}

@keyframes bubblePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}

.characters-stage {
  position: relative; width: 100%; height: 290px;
  display: flex; justify-content: space-between; align-items: flex-end; padding: 0 40px 15px; z-index: 15;
}

.person-wrapper {
  position: relative; display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.3s ease; user-select: none;
}
.person-wrapper:hover, .person-wrapper:focus-visible { transform: translateY(-6px); }

.person-badge {
  position: absolute; top: -38px; display: flex; align-items: center; gap: 6px;
  background: rgba(18, 21, 27, 0.92); border: 1px solid var(--glass-border);
  padding: 4px 10px; border-radius: 16px; font-size: 0.75rem; color: var(--text-main); white-space: nowrap;
  backdrop-filter: blur(8px); transition: var(--transition-smooth); box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.person-wrapper:hover .person-badge { background: var(--accent-amber); color: #000; box-shadow: 0 6px 20px var(--accent-amber-glow); }

.activity-icon { font-size: 0.9rem; }
.person-info { display: flex; flex-direction: column; text-align: left; }
.person-info strong { font-size: 0.76rem; line-height: 1.1; }
.person-info small { font-size: 0.65rem; opacity: 0.85; }

.seat-context { position: relative; width: 132px; height: 172px; z-index: 2; }

.chair-back {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 58px;
  background: linear-gradient(180deg, #6b4423, #4a2f18);
  border-radius: 10px 10px 4px 4px; z-index: 1;
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.06);
}

.dev-avatar {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 132px; display: flex; flex-direction: column; align-items: center; z-index: 2;
}
.dev-avatar .head { width: 44px; height: 44px; background: #d59b6e; border-radius: 50%; position: relative; transform-origin: 50% 85%; transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.4, 1); }
.dev-avatar .hair { position: absolute; top: -4px; width: 100%; height: 24px; background: #2c1a0e; border-radius: 20px 20px 0 0; }
.dev-avatar .glasses { position: absolute; top: 18px; left: 6px; width: 32px; height: 10px; border: 2px solid #fff; border-radius: 3px; opacity: 0.8; }
.dev-avatar .body { width: 70px; height: 88px; background: #2980b9; border-radius: 24px 24px 0 0; margin-top: -6px; position: relative; display: flex; justify-content: center; }

.id-card-strap {
  position: absolute; top: 12px; width: 4px; height: 35px; background: #e74c3c; border-radius: 2px;
}

.arm-right {
  position: absolute; right: -12px; top: 20px; width: 14px; height: 40px; background: #2471a3; border-radius: 8px;
  transform-origin: top center; transition: transform 0.4s ease;
}
.mug-in-hand { position: absolute; bottom: -6px; left: -4px; font-size: 1rem; }

.person-wrapper.action-sipping .arm-right {
  transform: rotate(-65deg) translateY(-8px);
}

.work-desk {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 128px; height: 78px; z-index: 3;
}
.desk-surface {
  position: absolute; top: 0; left: 0; width: 128px; height: 14px;
  background: linear-gradient(90deg, #6b4423, #8b5a2b, #6b4423);
  border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}
.desk-leg {
  position: absolute; top: 14px; width: 8px; height: 64px; background: #3e2612;
}
.desk-leg-l { left: 14px; }
.desk-leg-r { right: 14px; }

.work-desk .laptop-glow {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 4px);
  width: 58px; height: 34px;
  background: linear-gradient(135deg, #111 0%, #333 100%); border: 2px solid #555; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
}
.screen-code { font-family: monospace; font-size: 0.62rem; color: #2ecc71; font-weight: 700; }

.desk-mug {
  position: absolute; bottom: 100%; right: 4px; transform: translateY(4px); font-size: 0.95rem;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

.friends-avatar { position: relative; width: 220px; height: 170px; display: flex; justify-content: space-between; align-items: flex-end; }
.friend-a { width: 50px; height: 140px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.friend-a .head { width: 40px; height: 40px; background: #e0ac69; border-radius: 50%; position: relative; transform-origin: 50% 85%; transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.4, 1); }
.friend-a .blazer { width: 56px; height: 78px; background: #34495e; border-radius: 20px 20px 0 0; }
.friend-a .arm-sip-a {
  position: absolute; left: -6px; top: 46px; width: 11px; height: 34px; background: #2c3e50;
  border-radius: 6px; transform-origin: top center; transition: transform 0.4s ease;
}

.friend-b { width: 50px; height: 140px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.friend-b .head { width: 40px; height: 40px; background: #c68642; border-radius: 50%; position: relative; transform-origin: 50% 85%; transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.4, 1); }
.friend-b .formal-shirt { width: 56px; height: 78px; background: #16a085; border-radius: 20px 20px 0 0; }

.chair-back-a { left: 2px; bottom: 4px; z-index: 0; transform: none; }
.chair-back-b { left: auto; right: 2px; bottom: 4px; z-index: 0; transform: none; }

.center-table { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 130px; height: 90px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.table-top { width: 130px; height: 24px; background: linear-gradient(90deg, #5c3a21, #8b4513, #5c3a21); border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: space-around; padding: 0 12px; }
.table-cup { width: 16px; height: 20px; background: #a0522d; border-radius: 2px 2px 6px 6px; position: relative; }
.table-cup-priya { position: relative; }
.mini-steam { position: absolute; top: -12px; left: 3px; width: 10px; height: 12px; background: radial-gradient(circle, rgba(255,255,255,0.6), transparent); animation: pulseGlow 1.5s infinite ease-in-out; }
.samosa-plate { font-size: 0.8rem; }
.table-leg { width: 16px; height: 66px; background: #3e1c08; }


/* KITCHEN PANTRY & TEA STOVE ARTWORK FOR KAKA */
.kitchen-pantry-area {
  position: relative;
  width: 260px;
  height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.wall-spice-shelf {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 170px;
  height: 30px;
  background: #5c3a21;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 5;
}

.wall-spice-shelf .jar {
  font-size: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.kulhad-stack { font-size: 0.95rem; }

.pantry-counter-table {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 250px;
  height: 110px;
  display: flex;
  flex-direction: column;
  z-index: 6;
}

.counter-top {
  width: 100%;
  height: 26px;
  background: linear-gradient(90deg, #7f8c8d, #bdc3c7, #7f8c8d);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  position: relative;
}

.counter-shelf {
  width: 100%;
  height: 84px;
  background: linear-gradient(180deg, #34495e, #1a252f);
  border-top: 2px solid #2c3e50;
}

.gas-stove-burner {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 50px;
  height: 14px;
  background: #2c3e50;
  border-radius: 50%;
  border: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gas-flame {
  width: 30px;
  height: 8px;
  background: radial-gradient(circle, #3498db 0%, #e74c3c 70%, transparent 100%);
  border-radius: 50%;
  animation: gasFlameBurn 1.2s infinite ease-in-out;
}

@keyframes gasFlameBurn {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.1); }
}

.boiling-saucepan {
  position: absolute;
  top: -24px;
  left: 5px;
  width: 40px;
  height: 24px;
  background: linear-gradient(to right, #444, #888, #333);
  border-radius: 4px 4px 10px 10px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
}

.boiling-foam {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 32px;
  height: 10px;
  background: radial-gradient(ellipse at center, #f5ece0 0%, #c88d57 70%);
  border-radius: 50%;
  animation: foamBoil 2s infinite ease-in-out;
}

@keyframes foamBoil {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.08); }
}

.saucepan-handle {
  position: absolute;
  top: 8px;
  left: -20px;
  width: 22px;
  height: 6px;
  background: #111;
  border-radius: 3px;
}

.saucepan-steam {
  position: absolute;
  top: -16px;
  left: 10px;
  width: 20px;
  height: 18px;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
  border-radius: 50%;
  animation: steamRise 2s infinite ease-in-out;
}

.chaiwala-avatar {
  position: relative;
  z-index: 10;
  width: 80px; height: 160px; display: flex; flex-direction: column; align-items: center;
}
.chaiwala-avatar .head { width: 42px; height: 42px; background: #8d5524; border-radius: 50%; position: relative; transform-origin: 50% 85%; transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.4, 1); }
.turban-or-cap { position: absolute; top: -6px; width: 100%; height: 18px; background: #f39c12; border-radius: 10px; }
.chaiwala-avatar .body { width: 64px; height: 110px; background: #f1c40f; border-radius: 20px 20px 0 0; position: relative; display: flex; justify-content: center; }

.brass-kettle-stage { position: absolute; bottom: 20px; right: -15px; width: 45px; height: 40px; transform-origin: top left; transition: transform 0.4s ease; }
.kettle-body { width: 36px; height: 32px; background: linear-gradient(135deg, #d4ac0d 0%, #7d6608 100%); border-radius: 50%; box-shadow: 0 0 10px rgba(212, 172, 13, 0.5); position: relative; }

.pour-stream {
  position: absolute; top: 10px; left: -8px; width: 3px; height: 15px;
  background: linear-gradient(to bottom, #7a3c18, #c88d57); border-radius: 2px;
  opacity: 0.4; transition: height 0.4s ease, opacity 0.4s ease;
}

.person-wrapper.action-pouring .brass-kettle-stage {
  transform: rotate(-35deg) translateY(-10px);
}
.person-wrapper.action-pouring .pour-stream {
  height: 45px;
  opacity: 1;
}

.stage-ground { position: absolute; bottom: 0; width: 100%; height: 35px; background: linear-gradient(to top, #090a0d, #141820); border-top: 1px solid var(--glass-border); }

.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--border-radius-lg); padding: 18px 24px; backdrop-filter: blur(14px); box-shadow: 0 12px 32px rgba(0,0,0,0.6); }
.interactive-story-card { width: 100%; max-width: 1080px; margin: 0 auto; transition: var(--transition-smooth); }
.story-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.story-badge { background: rgba(243, 156, 18, 0.15); color: var(--accent-amber); padding: 4px 12px; border-radius: 16px; font-size: 0.8rem; font-weight: 700; }
.close-card-btn { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.close-card-btn:hover { color: #fff; }

.story-card-content h2 { font-family: var(--font-serif); font-size: 1.3rem; color: #ffffff; margin-bottom: 4px; }
.story-card-content p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.45; }
.card-action-bar { margin-top: 12px; display: flex; gap: 10px; }

.drawer-modal { border: none; background: transparent; padding: 0; max-width: 500px; width: 90%; margin: auto; }
.drawer-modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); }
.drawer-content { position: relative; }
.modal-close-btn { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; }
.drawer-desc { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0 16px; }
.drawer-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--glass-border); border-radius: var(--border-radius-sm); padding: 10px 12px; color: #fff; font-family: var(--font-sans); font-size: 0.9rem; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-amber); }

.single-footer-bar { border-top: 1px solid var(--glass-border); padding: 10px 3%; background: #07080a; z-index: 10; }
.footer-bar-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.footer-bar-content a { color: var(--accent-amber); text-decoration: none; font-weight: 600; }

/* ============================================================
   LIFELIKE CAST — faces, breathing, gaze & conversation blocking
   ============================================================ */

/* -- floor contact shadows: grounds each person, sells weight -- */
.person-wrapper { position: relative; }
.person-wrapper::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 64%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, transparent 72%);
  transform: translateX(-50%) scaleX(1);
  z-index: -1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.kitchen-pantry-area .person-wrapper::before { left: 30%; }

/* -- idle breathing loop: nobody stands perfectly still -- */
.dev-avatar .body,
.chaiwala-avatar .body,
.friend-a .blazer,
.friend-b .formal-shirt {
  animation: idleBreathe 3.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.friend-b .formal-shirt { animation-delay: -1.1s; }
.chaiwala-avatar .body { animation-delay: -2s; }

@keyframes idleBreathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.015) translateY(-1.5px); }
}

.person-dev .dev-avatar,
.person-friends .friends-avatar,
.kitchen-pantry-area .chaiwala-avatar {
  animation: idleSway 5.2s ease-in-out infinite;
}
.person-friends .friends-avatar { animation-duration: 6s; animation-delay: -1.4s; }
.kitchen-pantry-area .chaiwala-avatar { animation-duration: 4.6s; animation-delay: -2.6s; }

@keyframes idleSway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(0.6deg); }
}

/* -- ears, brows, eyes, mouth: shared across every character -- */
.ear {
  position: absolute; top: 42%; width: 20%; height: 30%;
  background: inherit; filter: brightness(0.94); border-radius: 50%; z-index: -1;
}
.ear-left { left: -8%; }
.ear-right { right: -8%; }

.eyebrows { position: absolute; top: 32%; left: 18%; width: 64%; display: flex; justify-content: space-between; }
.brow { width: 22%; height: 2.5px; background: rgba(30, 18, 10, 0.75); border-radius: 2px; transition: transform 0.3s ease; }
.brow-l { transform: rotate(-4deg); }
.brow-r { transform: rotate(4deg); }

.eyes { position: absolute; top: 42%; left: 20%; width: 60%; display: flex; justify-content: space-between; z-index: 2; }
.eye {
  width: 15%; aspect-ratio: 1; background: #201510; border-radius: 50%;
  animation: naturalBlink 5.4s ease-in-out infinite;
}
.eye-r { animation-delay: -0.15s; }
.person-friends .friend-b .eye { animation-delay: -2.6s; }
.person-chaiwala .eye { animation-delay: -4s; }

@keyframes naturalBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
}

.mouth {
  position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 3px; background: rgba(120, 45, 35, 0.65);
  border-radius: 0 0 6px 6px; transition: all 0.18s ease;
}
.mouth-smile { border-radius: 0 0 10px 10px; height: 4px; width: 40%; }

.mustache {
  position: absolute; bottom: 26%; left: 50%; transform: translateX(-50%);
  width: 46%; height: 5px; background: #241408; border-radius: 3px 3px 0 0;
}

/* -- talking: mouth flaps, brows lift, whole head bobs on cadence -- */
.person-wrapper.is-speaking:not(.person-friends) .head {
  animation: speakingNod 0.42s ease-in-out infinite;
}
@keyframes speakingNod {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1.5px) rotate(1deg); }
}

.person-wrapper.is-speaking:not(.person-friends) .mouth {
  animation: mouthTalk 0.36s ease-in-out infinite;
}
@keyframes mouthTalk {
  0%, 100% { height: 3px; width: 34%; border-radius: 0 0 6px 6px; }
  40% { height: 8px; width: 26%; border-radius: 50%; }
  70% { height: 5px; width: 30%; }
}

.person-wrapper.is-speaking .brow-l { transform: rotate(-7deg) translateY(-1.5px); }
.person-wrapper.is-speaking .brow-r { transform: rotate(7deg) translateY(-1.5px); }

.person-wrapper.is-speaking::before { transform: translateX(-50%) scaleX(1.12); opacity: 0.9; }

/* -- gesture: a hand lifts slightly on emphasis while speaking -- */
.person-wrapper.is-speaking .arm-right:not(.action-lock) {
  animation: talkGestureRight 1.6s ease-in-out infinite;
}
@keyframes talkGestureRight {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-18deg); }
  60% { transform: rotate(-4deg); }
}
.person-wrapper.action-sipping .arm-right { animation: none !important; }

.person-friends.is-speaking .arm-sip-a {
  animation: talkGestureLeft 1.5s ease-in-out infinite;
}
@keyframes talkGestureLeft {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  40% { transform: rotate(-12deg) translateY(-3px); }
}

/* -- listening: a subtle attentive lean + gentle nod towards the speaker -- */
.person-wrapper.is-listening {
  animation: listenLean 2.4s ease-in-out infinite;
}
@keyframes listenLean {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.person-wrapper.is-listening .mouth { height: 2px; width: 26%; }
.person-wrapper.is-listening .brow-l { transform: rotate(-8deg) translateY(-1px); }
.person-wrapper.is-listening .brow-r { transform: rotate(2deg); }

/* -- gaze direction: pupils (and a light head-tilt) aim at whoever
   is part of the conversation — nobody defaults to staring at camera.
   Stage order, left to right: Dev — Amit & Priya — Kaka (chaiwala). -- */

.eyes { transition: transform 0.5s cubic-bezier(0.34, 1, 0.4, 1); }

/* resting state: the team is mid-conversation even when nobody's mic is "on" */
.dev-avatar .eyes { transform: translateX(2px); }
.friend-a .eyes { transform: translateX(-1px); }
.friend-b .eyes { transform: translateX(1px); }
.chaiwala-avatar .eyes { transform: translateX(-3px); }
.chaiwala-avatar .head { transform: rotate(-6deg); }

/* Dev is speaking → Amit, Priya and Kaka all look toward him */
#characters-stage[data-speaker="dev"] .dev-avatar .eyes { transform: translateX(0); }
#characters-stage[data-speaker="dev"] .friend-a .eyes { transform: translateX(-4px); }
#characters-stage[data-speaker="dev"] .friend-b .eyes { transform: translateX(-3px); }
#characters-stage[data-speaker="dev"] .friend-a .head,
#characters-stage[data-speaker="dev"] .friend-b .head { transform: rotate(-7deg); }
#characters-stage[data-speaker="dev"] .chaiwala-avatar .eyes { transform: translateX(-5px); }
#characters-stage[data-speaker="dev"] .chaiwala-avatar .head { transform: rotate(-13deg); }

/* Amit is speaking → Dev, Priya and Kaka look toward him */
#characters-stage[data-speaker="amit"] .dev-avatar .eyes { transform: translateX(4px); }
#characters-stage[data-speaker="amit"] .dev-avatar .head { transform: rotate(7deg); }
#characters-stage[data-speaker="amit"] .friend-a .eyes { transform: translateX(0); }
#characters-stage[data-speaker="amit"] .friend-b .eyes { transform: translateX(-3px); }
#characters-stage[data-speaker="amit"] .friend-b .head { transform: rotate(-6deg); }
#characters-stage[data-speaker="amit"] .chaiwala-avatar .eyes { transform: translateX(-4px); }
#characters-stage[data-speaker="amit"] .chaiwala-avatar .head { transform: rotate(-9deg); }

/* Priya is speaking → Dev, Amit and Kaka look toward her */
#characters-stage[data-speaker="priya"] .dev-avatar .eyes { transform: translateX(3px); }
#characters-stage[data-speaker="priya"] .dev-avatar .head { transform: rotate(5deg); }
#characters-stage[data-speaker="priya"] .friend-a .eyes { transform: translateX(3px); }
#characters-stage[data-speaker="priya"] .friend-a .head { transform: rotate(6deg); }
#characters-stage[data-speaker="priya"] .friend-b .eyes { transform: translateX(0); }
#characters-stage[data-speaker="priya"] .chaiwala-avatar .eyes { transform: translateX(-2px); }
#characters-stage[data-speaker="priya"] .chaiwala-avatar .head { transform: rotate(-4deg); }

/* Kaka is speaking → he still faces the customers (never the camera);
   Dev, Amit and Priya glance over toward the pantry counter */
#characters-stage[data-speaker="chaiwala"] .dev-avatar .eyes { transform: translateX(5px); }
#characters-stage[data-speaker="chaiwala"] .dev-avatar .head { transform: rotate(9deg); }
#characters-stage[data-speaker="chaiwala"] .friend-a .eyes,
#characters-stage[data-speaker="chaiwala"] .friend-b .eyes { transform: translateX(4px); }
#characters-stage[data-speaker="chaiwala"] .friend-a .head,
#characters-stage[data-speaker="chaiwala"] .friend-b .head { transform: rotate(7deg); }
#characters-stage[data-speaker="chaiwala"] .chaiwala-avatar .eyes { transform: translateX(-5px); }
#characters-stage[data-speaker="chaiwala"] .chaiwala-avatar .head { transform: rotate(-9deg); }

/* -- entrance: cast settles onto the stage instead of popping in -- */
.person-dev { animation: enterFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.person-friends { animation: enterFromBottom 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.kitchen-pantry-area { animation: enterFromRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }

@keyframes enterFromLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterFromRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterFromBottom { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* -- friends-avatar composite targeting: Amit and Priya share one wrapper,
   so only the one actually talking gets the mouth-flap + nod treatment -- */
.friends-avatar .friend-a.is-speaking-face .head,
.friends-avatar .friend-b.is-speaking-face .head { animation: speakingNod 0.42s ease-in-out infinite; }
.friends-avatar .friend-a.is-speaking-face .mouth,
.friends-avatar .friend-b.is-speaking-face .mouth { animation: mouthTalk 0.36s ease-in-out infinite; }
.friends-avatar .friend-a.is-speaking-face .brow-l,
.friends-avatar .friend-b.is-speaking-face .brow-l { transform: rotate(-7deg) translateY(-1.5px); }
.friends-avatar .friend-a.is-speaking-face .brow-r,
.friends-avatar .friend-b.is-speaking-face .brow-r { transform: rotate(7deg) translateY(-1.5px); }
.friends-avatar .friend-a:not(.is-speaking-face) .mouth,
.friends-avatar .friend-b:not(.is-speaking-face) .mouth { height: 2px; width: 26%; }

@media (prefers-reduced-motion: reduce) {
  .person-wrapper::before,
  .dev-avatar .body, .chaiwala-avatar .body, .friend-a .blazer, .friend-b .formal-shirt,
  .person-dev .dev-avatar, .person-friends .friends-avatar, .kitchen-pantry-area .chaiwala-avatar,
  .eye, .person-wrapper.is-speaking .head, .person-wrapper.is-speaking .mouth,
  .person-wrapper.is-speaking .arm-right, .person-friends.is-speaking .arm-sip-a,
  .person-wrapper.is-listening { animation: none !important; }
}

@media (max-width: 768px) {
  .tapri-scene-wrapper { height: 350px; }
  .characters-stage { height: 230px; padding: 0 10px 15px; }
  .friends-avatar { width: 160px; }
  .app-header-compact { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .scene-status-pill { display: none; }
  .speech-bubble { font-size: 0.75rem; max-width: 160px; top: -95px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
