:root {
  --bg: #fff6d6;
  --surface: #ffffff;
  --ink: #3a1f4f;
  --muted: #7a5b8f;
  --pink: #ff5fa2;
  --pink-deep: #e8337f;
  --yellow: #ffd23f;
  --teal: #22c7d6;
  --purple: #8a5cff;
  --orange: #ff9a1f;
  --green: #3ecf5e;
  --blue: #4f8cff;
  --line: #ffe3a3;
  --radius: 26px;
  --outline: 3px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.5 Fredoka, system-ui, sans-serif; overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 95, 162, .18) 6px, transparent 7px), radial-gradient(circle at 60px 60px, rgba(34, 199, 214, .18) 6px, transparent 7px);
  background-size: 80px 80px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, .section-title { font-family: Chewy, Fredoka, cursive; font-weight: 400; letter-spacing: .5px; }

/* Rainbow ticker */
.ticker { background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--teal), var(--purple), var(--pink)); color: #fff; overflow: hidden; white-space: nowrap; font-weight: 600; text-shadow: 1px 1px 0 rgba(58, 31, 79, .5); }
.ticker-track { display: inline-flex; gap: 40px; padding: 7px 0; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: rgba(255, 246, 214, .92); backdrop-filter: blur(8px); border-bottom: var(--outline); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 64px; width: auto; transition: transform .2s; }
.logo:hover .logo-img { transform: rotate(-3deg) scale(1.05); }
.logo-text { font-family: Chewy, cursive; font-size: 2rem; color: var(--pink-deep); -webkit-text-stroke: 1px var(--ink); }
.cart-btn { position: relative; width: 54px; height: 54px; border-radius: 50%; border: var(--outline); background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; transition: transform .1s; }
.cart-btn:hover { transform: rotate(8deg); }
.cart-btn svg { width: 26px; height: 26px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; border: 2px solid var(--ink); background: var(--pink); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-empty] { display: none; }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-10deg); } 60% { transform: scale(.95) rotate(6deg); } }

.notice { margin: 12px 16px 0; padding: 10px 16px; border-radius: 16px; border: var(--outline); background: var(--teal); color: #fff; text-align: center; font-weight: 600; text-shadow: 1px 1px 0 rgba(58, 31, 79, .4); }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; margin-top: 20px; padding: 40px 36px; border-radius: 36px; border: var(--outline); box-shadow: 8px 8px 0 var(--ink); background: linear-gradient(135deg, #ff7eb6 0%, #ffb35c 50%, #ffe14d 100%); overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; margin: 0 0 14px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-3px); } }
.hero p { font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 0 0 24px; }
.hero-text { position: relative; z-index: 1; }
.hero-blobs { position: relative; height: 300px; z-index: 1; }
.blob { position: absolute; border: var(--outline); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; box-shadow: 4px 4px 0 var(--ink); animation: squish 3.2s ease-in-out infinite; }
/* face: two sparkly eyes + a smile */
.blob b { position: absolute; left: 50%; top: 48%; width: 50%; height: 34%; transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 18% 28%, #fff 0 2px, transparent 3px), radial-gradient(circle at 82% 28%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 20% 32%, var(--ink) 0 7px, transparent 8px), radial-gradient(circle at 84% 32%, var(--ink) 0 7px, transparent 8px); }
.blob b::after { content: ''; position: absolute; left: 36%; top: 42%; width: 28%; height: 34%; border: 3px solid var(--ink); border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; border-radius: 0 0 50% 50%; }
.b4 b { width: 56%; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.b1 { width: 180px; height: 160px; left: 8%; top: 30px; background: var(--pink); }
.b2 { width: 130px; height: 120px; right: 4%; top: 0; background: var(--teal); animation-delay: -.8s; }
.b3 { width: 150px; height: 112px; right: 14%; bottom: 6px; background: var(--green); animation-delay: -1.6s; }
.b4 { width: 96px; height: 90px; left: 2%; bottom: 0; background: var(--purple); animation-delay: -2.4s; }
@keyframes squish { 0%, 100% { transform: scale(1, 1) translateY(0); } 40% { transform: scale(1.1, .88) translateY(6px); } 70% { transform: scale(.94, 1.06) translateY(-8px); } }
.confetti i { position: absolute; width: 14px; height: 14px; border-radius: 4px; opacity: .85; animation: float 6s ease-in-out infinite; }
.confetti i:nth-child(6n+1) { background: #fff; } .confetti i:nth-child(6n+2) { background: var(--teal); } .confetti i:nth-child(6n+3) { background: var(--purple); border-radius: 50%; }
.confetti i:nth-child(6n+4) { background: var(--green); } .confetti i:nth-child(6n+5) { background: var(--blue); border-radius: 50%; } .confetti i:nth-child(6n) { background: var(--pink-deep); }
.confetti i:nth-child(1) { left: 4%; top: 12%; } .confetti i:nth-child(2) { left: 18%; top: 80%; animation-delay: -1s; } .confetti i:nth-child(3) { left: 33%; top: 8%; animation-delay: -2s; }
.confetti i:nth-child(4) { left: 46%; top: 88%; animation-delay: -3s; } .confetti i:nth-child(5) { left: 55%; top: 20%; animation-delay: -4s; } .confetti i:nth-child(6) { left: 68%; top: 74%; animation-delay: -5s; }
.confetti i:nth-child(7) { left: 80%; top: 10%; animation-delay: -1.5s; } .confetti i:nth-child(8) { left: 92%; top: 60%; animation-delay: -2.5s; } .confetti i:nth-child(9) { left: 10%; top: 50%; animation-delay: -3.5s; }
.confetti i:nth-child(10) { left: 40%; top: 45%; animation-delay: -4.5s; } .confetti i:nth-child(11) { left: 74%; top: 42%; animation-delay: -.5s; } .confetti i:nth-child(12) { left: 96%; top: 90%; animation-delay: -5.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .blob, .confetti i, .hero h1 span, .ticker-track, .cat-tile span { animation: none !important; } }

.wave { display: block; width: 100%; height: 40px; margin: 18px 0 6px; fill: var(--pink); opacity: .9; }
.wave.flip { margin: 0; fill: var(--purple); opacity: 1; }

/* Buttons */
.btn { display: inline-block; padding: 14px 30px; border: var(--outline); border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; text-shadow: 1px 1px 0 rgba(58, 31, 79, .45); box-shadow: var(--pop); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--pop); }
.btn.wide { width: 100%; }

.section-title { text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); margin: 36px 0 18px; color: var(--pink-deep); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--yellow); }

/* Category tiles */
.cat-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cat-tile { --c: var(--pink); flex: 0 1 150px; display: grid; place-items: center; gap: 6px; padding: 20px 10px; border: var(--outline); border-radius: var(--radius); background: var(--c); color: #fff; font-weight: 700; font-size: 1.1rem; text-shadow: 1px 1px 0 rgba(58, 31, 79, .55); box-shadow: var(--pop); transition: transform .15s; }
.cat-tile:nth-child(odd) { transform: rotate(-2deg); } .cat-tile:nth-child(even) { transform: rotate(2deg); }
.cat-tile:hover { transform: rotate(0) scale(1.06); }
.cat-tile span { font-size: 2.6rem; text-shadow: none; animation: bob 2.4s ease-in-out infinite; }
.cat-tile:nth-child(2n) span { animation-delay: -1.2s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }

/* Chips */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 10px; margin-bottom: 18px; justify-content: safe center; }
.chip { --c: var(--ink); flex: none; padding: 8px 18px; border-radius: 999px; border: var(--outline); background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-selected="true"] { background: var(--c); color: #fff; text-shadow: 1px 1px 0 rgba(58, 31, 79, .5); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-bottom: 40px; }
.card { --c: var(--pink); position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: var(--outline); box-shadow: 6px 6px 0 var(--c); padding: 0; text-align: left; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--c); }
.card .pic { aspect-ratio: 1; background: color-mix(in srgb, var(--c) 22%, #fff); display: grid; place-items: center; overflow: hidden; border-bottom: var(--outline); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { padding: 12px 16px 16px; }
.card h3 { margin: 2px 0 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.card .price { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font-weight: 700; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .6px; }
.card .sticker { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: var(--c); color: #fff; border: 2px solid var(--ink); font-size: .75rem; font-weight: 700; transform: rotate(8deg); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.1rem; }
.demo-art { width: 70%; height: 70%; }

.perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 10px 0 48px; }
.perks li { display: flex; align-items: center; justify-content: center; gap: 10px; border: var(--outline); border-radius: 20px; padding: 16px; text-align: center; box-shadow: var(--pop); color: #fff; text-shadow: 1px 1px 0 rgba(58, 31, 79, .5); }
.perks span { font-size: 1.8rem; text-shadow: none; }
.perks .p1 { background: var(--purple); } .perks .p2 { background: var(--green); } .perks .p3 { background: var(--blue); }

.foot { color: #fff; }
.foot-inner { background: var(--purple); text-align: center; padding: 18px 16px 36px; font-weight: 500; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 8px; font-weight: 600; }
.foot a { text-decoration-color: var(--yellow); text-underline-offset: 4px; }

.close { width: 42px; height: 42px; border-radius: 50%; border: var(--outline); background: var(--yellow); color: var(--ink); font-size: 1.5rem; font-weight: 700; line-height: 1; box-shadow: 2px 2px 0 var(--ink); }

/* Product dialog */
.product-dialog { width: min(780px, calc(100% - 32px)); border: var(--outline); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.product-dialog[open] { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.product-dialog::backdrop { background: rgba(58, 31, 79, .55); }
.product-dialog form { position: absolute; top: 12px; right: 12px; z-index: 1; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { background: #ffeaf4; border-right: var(--outline); }
.pd-main { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 54px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; }
.pd-thumbs button[aria-current="true"] { border-color: var(--pink-deep); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.pd-info h2 { margin: 0; padding-right: 44px; line-height: 1.1; font-size: 2rem; color: var(--pink-deep); }
.pd-info .price { align-self: flex-start; padding: 4px 16px; border-radius: 999px; background: var(--yellow); border: var(--outline); font-size: 1.5rem; font-weight: 700; }
.pd-info label { font-weight: 600; display: grid; gap: 6px; }
.pd-info select { font: inherit; padding: 10px 12px; border-radius: 14px; border: var(--outline); background: #fff; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: var(--outline); border-radius: 999px; overflow: hidden; width: max-content; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--line); color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.small { font-size: .85rem; color: var(--muted); margin: 0; }

/* Basket drawer */
.drawer { position: fixed; inset: 0; z-index: 20; background: rgba(58, 31, 79, .55); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(430px, 100%); height: 100%; background: var(--bg); border-left: var(--outline); display: flex; flex-direction: column; animation: slide .25s ease-out; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--pink); color: #fff; border-bottom: var(--outline); }
.drawer-head h2 { margin: 0; font-size: 1.8rem; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.drawer-lines { flex: 1; overflow-y: auto; padding: 12px 20px; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px; background: #fff; border: var(--outline); border-radius: 18px; }
.line .thumb { width: 68px; height: 68px; border-radius: 14px; overflow: hidden; background: #ffeaf4; display: grid; place-items: center; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.line .variant { font-size: .85rem; color: var(--muted); }
.line .qty button { width: 32px; height: 32px; }
.line .remove { border: 0; background: none; color: var(--pink-deep); text-decoration: underline; font-size: .85rem; padding: 0; margin-top: 4px; }
.drawer-foot { padding: 16px 20px 24px; border-top: var(--outline); background: #fff; display: grid; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 1.2rem; }
.ship-note { margin: 0; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--ink); background: var(--green); color: #fff; font-weight: 600; text-align: center; text-shadow: 1px 1px 0 rgba(58, 31, 79, .45); }
.error { margin: 0; color: var(--pink-deep); font-weight: 600; }
.error:empty { display: none; }

/* Info pages */
.page { max-width: 780px; margin: 0 auto; padding: 24px 16px 48px; }
.page h1 { font-size: 3rem; margin: 8px 0 16px; text-align: center; color: var(--pink-deep); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--yellow); }
.page h2 { margin-top: 0; color: var(--purple); font-size: 1.8rem; }
.page .card-box { background: #fff; border: var(--outline); border-radius: var(--radius); padding: 24px; box-shadow: var(--pop); margin-bottom: 20px; }
.page .card-box:nth-of-type(odd) { box-shadow: 6px 6px 0 var(--pink); } .page .card-box:nth-of-type(even) { box-shadow: 6px 6px 0 var(--teal); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .logo-img { height: 50px; }
  .hero { grid-template-columns: 1fr; padding: 24px 18px 28px; text-align: center; box-shadow: 5px 5px 0 var(--ink); }
  .hero-blobs { height: 150px; order: -1; }
  .b1 { width: 110px; height: 98px; left: 14%; top: 10px; }
  .b2 { width: 80px; height: 74px; }
  .b3 { width: 92px; height: 70px; }
  .b4 { width: 60px; height: 56px; }
  .cat-tiles { gap: 10px; }
  .cat-tile { flex-basis: calc(33.333% - 7px); padding: 14px 6px; font-size: .9rem; }
  .cat-tile span { font-size: 2rem; }
  .chips { justify-content: flex-start; }
  .perks { grid-template-columns: 1fr; gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card .meta { padding: 10px 12px 12px; }
  .card h3 { font-size: .98rem; }
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { border-right: 0; border-bottom: var(--outline); }
}

/* Big logo in the hero */
.hero-logo { width: min(100%, 360px); height: auto; margin: -10px 0 8px -8px; filter: drop-shadow(5px 6px 0 rgba(58, 31, 79, .35)); animation: wiggle 4s ease-in-out infinite; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
@media (max-width: 720px) { .hero-logo { margin: 0 auto 6px; } .hero-blobs { display: none; } }

/* Squishy letters: fat, glossy, candy-coloured jelly letters that squish on hover/tap */
.squishy { font-family: Coiny, Sniglet, Fredoka, system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.25; -webkit-text-stroke: 0; text-shadow: none; color: inherit; }
.sq-word { display: inline-block; white-space: nowrap; margin-right: .18em; }
.sq {
  position: relative; display: inline-block; margin: 0 -.015em; color: var(--c); transform: rotate(var(--t));
  -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill;
  /* 3D jelly depth + soft drop */
  text-shadow: 0 .06em 0 var(--ink), 0 .12em 0 var(--ink), .04em .2em .05em rgba(58, 31, 79, .35);
  animation: jelly 2.8s ease-in-out infinite; animation-delay: var(--d);
  cursor: default;
}
/* glossy shine on the top half of each letter */
.sq::after {
  content: attr(data-char); position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 0; text-shadow: none; pointer-events: none;
  background: linear-gradient(175deg, rgba(255, 255, 255, .95) 0 14%, rgba(255, 255, 255, .45) 26%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0) 62%, rgba(58, 31, 79, .22) 100%);
  -webkit-background-clip: text; background-clip: text;
}
/* little white sparkle highlight */
.sq::before {
  content: ''; position: absolute; left: 24%; top: 22%; width: .13em; height: .09em; border-radius: 50%; background: #fff; opacity: .9; transform: rotate(-30deg); pointer-events: none; z-index: 1;
}
.sq:hover, .sq:active { animation: squash .5s ease-out; }
@keyframes jelly { 0%, 100% { transform: rotate(var(--t)) scale(1, 1); } 50% { transform: rotate(var(--t)) scale(1.05, .95) translateY(.02em); } }
@keyframes squash { 0% { transform: rotate(var(--t)); } 30% { transform: rotate(var(--t)) scale(1.3, .7) translateY(.1em); } 60% { transform: rotate(var(--t)) scale(.88, 1.15) translateY(-.08em); } 100% { transform: rotate(var(--t)); } }
.hero h1.squishy { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: 18px; }
.section-title.squishy, .page h1.squishy { font-size: clamp(2.4rem, 6vw, 3.6rem); }
@media (prefers-reduced-motion: reduce) { .sq { animation: none !important; } }

/* Squishy font on the fun bits too */
.cat-tile, .btn, .card h3, .card .price, .pd-info .price, .chip, .drawer-head h2, .perks strong, .ship-note { font-family: Coiny, Fredoka, system-ui, sans-serif; font-weight: 400; letter-spacing: .02em; }
.card h3 { font-size: 1.05rem; line-height: 1.25; }
.pd-info h2 { font-family: Coiny, Fredoka, sans-serif; font-weight: 400; }

/* ---------- Extra fun: drop-in letters, wiggles and jiggles ---------- */
/* Letters drop in and bounce (uses translate/scale so it doesn't fight the jelly transform) */
.squishy .sq { opacity: 0; translate: 0 -0.9em; scale: 0.3; }
.squishy.sq-in .sq { animation: dropIn .75s cubic-bezier(.28, 1.8, .5, 1) both, jelly 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * 55ms), var(--d); }
@keyframes dropIn { 0% { opacity: 0; translate: 0 -0.9em; scale: 0.3; } 60% { opacity: 1; translate: 0 .08em; scale: 1.12 .86; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
.squishy.sq-in .sq:hover, .squishy.sq-in .sq.sq-tap { animation: dropIn 0s both, squash .5s ease-out; }

/* Buttons wobble */
.btn:hover { animation: wobble .6s ease-in-out; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -4deg; } 50% { rotate: 3deg; } 75% { rotate: -2deg; } }

/* Product cards jiggle like jelly, photos bounce */
.card:hover .pic img { animation: jellyPic .7s ease-out; }
@keyframes jellyPic { 0% { scale: 1; } 25% { scale: 1.08 .92; } 50% { scale: .95 1.06; } 75% { scale: 1.03 .97; } 100% { scale: 1; } }
.card .price { animation: pricePop 3s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -.4s); }
@keyframes pricePop { 0%, 85%, 100% { scale: 1; } 90% { scale: 1.15; rotate: -4deg; } 95% { scale: .95; rotate: 3deg; } }
.card .sticker { animation: stickerSwing 2.4s ease-in-out infinite; transform-origin: top center; }
@keyframes stickerSwing { 0%, 100% { rotate: 8deg; } 50% { rotate: -6deg; } }

/* Category tiles squish when pressed */
.cat-tile:active { scale: 1.12 .86; transition: scale .08s; }

/* Hero blobs squish when clicked */
.blob { cursor: pointer; }
.blob:active, .blob.blob-tap { animation: blobSquash .5s ease-out; }
@keyframes blobSquash { 0% { scale: 1; } 30% { scale: 1.35 .6; } 60% { scale: .85 1.2; } 100% { scale: 1; } }

/* Tagline bounces */
.hero p { animation: taglineBounce 2.6s ease-in-out infinite; transform-origin: left center; }
@keyframes taglineBounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* Body copy in a softer rounded kid font */
body { font-family: Fredoka, system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .squishy .sq { opacity: 1; translate: none; scale: none; }
  .btn:hover, .card:hover .pic img, .card .price, .card .sticker, .hero p, .blob:active { animation: none !important; }
}

/* ---------- Squish Frenzy game ---------- */
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-game { background: var(--purple); }
.game { margin: 20px auto 10px; max-width: 760px; text-align: center; }
.game-intro { margin: -6px auto 16px; max-width: 560px; font-weight: 500; }
.game-hud { display: flex; justify-content: center; align-items: stretch; gap: 10px; margin-bottom: 8px; }
.hud-box { display: grid; min-width: 86px; padding: 6px 14px; border: var(--outline); border-radius: 18px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.hud-box small { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.hud-box b { font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--pink-deep); }
.hud-box:nth-child(2) b { color: var(--teal); } .hud-box:nth-child(3) b { color: var(--purple); }
.hud-box.bump { animation: hudBump .35s ease-out; }
@keyframes hudBump { 40% { scale: 1.2 .9; } }
.hud-box.hurry { background: #ffe1e1; animation: hurry .5s ease-in-out infinite; }
@keyframes hurry { 50% { rotate: -4deg; scale: 1.08; } }
.hud-mute { width: 52px; border: var(--outline); border-radius: 18px; background: var(--yellow); font-size: 1.4rem; box-shadow: 3px 3px 0 var(--ink); }
.combo { min-height: 1.7em; font-family: Coiny, Fredoka, sans-serif; font-size: 1.3rem; color: var(--orange); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; animation: comboPulse .6s ease-in-out infinite; }
@keyframes comboPulse { 50% { scale: 1.12; } }

.game-stage { position: relative; margin: 0 auto 18px; padding: 18px; max-width: 460px; aspect-ratio: 1; border: var(--outline); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.5) 0 8%, transparent 9%), linear-gradient(160deg, #a8f0ff, #c9b6ff 55%, #ffb3d9); }
.free-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; }
.game.playing .free-play, .game-stage:has(.game-message:not([hidden])) .free-play { display: none; }
.free-play p { margin: 0; font-family: Coiny, Fredoka, sans-serif; font-size: 1.3rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.big-squishy { width: min(260px, 60vw); padding: 0; border: 0; background: none; cursor: pointer; animation: idleBreathe 2.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.big-squishy svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(5px 7px 0 rgba(58,31,79,.35)); }
@keyframes idleBreathe { 50% { scale: 1.04 .96; translate: 0 4px; } }
.big-squishy.squished { animation: bigSquash .6s cubic-bezier(.3,1.5,.5,1); }
.big-squishy.squished .eyes { animation: blink .6s; transform-origin: center 98px; }
@keyframes bigSquash { 0% { scale: 1; } 20% { scale: 1.35 .55; translate: 0 22%; } 50% { scale: .85 1.2; translate: 0 -6%; } 75% { scale: 1.06 .95; } 100% { scale: 1; } }
@keyframes blink { 20%, 40% { scale: 1 .15; } }

.board { position: absolute; inset: 18px; display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.game.playing .board { display: grid; }
.hole { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 24px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(ellipse 40% 13% at 50% 86%, #3a1f4f 0 88%, transparent 100%), radial-gradient(ellipse 46% 18% at 50% 87%, rgba(255,255,255,.75) 0 85%, transparent 100%); }
.hole::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(255,255,255,.75) 0 60%, transparent 62%); pointer-events: none; }
.hole .critter { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 82%; translate: 0 115%; clip-path: inset(-50% -50% 0 -50%); transition: translate .18s cubic-bezier(.3,1.6,.5,1); }
.hole .critter svg { width: 100%; height: 100%; }
.hole.up .critter { translate: 0 0; animation: peek 1s ease-in-out infinite; }
@keyframes peek { 50% { scale: 1.04 .96; } }
.hole.gold .critter { filter: drop-shadow(0 0 10px #fff6a8); }
.hole.squashed .critter { translate: 0 0; animation: critterSquash .26s ease-out forwards; transform-origin: bottom center; }
@keyframes critterSquash { 0% { scale: 1; } 40% { scale: 1.4 .4; } 100% { scale: 1.2 .3; opacity: .2; } }
.hole.squashed.slime .critter { animation: slimeWobble .26s ease-out forwards; }
@keyframes slimeWobble { 30% { rotate: -12deg; scale: 1.2; } 100% { rotate: 10deg; scale: .6; opacity: 0; } }

.float-text { position: absolute; z-index: 3; translate: -50% -50%; pointer-events: none; font-family: Coiny, Fredoka, sans-serif; font-size: 1.8rem; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; animation: floatUp .9s ease-out forwards; white-space: nowrap; }
.float-text.gold { color: var(--yellow); font-size: 2.2rem; } .float-text.bad { color: #7bd94a; } .float-text.big { color: var(--yellow); font-size: 1.5rem; }
@keyframes floatUp { 0% { opacity: 0; scale: .4; } 20% { opacity: 1; scale: 1.2; } 100% { opacity: 0; translate: -50% -180%; scale: 1; } }
.droplet { position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 2px solid var(--ink); pointer-events: none; animation: drop .7s cubic-bezier(.2,.7,.4,1) forwards; scale: var(--s); }
@keyframes drop { to { translate: var(--dx) calc(var(--dy) + 30px); opacity: 0; } }
.game.slimed .game-stage { animation: slimeShake .4s; }
.game.slimed .game-stage::after { content: ''; position: absolute; inset: 0; background: rgba(123, 217, 74, .35); animation: slimeFlash .5s forwards; pointer-events: none; }
@keyframes slimeShake { 20% { translate: -8px 0; } 40% { translate: 7px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }
@keyframes slimeFlash { to { opacity: 0; } }

.game-message { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 8px; padding: 20px; background: rgba(255, 246, 214, .88); animation: pop .3s ease-out; }
.game-message[hidden] { display: none; }
.game-message strong { font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 2rem; color: var(--pink-deep); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; animation: comboPulse .8s ease-in-out infinite; }
.game-message span { font-size: 1.2rem; font-weight: 600; }
.game-message b { font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 1.6rem; color: var(--purple); }
.game-message .rank { display: inline-block; justify-self: center; padding: 6px 16px; border: var(--outline); border-radius: 999px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.game-start { font-size: 1.25rem; padding: 16px 36px; background: var(--pink-deep); animation: startPulse 1.6s ease-in-out infinite; }
@keyframes startPulse { 50% { scale: 1.06; } }
.game-start[hidden] { display: none; }

@media (max-width: 720px) {
  .game-stage { padding: 12px; border-radius: 28px; box-shadow: 5px 5px 0 var(--ink); }
  .board { inset: 12px; gap: 8px; }
  .hud-box { min-width: 70px; padding: 4px 10px; }
  .hud-box b { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .big-squishy, .hole.up .critter, .combo, .game-start, .hud-box.hurry { animation: none !important; }
}
#game, #shop { scroll-margin-top: 110px; }

/* Realistic squishy photos in the hero and game */
.blob.real { border: 0; border-radius: 0; box-shadow: none; background: none; height: auto; object-fit: contain; filter: drop-shadow(6px 10px 8px rgba(58, 31, 79, .3)); user-select: none; -webkit-user-drag: none; }
.blob.real.b1 { width: 190px; left: 6%; top: 10px; }
.blob.real.b2 { width: 130px; right: 6%; top: 0; }
.blob.real.b3 { width: 170px; right: 12%; bottom: 0; top: auto; }
.blob.real.b4 { width: 140px; left: 0; bottom: 10px; }
.hero-blobs { pointer-events: auto; }
.big-squishy img { display: block; width: 100%; height: auto; filter: drop-shadow(6px 10px 8px rgba(58, 31, 79, .35)); user-select: none; -webkit-user-drag: none; }
.hole .critter img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(2px 5px 4px rgba(58, 31, 79, .3)); user-select: none; -webkit-user-drag: none; }
@media (max-width: 720px) {
  .blob.real.b1 { width: 110px; } .blob.real.b2 { width: 76px; } .blob.real.b3 { width: 96px; } .blob.real.b4 { width: 80px; }
}

/* ---------- Bundle boxes & Pick & Mix ---------- */
#bundles { scroll-margin-top: 110px; }
.btn-bundle { background: var(--orange); }
.bundles-intro { text-align: center; font-size: 1.15rem; font-weight: 500; margin: -6px 0 20px; }
.bundle-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.bundle-card { display: grid; grid-template-columns: 180px 1fr; gap: 0; background: #fff; border: var(--outline); border-radius: var(--radius); overflow: hidden; box-shadow: 8px 8px 0 var(--orange); }
.bundle-card:nth-child(2) { box-shadow: 8px 8px 0 var(--teal); }
.bundle-pic { position: relative; padding: 0; border: 0; border-right: var(--outline); background: #fff4c2; cursor: pointer; overflow: hidden; }
.bundle-pic img { width: 100%; height: 100%; object-fit: cover; transition: scale .3s; }
.bundle-pic:hover img { scale: 1.08; }
.bundle-badge { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; border: 2px solid var(--ink); font-family: Coiny, Fredoka, sans-serif; font-size: .8rem; transform: rotate(-6deg); animation: stickerSwing 2.4s ease-in-out infinite; }
.bundle-info { padding: 16px 18px 18px; }
.bundle-info h3 { margin: 0 0 4px; font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 1.5rem; color: var(--pink-deep); }
.bundle-info p { margin: 0 0 12px; color: var(--muted); }
.bundle-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bundle-size { position: relative; display: grid; justify-items: center; gap: 0; padding: 12px 4px 10px; border: var(--outline); border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .1s; }
.bundle-size:hover { transform: translateY(-3px) rotate(-1deg); }
.bundle-size:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.bundle-size b { font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; color: var(--purple); }
.bundle-size span { font-size: .8rem; font-weight: 600; }
.bundle-size strong { margin-top: 4px; font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 1.15rem; color: var(--pink-deep); }
.bundle-size small { font-size: .72rem; color: var(--muted); }
.bundle-size.popular { background: var(--yellow); }
.bundle-size em { position: absolute; top: -12px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: #fff; border: 2px solid var(--ink); font-style: normal; font-size: .68rem; font-weight: 700; }
.pickmix-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 26px; padding: 18px 22px; border: var(--outline); border-radius: var(--radius); background: linear-gradient(120deg, #ffd1ec, #d9c8ff 60%, #b8f5ff); box-shadow: var(--pop); }
.pm-emoji { font-size: 3rem; animation: bob 2.4s ease-in-out infinite; }
.pickmix-banner h3 { margin: 0; font-family: Coiny, Fredoka, sans-serif; font-weight: 400; font-size: 1.6rem; color: var(--purple); }
.pickmix-banner p { margin: 2px 0 8px; }
.pm-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-tiers span { padding: 4px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font-weight: 600; }
.pm-tiers b { color: var(--pink-deep); }
.line s { color: var(--muted); font-weight: 400; font-size: .85rem; }
@media (max-width: 720px) {
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-pic { aspect-ratio: 16 / 10; border-right: 0; border-bottom: var(--outline); }
  .pickmix-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pm-tiers { justify-content: center; }
}

/* ---------- Phone polish ---------- */
@media (max-width: 720px) {
  /* Product popup becomes a slide-up sheet with the buy button always in reach */
  .product-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; border-bottom: 0; box-shadow: 0 -6px 0 var(--ink); }
  .product-dialog[open] { animation: sheetUp .3s ease-out; }
  @keyframes sheetUp { from { translate: 0 100%; } }
  .pd-main { aspect-ratio: auto; height: 34vh; height: 34dvh; background: #fff; }
  .pd-main img { object-fit: contain; }
  .pd-thumbs button { width: 46px; height: 46px; }
  .pd-info { padding: 16px 16px 0; gap: 12px; }
  .pd-info h2 { font-size: 1.6rem; }
  .pd-info [data-add] { position: sticky; bottom: 0; margin: 4px -16px 0; width: calc(100% + 32px); border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; padding: 18px; font-size: 1.15rem; z-index: 2; }
  .pd-info .small { order: 1; }
  .product-dialog form { top: 10px; right: 10px; }
  /* Basket drawer full width on phones */
  .drawer-panel { width: 100%; border-left: 0; }
  /* Bigger footer links for little fingers */
  .foot nav { gap: 4px 6px; }
  .foot nav a { display: inline-block; padding: 10px 10px; }
  /* Slightly tighter hero so the buttons show sooner */
  .hero { padding: 18px 16px 24px; }
  .hero-logo { width: min(82%, 300px); }
  .hero-btns { justify-content: center; gap: 12px; }
  .hero-btns .btn { padding: 12px 22px; font-size: 1rem; }
}
/* Long thumbnail rows must scroll, not stretch the popup */
.pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-gallery, .pd-info { min-width: 0; }
.pd-info select { width: 100%; }
@media (max-width: 720px) { .pd { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .product-dialog[open], .drawer-panel { animation: none !important; } }
