/* Mr. Pay online store. Plain CSS, no build step.
   Shape rule: buttons, chips and inputs-with-actions are pills; cards and panels use
   --r-card; text inputs use --r-input. Mr. Pay red is the main accent; the logo's yellow is the second one,
   used as fills and highlights (never as text on white, it has no contrast there). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #c8102e;
  --red-deep: #9e0c24;
  --red-soft: #fdebee;
  --red-tint: #fff6f7;
  --yellow: #ffd23f;
  --yellow-soft: #fff4cc;
  --white: #fffdfd;
  --ink: #241a1d;
  --ink-2: #4a3f43;
  --muted: #6e6367;
  --line: #f0dfe3;
  --line-strong: #e2c9cf;
  --ok: #1d7a4a;
  --shadow: 0 18px 40px -18px rgb(158 12 36 / 0.35);
  --shadow-soft: 0 10px 30px -16px rgb(158 12 36 / 0.25);
  --r-card: 22px;
  --r-input: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-bold { font-size: 1.15em; vertical-align: -0.15em; }

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

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 253 253 / 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 88px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 78px; width: auto; filter: drop-shadow(0 4px 8px rgb(158 12 36 / 0.18)); }
.brand:hover img { animation: wobble 0.7s var(--bounce); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 650; font-size: 0.95rem; color: var(--ink-2);
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { background: var(--red-soft); color: var(--red-deep); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff !important; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 750;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--bounce), background 0.2s;
}
.cart-btn:hover { background: var(--red-deep); transform: translateY(-2px) rotate(-2deg); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--yellow); color: var(--red-deep); font-size: 0.8rem; font-weight: 800;
  display: inline-grid; place-items: center;
}
.cart-btn.bump { animation: bump 0.6s var(--bounce); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { height: 72px; gap: 12px; }
  .brand img { height: 62px; }
  .menu-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong);
    background: #fff; color: var(--ink); font-size: 1.2rem; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.4s var(--ease); margin: 0;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 1.1rem; padding: 14px 16px; }
  .cart-btn { justify-content: center; margin-top: 6px; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: inherit; font-weight: 750; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px;
  transition: transform 0.3s var(--bounce), background 0.2s, box-shadow 0.3s var(--ease), color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-3px); }
.btn-ghost { background: #fff; color: var(--red-deep); box-shadow: inset 0 0 0 2px var(--red); }
.btn-ghost:hover { background: var(--red-soft); transform: translateY(-3px); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .ph-arrow-right { transition: transform 0.3s var(--bounce); }
.btn:hover .ph-arrow-right { transform: translateX(4px); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100dvh - 88px); max-height: 900px; padding-block: 48px 72px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
.hero h1 em {
  font-style: italic; color: var(--red); padding: 0 0.12em 4px 0; display: inline-block; line-height: 1.1;
  background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 32ch; margin-top: 22px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-stage .halo {
  position: absolute; width: min(520px, 95%); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--red-soft) 0 10deg, #fff 10deg 20deg);
  animation: spin 60s linear infinite;
  mask: radial-gradient(circle, #000 52%, transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 52%, transparent 70%);
}
.hero-stage > .cake { font-size: clamp(22px, 3vw, 36px); position: relative; z-index: 1; }
.hero-stage .side-cake { position: absolute; z-index: 2; }
.hero-stage .side-cake.a { font-size: clamp(9px, 1.15vw, 14px); left: 2%; top: 6%; }
.hero-stage .side-cake.b { font-size: clamp(8px, 1vw, 12px); right: 0; bottom: 4%; }
.hero-stage .side-cake .cake { --spin: 14s; }
.badge-sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  width: 118px; aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.9rem; line-height: 1.15;
  box-shadow: var(--shadow); padding: 14px;
  animation: float 5s ease-in-out infinite;
}
.badge-sticker.one { top: 6%; right: 4%; transform: rotate(12deg); background: var(--yellow); color: var(--red-deep); }
.badge-sticker.two { bottom: 10%; left: 0; background: #fff; color: var(--red); box-shadow: inset 0 0 0 3px var(--red), var(--shadow-soft); animation-delay: -2.5s; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-block: 32px 56px; gap: 8px; text-align: left; }
  .hero-stage { min-height: 360px; order: -1; }
  .badge-sticker { width: 92px; font-size: 0.75rem; }
}

/* floating mini cakes (brand mark) behind sections */
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters > span {
  position: absolute; font-size: var(--s, 4px); opacity: 0.28;
  animation: drift var(--d, 14s) ease-in-out infinite; animation-delay: var(--delay, 0s);
}
.floaters .cake { --spin: var(--c, 10s); }
.floaters .cake__plate { box-shadow: none; }

/* ------------------------------------------------- the spinning cake ---- */
/* A cake seen from above on its stand. The cake and its toppings turn; the plate, its
   shadow and the light (.cake__gloss) stay put, which is what makes it read as a real
   cake spinning. Everything is in em: set font-size on .cake (or a parent) to scale.
   12em across including the plate. */
.cake { position: relative; width: 12em; height: 12em; flex: none; --spin: 22s; }
.cake__plate {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 79%, #f1e3e7 81%, #fff 85%, #f4e8eb 97%, #e8d5da 100%);
  box-shadow: 0 1.1em 2em -0.7em rgb(158 12 36 / 0.42), 0 0.2em 0.5em rgb(158 12 36 / 0.08);
}
.cake__spin { position: absolute; inset: 1em; border-radius: 50%; animation: spin var(--spin) linear infinite; }
.cake.reverse .cake__spin { animation-direction: reverse; }
.cake__top { position: absolute; inset: 0; border-radius: 50%; background: var(--frost); box-shadow: 0 0.25em 0.55em rgb(80 0 15 / 0.28); }
.cake__gloss {
  position: absolute; inset: 1em; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgb(255 255 255 / 0.5), transparent 42%),
    radial-gradient(circle, transparent 60%, rgb(70 0 12 / 0.16) 100%);
}
.cake__item {
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
}
.bead {
  --s: 0.8em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--bead) 72%);
  box-shadow: 0 0.08em 0.14em rgb(80 0 15 / 0.28);
}
/* a halved strawberry, cut side up, leaf pointing out */
.berry {
  --s: 1.4em; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background:
    radial-gradient(ellipse 22% 34% at 50% 52%, #ffe3e8 0 70%, transparent 74%),
    radial-gradient(circle at 50% 55%, #ff8a9c 0 38%, #ef2f4a 58%, var(--red-deep) 100%);
  box-shadow: 0 0.1em 0.2em rgb(80 0 15 / 0.3);
}
.berry::before {
  content: ''; position: absolute; left: 50%; top: -0.2em; width: 0.62em; height: 0.34em; margin-left: -0.31em;
  border-radius: 50%; background: radial-gradient(circle at 50% 30%, #6fa04a, #3d6b2f);
}
.berry::after {
  content: ''; position: absolute; inset: 18% 14%; border-radius: 50%;
  background:
    radial-gradient(circle, #ffe9a8 0.05em, transparent 0.07em) 0 0 / 0.3em 0.32em;
  opacity: 0.8;
  mask: radial-gradient(circle, transparent 40%, #000 42%);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%);
}
.berry.small { --s: 1em; }
/* a swirl of whipped cream */
.dollop {
  --s: 1.2em; border-radius: 50%;
  background:
    repeating-conic-gradient(from 10deg, rgb(120 40 55 / 0.1) 0 18deg, transparent 18deg 60deg),
    radial-gradient(circle at 42% 36%, #fff 0 22%, var(--cream) 70%, var(--cream-edge) 100%);
  box-shadow: 0 0.1em 0.2em rgb(80 0 15 / 0.28);
}
.dollop::after {
  content: ''; position: absolute; inset: 36%; border-radius: 50%; background: #fff; box-shadow: 0 0.04em 0.08em rgb(80 0 15 / 0.25);
}
/* candles seen from above: a striped circle with a glow */
.candle {
  --s: 0.6em; border-radius: 50%;
  background: repeating-conic-gradient(var(--red) 0 45deg, #fff 45deg 90deg);
  box-shadow: 0 0 0 0.08em #fff, 0 0.1em 0.2em rgb(80 0 15 / 0.35);
}
.candle::after {
  content: ''; position: absolute; inset: -0.55em; border-radius: 50%;
  background: radial-gradient(circle, #fffbe0 0 14%, rgb(255 190 60 / 0.75) 28%, rgb(255 140 0 / 0.25) 50%, transparent 72%);
  animation: glow 0.22s ease-in-out infinite alternate;
}
.cake__center {
  position: absolute; left: 50%; top: 50%; width: 1.6em; height: 1.6em; margin: -0.8em 0 0 -0.8em; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffb3be 0 10%, #ef2f4a 34%, var(--red) 60%, #7a0a1c 100%);
  box-shadow: 0 0.18em 0.35em rgb(80 0 15 / 0.4);
}
.cake__center::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 0.14em; height: 1.3em; border-radius: 0.1em;
  background: linear-gradient(#5d7d33, #3d5a22); transform-origin: 50% 0; transform: rotate(-140deg);
}

/* frostings */
.flavor-classic { --bead: #f1cdd5; --cream: #fbf1f3; --cream-edge: #e2c3cb;
  --frost:
    radial-gradient(circle, transparent 0 79%, rgb(200 16 46 / 0.6) 80% 81.5%, transparent 82.5%),
    radial-gradient(circle, var(--red) 0.07em, transparent 0.09em) 0.2em 0.4em / 1.3em 1.1em,
    radial-gradient(circle, #ff8a9c 0.06em, transparent 0.08em) 0.7em 0 / 1.1em 1.4em,
    radial-gradient(circle, #fff 0 52%, #fbf3f5 74%, #efdde2 100%); }
.flavor-velvet { --bead: #fbeef1; --cream: #fff4f6; --cream-edge: #ecd4da;
  --frost:
    radial-gradient(circle, rgb(255 255 255 / 0.85) 0.06em, transparent 0.08em) 0.3em 0.2em / 1.2em 1.3em,
    radial-gradient(circle, #e2324a 0, var(--red) 58%, #a20c25 100%); }
.flavor-stripe { --bead: var(--red); --cream: #ffe9ed; --cream-edge: #f2c4cd;
  --frost:
    radial-gradient(circle, transparent 0 30%, rgb(255 255 255 / 0.55) 31% 37%, transparent 38%),
    repeating-conic-gradient(#ffd0d9 0 12deg, #fff 12deg 24deg),
    #fff; }
.flavor-stripe .bead { background: radial-gradient(circle at 35% 30%, #ff8a9c, var(--red) 72%); }

/* "Arma tu pastel" live preview (built by public/js/cake-preview.js) */
.cake.live {
  --sprinkles: linear-gradient(transparent, transparent);
  --drizzle: linear-gradient(transparent, transparent);
  --cover: radial-gradient(circle at 50% 45%, #fffdf8 0 50%, #fbf1e4 85%, #efdcc6 100%);
  --bead: #fbf3ea; --cream: #fffaf3; --cream-edge: #ecdcc8;
}
.cake.live .cake__top { background: var(--sprinkles), var(--drizzle), var(--cover); }
.cake.live.cover-meringue {
  --cover: radial-gradient(circle, #fff 0.1em, transparent 0.26em) 0 0 / 0.85em 0.85em,
           radial-gradient(circle, rgb(214 186 168 / 0.45) 0.08em, transparent 0.28em) 0.42em 0.42em / 0.85em 0.85em,
           #fffdfc;
  --bead: #fff; --cream: #fff; --cream-edge: #eee3dc;
}
.cake.live.cover-tresleches {
  --drizzle: repeating-linear-gradient(32deg, transparent 0 1em, rgb(196 128 58 / 0.55) 1em 1.14em, transparent 1.14em 2.3em),
             repeating-linear-gradient(-28deg, transparent 0 1.3em, rgb(196 128 58 / 0.4) 1.3em 1.42em, transparent 1.42em 2.6em);
}
.cake.live.flavor-choc { --sprinkles: radial-gradient(circle, #4a2a1a 0.09em, transparent 0.11em) 0 0 / 0.8em 0.95em, radial-gradient(circle, #7b4a2e 0.07em, transparent 0.09em) 0.4em 0.3em / 0.7em 0.85em; }
.cake.live.flavor-vanilla { --sprinkles: radial-gradient(circle, #c9a256 0.05em, transparent 0.07em) 0 0 / 0.55em 0.65em, radial-gradient(circle at 40% 40%, #fff 0.08em, #eadbc4 0.13em, transparent 0.15em) 0.3em 0.2em / 1.3em 1.1em; }
.cake.live.flavor-marble { --sprinkles: conic-gradient(from 20deg, rgb(92 52 30 / 0.24), transparent 18%, rgb(92 52 30 / 0.2) 38%, transparent 55%, rgb(92 52 30 / 0.24) 75%, transparent 90%, rgb(92 52 30 / 0.24)), radial-gradient(circle, #4a2a1a 0.07em, transparent 0.09em) 0.2em 0.1em / 1.2em 1.3em; }
.cake.live.flavor-berry { --sprinkles: radial-gradient(circle, #ff8fa3 0.08em, transparent 0.1em) 0 0 / 0.8em 0.9em; }

.cake.shape-rect, .cake.shape-sheet { --spin: 30s; }
/* every shape sits on the same round turntable, wide enough for a rectangle's corners */
.cake.shape-rect .cake__spin { inset: 2.9em 1.4em; border-radius: 0.8em; }
.cake.shape-sheet .cake__spin { inset: 3.2em 0.9em; border-radius: 0.8em; }
/* the light stays still, so on a turning rectangle it is a soft round highlight */
.cake.shape-rect .cake__gloss, .cake.shape-sheet .cake__gloss { inset: 1em; background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.35), transparent 40%); }
.cake.shape-rect .cake__middle, .cake.shape-sheet .cake__middle { flex-direction: row; width: 6.8em; gap: 0.4em; justify-content: center; }
.cake.shape-rect .cake__print, .cake.shape-sheet .cake__print { width: 2.9em; height: 2.2em; flex: none; }
.cake.shape-rect .cake__print + .cake__msg, .cake.shape-sheet .cake__print + .cake__msg { max-width: 3.4em; text-align: left; font-size: 0.6em !important; max-width: 5.6em; }
.cake.shape-rect .cake__top, .cake.shape-sheet .cake__top { border-radius: inherit; }

.cake__item.at { transform: translate(var(--x), var(--y)) rotate(var(--a)); }
.bead.piped { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--deco) 35%, #fff), var(--deco) 75%); }
.dollop.tinted { --cream: color-mix(in srgb, var(--deco2) 30%, #fff); --cream-edge: color-mix(in srgb, var(--deco2) 60%, #fff); }

.cake__middle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 7em;
  display: flex; flex-direction: column; align-items: center; gap: 0.35em; text-align: center;
}
.cake__print {
  position: relative; overflow: hidden; width: 4.4em; height: 3.3em; border-radius: 0.5em;
  background: #fff center / cover no-repeat;
  box-shadow: 0 0.1em 0.25em rgb(80 0 15 / 0.3), inset 0 0 0 0.12em rgb(255 255 255 / 0.8);
}
.cake.shape-round .cake__print { width: 4.2em; height: 4.2em; border-radius: 50%; }
.cake__print::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / 0.55) 45%, transparent 60%); }
.cake__print--blank { display: grid; place-items: center; color: var(--deco); background: repeating-linear-gradient(45deg, #fff 0 0.4em, #fbeef1 0.4em 0.8em); }
.cake__print--blank i { font-size: 1.6em; }
.cake__drawing { font-size: 3em; color: var(--deco); filter: drop-shadow(0 0.03em 0 rgb(0 0 0 / 0.15)); line-height: 1; }
.cake__msg {
  font-weight: 800; font-style: italic; color: var(--deco); line-height: 1.05; letter-spacing: -0.01em;
  max-width: 7em; overflow-wrap: break-word; hyphens: auto; text-shadow: 0 0.05em 0 rgb(255 255 255 / 0.9), 0 0 0.12em rgb(0 0 0 / 0.08);
}
.cake__cherry {
  position: relative; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffb3be 0 10%, #ef2f4a 34%, var(--red) 60%, #7a0a1c 100%);
  box-shadow: 0 0.18em 0.35em rgb(80 0 15 / 0.4);
}
.cake__cherry::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 0.14em; height: 1.3em; border-radius: 0.1em;
  background: linear-gradient(#5d7d33, #3d5a22); transform-origin: 50% 0; transform: rotate(-140deg);
}
.cake__topper { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); font-size: 1.7em; color: #f2b705; filter: drop-shadow(0 0.06em 0.08em rgb(80 0 15 / 0.35)); }

.cupcake {
  position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%;
  transform: translate(var(--x), var(--y));
  background: repeating-conic-gradient(#fff 0 9deg, #f4dfe3 9deg 18deg);
  box-shadow: 0 0.15em 0.3em rgb(80 0 15 / 0.3);
}
.cupcake__frost {
  position: absolute; inset: 0.32em; border-radius: 50%;
  background: repeating-conic-gradient(rgb(120 40 55 / 0.1) 0 14deg, transparent 14deg 40deg), var(--sprinkles), var(--drizzle), var(--cover);
  box-shadow: 0 0.08em 0.15em rgb(80 0 15 / 0.2);
}
.cupcake__berry, .cupcake__dot { position: absolute; left: 50%; top: 50%; width: 0.9em; height: 0.9em; margin: -0.45em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9aa9, var(--red) 60%, #7a0a1c); }
.cupcake__dot { width: 0.6em; height: 0.6em; margin: -0.3em; background: radial-gradient(circle at 35% 30%, #fff, var(--deco)); }

/* product cards: the cake only turns while hovered */
.mini-cake .cake { font-size: 14px; }
.mini-cake .cake__spin { animation-play-state: paused; }
.product:hover .mini-cake .cake__spin { animation-play-state: running; animation-duration: 6s; }

/* --------------------------------------------------------------- marquee */
.marquee {
  background: var(--red); color: #fff; overflow: hidden; transform: rotate(-2deg);
  margin: 40px -20px; padding: 16px 0; box-shadow: 0 10px 0 var(--yellow), var(--shadow);
}
.marquee .track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee .track > span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -0.02em; white-space: nowrap;
}
.marquee .cake { font-size: 4.2px; --spin: 6s; }
.marquee .cake__plate { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.5); background: #fff; }

/* -------------------------------------------------------------- sections */
.section { padding-block: 96px; position: relative; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; }
.kicker { color: var(--red-deep); background: var(--yellow); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; display: inline-block; padding: 5px 12px; border-radius: 999px; transform: rotate(-2deg); }
.dots-bg { background: radial-gradient(circle, var(--red-soft) 2px, transparent 2.5px) 0 0 / 22px 22px; }

/* categories: tilted sticker tiles of different sizes */
.groups { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.group-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px; padding: 24px; border-radius: var(--r-card); text-decoration: none;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink);
  transition: transform 0.45s var(--bounce), box-shadow 0.3s;
}
.group-tile:nth-child(1) { grid-row: span 2; background: var(--red); color: #fff; box-shadow: var(--shadow); }
.group-tile:nth-child(2) { background: var(--red-soft); }
.group-tile:nth-child(3) { background: var(--yellow-soft); box-shadow: inset 0 0 0 2px var(--yellow); }
.group-tile:nth-child(1) .go { background: var(--yellow); color: var(--red-deep); }
.group-tile:nth-child(4) { grid-column: span 2; padding-right: 160px; }
.group-tile .corner-cake { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 10px; }
.group-tile:hover { transform: translateY(-6px) rotate(-1.2deg); }
.group-tile:nth-child(even):hover { transform: translateY(-6px) rotate(1.2deg); }
.group-tile h3 { font-size: 1.7rem; font-weight: 800; }
.group-tile p { margin-top: 6px; opacity: 0.85; max-width: 30ch; }
.group-tile .go { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgb(255 255 255 / 0.9); color: var(--red); transition: transform 0.4s var(--bounce); }
.group-tile:hover .go { transform: rotate(-45deg) scale(1.1); }
.group-tile .tile-cake { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); }
.group-tile .tile-cake .cake { font-size: clamp(16px, 1.9vw, 22px); }
.group-tile .tile-cake .cake__plate { background: radial-gradient(circle, #fff 0 79%, #f6e6e9 81%, #fff 85%, #f4e8eb 97%, #ecd6db 100%); }
@media (max-width: 900px) {
  .groups { grid-template-columns: 1fr 1fr; }
  .group-tile:nth-child(1) { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .group-tile:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 520px) {
  .groups { grid-template-columns: 1fr; }
  .group-tile:nth-child(1), .group-tile:nth-child(4) { grid-column: auto; }
}

/* -------------------------------------------------------------- products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden;
  transition: transform 0.45s var(--bounce), box-shadow 0.3s var(--ease);
}
.product:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow); }
.product .pic {
  aspect-ratio: 1 / 0.86; display: grid; place-items: center; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 60%, #fff 0 30%, var(--red-tint) 70%);
}
.product .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .pic img { transform: scale(1.07) rotate(1.5deg); }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.product .desc { font-size: 0.88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; font-size: 1.25rem; color: var(--red); letter-spacing: -0.02em; }
.stock { font-size: 0.8rem; font-weight: 700; color: var(--ok); }
.stock.out { color: var(--muted); }
.add-btn {
  width: 46px; height: 46px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-size: 1.15rem; display: grid; place-items: center;
  transition: transform 0.35s var(--bounce), background 0.2s;
  flex-shrink: 0;
}
.add-btn:hover { transform: rotate(90deg) scale(1.08); background: var(--red-deep); }
.add-btn:disabled { background: var(--line-strong); cursor: not-allowed; transform: none; }
.product.sold-out .pic { filter: grayscale(0.7); opacity: 0.75; }

.shop-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2);
  transition: all 0.25s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); }
.chip.on { background: var(--red); color: #fff; box-shadow: none; }
.search { display: flex; align-items: center; gap: 8px; margin-left: auto; background: #fff; border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.search input { border: 0; outline: 0; font: inherit; padding: 8px 0; min-width: 0; width: 180px; background: transparent; color: var(--ink); }
.search button { border: 0; background: var(--red-soft); color: var(--red); width: 38px; height: 38px; border-radius: 999px; cursor: pointer; }
.store-pick { display: flex; align-items: center; gap: 10px; background: var(--red-soft); padding: 8px 8px 8px 16px; border-radius: 999px; font-weight: 700; color: var(--red-deep); }
.store-pick select { border: 0; font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--ink); max-width: 230px; }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } .store-pick { width: 100%; } .store-pick select { flex: 1; max-width: none; } }

/* empty state */
.empty { text-align: center; padding: 70px 20px; display: grid; justify-items: center; gap: 14px; }
.empty .cake { font-size: 13px; }
.empty h2 { font-size: 1.8rem; }
.empty p { color: var(--muted); max-width: 40ch; }

/* --------------------------------------------- how it works (pickup) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 38px; left: 12%; right: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--red) 0 12px, var(--yellow) 12px 22px); }
.step { position: relative; text-align: center; padding: 0 22px; }
.step .icon {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow-soft); color: var(--red); font-size: 2rem; box-shadow: inset 0 0 0 3px var(--red), 0 0 0 10px var(--white);
  position: relative; transition: transform 0.5s var(--bounce);
}
.step:hover .icon { transform: rotate(-12deg) scale(1.08); }
.step h3 { font-size: 1.3rem; font-weight: 800; }
.step p { color: var(--ink-2); margin-top: 8px; max-width: 28ch; margin-inline: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps::before { display: none; } }

/* ------------------------------------------------ custom-cake teaser ---- */
.builder-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--red); color: #fff; border-radius: 36px; padding: 56px; overflow: hidden; position: relative;
  box-shadow: var(--shadow);
}
.builder-teaser h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; }
.builder-teaser p { margin-top: 16px; font-size: 1.1rem; opacity: 0.92; max-width: 40ch; }
.builder-teaser .btn { margin-top: 28px; background: var(--yellow); color: var(--red-deep); }
.builder-teaser .btn:hover { transform: translateY(-3px) rotate(-1deg); }
.builder-teaser .stage { display: grid; place-items: center; min-height: 320px; position: relative; }
.builder-teaser .stage::before { content: ''; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: rgb(255 210 63 / 0.22); animation: pulse 4s ease-in-out infinite; }
.builder-teaser .cake { font-size: 26px; position: relative; }
@media (max-width: 860px) { .builder-teaser { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 28px; } .builder-teaser .stage { min-height: 260px; } .builder-teaser .cake { font-size: 19px; } }

/* ---------------------------------------------------------- store finder */
.finder__bar { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.finder__status { color: var(--ink-2); max-width: 52ch; }
.finder__status.error { color: var(--red-deep); font-weight: 650; }
.radar { position: relative; display: inline-grid; place-items: center; }
.btn.locating .radar::before, .btn.locating .radar::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid #fff;
  animation: ping 1.2s ease-out infinite;
}
.btn.locating .radar::after { animation-delay: 0.6s; }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 18px; }
.stores-grid.is-collapsed > .store-card:nth-child(n + 4) { display: none; }
.store-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-content: start;
  padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform 0.45s var(--bounce), box-shadow 0.3s var(--ease);
}
.store-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-soft); }
.store-card__pin { width: 48px; height: 48px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 1.4rem; transform: rotate(-6deg); }
.store-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.store-card p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.store-card__distance { display: inline-flex; margin-top: 10px; font-weight: 800; color: var(--red-deep); font-size: 0.85rem; background: var(--red-soft); padding: 4px 10px; border-radius: 999px; }
.store-card__distance:empty { display: none; }
.store-card__actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.store-card__badge {
  display: none; position: absolute; top: -13px; right: 18px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-soft); transform: rotate(3deg);
}
.store-card.is-nearest { box-shadow: inset 0 0 0 2.5px var(--red), var(--shadow); animation: bump 0.6s var(--bounce); }
.store-card.is-nearest .store-card__badge { display: inline-block; }
.store-card.is-nearest .store-card__pin { background: var(--red); color: #fff; animation: bob 1.4s ease-in-out infinite; }
.store-card.is-nearest .store-card__distance { background: var(--red); color: #fff; }
@media (min-width: 900px) {
  .store-card.is-nearest { grid-column: span 2; padding: 28px; }
  .store-card.is-nearest h3 { font-size: 1.5rem; }
}
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.near-btn {
  border: 0; background: var(--red-soft); color: var(--red-deep); font: inherit; font-weight: 750; font-size: 0.82rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--bounce);
}
.near-btn:hover { background: var(--red); color: #fff; transform: scale(1.04); }
.store-pick .near-btn { background: #fff; }
.store-pick .near-btn:hover { background: var(--red); }
.near-btn.busy i { animation: spin 0.9s linear infinite; }

/* ----------------------------------------------------------------- forms */
.page-head { padding-block: 56px 24px; position: relative; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.page-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.1rem; max-width: 56ch; }
.panel { background: #fff; border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--line); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 34px; height: 34px; border-radius: 999px; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: 0.95rem; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field .err { font-size: 0.85rem; color: var(--red-deep); font-weight: 650; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-input); padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #8f8387; }
.input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgb(200 16 46 / 0.14); }
textarea.input { min-height: 96px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .panel { padding: 22px 18px; } }
.stack { display: grid; gap: 16px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-input); font-weight: 650; margin-bottom: 20px; }
.alert-error { background: var(--red-soft); color: var(--red-deep); box-shadow: inset 0 0 0 1.5px #f5c2cb; }
.alert-ok { background: #eaf6ef; color: var(--ok); box-shadow: inset 0 0 0 1.5px #c3e5d1; }

/* option pickers (custom cake) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; flex-direction: column; gap: 4px; height: 100%; cursor: pointer;
  padding: 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: transform 0.35s var(--bounce), box-shadow 0.2s, background 0.2s;
}
.opt label:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--red); }
.opt input:checked + label { background: var(--red-soft); box-shadow: inset 0 0 0 2.5px var(--red); }
.opt input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }
.opt .name { font-weight: 750; line-height: 1.25; }
.opt .add { font-size: 0.85rem; font-weight: 700; color: var(--red); }
.opt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.opt input:checked + label::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
  animation: pop 0.35s var(--bounce);
}
.flavor-group + .flavor-group { margin-top: 18px; }
.flavor-group h3 { font-size: 1rem; font-weight: 800; color: var(--red-deep); margin-bottom: 10px; }
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--red-soft); gap: 4px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { padding: 10px 18px; border-radius: 999px; font-weight: 750; cursor: pointer; color: var(--red-deep); transition: background 0.2s, color 0.2s; }
.toggle input:checked + label { background: var(--red); color: #fff; }
.toggle input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.builder aside { position: sticky; top: 96px; }
.preview-card { background: var(--red); color: #fff; border-radius: 28px; padding: 26px; box-shadow: var(--shadow); overflow: hidden; }
.preview-card .stage { display: grid; place-items: center; height: 290px; }
.preview-card .cake { font-size: calc(var(--size, 17) * 1px); transition: font-size 0.6s var(--bounce); }
.preview-card .cake.pop { animation: bump 0.6s var(--bounce); }
.preview-card .summary { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; margin-top: 12px; font-size: 0.92rem; }
.preview-card .summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.preview-card .summary li { display: flex; justify-content: space-between; gap: 10px; }
.preview-card .summary li span:first-child { color: var(--ink-2); }
.preview-card .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-weight: 800; }
.preview-card .total strong { font-size: 2rem; letter-spacing: -0.03em; }
.preview-card .btn { width: 100%; margin-top: 16px; background: #fff; color: var(--red); }
.preview-card .btn:hover { background: var(--red-soft); }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } .builder aside { position: static; } }
.photos-drop { border: 2px dashed var(--line-strong); border-radius: 18px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.photos-drop:hover { border-color: var(--red); background: var(--red-tint); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-soft); animation: pop 0.4s var(--bounce); }

/* ------------------------------------------------------------------ cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--red-tint); display: grid; place-items: center; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .thumb .cake { font-size: 6.5px; }
.cart-line h3 { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.01em; }
.cart-line .meta { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.cart-line .warn { font-size: 0.85rem; font-weight: 700; color: var(--red-deep); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; background: var(--red-soft); border-radius: 999px; padding: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: #fff; color: var(--red); cursor: pointer; font-size: 1rem; display: grid; place-items: center; transition: transform 0.25s var(--bounce); }
.qty button:hover { transform: scale(1.12); }
.qty span { min-width: 34px; text-align: center; font-weight: 800; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; margin-top: 8px; border-top: 2px solid var(--ink); }
.cart-total strong { font-size: 2rem; color: var(--red); letter-spacing: -0.03em; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; background: var(--red-tint); border-radius: var(--r-input); padding: 14px; font-size: 0.9rem; color: var(--ink-2); margin-top: 16px; }
.pay-note .ph-bold { color: var(--red); font-size: 1.3rem; }
.date-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.date-pills .opt { flex: 0 0 auto; scroll-snap-align: start; }
.date-pills .opt label { padding: 12px 16px; border-radius: 16px; white-space: nowrap; font-weight: 700; font-size: 0.92rem; }

/* ----------------------------------------------------------- confirmation */
.ticket {
  max-width: 560px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 36px 32px; text-align: center;
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow); position: relative;
}
.ticket .cut { position: relative; }
.ticket .cut::before, .ticket .cut::after { content: ''; position: absolute; top: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.ticket .cut::before { left: -16px; } .ticket .cut::after { right: -16px; }
.ticket .folio { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: 0.06em; color: var(--red); margin: 8px 0; }
.ticket .status { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--red-soft); color: var(--red-deep); font-weight: 800; }
.ticket .status.ready { background: #eaf6ef; color: var(--ok); }
.ticket .cut { border-top: 2px dashed var(--line-strong); margin: 26px -32px; }
.ticket ul { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 8px; }
.ticket li { display: flex; justify-content: space-between; gap: 12px; }
.ticket .where { text-align: left; display: grid; gap: 10px; margin-top: 22px; }
.ticket .where div { display: flex; gap: 10px; align-items: flex-start; }
.ticket .where .ph-bold { color: var(--red); margin-top: 3px; }
.confetti-piece { position: fixed; top: -20px; width: 10px; height: 14px; z-index: 60; pointer-events: none; border-radius: 3px; animation: fall linear forwards; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 220%); visibility: hidden;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 700;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow);
  transition: transform 0.5s var(--bounce), visibility 0s 0.5s; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.5s var(--bounce); }
.toast .ph-bold { color: #ff8b9c; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 80px; background: var(--red); color: #fff; position: relative; padding-top: 70px; }
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 46px;
  background: radial-gradient(ellipse 34px 40px at 50% 0, var(--white) 98%, transparent 100%) 0 0 / 68px 46px repeat-x;
}
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.site-footer .logo-badge { display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px var(--yellow), 0 12px 30px -10px rgb(60 0 10 / 0.5); transform: rotate(-6deg); transition: transform 0.5s var(--bounce); }
.site-footer .logo-badge:hover { transform: rotate(4deg) scale(1.05); }
.site-footer .logo-badge img { width: 112px; height: auto; }
.site-footer p { opacity: 0.9; margin-top: 14px; max-width: 34ch; }
.site-footer h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; color: var(--yellow); }
.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 22px; font-size: 0.9rem; }
.store-list div { opacity: 0.92; }
.store-list strong { display: block; }
.store-list span { opacity: 0.8; font-size: 0.82rem; }
.site-footer .bottom { border-top: 1px solid rgb(255 255 255 / 0.25); padding-block: 20px; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: 0.9; }
.site-footer .bottom a { text-decoration: none; font-weight: 700; color: var(--yellow); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
}
@keyframes glow { from { transform: scale(0.9); opacity: 0.85; } to { transform: scale(1.12); opacity: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 33% { translate: 18px -26px; } 66% { translate: -14px -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-4deg); } 100% { transform: scale(1); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-5px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fall { to { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 540deg)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .confetti-piece { display: none; }
}
