/* ============================================
   MARS TV Display — Global Reset & Base
   ============================================ */

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #060608;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #f0f0f0;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Phases — stacked fullscreen layers
   ============================================ */

.phase {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
  z-index: 1;
}

.phase.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* ============================================
   Shared Logo (Phase 3 only now)
   ============================================ */

.phase-logo {
  position: fixed;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.phase-logo img {
  height: 22vh;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.8));
}

/* ── Meal Info Logo (Phase 2 — top of info column) ── */
.meal-info-logo {
  height: 16vh;
  margin-bottom: 3vh;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.8));
  align-self: center;
}

/* ============================================
   PHASE 1 — Full-screen Video
   ============================================ */

#phase-video {
  background: #000;
}

#fullscreen-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   PHASE 2 — Meal Slideshow
   ============================================ */

#phase-meals {
  background: #060608;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Meal Slide Container — 2 columns, seamless */
.meal-slide {
  display: grid;
  grid-template-columns: 1fr 2.8fr;
  gap: 0;
  width: 100vw;
  height: 100vh;
  align-items: stretch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.meal-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Default: Info left (col 1), Image right (col 2) */
.meal-info   { order: 1; }
.meal-image-wrap { order: 2; }

/* Reverse: Image left (col 1), Info right (col 2) */
.meal-slide.reverse .meal-image-wrap { order: 1; }
.meal-slide.reverse .meal-info       { order: 2; }

.meal-slide.reverse .meal-info-content {
  text-align: left;
  align-items: flex-start;
}

/* ── Center Column: Meal Image ── */
.meal-image-wrap {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cheerful but subtle radial background — overridden per slide via --accent */
  background:
    radial-gradient(ellipse at 50% 55%, var(--accent-glow, rgba(180,140,100,0.12)) 0%, transparent 60%),
    radial-gradient(ellipse at 35% 25%, var(--accent-bg, rgba(255,255,255,0.04)) 0%, transparent 45%),
    radial-gradient(ellipse at 65% 80%, var(--accent-bg, rgba(255,255,255,0.03)) 0%, transparent 40%),
    #0a0a0e;
}

.meal-image-wrap img {
  width: 88%;
  height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 18px;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.5));
}

/* Subtle vignette over background */
.meal-image-wrap > .img-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(6,6,8,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Soft blurred fade edges on both sides of center column */
.meal-image-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18%;
  background: linear-gradient(to right, rgba(6,6,8,0.95), rgba(6,6,8,0.4) 50%, transparent);
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.meal-image-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 18%;
  background: linear-gradient(to left, rgba(6,6,8,0.95), rgba(6,6,8,0.4) 50%, transparent);
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Side Column: Info (with kitchen background) ── */
.meal-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100vh;
  overflow: hidden;
}

/* Kitchen background image */
.meal-info-bg {
  position: absolute;
  inset: 0;
  background: url('kuhinja-desno.jpeg') center center / cover no-repeat;
  filter: blur(4px) brightness(0.35) saturate(0.6);
  z-index: 0;
}

/* Soft blurred fade edge toward center column */
.meal-info::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 35%;
  background: linear-gradient(to left, rgba(6,6,8,0.9), rgba(6,6,8,0.3) 60%, transparent);
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* When info is on the right (reverse), fade edge is on the left */
.meal-slide.reverse .meal-info::after {
  right: auto;
  left: 0;
  background: linear-gradient(to right, rgba(6,6,8,0.9), rgba(6,6,8,0.3) 60%, transparent);
}

/* Info text content */
.meal-info-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  height: 100%;
  padding: 3vh 2vw;
}

.meal-slide.reverse .meal-info-content {
  align-items: flex-start;
  text-align: left;
}

.meal-name {
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.2vh;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.meal-price {
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  font-weight: 700;
  margin-bottom: 2.5vh;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.meal-divider {
  width: 50px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 2.5vh;
  opacity: 0.7;
}

.meal-label {
  font-size: clamp(0.7rem, 1vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 1.5vh;
  font-weight: 600;
}

.meal-ingredients {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7vh;
}

.meal-ingredients li {
  font-size: clamp(0.85rem, 1.3vw, 1.3rem);
  color: #ddd;
  font-weight: 400;
  position: relative;
  padding-right: 1.2em;
}

.meal-ingredients li::before {
  content: '·';
  position: absolute;
  right: 0;
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1;
  top: -0.05em;
}

/* When info is on the right (reverse), align left */
.meal-slide.reverse .meal-info-content .meal-ingredients li {
  padding-right: 0;
  padding-left: 1.2em;
}

.meal-slide.reverse .meal-info-content .meal-ingredients li::before {
  right: auto;
  left: 0;
}

/* Variants (Moon Milk) */
.meal-variants {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
  margin-top: 2vh;
  width: 100%;
}

.variant-block {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1vh 1vw;
  border-right: 3px solid var(--accent, #9575CD);
}

.meal-slide.reverse .variant-block {
  border-right: none;
  border-left: 3px solid var(--accent, #9575CD);
}

.variant-name {
  font-size: clamp(0.8rem, 1.1vw, 1.1rem);
  font-weight: 600;
  margin-bottom: 0.4vh;
}

.variant-ingredients {
  font-size: clamp(0.7rem, 0.95vw, 0.95rem);
  color: #aaa;
}

/* ============================================
   PHASE 3 — Fun Video + Grid
   ============================================ */

#phase-fun {
  background: #060608;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Portrait video — centered with max height */
.fun-video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.fun-video-wrap.visible {
  opacity: 1;
}

.fun-video-wrap video {
  max-height: 90vh;
  max-width: 50vw;
  border-radius: 0;
  box-shadow: 0 0 80px rgba(0,0,0,0.7);
  object-fit: contain;
}

/* Grid of all meals */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.2vw;
  width: 92vw;
  height: 88vh;
  margin-top: 6vh;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
}

.fun-grid.visible {
  opacity: 1;
  transform: scale(1);
}

.grid-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-item.show {
  opacity: 1;
  transform: translateY(0);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2vh 1vw;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.grid-item-name {
  font-size: clamp(0.8rem, 1.3vw, 1.4rem);
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.grid-item-price {
  font-size: clamp(0.8rem, 1.2vw, 1.3rem);
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* ============================================
   Ambient particles (subtle background)
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  50% { transform: translateY(-40vh) rotate(180deg); }
}

.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float linear infinite;
}

/* ============================================
   PHASE 4 — Promo Presentation (Glassmorphism)
   ============================================ */

#phase-promo {
  background: linear-gradient(135deg, #1a0a00 0%, #0d0d12 40%, #0a0810 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animated gradient blobs */
.promo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.promo-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.promo-blob-1 {
  width: 500px;
  height: 500px;
  background: #e67e22;
  top: 10%;
  left: 10%;
  animation: promoFloat1 8s ease-in-out infinite;
}

.promo-blob-2 {
  width: 500px;
  height: 500px;
  background: #f39c12;
  bottom: 10%;
  right: 10%;
  animation: promoFloat2 10s ease-in-out infinite;
}

.promo-blob-3 {
  width: 350px;
  height: 350px;
  background: #d35400;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: promoFloat3 12s ease-in-out infinite;
}

@keyframes promoFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.2); }
}

@keyframes promoFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1.2); }
  50% { transform: translate(-50px, -30px) scale(1); }
}

@keyframes promoFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.15; }
  50% { transform: translate(-40%, -60%) scale(1.1); opacity: 0.3; }
}

/* Logo */
.promo-logo {
  position: absolute;
  top: 3vh;
  left: 3vw;
  z-index: 20;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

#phase-promo.active .promo-logo {
  opacity: 1;
  transform: translateY(0);
}

.promo-logo img {
  height: 10vh;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.8));
}

/* Main 2-column layout */
.promo-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  width: 90vw;
  max-width: 1600px;
  height: 80vh;
  align-items: center;
}

/* Image side */
.promo-image-side {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9) translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.promo-image-side.visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.promo-image-side img {
  width: 90%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6));
  animation: promoImageFloat 3s ease-in-out infinite;
}

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

/* Info card (glassmorphism) */
.promo-info-side {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.promo-info-side.visible {
  opacity: 1;
  transform: translateX(0);
}

.promo-card {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2.5rem;
  padding: 3.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: promoCardGlow 3s ease-in-out infinite;
  max-width: 600px;
  width: 100%;
}

@keyframes promoCardGlow {
  0%, 100% { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 165, 0, 0.05); }
}

/* Name */
.promo-name {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--promo-accent, #e67e22), var(--promo-accent-light, #f39c12), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.promo-info-side.visible .promo-name {
  opacity: 1;
  transform: translateY(0);
}

/* Ingredients */
.promo-ingredients {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.promo-ingredient {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.promo-info-side.visible .promo-ingredient {
  opacity: 1;
  transform: translateX(0);
}

.promo-ingredient-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--promo-accent, #e67e22), var(--promo-accent-light, #f39c12));
  flex-shrink: 0;
}

.promo-ingredient span {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  color: #ddd;
  font-weight: 400;
}

/* Price badge */
.promo-price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--promo-accent, #e67e22), var(--promo-accent-light, #f39c12), #ffd700);
  border-radius: 999px;
  padding: 1rem 2.5rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  box-shadow: 0 8px 30px rgba(230, 126, 34, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
}

.promo-info-side.visible .promo-price-badge {
  opacity: 1;
  transform: scale(1);
}

/* Variants inside promo card */
.promo-variants {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.promo-variant-block {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  border-left: 3px solid var(--promo-accent, #e67e22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.promo-info-side.visible .promo-variant-block {
  opacity: 1;
  transform: translateY(0);
}

.promo-variant-name {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 0.3rem;
}

.promo-variant-ingredients {
  font-size: clamp(0.75rem, 1vw, 1rem);
  color: #aaa;
}

/* Progress dots */
.promo-dots {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
  opacity: 0;
  transition: opacity 1s ease 1s;
}

#phase-promo.active .promo-dots {
  opacity: 1;
}

.promo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  transition: all 0.5s ease;
}

.promo-dot.active {
  width: 48px;
  background: linear-gradient(90deg, #e67e22, #f39c12);
}

/* ============================================
   PHASE 5 — Meal Showcase (TV-style)
   Full-screen: image+glow left 65%, info right 35%
   ============================================ */

:root {
  --gold: #FFD700;
  --caramel: #D4A574;
  --chocolate-dark: #2C1810;
  --showcase-accent: rgba(255, 200, 100, 0.35);
}

#phase-showcase {
  background: #0a0604;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-container {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
}

/* Full background: blurred kitchen */
.showcase-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('kuhinja-desno.jpeg') center/cover no-repeat;
  filter: blur(12px) brightness(0.5) saturate(1.2);
  z-index: 0;
}

/* Warm overlay */
.showcase-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(255, 180, 80, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, rgba(30, 15, 5, 0.2) 0%, rgba(10, 5, 2, 0.35) 100%);
  z-index: 1;
}

/* Left side: image + glow */
#phase-showcase .showcase-image-side {
  flex: 0 0 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  z-index: 2;
}

#phase-showcase .showcase-glow {
  position: absolute;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--showcase-accent) 0%, rgba(255, 160, 60, 0.15) 40%, transparent 70%);
  filter: blur(50px);
  animation: showcaseGlowPulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes showcaseGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

#phase-showcase .showcase-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 60px var(--showcase-accent));
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#phase-showcase .showcase-img.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Sparkle ring */
#phase-showcase .showcase-shimmer {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 2px solid transparent;
  z-index: 1;
  animation: dishRingRotate 8s linear infinite;
}

#phase-showcase .showcase-shimmer::before,
#phase-showcase .showcase-shimmer::after {
  content: '✦';
  position: absolute;
  font-size: 2vh;
  color: rgba(255, 215, 0, 0.7);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: sparkleFlicker 2s ease-in-out infinite;
}

#phase-showcase .showcase-shimmer::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#phase-showcase .showcase-shimmer::after {
  bottom: 5%;
  right: 10%;
  animation-delay: 1s;
  content: '★';
  font-size: 1.6vh;
}

@keyframes dishRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sparkleFlicker {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Soft blend edge */
#phase-showcase .showcase-image-side::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 20%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(15, 8, 3, 0.55));
  z-index: 5;
  pointer-events: none;
}

/* Right side: info panel */
#phase-showcase .showcase-info-side {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5vh 2.5vw;
  z-index: 2;
}

#phase-showcase .showcase-info-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 3, 0.55);
  backdrop-filter: blur(20px);
  z-index: 0;
}

#phase-showcase .showcase-info-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

#phase-showcase .showcase-info-content.visible {
  opacity: 1;
  transform: translateX(0);
}

#phase-showcase .showcase-name {
  font-family: 'Fredoka One', cursive;
  font-size: 5.5vh;
  background: linear-gradient(135deg, var(--gold), var(--caramel));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

#phase-showcase .showcase-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2vh;
  color: rgba(255, 220, 180, 0.8);
  font-style: italic;
  letter-spacing: 1px;
}

#phase-showcase .showcase-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 1vh 0;
}

#phase-showcase .showcase-price {
  font-family: 'Fredoka One', cursive;
  font-size: 5vh;
  color: #4CAF50;
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

#phase-showcase .showcase-label {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6vh;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 1vh;
}

#phase-showcase .showcase-ingredients {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8vh 1.2vw;
  padding: 0;
}

#phase-showcase .showcase-ingredients li {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8vh;
  color: rgba(255, 248, 231, 0.85);
  padding: 0.5vh 1.2vw;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 20px;
}

/* Showcase variants */
#phase-showcase .showcase-variants {
  display: flex;
  flex-direction: column;
  gap: 1vh;
  margin-top: 1.5vh;
}

.showcase-variant-block {
  background: rgba(255, 200, 100, 0.08);
  border-radius: 12px;
  padding: 1vh 1.2vw;
  border-left: 3px solid var(--gold);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#phase-showcase .showcase-info-content.visible .showcase-variant-block {
  opacity: 1;
  transform: translateY(0);
}

.showcase-variant-name {
  font-family: 'Fredoka One', cursive;
  font-size: 2vh;
  color: var(--gold);
  margin-bottom: 0.3vh;
}

.showcase-variant-ingredients {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5vh;
  color: rgba(255, 220, 180, 0.7);
}

/* Showcase dots */
.showcase-dots {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

#phase-showcase.active .showcase-dots {
  opacity: 1;
}

.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.2);
  transition: all 0.5s ease;
}

.showcase-dot.active {
  width: 42px;
  background: linear-gradient(90deg, var(--gold), var(--caramel));
}


/* ============================================
   PHASE 6 — Split-screen (video + presentation)
   TV-style: video left 60%, food presentation right 40%
   ============================================ */

#phase-split {
  background: #0a0604;
  overflow: hidden;
}

.split-container {
  position: absolute;
  inset: 0;
  display: flex;
}

/* Left: video side */
.split-video-side {
  flex: 0 0 60%;
  position: relative;
  background: #000;
  overflow: hidden;
}

.split-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wavy seam blend between video and presentation */
.split-seam {
  position: absolute;
  top: 0;
  right: -1px;
  width: 60px;
  height: 100%;
  z-index: 5;
  background: linear-gradient(to right, transparent, rgba(10, 6, 4, 0.95));
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 800' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q30,100 0,200 Q30,300 0,400 Q30,500 0,600 Q30,700 0,800 L60,800 L60,0 Z' fill='white'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 800' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q30,100 0,200 Q30,300 0,400 Q30,500 0,600 Q30,700 0,800 L60,800 L60,0 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
}

/* Right: presentation side */
.split-pres-side {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Blurred kitchen background */
.pres-bg {
  position: absolute;
  inset: -20px;
  background: url('kuhinja-desno.jpeg') center/cover no-repeat;
  filter: blur(15px) brightness(0.3) saturate(0.8);
  z-index: 0;
}

/* Gradient overlay for transition from video */
.pres-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 4, 0.95) 0%, rgba(10, 6, 4, 0.6) 15%, transparent 40%);
  z-index: 1;
}

/* Ambient glow */
.pres-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: presAmbientPulse 5s ease-in-out infinite;
}

@keyframes presAmbientPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Content column */
.pres-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 90%;
  width: 88%;
  padding: 3vh 0;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.pres-content.visible {
  opacity: 1;
  transform: scale(1);
}

/* Title area */
.pres-header {
  text-align: center;
  margin-bottom: 1vh;
}

.pres-title {
  font-family: 'Fredoka One', cursive;
  font-size: 4.5vh;
  color: white;
  text-shadow:
    0 0 30px rgba(255, 200, 100, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5);
  animation: titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% {
    text-shadow:
      0 0 30px rgba(255, 200, 100, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow:
      0 0 50px rgba(255, 200, 100, 0.6),
      0 0 80px rgba(255, 180, 80, 0.3),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
}

.pres-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 2vh;
  color: var(--caramel);
  font-style: italic;
  margin-top: 0.5vh;
  letter-spacing: 1px;
}

/* Food image container */
.pres-image-container {
  position: relative;
  width: 70%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pres-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.25) 0%, rgba(255, 160, 60, 0.1) 50%, transparent 70%);
  filter: blur(30px);
  animation: presGlowPulse 4s ease-in-out infinite;
}

@keyframes presGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.pres-food-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 30px rgba(255, 200, 100, 0.2));
}

/* Promo footer */
.pres-promo {
  text-align: center;
}

.pres-ingredients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1vh 1.5vw;
  margin-bottom: 2vh;
}

.pres-ingredient {
  background: rgba(255, 200, 100, 0.15);
  border: 1px solid rgba(255, 200, 100, 0.3);
  border-radius: 20px;
  padding: 0.6vh 1.2vw;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6vh;
  color: rgba(255, 220, 180, 0.95);
  backdrop-filter: blur(5px);
  animation: ingredientPop 0.5s ease-out both;
}

.pres-ingredient:nth-child(1) { animation-delay: 0.3s; }
.pres-ingredient:nth-child(2) { animation-delay: 0.4s; }
.pres-ingredient:nth-child(3) { animation-delay: 0.5s; }
.pres-ingredient:nth-child(4) { animation-delay: 0.6s; }
.pres-ingredient:nth-child(5) { animation-delay: 0.7s; }
.pres-ingredient:nth-child(6) { animation-delay: 0.8s; }

@keyframes ingredientPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.pres-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
}

.pres-price {
  font-family: 'Fredoka One', cursive;
  font-size: 4.5vh;
  color: #4CAF50;
  text-shadow:
    0 0 15px rgba(76, 175, 80, 0.6),
    2px 2px 0 rgba(0, 80, 0, 0.5);
  animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.2); transform: scale(1.05); }
}

.pres-price-label {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8vh;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Sparkles around food */
.pres-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.split-pres-side .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #FFD700 0%, transparent 70%);
  border-radius: 50%;
  animation: sparkleAnim 2s ease-in-out infinite;
}

.split-pres-side .sparkle:nth-child(1) { top: 20%; left: 25%; animation-delay: 0s; }
.split-pres-side .sparkle:nth-child(2) { top: 15%; right: 30%; animation-delay: 0.3s; }
.split-pres-side .sparkle:nth-child(3) { top: 35%; left: 15%; animation-delay: 0.6s; }
.split-pres-side .sparkle:nth-child(4) { top: 40%; right: 20%; animation-delay: 0.9s; }
.split-pres-side .sparkle:nth-child(5) { bottom: 30%; left: 20%; animation-delay: 1.2s; }
.split-pres-side .sparkle:nth-child(6) { bottom: 25%; right: 25%; animation-delay: 1.5s; }
.split-pres-side .sparkle:nth-child(7) { top: 50%; left: 30%; animation-delay: 0.4s; }
.split-pres-side .sparkle:nth-child(8) { bottom: 40%; right: 30%; animation-delay: 1.1s; }

@keyframes sparkleAnim {
  0%, 100% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255, 215, 0, 0.5); }
}

/* Floating particles */
.pres-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.pres-particle {
  position: absolute;
  font-size: 3vh;
  opacity: 0.6;
  animation: presParticleFloat 8s ease-in-out infinite;
}

.pres-particle.p1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.pres-particle.p2 { top: 20%; right: 15%; animation-delay: 2s; animation-duration: 9s; }
.pres-particle.p3 { bottom: 25%; left: 20%; animation-delay: 4s; animation-duration: 8s; }
.pres-particle.p4 { bottom: 15%; right: 25%; animation-delay: 1s; animation-duration: 10s; }

@keyframes presParticleFloat {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); opacity: 0.4; }
  25% { transform: translateY(-30px) translateX(10px) rotate(90deg) scale(1.2); opacity: 0.8; }
  50% { transform: translateY(-20px) translateX(-10px) rotate(180deg) scale(1); opacity: 0.6; }
  75% { transform: translateY(-40px) translateX(5px) rotate(270deg) scale(1.3); opacity: 0.9; }
}


/* ============================================
   PHASE 7 — Hero Transparent Pancake Showcase
   Big transparent image with designed bg
   ============================================ */

#phase-rsplit {
  background: #0a0612;
  overflow: hidden;
}

.hero-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Base bg — very subtle kitchen */
.hero-bg {
  position: absolute;
  inset: -30px;
  background: url('kuhinja-desno.jpeg') center/cover no-repeat;
  filter: blur(40px) brightness(0.08) saturate(0.3);
  z-index: 0;
}

/* Colored glow orbs — positioned dynamically via JS */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity 1.5s ease, background 1s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-orb-1 {
  width: 50vh;
  height: 50vh;
  top: 15%;
  left: 20%;
}

.hero-orb-2 {
  width: 40vh;
  height: 40vh;
  bottom: 10%;
  left: 35%;
  filter: blur(100px);
}

.hero-orb-3 {
  width: 35vh;
  height: 35vh;
  top: 30%;
  right: 25%;
  filter: blur(60px);
}

.hero-orb.visible {
  opacity: 1;
}

/* Concentric rings behind the pancake */
.hero-rings {
  position: absolute;
  top: 50%;
  left: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ring-1 {
  width: 85vh;
  height: 85vh;
  animation: heroRingSpin 40s linear infinite;
  border-color: rgba(255, 255, 255, 0.04);
}

.hero-ring-2 {
  width: 65vh;
  height: 65vh;
  animation: heroRingSpin 28s linear infinite reverse;
  border-color: rgba(255, 215, 0, 0.06);
  border-style: dashed;
}

.hero-ring-3 {
  width: 48vh;
  height: 48vh;
  animation: heroRingSpin 35s linear infinite;
  border-color: rgba(255, 255, 255, 0.03);
}

@keyframes heroRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* THE BIG PANCAKE */
.hero-pancake-wrap {
  position: absolute;
  z-index: 5;
  /* Center-left, takes up ~70% of height */
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  width: 70vh;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-pancake-wrap.visible {
  opacity: 1;
}

.hero-pancake-wrap.enter-left {
  transform: translate(-50%, -50%) translateX(-80px) scale(0.85) rotate(-5deg);
}
.hero-pancake-wrap.enter-right {
  transform: translate(-50%, -50%) translateX(80px) scale(0.85) rotate(5deg);
}
.hero-pancake-wrap.enter-bottom {
  transform: translate(-50%, -50%) translateY(80px) scale(0.85);
}
.hero-pancake-wrap.visible.enter-left,
.hero-pancake-wrap.visible.enter-right,
.hero-pancake-wrap.visible.enter-bottom {
  transform: translate(-50%, -50%) translateX(0) translateY(0) scale(1) rotate(0deg);
}

.hero-pancake-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7))
          drop-shadow(0 0 40px var(--hero-glow, rgba(255, 200, 100, 0.15)));
  animation: heroPancakeFloat 5s ease-in-out infinite;
}

@keyframes heroPancakeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-10px) rotate(0.5deg); }
  66%      { transform: translateY(5px) rotate(-0.3deg); }
}

/* Info panel — bottom-right, glassmorphism */
.hero-info {
  position: absolute;
  z-index: 10;
  right: 5vw;
  bottom: 8vh;
  width: 30vw;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3.5vh 2.5vw;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.hero-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-info-name {
  font-family: 'Fredoka One', cursive;
  font-size: 5vh;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5vh;
}

.hero-info-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 2vh;
  color: var(--hero-accent, #D4A574);
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 1.5vh;
}

.hero-info-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--hero-accent, #FFD700), transparent);
  border-radius: 2px;
  margin-bottom: 1.5vh;
}

.hero-info-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6vh 0.6vw;
  margin-bottom: 2vh;
}

.hero-ing-chip {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3vh;
  color: rgba(255, 240, 220, 0.9);
  padding: 0.5vh 1vw;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-info.visible .hero-ing-chip {
  opacity: 1;
  transform: translateY(0);
}

.hero-info-price {
  font-family: 'Fredoka One', cursive;
  font-size: 4.5vh;
  background: linear-gradient(135deg, #4CAF50, #81C784, #66BB6A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.3));
}

/* Counter (bottom-left) */
.hero-counter {
  position: absolute;
  bottom: 3vh;
  left: 3vw;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6vh;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Logo (top-left) */
.hero-logo {
  position: absolute;
  top: 3vh;
  left: 3vw;
  z-index: 10;
  opacity: 0.4;
}

.hero-logo img {
  height: 6vh;
  filter: brightness(0) invert(1);
}

/* ============================================
   PHASE 8 — Cinematic Fullscreen
   Full-bleed food photo, bottom editorial overlay
   menu-card-v2 style adapted for 55" TV
   ============================================ */

#phase-cinematic {
  background: #080810;
  overflow: hidden;
}

/* Blurred filler layer — color bleed and depth behind the sharp image */
.cinematic-bg-blur {
  position: absolute;
  inset: -6%;           /* oversize to hide blur edges */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: blur(55px) brightness(0.65) saturate(1.4);
}

/* Sharp image — cover so it fills the frame edge-to-edge, right-biased for text space */
.cinematic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 65% center;  /* push food slightly right, free left for text */
  background-repeat: no-repeat;
  z-index: 1;
  transform-origin: 65% center;
  animation: cinematicKenBurns 12s ease-out forwards;
}

@keyframes cinematicKenBurns {
  from { transform: scale(1.07); }
  to   { transform: scale(1.0); }
}

/* Dark overlay — left column dark for text, bottom dark for text, right clear for photo */
.cinematic-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.82)  0%,
      rgba(0,0,0,0.55)  25%,
      rgba(0,0,0,0.15)  45%,
      rgba(0,0,0,0.0)   60%,
      rgba(0,0,0,0.0)   100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.10)  0%,
      rgba(0,0,0,0.0)   30%,
      rgba(0,0,0,0.0)   60%,
      rgba(0,0,0,0.55)  85%,
      rgba(0,0,0,0.80)  100%
    );
  z-index: 2;
}

/* Accent colour glow bleeding up from the bottom */
.cinematic-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 40vh;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
  transition: background 1s ease;
}

/* Diagonal shimmer across the top of the photo */
.cinematic-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.05) 0%,
    transparent 50%
  );
  z-index: 2;
  pointer-events: none;
}

/* Logo top-left */
.cinematic-logo {
  position: absolute;
  top: 4vh;
  left: 4vw;
  z-index: 10;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

#phase-cinematic.active .cinematic-logo {
  opacity: 0.85;
  transform: translateY(0);
}

.cinematic-logo img {
  height: 8vh;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8));
}

/* Bottom editorial info panel */
/* Left-column text panel — stays out of the food photo area */
.cinematic-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;           /* occupies only the left, dark side */
  z-index: 10;
  padding: 0 4vw 6vh 5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* anchor text to bottom of left column */
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.cinematic-content.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Category label (e.g. Süße Crêpe) */
.cinematic-category {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cin-accent, #FFD700);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
  margin-bottom: 0.6vh;
}

.cinematic-content.visible .cinematic-category {
  opacity: 0.9;
  transform: translateY(0);
}

/* Big dish name — Bebas Neue */
.cinematic-name {
  font-family: 'Bebas Neue', 'Fredoka One', cursive;
  font-size: clamp(5rem, 10vw, 12rem);
  line-height: 0.92;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 4px 40px rgba(0,0,0,0.6),
    0 0 80px var(--cin-glow, rgba(255,200,80,0.12));
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
  margin-bottom: 1.2vh;
}

.cinematic-content.visible .cinematic-name {
  opacity: 1;
  transform: translateY(0);
}

/* Italic tagline */
.cinematic-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,245,220,0.75);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.65s, transform 0.5s ease 0.65s;
  margin-bottom: 2vh;
}

.cinematic-content.visible .cinematic-tagline {
  opacity: 1;
  transform: translateY(0);
}

/* Accent rule line */
.cinematic-rule {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cin-accent, #FFD700), transparent);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
  margin-bottom: 2vh;
}

.cinematic-content.visible .cinematic-rule {
  width: 70%;   /* relative to the 42% column */
}

/* Ingredient chips */
.cinematic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1vh 0.8vw;
  margin-bottom: 3vh;
}

.cin-chip {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.7rem, 1.1vw, 1.1rem);
  color: rgba(255,240,210,0.88);
  padding: 0.55vh 1.2vw;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cinematic-content.visible .cin-chip {
  opacity: 1;
  transform: translateY(0);
}

/* Price row */
.cinematic-price-row {
  display: flex;
  align-items: baseline;
  gap: 1vw;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 1.1s, transform 0.5s ease 1.1s;
}

.cinematic-content.visible .cinematic-price-row {
  opacity: 1;
  transform: translateY(0);
}

.cinematic-price-label {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.cinematic-price {
  font-family: 'Bebas Neue', 'Fredoka One', cursive;
  font-size: clamp(3.5rem, 6vw, 7.5rem);
  color: var(--cin-accent, #FFD700);
  line-height: 1;
  text-shadow:
    0 0 40px var(--cin-glow, rgba(255, 215, 0, 0.4)),
    0 4px 20px rgba(0,0,0,0.5);
}

/* Item counter — bottom right */
.cinematic-counter {
  position: absolute;
  bottom: 3.5vh;
  right: 4vw;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 1.2vw, 1.2rem);
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ============================================
   PHASE 9 — Card Wall
   All items as full-bleed cards in a grid,
   each card spotlights in turn
   ============================================ */

#phase-cardwall {
  background: #070710;
  overflow: hidden;
}

/* Very subtle dark kitchen bg */
.cardwall-bg {
  position: absolute;
  inset: -40px;
  background: url('kuhinja-desno.jpeg') center/cover no-repeat;
  filter: blur(60px) brightness(0.06) saturate(0.2);
  z-index: 0;
}

/* Grid of cards */
.cardwall-grid {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  /* 4 columns × 3 rows for 11 items (last cell empty or stretched) */
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 2vh 1vw 2vh;
}

/* Individual wall card */
.cw-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cw-card.show {
  opacity: 1;
  transform: scale(1);
}

/* Dim out non-focused cards during spotlight */
.cw-card.dimmed {
  opacity: 0.22;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cw-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cw-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.0)  40%,
    rgba(0,0,0,0.72) 80%,
    rgba(0,0,0,0.92) 100%
  );
}

.cw-card-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 70%;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.3;
  pointer-events: none;
}

.cw-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2vh 1vw 1.4vh;
}

.cw-card-name {
  font-family: 'Bebas Neue', 'Fredoka One', cursive;
  font-size: clamp(0.9rem, 1.6vw, 1.9rem);
  color: #fff;
  line-height: 1.0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 0.3vh;
}

.cw-card-price {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.65rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Spotlight Overlay ── */
.cardwall-spotlight {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.cardwall-spotlight.visible {
  opacity: 1;
}

/* Left: large photo with overlay */
.cw-spot-photo-wrap {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.cw-spot-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.cardwall-spotlight.visible .cw-spot-photo {
  transform: scale(1.0);
}

.cw-spot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.0) 55%,
    rgba(7,7,16,0.9) 100%
  ),
  linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.0) 30%,
    rgba(0,0,0,0.0) 60%,
    rgba(0,0,0,0.4) 100%
  );
}

.cw-spot-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 50vh;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  transition: background 0.8s ease;
}

/* Right: info panel */
.cw-spot-info {
  padding: 0 6vw 0 4vw;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.cardwall-spotlight.visible .cw-spot-info {
  opacity: 1;
  transform: translateX(0);
}

.cw-spot-name {
  font-family: 'Bebas Neue', 'Fredoka One', cursive;
  font-size: clamp(4rem, 8vw, 10rem);
  line-height: 0.9;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 1.5vh;
}

.cw-spot-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cw-accent, #FFD700);
  opacity: 0.85;
  margin-bottom: 2.5vh;
}

.cw-spot-rule {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cw-accent, #FFD700), transparent);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
  margin-bottom: 2.5vh;
}

.cardwall-spotlight.visible .cw-spot-rule {
  width: 12vw;
}

.cw-spot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8vh 0.6vw;
  margin-bottom: 3.5vh;
}

.cw-chip {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.65rem, 1vw, 1rem);
  color: rgba(255,240,210,0.88);
  padding: 0.5vh 1.1vw;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cardwall-spotlight.visible .cw-chip {
  opacity: 1;
  transform: translateY(0);
}

.cw-spot-price {
  font-family: 'Bebas Neue', 'Fredoka One', cursive;
  font-size: clamp(3.5rem, 7vw, 8rem);
  color: var(--cw-accent, #FFD700);
  line-height: 1;
  text-shadow:
    0 0 50px var(--cw-glow, rgba(255, 215, 0, 0.4)),
    0 4px 20px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}

.cardwall-spotlight.visible .cw-spot-price {
  opacity: 1;
  transform: translateY(0);
}
