/* Glaze motion layer + BonBon narration. Preview only. Tokens: cream / plum / gold. */

:root {
  --glz-cream: #fbf6ee;
  --glz-cream-2: #fffaf3;
  --glz-plum: #5b2a4a;
  --glz-plum-deep: #4a1942;
  --glz-ink: #3a2a22;
  --glz-gold: #e5be5e;
  --glz-gold-deep: #b8902d;
}

/* ---- Hero promise line: reserved width, no clip, brush, line-mask ---- */
html[data-wp-hero="13.1"] .wp-hero-top h1.hero-promise,
html[data-wp-hero="13.1"] .hero-promise {
  max-width: min(38rem, 100%) !important;
  overflow: visible !important;
  padding-inline: 0.18em;
  text-wrap: pretty;
}
@media (min-width: 960px) {
  html[data-wp-hero="13.1"] .wp-hero-top h1.hero-promise {
    max-width: min(22.5rem, 100%) !important;
    margin-left: 0;
    text-align: left;
  }
}
.hero-promise .hero-line {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.12em 0.14em;
}
.hero-promise .hero-line-inner {
  display: inline-block;
  max-width: 100%;
  animation: glz-line-rise 0.95s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.hero-promise .hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.14s; }
@keyframes glz-line-rise {
  from { transform: translate3d(0, 115%, 0); opacity: 0.2; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}
.hero-blank {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  min-width: var(--hero-blank-min, 12ch);
  padding: 0 0.08em 0.2em;
  font-style: italic;
  font-weight: 520;
  overflow: visible;
  vertical-align: baseline;
  color: var(--glz-plum);
  transition: color 0.35s ease;
}
.hero-blank[data-tone="gold"] { color: #b8902d; }
.hero-blank[data-tone="plum"] { color: #5b2a4a; }
.hero-blank[data-tone="matcha"] { color: #4a6b45; }
.hero-blank[data-tone="cocoa"] { color: #6b3a2a; }
.hero-blank[data-tone="blush"] { color: #8a3d62; }
.hero-blank-word { position: relative; z-index: 1; }
.hero-blank .hero-brush {
  position: absolute;
  left: -0.04em; right: -0.04em; bottom: 0.02em;
  height: 0.34em;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.hero-blank .hero-brush path {
  fill: none;
  stroke: var(--glz-gold-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: glz-brush 1.1s 0.55s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}
@keyframes glz-brush { to { stroke-dashoffset: 0; } }

/* ---- Arrow coin shoot ---- */
.wp-byb-arrow svg,
a.tb9-order svg,
a.r2n-order svg,
.glz-arrow-host svg {
  display: block;
  animation: glz-arrow-shoot 2.8s cubic-bezier(0.22, 0.8, 0.24, 1) infinite;
}
@keyframes glz-arrow-shoot {
  0%, 10% { transform: translateX(0); opacity: 1; }
  26% { transform: translateX(-5px); opacity: 1; }
  40% { transform: translateX(16px); opacity: 0; }
  44% { transform: translateX(-8px); opacity: 0; }
  62%, 100% { transform: translateX(0); opacity: 1; }
}
a.wp-byb-cta, a.tb9-order, a.r2n-order { position: relative; overflow: visible; }
.glz-hint {
  position: absolute;
  right: -4px;
  bottom: -22px;
  width: 56px;
  height: 64px;
  pointer-events: none;
  z-index: 4;
  transform-origin: 18px 8px;
  animation: glz-hint-tap 4s cubic-bezier(0.22, 0.8, 0.24, 1) infinite;
}
.glz-hint svg { width: 100%; height: 100%; display: block; overflow: visible; }
.glz-hint-ripple {
  position: absolute;
  right: 10px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(91, 42, 74, 0.35);
  opacity: 0;
  animation: glz-hint-ripple 4s cubic-bezier(0.22, 0.8, 0.24, 1) infinite;
}
@keyframes glz-hint-tap {
  0% { opacity: 0; transform: translate(28px, 18px) rotate(16deg) scale(1); }
  18% { opacity: 1; transform: translate(6px, 6px) rotate(8deg) scale(1); }
  36% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  46% { opacity: 1; transform: translate(0, 3px) rotate(0) scale(0.84); }
  58% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  78% { opacity: 1; transform: translate(18px, 16px) rotate(12deg) scale(1); }
  100% { opacity: 0; transform: translate(32px, 22px) rotate(16deg) scale(1); }
}
@keyframes glz-hint-ripple {
  0%, 40% { opacity: 0; transform: scale(0.4); }
  48% { opacity: 0.7; transform: scale(1); }
  62% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}
html.glz-hint-done .glz-hint { display: none !important; }
a.wp-byb-cta.glz-hint-press { transform: scale(0.96); }
@media (min-width: 768px) {
  .glz-hint { right: -10px; bottom: -18px; width: 42px; height: 48px; }
}

/* ---- Gift box shake (composes with 3D transform via translate) ---- */
@keyframes bxl-gift-shake {
  0%, 100% { translate: 0 0; }
  18% { translate: -3px 0; }
  38% { translate: 4px 0; }
  58% { translate: -2px 0; }
  78% { translate: 1px 0; }
}
.bxl-gift-shake { animation: bxl-gift-shake 0.32s ease-in-out; }

/* ---- Double-tap heart ---- */
.glz-heart-pop {
  position: absolute;
  left: 50%; top: 46%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  pointer-events: none;
  z-index: 6;
  animation: glz-heart 0.7s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}
@keyframes glz-heart {
  0% { transform: scale(0.4); opacity: 0; }
  35% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1.35) translateY(-12px); opacity: 0; }
}

/* ---- Weekly marquee + points ---- */
.wp-prime-extra { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.wp-prime-marquee {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(184, 144, 45, 0.28);
  background: #f6ead6;
}
.wp-prime-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 8px;
  animation: glz-marquee 48s linear infinite;
}
.wp-prime-track img {
  width: 128px; height: 128px; object-fit: cover;
  border-radius: 14px; flex: none;
}
@keyframes glz-marquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
.wp-prime-points {
  display: grid; gap: 0.45rem;
  margin: 0; padding: 0; list-style: none;
}
.wp-prime-points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--glz-ink);
}
.wp-prime-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--glz-plum);
}

/* ---- Exhibit oven / car ---- */
.glz-hairline {
  display: grid; place-items: center;
  background: #fbf6ee;
  border: 1px solid rgba(91, 42, 74, 0.14);
  border-radius: 16px;
  overflow: hidden;
  min-height: 160px;
}
.glz-hairline svg { width: min(100%, 340px); height: auto; display: block; }
.ex5-pane .glz-hairline { margin: 0; }

/* ---- Carousel feel extras (keep fanned look) ---- */
.cn9-stage { touch-action: pan-y; }
.cn9.is-drag .cn9-in,
.cn9.is-drag .cn9-card { transition: none !important; }
.cn9-card img { will-change: transform; }
.carousel-v12 .cn9-card.is-front .cn9-in,
html.cn9-on .cn9-card.is-front .cn9-in {
  box-shadow: 0 0 0 2px #e5be5e, 0 16px 32px -16px rgba(91, 42, 74, 0.4);
}
.cn9-btn.cn9-arrow {
  background: #fbf6ee !important;
  color: var(--glz-plum) !important;
  border: 1px solid rgba(184, 144, 45, 0.45) !important;
  box-shadow: inset 0 1px 0 #fffaf3, 0 6px 14px -10px rgba(91, 42, 74, 0.4);
}
.cn9-scrub {
  display: block; width: min(220px, 46vw); height: 3px;
  margin: 0.35rem auto 0;
  border-radius: 99px;
  background: rgba(91, 42, 74, 0.12);
  overflow: hidden;
}
.cn9-scrub > i {
  display: block; height: 100%; width: calc(var(--cn9-p, 0.1) * 100%);
  background: linear-gradient(90deg, #e5be5e, #b8902d);
  border-radius: inherit;
  transform: translateZ(0);
}

/* ---- Carousel BonBon peek + flavor bubble ---- */
.glz-bb {
  position: absolute;
  right: 8px; bottom: 10px;
  z-index: 5;
  display: flex; align-items: flex-end; gap: 6px;
  pointer-events: none;
}
.glz-bb-btn {
  pointer-events: auto;
  width: 52px; height: 58px;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  transform-origin: 80% 100%;
  animation: glz-bb-peek 0.7s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.glz-bb-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(58, 42, 34, 0.25)); }
@keyframes glz-bb-peek {
  from { transform: translate3d(12px, 18px, 0) rotate(8deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.glz-bb-chip {
  pointer-events: none;
  max-width: 150px;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #fffaf3;
  color: var(--glz-plum-deep);
  border: 1px solid rgba(91, 42, 74, 0.1);
  box-shadow: 0 8px 18px -12px rgba(91, 42, 74, 0.4);
  font: 650 0.72rem/1.25 "DM Sans", system-ui, sans-serif;
  animation: glz-bb-chip 0.45s 0.15s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes glz-bb-chip {
  from { transform: translate3d(-6px, 4px, 0) scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.glz-bb-chip.is-gone { display: none; }
.glz-bb-pop {
  position: absolute;
  right: 4px; bottom: 68px;
  width: min(240px, 72vw);
  padding: 0.85rem 0.95rem 0.9rem;
  border-radius: 18px;
  background: #fffaf3;
  color: var(--glz-plum-deep);
  border: 1px solid rgba(91, 42, 74, 0.1);
  box-shadow: 0 16px 32px -16px rgba(91, 42, 74, 0.4);
  font: 500 0.86rem/1.4 "DM Sans", system-ui, sans-serif;
  pointer-events: auto;
  z-index: 8;
  transform-origin: 90% 100%;
  animation: glz-pop 0.35s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.glz-bb-pop h3 { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 750; }
.glz-bb-pop p { margin: 0 0 0.7rem; }
.glz-bb-pop ul { margin: 0 0 0.75rem; padding-left: 1.1rem; }
.glz-bb-acts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.glz-bb-acts button {
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: 700 0.78rem/1 "DM Sans", system-ui, sans-serif;
}
.glz-bb-add { background: var(--glz-plum); color: #fffaf3; }
.glz-bb-look { background: transparent; color: var(--glz-plum); border: 1px solid rgba(91, 42, 74, 0.2) !important; }

/* ---- BonBon section narrator (HARD STANDARD) ---- */
.glz-nar {
  --nar-mascot: 64px;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  width: fit-content;
  max-width: min(22rem, calc(100% - 1rem));
  margin: 0.65rem 0 0.85rem;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.glz-nar-btn {
  flex: none;
  width: var(--nar-mascot);
  height: calc(var(--nar-mascot) * 1.12);
  padding: 0; border: 0; background: none;
  cursor: pointer;
  animation: glz-nar-bob 3.2s ease-in-out infinite;
}
.glz-nar-btn img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(58, 42, 34, 0.22));
}
@keyframes glz-nar-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}
.glz-nar-bubble {
  position: relative;
  background: #fffaf3;
  color: var(--glz-plum-deep);
  border: 1px solid rgba(91, 42, 74, 0.12);
  border-radius: 22px;
  padding: 0.62rem 1.7rem 0.62rem 0.95rem;
  box-shadow: 0 10px 22px -14px rgba(91, 42, 74, 0.45);
  font: 650 0.88rem/1.35 "DM Sans", system-ui, sans-serif;
  min-height: 2.4rem;
  transform-origin: 0 80%;
}
.glz-nar-bubble::before {
  content: "";
  position: absolute;
  left: -6px; bottom: 14px;
  width: 12px; height: 12px;
  background: #fffaf3;
  border-left: 1px solid rgba(91, 42, 74, 0.12);
  border-bottom: 1px solid rgba(91, 42, 74, 0.12);
  transform: rotate(45deg);
}
.glz-nar-text { margin: 0; }
.glz-nar-dots { display: none; align-items: center; gap: 5px; height: 1.2em; }
.glz-nar.is-typing .glz-nar-dots { display: inline-flex; }
.glz-nar.is-typing .glz-nar-text { display: none; }
.glz-nar-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--glz-plum);
  opacity: 0.35;
  animation: glz-dots 1.1s ease-in-out infinite;
}
.glz-nar-dots i:nth-child(2) { animation-delay: 0.15s; }
.glz-nar-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes glz-dots {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-3px); opacity: 1; }
}
.glz-nar.is-in .glz-nar-bubble { animation: glz-pop 0.38s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
@keyframes glz-pop {
  from { transform: scale(0.92) translate3d(0, 6px, 0); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.glz-nar-x {
  position: absolute; top: 4px; right: 6px;
  width: 22px; height: 22px; border: 0; background: none;
  color: rgba(91, 42, 74, 0.5); cursor: pointer;
  font-size: 1rem; line-height: 1;
}
.glz-nar.is-away { display: none; }
@media (max-width: 430px) {
  .glz-nar { --nar-mascot: 52px; margin: 0.5rem 0 0.7rem; }
  .glz-nar-bubble { font-size: 0.8rem; padding: 0.55rem 1.5rem 0.55rem 0.8rem; }
  #hero .glz-nar { max-width: min(20rem, 92vw); }
}

/* ---- Journey stepper ---- */
#orderGuide.glz-journey,
#orderGuide.glz-journey.visible {
  display: block !important;
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 42, 74, 0.08);
}
#orderGuide.glz-journey .gj-inner {
  display: grid; gap: 0.45rem;
  max-width: 72rem; margin: 0 auto;
  padding: 0.55rem 1rem 0.65rem;
}
#orderGuide.glz-journey .gj-rail {
  position: relative;
  display: flex; align-items: flex-start;
  gap: 0;
}
#orderGuide.glz-journey .gj-line {
  position: absolute; left: 18px; right: 18px; top: 14px;
  height: 2px; background: rgba(91, 42, 74, 0.12);
  pointer-events: none;
}
#orderGuide.glz-journey .gj-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, #5b2a4a, #e5be5e);
  transform-origin: 0 50%;
  transition: width 0.45s cubic-bezier(0.22, 0.8, 0.24, 1);
}
#orderGuide.glz-journey .gj-ride {
  position: absolute; top: -13px; left: 0;
  width: 28px; height: 30px;
  transform: translateX(-50%);
  transition: left 0.45s cubic-bezier(0.22, 0.8, 0.24, 1);
  pointer-events: none;
}
#orderGuide.glz-journey .gj-ride img { width: 100%; height: 100%; object-fit: contain; }
#orderGuide.glz-journey .gj-steps {
  position: relative;
  display: flex; width: 100%;
  list-style: none; margin: 0; padding: 0;
}
#orderGuide.glz-journey .gj-step { flex: 1; min-width: 0; }
#orderGuide.glz-journey .gj-step button {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  width: 100%; border: 0; background: none; cursor: pointer;
  color: var(--glz-plum); padding: 0 4px;
  font: 650 0.72rem/1.2 "DM Sans", system-ui, sans-serif;
}
#orderGuide.glz-journey .gj-n {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #efe4d4; color: var(--glz-plum-deep);
  border: 1.5px solid transparent;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  font-weight: 750;
}
#orderGuide.glz-journey .gj-step.is-on .gj-n {
  background: var(--glz-gold);
  color: var(--glz-plum-deep);
  box-shadow: 0 0 0 4px rgba(229, 190, 94, 0.28);
  animation: gj-pulse 1.8s ease-in-out infinite;
}
#orderGuide.glz-journey .gj-step.is-done .gj-n {
  background: var(--glz-plum) !important;
  color: #fffaf3 !important;
}
#orderGuide.glz-journey .gj-step.is-done .gj-n span { font-size: 0; }
#orderGuide.glz-journey .gj-step.is-done .gj-n::after { content: "✓"; font-size: 0.85rem; color: #fffaf3; }
#orderGuide.glz-journey .gj-lab { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#orderGuide.glz-journey .gj-compact { display: none; font: 700 0.78rem/1 "DM Sans", system-ui, sans-serif; color: var(--glz-plum); }
@keyframes gj-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(229, 190, 94, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(229, 190, 94, 0.08); }
}
/* Completed-step green was off-palette. Force plum + cream everywhere. */
.order-guide .guide-step.completed .guide-num,
html .guide-step.completed .guide-num {
  background: #5b2a4a !important;
  color: #fffaf3 !important;
}
@media (max-width: 639px) {
  #orderGuide.glz-journey,
  #orderGuide.glz-journey.visible {
    top: 58px;
    z-index: 38;
  }
  #orderGuide.glz-journey .gj-inner { padding: 0.45rem 0.6rem 0.5rem; }
  #orderGuide.glz-journey .gj-compact { display: block; }
  #orderGuide.glz-journey .gj-steps { overflow: visible; }
  #orderGuide.glz-journey .gj-step { flex: 1 1 0; min-width: 0; }
  #orderGuide.glz-journey .gj-lab {
    font-size: 0.56rem;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

html.glz-static .hero-line-inner,
html.glz-static .hero-blank .hero-brush path,
html.glz-static .wp-byb-arrow svg,
html.glz-static a.tb9-order svg,
html.glz-static .glz-nar-btn,
html.glz-static .wp-prime-track,
html.glz-static .glz-hint {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero-line-inner, .hero-blank .hero-brush path,
  .wp-byb-arrow svg, a.tb9-order svg, a.r2n-order svg,
  .glz-nar-btn, .wp-prime-track, .glz-hint, .glz-hint-ripple,
  .bxl-gift-shake, .gj-step.is-on .gj-n {
    animation: none !important;
  }
  .hero-blank .hero-brush path { stroke-dashoffset: 0; }
}
