/* ==========================================================================
   Penguin's Frozen Yogurt — design tokens
   Direction: "Candy-shop pop" — chunky chocolate outlines, hard offset
   shadows, drippy dividers, pastel-bright scoop palette.
   ========================================================================== */
:root {
  color-scheme: light;

  /* Palette */
  --ink: #14213D;            /* chocolate — all text & outlines */
  --ink-soft: #4A5670;       /* secondary text (≈6.4:1 on cream) */
  --cream: #FFF7EC;
  --white: #FFFFFF;
  --pink: #FF5C93;
  --pink-100: #FFD3E2;
  --pink-50: #FFE9F0;
  --mint: #7FE0C2;
  --mint-50: #E4F8F0;
  --butter: #FFD84D;
  --butter-50: #FFF4C7;
  --sky: #8EC9FF;
  --sky-50: #E6F2FF;
  --grape: #B794F6;
  --grape-50: #F1EAFE;
  --cone: #E9A84C;
  --ice: #CFEAFF;
  --ice-50: #EAF6FF;
  --beak: #FF9F1C;

  /* Semantic */
  --bg: var(--cream);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --primary: var(--pink);
  --on-primary: var(--ink);
  --ring: #1F6FEB;
  --success: #1E8A5A;
  --danger: #C2223F;

  /* Type */
  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --line: 3px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 520ms;

  /* Z scale */
  --z-nav: 40;
  --z-drawer: 100;
  --z-toast: 200;
  --z-confetti: 300;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 999; background: var(--ink); color: var(--cream); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); font-weight: 800; transition: top var(--t-fast); }
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke-width: 1.5; }

/* Highlighter words */
.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; inset: 52% -.12em 2% -.12em; z-index: -1; border-radius: .3em; transform: rotate(-1.5deg); background: var(--hl, var(--butter)); }
.hl--butter { --hl: var(--butter); }
.hl--pink { --hl: var(--pink-100); }
.hl--mint { --hl: var(--mint); }
.hl--sky { --hl: var(--sky); }

.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--cream); padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: var(--s-4); transform: rotate(-2deg); }
.eyebrow--dark { background: var(--cream); color: var(--ink); }

/* ==========================================================================
   Buttons & inputs
   ========================================================================== */
.btn {
  --btn-bg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 10px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  color: var(--ink); background: var(--btn-bg);
  border: var(--line) solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast);
  touch-action: manipulation;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn--primary { --btn-bg: var(--primary); }
.btn--primary:hover { --btn-bg: #FF77A6; }
.btn--ghost { --btn-bg: var(--white); }
.btn--dark { --btn-bg: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--cream); }
.btn--dark:hover { box-shadow: 5px 5px 0 var(--cream); }
.btn--lg { min-height: 56px; padding: 12px 28px; font-size: 1.15rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.icon-btn:hover { transform: translate(-1px, -1px) rotate(-8deg); box-shadow: 4px 4px 0 var(--ink); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }

.input {
  width: 100%; min-height: 52px; padding: 12px 18px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600;
  transition: box-shadow var(--t-fast);
}
.input:focus { outline: none; box-shadow: 0 0 0 4px var(--sky); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px #FFD0D8; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--ice) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: var(--line) solid transparent; transition: border-color var(--t-med), background-color var(--t-med); }
.nav.is-scrolled { border-bottom-color: var(--ink); background: color-mix(in srgb, var(--cream) 92%, transparent); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; }
.logo__mark { width: 38px; height: 44px; transition: transform var(--t-slow) var(--ease-spring); }
.logo:hover .logo__mark { transform: rotate(-14deg) scale(1.08); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; }
.logo__word span { color: var(--pink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; margin-left: 2px; }

.nav__links { display: flex; gap: var(--s-1); }
.nav__links a { position: relative; padding: 10px 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; border-radius: var(--r-pill); transition: background-color var(--t-fast); }
.nav__links a:hover { background: var(--white); }
.nav__links a.is-active { background: var(--ink); color: var(--cream); }

.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 8px 18px; font-family: var(--font-display); font-weight: 600; background: var(--butter); border: var(--line) solid var(--ink); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.cart-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.cart-btn__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font-size: .85rem; font-variant-numeric: tabular-nums; }
.cart-btn.bump { animation: bump 500ms var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } 100% { transform: scale(1); } }
.menu-btn { display: none; place-items: center; width: 48px; height: 48px; background: var(--white); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-sm); }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .cart-btn__label { display: none; }
  .nav__links {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    flex-direction: column; gap: var(--s-1); padding: var(--s-3);
    background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
    transition: opacity var(--t-fast), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-fast), transform var(--t-med) var(--ease-spring), visibility 0s; }
  .nav__links a { padding: 14px 16px; font-size: 1.2rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--ice); padding: clamp(32px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); z-index: 2; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero__title { font-size: clamp(3.2rem, 9vw, 7rem); line-height: .92; margin-bottom: var(--s-5); }
.hero__title .line { display: block; }
.wobble-word { display: inline-flex !important; color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.wobble-word span { display: inline-block; transition: transform var(--t-med) var(--ease-spring); }
.wobble-word span:hover { transform: translateY(-14px) rotate(-8deg); }
.js .wobble-word span { animation: wave 2.8s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-6); }
.hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); padding: 0; margin: 0; font-weight: 700; color: var(--ink-soft); }
.hero__proof li { display: flex; align-items: center; gap: var(--s-2); }
.hero__proof strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: #F5A300; }
.stars .icon { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.4; }

.status-pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 16px 6px 12px; margin-bottom: var(--s-5); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-pill); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-sm); }
.status-pill .dot { width: 12px; height: 12px; border-radius: 50%; background: #B9B0A8; border: 2px solid var(--ink); }
.status-pill.is-open .dot { background: #2ECC71; animation: pulse 1.8s infinite; }
.status-pill.is-closed .dot { background: #FF6B6B; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .55); } 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

.hero__art { position: relative; display: grid; justify-items: center; }
.hero__art::before { content: ""; position: absolute; width: min(92%, 440px); aspect-ratio: 1; top: 6%; border-radius: 50%; background: var(--butter); border: var(--line) solid var(--ink); box-shadow: var(--shadow-lg); }
.hero-cone { position: relative; width: min(78%, 330px); padding: 0; background: none; border: 0; border-radius: var(--r-lg); }
.hero-cone .cone-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(6px 8px 0 rgba(20, 33, 61, .18)); }
.js .hero-cone .cone-svg { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.hero-cone__caption { position: relative; margin: var(--s-3) 0 0; padding: 6px 16px; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-pill); font-weight: 800; font-size: .95rem; text-align: center; box-shadow: var(--shadow-sm); }

.sticker { position: absolute; z-index: 2; display: grid; place-items: center; width: 108px; aspect-ratio: 1; border: var(--line) solid var(--ink); border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.05; text-align: center; box-shadow: var(--shadow-sm); pointer-events: none; }
.sticker--a { top: 2%; left: 0; background: var(--mint); transform: rotate(-14deg); }
.sticker--b { bottom: 18%; right: 0; background: var(--sky); transform: rotate(10deg); clip-path: polygon(50% 0%, 61% 10%, 75% 4%, 79% 19%, 94% 21%, 90% 36%, 100% 50%, 90% 64%, 94% 79%, 79% 81%, 75% 96%, 61% 90%, 50% 100%, 39% 90%, 25% 96%, 21% 81%, 6% 79%, 10% 64%, 0% 50%, 10% 36%, 6% 21%, 21% 19%, 25% 4%, 39% 10%); border: 0; box-shadow: none; width: 118px; }
.js .sticker--a { animation: spin-slow 14s linear infinite; }
@keyframes spin-slow { from { transform: rotate(-14deg); } to { transform: rotate(346deg); } }

/* Floating decorative sprinkles */
.hero__floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.floater { position: absolute; width: 30px; height: 10px; border-radius: 6px; border: 2.5px solid var(--ink); transition: transform 600ms var(--ease-out); }
.f1 { top: 12%; left: 6%; background: var(--butter); rotate: 30deg; }
.f2 { top: 70%; left: 3%; background: var(--sky); rotate: -20deg; }
.f3 { top: 18%; left: 46%; background: var(--mint); rotate: 70deg; }
.f4 { top: 82%; left: 40%; background: var(--grape); rotate: 10deg; }
.f5 { top: 8%; right: 8%; background: var(--pink); rotate: -45deg; }
.f6 { top: 56%; right: 3%; background: var(--butter); rotate: 60deg; }
.f7 { top: 44%; left: 52%; width: 16px; height: 16px; border-radius: 50%; background: var(--white); }
.f8 { top: 90%; right: 22%; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); }

.drip { position: absolute; left: 0; width: 100%; pointer-events: none; }
.drip--hero { top: calc(100% - 1px); height: clamp(48px, 7vw, 100px); fill: var(--ice); }
.drip--hero path { stroke: var(--ink); stroke-width: 0; }
.drip--top { top: -1px; height: clamp(36px, 5vw, 70px); fill: var(--cream); }
.drip--footer { top: -1px; height: clamp(36px, 5vw, 70px); fill: var(--cream); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 320px; margin-inline: auto; width: 100%; }
  .hero-cone { width: 58%; }
  .hero__ctas { margin-bottom: var(--s-5); }
  .sticker { width: 84px; font-size: .9rem; }
  .sticker--b { width: 92px; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { position: relative; z-index: 1; overflow: hidden; background: var(--ink); color: var(--butter); padding: clamp(56px, 8vw, 108px) 0 18px; border-bottom: var(--line) solid var(--ink); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); white-space: nowrap; }
.js .marquee__track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track i { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.marquee__track i:nth-of-type(3n) { background: var(--mint); }
.marquee__track i:nth-of-type(3n+1) { background: var(--sky); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 720px; margin-bottom: var(--s-7); }
.section__head h2 { margin-bottom: var(--s-4); }
.section__sub { font-size: 1.15rem; color: var(--muted); font-weight: 600; max-width: 56ch; margin: 0; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Flavors
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { min-height: 44px; padding: 8px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-pill); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.chip:hover { transform: translateY(-2px); background: var(--butter-50); }
.chip.is-active { background: var(--ink); color: var(--cream); }

.flavor-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.flavor { position: relative; }
.flavor[hidden] { display: none; }
.flavor-card {
  --c: var(--pink);
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out);
}
.flavor-card:hover { transform: translate(-3px, -4px) rotate(-.8deg); box-shadow: var(--shadow-lg); }
.flavor-card:active { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }
.flavor-card__art { position: relative; display: grid; place-items: center; height: 170px; background: color-mix(in srgb, var(--c) 35%, var(--white)); border-bottom: var(--line) solid var(--ink); overflow: hidden; }
.flavor-card__art::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, var(--c) 55%, var(--white)); transition: transform var(--t-slow) var(--ease-spring); }
.flavor-card:hover .flavor-card__art::before { transform: scale(1.25); }
.flavor-card__art svg { position: relative; width: 118px; height: 118px; transition: transform var(--t-slow) var(--ease-spring); }
.flavor-card:hover .flavor-card__art svg { transform: translateY(-6px) rotate(-8deg) scale(1.06); }
.flavor-card__body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-4) var(--s-4) var(--s-5); }
.flavor-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.flavor-card__desc { font-size: .98rem; color: var(--muted); line-height: 1.5; margin: 0; }
.flavor-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; font-size: .8rem; font-weight: 800; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--cream); }
.tag .icon { width: 14px; height: 14px; }
.tag--vegan { background: var(--mint-50); }
.tag--seasonal { background: #FFE2C7; }
.tag--new { background: var(--butter); }
.flavor-card__add { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--r-pill); box-shadow: 2px 2px 0 var(--ink); transition: transform var(--t-med) var(--ease-spring), background-color var(--t-fast); }
.flavor-card__add .icon { width: 16px; height: 16px; }
.flavor-card:hover .flavor-card__add { transform: scale(1.06); background: var(--butter); }
.flavor-card.added .flavor-card__add { background: var(--mint); }

/* ==========================================================================
   Builder
   ========================================================================== */
.builder { background: var(--mint-50); padding-top: clamp(110px, 13vw, 170px); }
.builder__grid { display: grid; grid-template-columns: minmax(280px, .85fr) 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.builder__stage { position: sticky; top: 100px; display: grid; gap: var(--s-4); }
.stage-card { position: relative; display: grid; place-items: center; min-height: 440px; padding: var(--s-5); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 33, 61, .12) 1.5px, transparent 0); background-size: 22px 22px; }
.stage-card .cone-svg { width: min(100%, 260px); height: auto; overflow: visible; }
.stage-card__empty { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); padding: 6px 16px; font-weight: 800; font-size: .95rem; background: var(--butter-50); border: 2.5px dashed var(--ink); border-radius: var(--r-pill); white-space: nowrap; transition: opacity var(--t-med); }
.stage-card__empty.is-hidden { opacity: 0; }
.creation__label { display: block; font-weight: 800; margin-bottom: var(--s-2); }
.creation__row { display: flex; gap: var(--s-2); }

.builder__controls { display: grid; gap: var(--s-4); }
.step { margin: 0; padding: var(--s-5); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-md); min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.step legend + * { clear: both; }
.step__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); border: var(--line) solid var(--ink); font-size: 1.05rem; }
.step__meta { margin-left: auto; font-family: var(--font-body); font-size: .9rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

.base-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.base-opt, .top-opt { position: relative; cursor: pointer; }
.base-opt input, .top-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.base-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 10px; text-align: center; border: var(--line) solid var(--ink); border-radius: var(--r-sm); background: var(--cream); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast); }
.base-opt strong { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
.base-opt small { font-size: .82rem; font-weight: 800; color: var(--muted); }
.base-opt:hover span { transform: translateY(-2px); }
.base-opt input:checked + span { background: var(--butter); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.base-opt input:focus-visible + span, .top-opt input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 3px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: var(--s-2); }
.swatch { display: flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 6px 10px 6px 6px; font-weight: 800; font-size: .88rem; line-height: 1.15; text-align: left; background: var(--cream); border: 2.5px solid var(--ink); border-radius: var(--r-pill); transition: transform var(--t-fast) var(--ease-spring), background-color var(--t-fast); }
.swatch:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); background: var(--white); }
.swatch:active:not(:disabled) { transform: scale(.95); }
.swatch:disabled { opacity: .45; cursor: not-allowed; }
.swatch__dot { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .1), inset 3px 3px 0 rgba(255, 255, 255, .5); }

.scoop-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: var(--s-4) 0 0; min-height: 40px; }
.scoop-list:empty::before { content: "No scoops yet. Tap a flavor above."; color: var(--muted); font-weight: 700; font-size: .95rem; align-self: center; }
.scoop-pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px 4px 4px 12px; font-weight: 800; font-size: .9rem; background: color-mix(in srgb, var(--c) 40%, var(--white)); border: 2.5px solid var(--ink); border-radius: var(--r-pill); animation: pop-in 320ms var(--ease-spring); }
.scoop-pill button { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; }
.scoop-pill button .icon { width: 14px; height: 14px; }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.toppings { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.top-opt span { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 8px 14px; font-weight: 800; background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--r-sm); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.top-opt span::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border: var(--line) solid var(--ink); border-radius: 7px; background: var(--white) center / 14px no-repeat; transition: background-color var(--t-fast); }
.top-opt:hover span { transform: translateY(-2px); }
.top-opt input:checked + span { background: var(--pink-100); }
.top-opt input:checked + span::before { background-color: var(--pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.total-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--ink); color: var(--cream); border-radius: var(--r-md); }
.total-bar__label { margin: 0; font-size: .9rem; font-weight: 800; opacity: .8; }
.total-bar__price { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--butter); }
.total-bar__price.tick { animation: tick 360ms var(--ease-spring); }
@keyframes tick { 40% { transform: scale(1.15); } }
.total-bar__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.total-bar .btn--ghost { box-shadow: 3px 3px 0 var(--cream); border-color: var(--cream); }

/* Cone SVG animations */
.scoop-drop { transform-box: fill-box; transform-origin: 50% 100%; animation: drop 620ms var(--ease-spring) both; }
@keyframes drop { 0% { transform: translateY(-120px) scale(.9, 1.1); opacity: 0; } 55% { transform: translateY(6px) scale(1.12, .86); opacity: 1; } 75% { transform: translateY(-4px) scale(.96, 1.04); } 100% { transform: none; } }
.scoop-squish { transform-box: fill-box; transform-origin: 50% 100%; animation: squish 460ms var(--ease-spring); }
@keyframes squish { 30% { transform: scale(1.12, .86); } 60% { transform: scale(.95, 1.06); } }
.topping-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: pop-in 400ms var(--ease-spring) both; }

@media (max-width: 900px) {
  .builder__grid { grid-template-columns: 1fr; }
  .builder__stage { position: relative; top: 0; }
  .stage-card { min-height: 0; padding-top: 64px; }
  .stage-card .cone-svg { width: min(52%, 200px); }
}
@media (max-width: 520px) {
  .base-options { grid-template-columns: 1fr; }
  .base-opt span { min-height: 56px; flex-direction: row; justify-content: space-between; padding: 10px 16px; }
  .toppings { grid-template-columns: 1fr; }
  .step { padding: var(--s-4); }
  .total-bar__actions { width: 100%; }
  .total-bar__actions .btn { flex: 1; }
}

/* ==========================================================================
   Quiz
   ========================================================================== */
.quiz { background: var(--sky-50); }
.quiz__wrap { display: grid; justify-items: center; text-align: center; }
.quiz__wrap .section__head { margin-inline: auto; }
.quiz__wrap .section__sub { margin-inline: auto; }
.quiz-card { width: 100%; max-width: 760px; padding: clamp(24px, 4vw, 44px); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.quiz-progress { height: 14px; margin-bottom: var(--s-5); background: var(--sky-50); border: 2.5px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--pink) 0 10px, #FF7BA8 10px 20px); border-right: 2.5px solid var(--ink); transition: width var(--t-slow) var(--ease-out); }
.quiz-q { animation: fade-up 420ms var(--ease-out); }
.quiz-q__count { font-weight: 800; color: var(--muted); margin-bottom: var(--s-2); }
.quiz-q h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: var(--s-5); }
.quiz-answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.quiz-answer { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: 12px 18px; font-weight: 800; font-size: 1.05rem; text-align: left; background: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--r-md); transition: transform var(--t-fast) var(--ease-spring), background-color var(--t-fast), box-shadow var(--t-fast); }
.quiz-answer:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); background: var(--butter-50); }
.quiz-answer:active { transform: scale(.97); }
.quiz-answer.is-picked { background: var(--pink); }
.quiz-answer__key { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--white); font-family: var(--font-display); font-size: .95rem; }
.quiz-result { display: grid; justify-items: center; gap: var(--s-3); animation: fade-up 520ms var(--ease-out); }
.quiz-result__art { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 45%, var(--white)); border: var(--line) solid var(--ink); animation: pop-in 600ms var(--ease-spring); }
.quiz-result__art svg { width: 110px; height: 110px; }
.quiz-result h3 { font-size: clamp(2rem, 4.5vw, 3rem); }
.quiz-result p { max-width: 46ch; color: var(--muted); font-weight: 600; margin: 0; }
.quiz-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .quiz-answers { grid-template-columns: 1fr; } }

/* ==========================================================================
   Story & stats
   ========================================================================== */
.story { background: var(--butter); border-block: var(--line) solid var(--ink); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story__copy h2 { margin-bottom: var(--s-5); }
.story__copy p { font-size: 1.12rem; font-weight: 600; max-width: 52ch; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); padding: 0; margin: 0; }
.stat { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.stat:nth-child(odd) { rotate: -1.5deg; }
.stat:nth-child(even) { rotate: 1.5deg; translate: 0 18px; }
.stat--pink { background: var(--pink-100); }
.stat--mint { background: var(--mint); }
.stat--butter { background: var(--white); }
.stat--grape { background: var(--grape); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 800; line-height: 1.3; }
@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .stat { padding: var(--s-4); } .stat__label { font-size: .92rem; } }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.review { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6) var(--s-5); background: var(--card-bg, var(--white)); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-md); rotate: var(--tilt, 0deg); transition: rotate var(--t-med) var(--ease-spring), transform var(--t-med) var(--ease-spring); }
.review:hover { rotate: 0deg; transform: translateY(-4px); }
.review blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.35; }
.review__who { display: flex; align-items: center; gap: var(--s-3); margin: auto 0 0; font-weight: 800; }
.review__who small { display: block; font-weight: 600; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--c); border: var(--line) solid var(--ink); font-family: var(--font-display); }
.placeholder-note { margin: var(--s-5) 0 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit { background: var(--pink-50); border-top: var(--line) solid var(--ink); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit__info h2 { margin-bottom: var(--s-5); }
.contact { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); font-weight: 700; font-size: 1.1rem; }
.contact li { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact .icon { width: 24px; height: 24px; margin-top: 3px; color: var(--pink); stroke: var(--ink); }
.contact a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hours { width: 100%; max-width: 440px; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 18px; text-align: left; border-bottom: 2px dashed rgba(20, 33, 61, .18); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 800; }
.hours td { text-align: right; font-weight: 700; }
.hours tr.is-today { background: var(--butter); }
.hours tr.is-today th::after { content: "Today"; margin-left: 8px; padding: 1px 8px; font-size: .75rem; background: var(--ink); color: var(--cream); border-radius: var(--r-pill); vertical-align: 2px; }
.status-pill--light { margin-bottom: var(--s-5); }
.map { position: relative; border: var(--line) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); rotate: 1.5deg; }
.map__svg { width: 100%; height: auto; }
.js .map__pin { animation: pin-bounce 2.2s var(--ease-out) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pin-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.map__btn { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; white-space: nowrap; }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } .map { rotate: 0deg; } }

/* ==========================================================================
   Club
   ========================================================================== */
.club { background: var(--cream); padding-bottom: clamp(110px, 13vw, 160px); }
.club-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 56px); background: var(--grape); border: var(--line) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .35) 0 60px, transparent 61px), radial-gradient(circle at 8% 100%, rgba(255, 216, 77, .55) 0 90px, transparent 91px); }
.club-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s-4); }
.club-card p { font-weight: 700; margin: 0; }
.club-form label { display: block; font-weight: 800; margin-bottom: var(--s-2); }
.club-form__row { display: flex; gap: var(--s-2); }
.club-form__row .btn { flex-shrink: 0; }
.club-form__help { margin: var(--s-2) 0 0; font-size: .9rem; font-weight: 700; }
.club-form__error { margin: var(--s-2) 0 0; font-weight: 800; color: #7A0F22; background: #FFE3E8; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 6px 12px; }
.club-form__error:empty { display: none; }
.club-form.is-done .club-form__row { display: none; }
.club-success { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-md); font-weight: 800; animation: pop-in 420ms var(--ease-spring); }
.club-success .icon { width: 32px; height: 32px; padding: 6px; background: var(--mint); border: 2.5px solid var(--ink); border-radius: 50%; }
@media (max-width: 860px) { .club-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .club-form__row { flex-direction: column; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--ink); color: var(--cream); padding: clamp(80px, 10vw, 120px) 0 var(--s-5); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer h3 { font-size: 1.2rem; margin-bottom: var(--s-3); color: var(--butter); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.footer a { text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer__tag { margin-top: var(--s-3); font-weight: 600; opacity: .85; }
.logo--light .logo__word span { -webkit-text-stroke: 0; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); border-top: 2px dashed rgba(255, 247, 236, .25); font-size: .9rem; font-weight: 600; }
.footer__base p { margin: 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); z-index: var(--z-drawer); }
.drawer::backdrop { background: rgba(20, 33, 61, .45); backdrop-filter: blur(3px); }
.drawer[open] .drawer__panel { animation: slide-in 380ms var(--ease-out); }
.drawer.is-closing .drawer__panel { animation: slide-out 220ms ease-in forwards; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out { to { transform: translateX(100%); } }
.drawer__panel { display: flex; flex-direction: column; height: 100%; background: var(--cream); border-left: var(--line) solid var(--ink); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-5); border-bottom: var(--line) solid var(--ink); background: var(--pink-100); }
.drawer__head h2 { font-size: 2rem; }
.cart-list { list-style: none; margin: 0; padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); overflow-y: auto; flex: 1; align-content: start; }
.cart-list:empty { display: none; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-sm); animation: pop-in 320ms var(--ease-spring); }
.cart-item__art { width: 64px; height: 84px; }
.cart-item__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.cart-item__desc { font-size: .88rem; color: var(--muted); font-weight: 600; line-height: 1.35; margin: 2px 0 0; }
.cart-item__side { display: grid; justify-items: end; gap: var(--s-2); }
.cart-item__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-item__remove { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--cream); border: 2px solid var(--ink); border-radius: 50%; }
.cart-item__remove:hover { background: #FFE3E8; }
.cart-item__remove .icon { width: 16px; height: 16px; }
.cart-empty { flex: 1; display: grid; align-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-6); text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-empty__art { width: 120px; height: auto; overflow: visible; }
.drawer__foot { padding: var(--s-5); border-top: var(--line) solid var(--ink); background: var(--white); }
.drawer__foot[hidden] { display: none; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-4); font-weight: 800; font-size: 1.1rem; }
.drawer__total strong { font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.drawer__note { margin: var(--s-3) 0 0; text-align: center; font-size: .9rem; font-weight: 700; color: var(--muted); }

/* ==========================================================================
   Toast & confetti
   ========================================================================== */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); display: flex; align-items: center; gap: var(--s-2); max-width: calc(100vw - 32px); padding: 12px 20px; background: var(--ink); color: var(--cream); font-weight: 800; border-radius: var(--r-pill); box-shadow: 4px 4px 0 var(--pink); transform: translate(-50%, 140%); opacity: 0; transition: transform var(--t-med) var(--ease-spring), opacity var(--t-fast); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: var(--mint); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: var(--z-confetti); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .marquee__track, .js .wobble-word span, .js .hero-cone .cone-svg, .js .sticker--a, .js .map__pin { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Penguin's additions
   ========================================================================== */
/* Logo lockup */
.logo__text { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__word { font-size: 1.55rem; }
.logo__sub { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); -webkit-text-stroke: 0; margin-top: 2px; }
.logo--light .logo__sub { color: var(--butter); }
.logo:hover .logo__mark--pip { transform: rotate(-10deg) translateY(-2px) scale(1.06); }

/* Snowflake-ish floaters */
.floater.flake { width: 18px; height: 18px; border: 0; border-radius: 0; background: none; }
.floater.flake::before, .floater.flake::after { content: ""; position: absolute; inset: 7px 0; background: var(--white); border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); }
.floater.flake::after { transform: rotate(90deg); }

/* Pip the penguin */
.pip-wrap { position: absolute; z-index: 3; left: -4%; bottom: 17%; width: 36%; max-width: 170px; display: grid; justify-items: center; }
.pip-btn { width: 100%; padding: 0; background: none; border: 0; border-radius: var(--r-md); touch-action: manipulation; }
.pip { width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%; }
.js .pip { animation: waddle 3.2s ease-in-out infinite; }
@keyframes waddle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.pip-btn:hover .pip { animation-duration: 1s; }
.pip__flip { transform-box: fill-box; }
.pip__flip--r { transform-origin: 10% 10%; }
.pip__flip--l { transform-origin: 90% 10%; }
.pip.is-waving .pip__flip--r { animation: wave-flip 900ms var(--ease-spring); }
.pip.is-hopping { animation: hop 620ms var(--ease-spring) !important; }
@keyframes wave-flip { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-58deg); } 40%, 80% { transform: rotate(-28deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(4px) scale(1.08, .9); } 55% { transform: translateY(-26px) scale(.95, 1.06); } 80% { transform: translateY(0) scale(1.05, .95); } }
.pip__eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.js .pip__eyes { animation: blink 4.6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
#pipPupils { transition: transform 120ms linear; }
.pip-bubble {
  position: relative; margin: 0 0 6px; padding: 8px 14px; max-width: 190px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm);
  transform-origin: 50% 100%; transition: transform var(--t-med) var(--ease-spring), opacity var(--t-fast);
}
.pip-bubble::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 16px; height: 16px; background: var(--white); border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); transform: translateX(-50%) rotate(45deg); border-bottom-right-radius: 4px; }
.pip-bubble.pop { animation: pop-in 360ms var(--ease-spring); }
.hero__proof .icon { width: 20px; height: 20px; color: var(--ink); }

/* Builder extras */
.step__label { clear: both; margin: 0 0 var(--s-2); font-weight: 800; font-size: .95rem; color: var(--muted); }
.step__label + .base-options + .step__label { margin-top: var(--s-4); }
.toppings { grid-template-columns: repeat(3, 1fr); }
.swirl-drop { transform-box: fill-box; transform-origin: 50% 100%; animation: swirl-in 700ms var(--ease-spring) both; }
@keyframes swirl-in { 0% { transform: scaleY(.2) scaleX(.7); opacity: 0; } 50% { transform: scaleY(1.12) scaleX(.94); opacity: 1; } 75% { transform: scaleY(.95) scaleX(1.04); } 100% { transform: none; } }

@media (max-width: 1080px) { .toppings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .pip-wrap { left: -6%; bottom: 19%; width: 34%; }
  .pip-bubble { font-size: .82rem; padding: 6px 10px; }
  .logo__word { font-size: 1.3rem; }
  .logo__sub { font-size: .66rem; }
}
@media (max-width: 520px) { .toppings { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .pip, .js .pip__eyes { animation: none !important; } }
/* Mini cups on flavor cards & quiz */
.flavor-card__art svg.mini-cup { width: auto; height: 148px; margin-top: 10px; }
.quiz-result__art svg.mini-cup { width: auto; height: 120px; }

/* Real menu: 4 sizes, quart, 29-topping bar */
.base-options--4 { grid-template-columns: repeat(4, 1fr); }
.base-opt.is-disabled { opacity: .4; cursor: not-allowed; }
.base-opt.is-disabled span { transform: none !important; box-shadow: none !important; }
.quart-note { margin: var(--s-3) 0 0; padding: 8px 14px; font-weight: 700; font-size: .92rem; background: var(--ice-50); border: 2px dashed var(--ink); border-radius: var(--r-sm); }
.top-status { clear: both; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.link-btn { min-height: 36px; padding: 4px 10px; background: none; border: 0; font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 8px; }
.toppings-bar { display: grid; gap: var(--s-4); }
.topping-group__title { margin: 0 0 var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.topping-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.top-chip { position: relative; cursor: pointer; }
.top-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.top-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px 6px 10px; font-weight: 700; font-size: .9rem; line-height: 1.2; background: var(--cream); border: 2.5px solid var(--ink); border-radius: var(--r-pill); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.top-chip span::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--white) center / 11px no-repeat; transition: background-color var(--t-fast); }
.top-chip:hover span { transform: translateY(-2px); }
.top-chip input:checked + span { background: var(--pink-100); }
.top-chip input:checked + span::before { background-color: var(--pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.top-chip input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (max-width: 600px) { .base-options--4 { grid-template-columns: repeat(2, 1fr); } .base-options--4 .base-opt span { flex-direction: column; justify-content: center; } }


/* Audit fixes */
.wobble-word { display: inline-flex; }
.footer ul a, .footer .back-top { display: inline-block; padding: 8px 0; }
.footer ul { gap: 0; }
.footer ul li:not(:has(a)) { padding: 8px 0; }
@media (max-width: 900px) {
  /* Keep price + Add button in reach while scrolling the long toppings list */
  .total-bar { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 0 0 3px var(--cream), 0 10px 24px rgba(20, 33, 61, .25); }
}
@media (max-width: 900px) {
  .total-bar { flex-wrap: nowrap; padding: 10px 12px 10px 18px; gap: var(--s-2); }
  .total-bar__label { font-size: .75rem; }
  .total-bar__price { font-size: 1.7rem; }
  .total-bar__actions { width: auto !important; flex-wrap: nowrap; }
  .total-bar__actions .btn { flex: none !important; min-height: 46px; padding: 8px 16px; white-space: nowrap; }
  .total-bar #resetBuilder { width: 46px; padding: 0; font-size: 0; gap: 0; }
}
