/* ==========================================================================
   TASTE OF GERMAN  (#taste)  — white, playful
   8 flip-cards (3D) · German audio · progress meter · tricolour confetti
   Prefix: .taste-  /  .taste__
   Layers per card:  li (GSAP deal-in)  >  .taste-slot (CSS tilt + hover lift)
                     >  button.taste-card (perspective)  >  .taste-card__inner (flip)
   ========================================================================== */

.taste {
  position: relative;
  overflow: clip; /* contains the drifting glyphs; `clip` keeps position:sticky working */
  background: var(--surface);
}

/* ---------- Backdrop ---------- */
.taste__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.taste__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.taste__blob--a {
  width: min(46vw, 640px);
  aspect-ratio: 1;
  top: 0;
  right: -8%;
  background: radial-gradient(closest-side, var(--sky-100), transparent 72%);
}
.taste__blob--b {
  width: min(38vw, 520px);
  aspect-ratio: 1;
  bottom: 0;
  left: -8%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%);
}
.taste__glyph {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  user-select: none;
}
.taste__glyph--a {
  font-size: clamp(9rem, 20vw, 20rem);
  top: 4%;
  left: -2%;
  color: var(--sky-100);
}
.taste__glyph--b {
  font-size: clamp(7rem, 15vw, 15rem);
  top: 46%;
  right: 2%;
  color: color-mix(in srgb, var(--gold) 16%, transparent);
}
.taste__glyph--c {
  font-size: clamp(6rem, 12vw, 12rem);
  bottom: 2%;
  left: 30%;
  color: var(--sky-100);
}
.taste__glyph--d {
  font-size: clamp(5rem, 10vw, 10rem);
  top: 8%;
  right: 34%;
  color: color-mix(in srgb, var(--rot) 7%, transparent);
}

/* ---------- Layout ---------- */
.taste__layout {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
}
.taste__intro {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.taste__head {
  gap: var(--space-3);
}
.taste__script {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transform: rotate(-2.5deg);
  transform-origin: left center;
  margin-top: -0.15rem;
}
.taste__heart {
  width: 0.78em;
  height: 0.78em;
  fill: currentColor;
  flex: none;
}

@media (min-width: 720px) and (max-width: 1099px) {
  .taste__intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--space-5) clamp(1.5rem, 4vw, 3rem);
    align-items: end;
  }
  .taste__head {
    grid-row: span 3;
  }
}
@media (min-width: 1100px) {
  .taste__layout {
    grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
  }
  .taste__intro {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
  .taste__head .section-title {
    font-size: var(--fs-3xl);
  }
}

/* ---------- Progress meter ---------- */
.taste-progress {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem 1.2rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--sky-50), var(--sky-100));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.taste-progress__top {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
}
.taste-progress__num {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--navy-800);
  min-width: 0.65em;
  font-variant-numeric: tabular-nums;
}
.taste-progress__of {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink-soft);
}
.taste-progress__pips {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.taste-progress__pip {
  height: 10px;
  border-radius: 5px;
  background: var(--sky-200);
  transform-origin: 50% 100%;
  transition: background-color 0.45s var(--ease-out), transform 0.5s var(--ease-spring);
}
.taste-progress__pip.is-on {
  background: var(--blue-600);
  transform: scaleY(1.35);
}
/* all eight done → the pips re-colour as the flag: 3 Schwarz · 2 Rot · 3 Gold */
.taste.is-complete .taste-progress__pip.is-on {
  background: var(--gold);
}
.taste.is-complete .taste-progress__pip:nth-child(-n + 3) {
  background: var(--schwarz);
}
.taste.is-complete .taste-progress__pip:nth-child(4),
.taste.is-complete .taste-progress__pip:nth-child(5) {
  background: var(--rot);
}
.taste.is-complete .taste-progress__pip {
  transition-delay: calc(var(--pip, 0) * 60ms);
}
.taste-progress__msg {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.4;
  min-height: 1.4em;
}
.taste.is-complete .taste-progress__msg {
  color: var(--navy-800);
  font-weight: 600;
}

.taste__audio {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.45;
}
.taste__audio .icon {
  color: var(--blue-600);
  margin-top: 0.1rem;
}
.taste__audio[hidden],
.taste__reset[hidden],
.taste-speak[hidden] {
  display: none;
}
.taste__reset {
  justify-self: start;
}

/* ==========================================================================
   Card grid
   ========================================================================== */
.taste__stage {
  position: relative;
  min-width: 0;
}
.taste__grid {
  --gap: clamp(1rem, 2vw, 1.4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0.5rem 0;
}
.taste-item {
  position: relative;
  display: flex;
  min-width: 0;
}
.taste-item > * {
  flex: 1;
  min-width: 0;
}

/* tilt + hover lift live on .taste-slot so GSAP's li transform never fights CSS */
.taste-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.6s var(--ease-spring);
}
.taste-item:nth-child(8n + 1) .taste-slot { --tilt: -1.8deg; }
.taste-item:nth-child(8n + 2) .taste-slot { --tilt: 1.2deg; }
.taste-item:nth-child(8n + 3) .taste-slot { --tilt: -0.9deg; }
.taste-item:nth-child(8n + 4) .taste-slot { --tilt: 1.7deg; }
.taste-item:nth-child(8n + 5) .taste-slot { --tilt: 1deg; }
.taste-item:nth-child(8n + 6) .taste-slot { --tilt: -1.4deg; }
.taste-item:nth-child(8n + 7) .taste-slot { --tilt: 0.8deg; }
.taste-item:nth-child(8n + 8) .taste-slot { --tilt: -1.1deg; }
@media (hover: hover) {
  .taste-slot:hover {
    transform: rotate(0deg) translateY(-8px);
  }
}
.taste-slot:focus-within,
.taste-slot.is-flipped {
  transform: rotate(0deg) translateY(-4px);
}

/* ---------- The card (real <button>) ---------- */
.taste-card {
  position: relative;
  flex: 1 1 auto;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border-radius: var(--r-lg);
  perspective: 1200px;
  container-type: inline-size; /* phrase type scales with card width */
  -webkit-tap-highlight-color: transparent;
}
.taste-card:focus-visible {
  outline-offset: 5px;
  border-radius: var(--r-lg);
}
.taste-card__inner {
  position: relative;
  display: grid; /* faces share one cell: height = tallest face (text-spacing safe) */
  aspect-ratio: 0.82; /* only a floor: min-height stays auto so content (text-spacing, zoom) can grow it */
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(0.55, 0.04, 0.22, 1.28);
  border-radius: inherit;
}
.taste-card[aria-pressed="true"] .taste-card__inner {
  transform: rotateY(180deg);
}
.taste-card:active .taste-card__inner {
  transition-duration: 0.25s;
}
.taste-card.is-flipping {
  animation: taste-lift 0.95s var(--ease-in-out);
}
@keyframes taste-lift {
  40% {
    transform: translateY(-12px) scale(1.06);
  }
}
.taste-card.is-peek .taste-card__inner {
  animation: taste-peek 1.5s var(--ease-in-out) both;
}
@keyframes taste-peek {
  0%, 100% { transform: rotateY(0deg); }
  28% { transform: rotateY(24deg); }
  52% { transform: rotateY(-6deg); }
  72% { transform: rotateY(12deg); }
}

.taste-card__face {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.05rem 1.2rem 1.15rem;
  border-radius: inherit;
  clip-path: inset(0 round var(--r-lg));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-md);
}
.taste-card__face--front {
  background: linear-gradient(165deg, var(--surface) 38%, var(--sky-50) 100%);
  border: 1px solid var(--line);
}
/* cursor-following glow (vars set from JS on fine pointers) */
.taste-card__face--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 122, 232, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .taste-card:hover .taste-card__face--front::after {
    opacity: 1;
  }
}
.taste-card__face--back {
  transform: rotateY(180deg);
  color: var(--on-dark);
  background: var(--grad-navy);
  border: 1px solid var(--line-on-dark);
}
.taste-card__face--back::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 30%, transparent), transparent);
  pointer-events: none;
}

/* ---- front ---- */
.taste-card__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px; /* room for the speaker button */
  padding-right: 3rem;
  position: relative;
}
.taste-card__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.7rem;
  padding-inline: 0.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: max(var(--fs-xs), .8125rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--navy-800);
}
.taste-card__tag {
  font-family: var(--font-display);
  font-size: max(var(--fs-xs), .8125rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.taste-card__art {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
}
.taste-art {
  width: clamp(84px, 40cqi, 112px);
  height: auto;
  overflow: visible;
  transition: transform 0.6s var(--ease-spring);
}
.taste-card:hover .taste-art {
  transform: scale(1.08) rotate(-3deg);
}
.taste-card__phrase {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(clamp(1.4rem, 10.6cqi, 2.15rem) * var(--fit, 1));
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy-800);
  text-wrap: balance;
}
.taste-card__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-600);
}
.taste-card__hint .icon {
  width: 1rem;
  height: 1rem;
}

/* ---- back ---- */
.taste-card__label {
  font-family: var(--font-display);
  font-size: max(var(--fs-xs), .8125rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--grad-gold);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
}
.taste-card__de {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
  margin-top: 0.15rem;
}
.taste-card__en {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}
.taste-card__en-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 12.4cqi, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.taste-card__en-alt {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--on-dark-soft);
}
.taste-card__say {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  padding: 0.5rem 0.85rem 0.55rem 0.7rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-on-dark);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-soft);
  letter-spacing: 0.01em;
}
.taste-card__say .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  color: var(--gold);
}
.taste-card__say-k {
  display: block;
  font-size: max(var(--fs-xs), .875rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.taste-card__say-v {
  display: block;
  font-weight: 800;
  color: var(--gold-soft);
}
.taste-card__note {
  position: relative;
  font-size: var(--fs-base);
  line-height: 1.35;
  color: var(--on-dark-soft);
  max-width: 17em;
}
.taste-card__gate {
  position: absolute;
  right: -8%;
  bottom: -5%;
  width: 56%;
  fill: #fff;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- Illustration palette (inline SVG art) ---------- */
.taste-art .a-ln {
  fill: none;
  stroke: var(--navy-800);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.taste-art .a-ln--bold { stroke-width: 5; }
.taste-art .a-ln--thin { stroke-width: 2; opacity: 0.55; }
.taste-art .a-ln--blue { stroke: var(--blue-500); }
.taste-art .a-ln--white { stroke: #fff; }
.taste-art .a-ol {
  fill: none;
  stroke: var(--navy-800);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.taste-art .a-ol .a-solid,
.taste-art .a-ol path:last-child { fill: var(--navy-800); }
.taste-art .a-fill {
  fill: none;
  stroke: var(--gold-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.taste-art .a-fill .a-solid { fill: var(--gold-soft); stroke: none; }
.taste-art .a-solid {
  stroke: var(--navy-800);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.taste-art .a-o2 { stroke-width: 2.4; }
.taste-art .a-o3 { stroke-width: 3; }
.taste-art .a-gold { fill: var(--gold); }
.taste-art .a-blue { fill: var(--blue-500); }
.taste-art .a-navy-blue { fill: var(--navy-600); }
.taste-art .a-navy { fill: var(--navy-800); }
.taste-art .a-sky { fill: var(--sky-200); }
.taste-art .a-white { fill: #fff; }
.taste-art .a-rot { fill: var(--rot); }
.taste-art .a-dot { fill: var(--navy-800); stroke: none; }
.taste-art .a-dot.a-white { fill: #fff; }
.taste-art .a-dot.a-gold-dot { fill: var(--gold); stroke: var(--navy-800); stroke-width: 2; }
.taste-art .a-ring { fill: none; stroke: #fff; stroke-width: 2; opacity: 0.8; }

/* the waving hand gently waves while the card is hovered / focused */
.taste-art__wave {
  transform-box: fill-box;
  transform-origin: 50% 90%;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .taste-card:hover .taste-art__wave,
  .taste-card:focus-visible .taste-art__wave {
    animation: taste-wave 1.1s ease-in-out infinite;
  }
}
@keyframes taste-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(14deg); }
  75% { transform: rotate(-10deg); }
}

/* ---------- Speaker button (sibling of the card button) ---------- */
.taste-speak {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blue-600);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base), color var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}
.taste-speak:hover {
  transform: scale(1.1);
  background: var(--blue-600);
  color: #fff;
}
.taste-speak:active {
  transform: scale(0.95);
}
.taste-speak:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.taste-speak .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.taste-speak__bars {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  grid-auto-flow: column;
  gap: 3px;
  background: var(--blue-600);
  border-radius: 50%;
}
.taste-speak__bars i {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
  align-self: center;
  animation: taste-bars 0.7s ease-in-out infinite;
}
.taste-speak__bars i:nth-child(2) { animation-delay: 0.12s; }
.taste-speak__bars i:nth-child(3) { animation-delay: 0.24s; }
.taste-speak.is-speaking .taste-speak__bars {
  display: grid;
}
@keyframes taste-bars {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ---------- CTA card (the 9th cell) ---------- */
.taste-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: var(--r-lg);
  color: #fff;
  background: var(--grad-blue);
  box-shadow: var(--shadow-glow-blue);
  overflow: hidden;
  isolation: isolate;
  min-height: 290px;
  container-type: inline-size;
  transition: box-shadow 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
}
.taste-cta::before {
  content: "";
  position: absolute;
  inset: auto -25% -40% auto;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 38%, transparent), transparent);
  z-index: -1;
}
.taste-cta__gate {
  position: absolute;
  right: -6%;
  bottom: 14%;
  width: 78%;
  fill: #fff;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}
.taste-cta__chip {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--grad-gold);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
}
.taste-cta__kicker {
  font-family: var(--font-script);
  font-size: var(--fs-script);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  transform: rotate(-3deg);
  transform-origin: left center;
  margin-bottom: -0.35rem;
}
.taste-cta__kicker[hidden] {
  display: none;
}
.taste-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 9.4cqi, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.taste-cta__text {
  font-size: var(--fs-base);
  line-height: 1.45;
  color: #fff;
}
.taste-cta__btn {
  align-self: stretch;
}
.taste.is-complete .taste-cta {
  box-shadow: 0 0 0 4px var(--gold), var(--shadow-glow-gold);
  animation: taste-cta-pulse 1.8s var(--ease-in-out) 3;
}
@keyframes taste-cta-pulse {
  50% { transform: scale(1.03); }
}

/* ---------- Confetti canvas (fixed overlay while celebrating) ---------- */
.taste__confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-float);
  display: none;
}
.taste.is-celebrating {
  z-index: 5; /* keep the confetti above neighbouring sections while it flies */
}
.taste.is-celebrating .taste__confetti {
  display: block;
}

.taste__swipe {
  display: none;
}

/* ==========================================================================
   Tablet 720–1099: 3 columns (8 cards + CTA = 3×3), intro above
   Mobile < 720: swipeable scroll-snap carousel
   ========================================================================== */
@media (max-width: 719px) {
  .taste__stage {
    /* full-bleed scroller */
    margin-inline: calc(var(--gutter) * -1);
  }
  .taste__grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 1.4rem var(--gutter) 2.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .taste__grid::-webkit-scrollbar {
    display: none;
  }
  .taste-item {
    flex: 0 0 min(76vw, 292px);
    scroll-snap-align: center;
  }
  .taste__swipe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--blue-600);
    margin-top: -0.4rem;
  }
  .taste__swipe .script {
    font-size: var(--fs-lg);
  }
  .taste__swipe .icon {
    width: 1.3rem;
    height: 1.3rem;
    animation: taste-nudge 1.6s var(--ease-in-out) infinite;
  }
  .taste-progress__num {
    font-size: var(--fs-2xl);
  }
}
@keyframes taste-nudge {
  50% { transform: translateX(6px); }
}

/* ==========================================================================
   Fallbacks
   ========================================================================== */
/* No JS: cards can't flip, so show both faces stacked as a plain, readable card */
html.no-js .taste-card {
  aspect-ratio: auto;
  min-height: 0;
  perspective: none;
}
html.no-js .taste-card__inner {
  position: static;
  aspect-ratio: auto;
  min-height: 0;
  display: grid;
  grid-area: auto;
  gap: 0.6rem;
  transform: none;
  transform-style: flat;
}
html.no-js .taste-card__face {
  position: relative;
  grid-area: auto;
  inset: auto;
  transform: none;
  backface-visibility: visible;
  min-height: 190px;
}
html.no-js .taste__audio,
html.no-js .taste-card__hint,
html.no-js .taste-progress,
html.no-js .taste__swipe {
  display: none;
}
html.no-js .taste-card__top {
  padding-right: 0;
}
html.no-js .taste__grid {
  display: grid;
  overflow: visible;
}
html.no-js .taste__stage {
  margin-inline: 0;
}

/* Reduced motion: no 3D — the two faces cross-fade instead */
@media (prefers-reduced-motion: reduce) {
  .taste-card__inner,
  .taste-card.is-flipping {
    transform: none !important;
    transform-style: flat;
    animation: none !important;
  }
  .taste-card__face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .taste-card__face--back {
    transform: none;
    opacity: 0;
    visibility: hidden;
  }
  .taste-card[aria-pressed="true"] .taste-card__face--front {
    opacity: 0;
    visibility: hidden;
  }
  .taste-card[aria-pressed="true"] .taste-card__face--back {
    opacity: 1;
    visibility: visible;
  }
  .taste-slot,
  .taste-slot:hover,
  .taste-slot:focus-within,
  .taste-slot.is-flipped {
    transform: none;
  }
  .taste.is-complete .taste-cta {
    animation: none;
  }
  .taste__confetti {
    display: none !important;
  }
}

/* Narrow cards (≈ 1100px laptops): keep the header row and CTA tidy.
   (container-query widths are content-box widths: the card has no padding, the CTA has ~22px each side) */
@container (max-width: 235px) {
  .taste-card__tag {
    display: none;
  }
}
@container (max-width: 190px) {
  .taste-cta__text {
    display: none;
  }
}
