:root {
  --cream: #fff7ee;
  --paper: #fffdf9;
  --berry: #7f1d3e;
  --berry-deep: #4f1029;
  --berry-bright: #b3264a;
  --rose: #f4b8c4;
  --blush: #fbe6e3;
  --gold: #e8a93c;
  --ink: #1f1014;
  --muted: #6f5b5f;
  --art: #fbf3eb;
  --heavy: "Archivo", "Arial Black", sans-serif;
  --brush: "Permanent Marker", "Marker Felt", cursive;
  --round: "Fredoka", "DM Sans", sans-serif;
  --script: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: #fff; padding: .7rem 1rem; border-radius: 99px; }
.skip-link:focus { top: 1rem; }

/* Pills */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font: 700 1.02rem/1 "DM Sans", sans-serif; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.pill-berry { background: var(--berry); color: #fff; box-shadow: 0 10px 24px rgba(127,29,62,.28); }
.pill-cream { background: #fff7f1; color: var(--berry-bright); box-shadow: 0 10px 24px rgba(0,0,0,.14); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; height: 72px; padding: 0 clamp(16px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,247,238,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(79,16,41,.08); }
.topbar-brand img { width: clamp(190px, 22vw, 270px); }
.topbar-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.topbar-nav a { font: 600 .98rem/1 var(--round); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.topbar-nav a:not(.topbar-order):hover { color: var(--berry); }
.topbar-order { background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; }
.topbar-menu { display: none; width: 46px; height: 46px; border: 0; background: var(--ink); border-radius: 50%; padding: 0; cursor: pointer; position: relative; }
.topbar-menu span:not(.sr-only) { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease; }
.topbar-menu span:nth-child(1) { top: 18px; }
.topbar-menu span:nth-child(2) { top: 26px; }
.topbar-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.topbar-menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* 1. Intro */
.intro { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1320px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 96px); }
.intro::before { content: ""; position: absolute; inset: -72px 0 0; z-index: -1; background: radial-gradient(60% 55% at 85% 35%, rgba(244,184,196,.55), transparent 70%), radial-gradient(40% 40% at 5% 90%, rgba(232,169,60,.18), transparent 70%); pointer-events: none; }
.kicker { margin: 0 0 14px; font: 600 .82rem/1 var(--round); letter-spacing: .18em; text-transform: uppercase; color: var(--berry); }
.intro h1 { font: 900 clamp(2.6rem, 5.6vw, 5rem)/.98 var(--heavy); letter-spacing: -.02em; }
.intro-brand { display: block; margin-bottom: 14px; font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--brush); letter-spacing: 0; color: var(--berry); transform: rotate(-2deg); transform-origin: left; }
.intro h1 em { font-family: var(--script); font-style: italic; font-weight: 600; color: var(--berry); letter-spacing: -.01em; }
.intro-lede { max-width: 30rem; margin: 22px 0 30px; font-size: 1.12rem; color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Game */
.game { position: relative; aspect-ratio: 5 / 4.5; border-radius: 34px; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none;
  background: radial-gradient(90% 70% at 50% 8%, #b53a60 0%, #8a2146 38%, #4a0f27 78%, #2a0716 100%);
  box-shadow: 0 50px 90px -40px rgba(79,16,41,.75), 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 0 10px rgba(255,255,255,.55), 0 0 0 11px rgba(127,29,62,.12); }
.game-bokeh { position: absolute; inset: 0; z-index: -1; opacity: .55; background:
  radial-gradient(circle at 12% 30%, rgba(255,211,107,.35) 0 18px, transparent 19px),
  radial-gradient(circle at 82% 22%, rgba(255,122,149,.3) 0 26px, transparent 27px),
  radial-gradient(circle at 68% 48%, rgba(255,255,255,.12) 0 14px, transparent 15px),
  radial-gradient(circle at 25% 62%, rgba(142,240,184,.18) 0 22px, transparent 23px),
  radial-gradient(circle at 92% 66%, rgba(255,211,107,.2) 0 12px, transparent 13px),
  radial-gradient(circle at 45% 18%, rgba(159,208,255,.18) 0 10px, transparent 11px); filter: blur(6px); }
.game-table { position: absolute; left: 0; right: 0; bottom: 0; height: 17%; z-index: -1; background: linear-gradient(180deg, rgba(255,214,170,.0), rgba(120,52,38,.55) 18%, #5a2418 100%); box-shadow: 0 -1px 0 rgba(255,220,180,.25); }
.game::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(20,2,8,.55); border-radius: inherit; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.game.ready canvas { opacity: 1; }
.game.playing canvas { touch-action: none; cursor: none; }
.game.playing { touch-action: none; }
.game-fallback { position: absolute; inset: 0; }
.game-fallback img { width: 100%; height: 100%; object-fit: cover; }

.game-hud { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; pointer-events: none; opacity: 0; transform: translateY(-14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.9,.3,1.3); }
.game.playing .game-hud { opacity: 1; transform: none; }
.hud-score, .hud-goal, .hud-timer { background: rgba(255,248,240,.96); color: var(--berry-deep); border-radius: 999px; box-shadow: 0 8px 20px rgba(20,2,8,.28); }
.hud-score { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 12px; }
.hud-score svg { width: 24px; fill: var(--gold); stroke: #b77b16; stroke-width: 1.2; }
.hud-score b { font: 900 1.6rem/1 var(--heavy); min-width: 1.2em; }
.hud-score.bump { animation: hudBump .32s cubic-bezier(.3,1.6,.5,1); }
@keyframes hudBump { 40% { transform: scale(1.18); } }
.hud-goal { height: 50px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 16px; max-width: 360px; justify-self: center; width: 100%; }
.hud-goal-label { font: 600 .78rem/1 var(--round); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); white-space: nowrap; }
.goal-bar { height: 12px; border-radius: 999px; background: #f1dcd6; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.goal-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #c42f55, #ee6b8c); transition: width .35s cubic-bezier(.2,.9,.3,1.2); }
.goal-met .goal-bar i { background: linear-gradient(90deg, #e8a93c, #ffd36b, #e8a93c); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hud-goal-text { font: 800 .95rem/1 var(--heavy); white-space: nowrap; }
.hud-timer { position: relative; width: 50px; height: 50px; display: grid; place-items: center; }
.hud-timer svg { position: absolute; inset: 3px; width: 44px; height: 44px; transform: rotate(-90deg); }
.hud-timer circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: #f1dcd6; }
.ring { stroke: var(--berry-bright); stroke-linecap: round; transition: stroke .3s; }
.hud-timer b { font: 900 1.05rem/1 var(--heavy); }
.hurry .ring { stroke: #e0322f; }
.hurry .hud-timer { animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(224,50,47,.25), 0 8px 20px rgba(20,2,8,.28); } }

.game-mute { position: absolute; z-index: 4; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,248,240,.16); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.game-mute:hover { background: rgba(255,248,240,.3); }
.game-mute svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.game-mute .spk { fill: currentColor; }
.game-mute .x { display: none; }
.game-mute.muted .wave { display: none; }
.game-mute.muted .x { display: inline; }

.game-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; box-shadow: inset 0 0 90px 30px rgba(255,40,40,.75); }
.game-flash.on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.game-pops { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.pop { position: absolute; transform: translate(-50%, -50%); font: 900 1.7rem/1 var(--heavy); color: #fff; text-shadow: 0 3px 0 rgba(79,16,41,.6), 0 6px 18px rgba(0,0,0,.4); animation: popUp .95s cubic-bezier(.2,.9,.3,1) forwards; white-space: nowrap; }
.pop.gold { color: #ffd36b; font-size: 2.3rem; }
.pop.hot { color: #ffb3c6; font-size: 2rem; }
.pop.bad { color: #ff6b6b; font-size: 2rem; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 18% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.game-banner { position: absolute; z-index: 3; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.6) rotate(-4deg); opacity: 0; pointer-events: none; font: 400 clamp(1.5rem, 4vw, 2.6rem)/1 var(--brush); color: #fff; text-shadow: 0 4px 0 rgba(79,16,41,.7), 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; transition: opacity .25s, transform .4s cubic-bezier(.2,1.6,.4,1); }
.game-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.game-banner.goal { color: #ffd36b; }
.game-banner.hot { color: #ffc2d1; }
.game-banner.storm { color: #9fd0ff; }
.game-countdown { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; pointer-events: none; font: 400 clamp(5rem, 16vw, 9rem)/1 var(--brush); color: #fff; text-shadow: 0 8px 0 rgba(79,16,41,.6), 0 20px 50px rgba(0,0,0,.4); opacity: 0; }
.game-countdown.show { animation: count .62s cubic-bezier(.2,1.4,.4,1); }
.game-countdown.go { color: #ffd36b; }
@keyframes count { 0% { opacity: 0; transform: scale(2.2); } 30% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.85); } }

.game-panel { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; padding: 26px 26px 18px; border-radius: 28px; background: rgba(255,250,245,.97); box-shadow: 0 30px 70px rgba(10,0,4,.45); text-align: center; animation: panelIn .45s cubic-bezier(.2,1.2,.3,1); scrollbar-width: thin; }
.game-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translate(-50%, -42%) scale(.94); } }
.game-panel p { margin: 0 0 14px; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.panel-title { font: 400 clamp(1.8rem, 3.4vw, 2.4rem)/1.05 var(--brush); color: var(--berry-deep); margin: 0 0 10px; }
.panel-skip { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted); font: 500 .9rem "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Start screen sits low so the 3D scene shows */
.panel-start { inset: 0; top: 0; left: 0; transform: none; width: auto; max-height: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: clamp(18px, 4%, 34px) 16px clamp(14px, 3%, 24px); background: transparent; box-shadow: none; border-radius: 0; color: #fff; overflow: visible; pointer-events: none; animation: startIn .7s cubic-bezier(.2,1.2,.3,1); }
.panel-start > * { pointer-events: auto; }
.start-top { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.start-bottom { display: flex; flex-direction: column; align-items: center; }
@keyframes startIn { from { opacity: 0; transform: translateY(16px); } }
.panel-start .panel-title--big { font-size: clamp(2.4rem, 5.2vw, 3.9rem); white-space: nowrap; color: #fff; text-shadow: 0 5px 0 rgba(42,7,22,.65), 0 14px 40px rgba(0,0,0,.45); transform: rotate(-3deg); margin: 2px 0 6px; }
.panel-start .panel-sub { color: rgba(255,255,255,.92); font-size: 1.02rem; margin: 0 0 12px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.panel-start .panel-sub b { color: #ffd36b; }
.prize-ribbon { display: inline-block; margin-bottom: 10px; padding: 8px 18px; border-radius: 999px; background: #ffd36b; color: #4a0f27; font: 900 .78rem/1 var(--heavy); font-stretch: 120%; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 0 #b77b16, 0 12px 24px rgba(0,0,0,.3); transform: rotate(-2deg); animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
.legend { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 0 0 16px; padding: 0; }
.legend li { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 800 .92rem/1 var(--heavy); }
.legend-dot { width: 20px; height: 20px; border-radius: 50%; }
.legend-dot--cookie { background: radial-gradient(circle at 35% 35%, #f6dcae, #d9a865); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.legend-dot--gold { background: radial-gradient(circle at 35% 35%, #fff0b0, #e8a93c); box-shadow: 0 0 10px #ffd36b; }
.legend-dot--coal { background: radial-gradient(circle at 35% 35%, #555, #111); box-shadow: inset 0 0 4px #ff5a1f; }
.play-button { position: relative; border: 0; cursor: pointer; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8ef, #ffe2b8); color: var(--berry); font: 400 1.9rem/1 var(--brush); box-shadow: 0 8px 0 #c98f3d, 0 20px 40px rgba(0,0,0,.4); transition: transform .15s ease, box-shadow .15s ease; }
.play-button::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(255,211,107,.8); animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play-button:hover { transform: translateY(-3px) scale(1.04); }
.play-button:active { transform: translateY(5px); box-shadow: 0 3px 0 #c98f3d, 0 10px 20px rgba(0,0,0,.4); }
.panel-best { margin: 10px 0 0 !important; color: rgba(255,255,255,.85) !important; font-size: .85rem !important; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* Level picker */
.start-bottom { width: min(440px, 100%); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.mode { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 92px; padding: 14px 10px 16px; border: 0; border-radius: 22px; cursor: pointer; background: linear-gradient(180deg, #fffaf3, #ffe6c4); color: var(--berry-deep); box-shadow: 0 7px 0 #c98f3d, 0 18px 34px rgba(0,0,0,.38); transition: transform .14s ease, box-shadow .14s ease; -webkit-tap-highlight-color: transparent; }
.mode:hover { transform: translateY(-3px); box-shadow: 0 10px 0 #c98f3d, 0 22px 40px rgba(0,0,0,.4); }
.mode:active { transform: translateY(6px); box-shadow: 0 1px 0 #c98f3d, 0 8px 16px rgba(0,0,0,.35); }
.mode:focus-visible { outline: 3px solid #ffd36b; outline-offset: 4px; }
.mode-name { font: 400 clamp(1.25rem, 2.6vw, 1.6rem)/1 var(--brush); }
.mode-meta { font: 600 .82rem/1 var(--round); color: var(--muted); }
.mode-meta b { font: 900 1rem/1 var(--heavy); color: var(--berry); }
.mode-best { margin-top: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(127,29,62,.08); font: 700 .7rem/1 var(--round); color: var(--berry); }
.mode-best.beaten { background: #1f7a47; color: #fff; }
.mode-best[hidden] { display: none; }
.mode--extreme { background: linear-gradient(180deg, #c9304f, #7f1d3e); color: #fff; box-shadow: 0 7px 0 #4a0f27, 0 18px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.mode--extreme:hover { box-shadow: 0 10px 0 #4a0f27, 0 22px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.mode--extreme:active { box-shadow: 0 1px 0 #4a0f27, 0 8px 16px rgba(0,0,0,.35); }
.mode--extreme .mode-meta { color: rgba(255,255,255,.75); }
.mode--extreme .mode-meta b { color: #ffd36b; }
.mode--extreme .mode-best { background: rgba(255,255,255,.16); color: #fff; }
.mode--extreme::after { content: ""; position: absolute; inset: -3px; border-radius: 25px; border: 2px solid rgba(255,140,90,.7); animation: heat 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes heat { 50% { opacity: .25; transform: scale(1.03); } }

/* Lose panel */
.panel-lose { padding-top: 28px; }
.lose-kicker { margin: 0 0 4px !important; font: 400 clamp(1.7rem, 3.4vw, 2.2rem)/1 var(--brush) !important; color: var(--berry-deep) !important; }
.lose-score { margin: 6px 0 10px !important; display: flex; justify-content: center; align-items: baseline; gap: 6px; color: var(--muted) !important; }
.lose-score b { font: 900 3.4rem/1 var(--heavy); color: var(--berry-deep); }
.lose-score span { font: 800 1.3rem/1 var(--heavy); }
.lose-score i { font-style: normal; }
.lose-bar { height: 12px; margin: 0 8px 12px; border-radius: 999px; background: #f1e3dc; overflow: hidden; }
.lose-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #e0a93a, #b3264a); transition: width .8s cubic-bezier(.2,.9,.3,1) .2s; }
.lose-line { margin-bottom: 16px !important; }
.panel-lose .pill { width: 100%; }

/* Missed cookie marker */
.miss { position: absolute; bottom: 7%; width: 34px; height: 6px; margin-left: -17px; border-radius: 999px; background: rgba(255,120,120,.9); box-shadow: 0 0 14px rgba(255,80,80,.8); animation: miss .7s ease-out forwards; }
@keyframes miss { from { opacity: 1; transform: scaleX(.4); } to { opacity: 0; transform: scaleX(1.6); } }

/* Result + claim */
.stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.stars i { width: 38px; height: 38px; background: #ead9d3; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 35%); }
.stars i:nth-child(2) { transform: translateY(-8px) scale(1.15); }
.stars[data-stars="1"] i:nth-child(-n+1), .stars[data-stars="2"] i:nth-child(-n+2), .stars[data-stars="3"] i { background: linear-gradient(180deg, #ffe08a, #e8a93c); animation: starIn .5s cubic-bezier(.2,1.8,.4,1) backwards; }
.stars i:nth-child(2) { animation-delay: .15s !important; }
.stars i:nth-child(3) { animation-delay: .3s !important; }
@keyframes starIn { from { transform: scale(0) rotate(-60deg); } }
.result-score { margin: 0 !important; color: var(--berry-deep) !important; font: 700 1.05rem/1 var(--round) !important; }
.result-score b { font: 900 3rem/1 var(--heavy); margin-right: 4px; }
.result-line { margin: 6px 0 14px !important; }
.won-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff1d6, #ffe0e6); border: 2px dashed rgba(127,29,62,.25); }
.won-card strong { display: block; font: 900 1.08rem/1.2 var(--heavy); color: var(--berry-deep); }
.won-card span:not(.won-cookie) { display: block; font-size: .86rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.won-cookie { flex: none; display: inline-block; width: 46px; height: 46px; border-radius: 50%; background:
  radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0 1.5px, transparent 2px), radial-gradient(circle at 60% 55%, rgba(255,255,255,.8) 0 1.5px, transparent 2px), radial-gradient(circle at 45% 75%, rgba(255,255,255,.8) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 25%, rgba(255,255,255,.8) 0 1.5px, transparent 2px),
  radial-gradient(circle at 35% 35%, #f6dcae, #d39c56); box-shadow: inset 0 -3px 0 rgba(150,90,40,.25), 0 6px 14px rgba(150,90,40,.35); animation: cookieSpin 6s linear infinite; }
.won-cookie--big { width: 84px; height: 84px; margin-bottom: 10px; }
@keyframes cookieSpin { to { transform: rotate(360deg); } }
#claim-form { display: grid; gap: 10px; text-align: left; }
.field { display: grid; gap: 4px; font: 600 .82rem/1.2 "DM Sans", sans-serif; color: var(--berry-deep); }
.field i { font-weight: 400; color: var(--muted); }
.field input, .field textarea { min-height: 46px; padding: 11px 14px; border: 1.5px solid rgba(79,16,41,.18); border-radius: 14px; background: #fff; font: 400 16px "DM Sans", sans-serif; color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px rgba(127,29,62,.12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--berry); flex: none; }
#claim-form .pill { width: 100%; margin-top: 2px; }
.form-status { min-height: 1.2em; margin: 0 !important; font-size: .88rem !important; color: var(--berry-bright) !important; text-align: center; }
.fine-print { font-size: .78rem !important; margin: 10px 0 0 !important; }
.envelope { display: inline-block; width: 74px; height: 52px; margin-bottom: 12px; border-radius: 8px; background: linear-gradient(to bottom right, transparent 49%, #e6c9c2 50%) top left / 50% 60% no-repeat, linear-gradient(to bottom left, transparent 49%, #e6c9c2 50%) top right / 50% 60% no-repeat, #fff; box-shadow: 0 0 0 2px #e6c9c2, 0 10px 20px rgba(79,16,41,.2); animation: float 3s ease-in-out infinite; }

.reward-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff1d6; color: var(--berry-deep) !important; font-size: .78rem !important; }
.reward-chip .won-cookie { width: 22px; height: 22px; }
.reward-chip[hidden] { display: none; }

/* 2. Banner */
.banner { position: relative; min-height: min(100vh, 860px); display: grid; place-items: center; overflow: hidden; background: #1a0d10; color: #fff; text-align: center; }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.05); transform: scale(1.08); transition: transform 1.2s ease; }
.banner.visible .banner-photo { transform: scale(1); }
.banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, transparent 30%, rgba(10,4,6,.55)); }
.banner-inner { position: relative; z-index: 1; padding: 80px 16px; }
.brush { font: 400 clamp(3.4rem, 12vw, 10.5rem)/.86 var(--brush); text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.brush-line { display: block; transform: rotate(-3deg); }
.brush-line--two { transform: rotate(-1.5deg) translateX(.12em); }
.brush-heart { display: inline-block; width: .8em; height: .74em; vertical-align: -.04em; color: #fff; }
.brush-heart svg { width: 100%; height: 100%; display: block; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.banner-tag { margin: clamp(28px, 4vw, 48px) 0 0; font: 500 clamp(1.4rem, 3vw, 2.5rem)/1.1 var(--round); letter-spacing: .04em; }
.banner-down { display: inline-block; width: 40px; margin-top: 36px; color: #fff; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(8px); } }

/* 3. Rows */
.rows { background: #fff; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); display: grid; gap: clamp(56px, 8vw, 104px); }
.row { max-width: 1120px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); justify-content: center; gap: clamp(32px, 6vw, 88px); align-items: center; }
.row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.row--flip .row-media { order: 2; }
.row-media { --h: clamp(300px, 34vw, 440px); --pad: clamp(18px, 2.4vw, 28px); position: relative; border-radius: 26px; height: var(--h); display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.row-media img { display: block; height: calc(var(--h) - var(--pad) * 2); width: auto; max-width: 100%; flex: none; object-fit: contain; border-radius: 16px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.45); transform: rotate(-2.5deg); transition: transform .5s cubic-bezier(.2,.9,.3,1.2); }
.row-media--family img { width: calc(100% - var(--pad) * 2); height: calc(var(--h) - var(--pad) * 2); object-fit: cover; object-position: center 72%; }
.row--flip .row-media img { transform: rotate(2.5deg); }
.row:hover .row-media img { transform: rotate(0) scale(1.02); }
.weave { background-color: var(--w); background-image:
  repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 2px, transparent 2px 5px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 5px),
  repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 1px, transparent 1px 3px); }
.weave--gold { --w: #e3a43a; }
.weave--pink { --w: #f2b3c1; }
.weave--berry { --w: #9c2b4e; }
.sticker { position: absolute; width: clamp(70px, 10vw, 120px); stroke: #1f1014; stroke-width: 5; stroke-linejoin: round; filter: drop-shadow(4px 5px 0 rgba(31,16,20,.85)); animation: float 5s ease-in-out infinite; }
.sticker--small { width: clamp(46px, 6vw, 72px); animation-delay: -2s; }
.sticker--star { fill: #fbe39a; top: -18px; left: -14px; }
.sticker--heart { fill: #f7a6b8; bottom: 6%; right: -16px; animation-delay: -1s; }
.sticker--burst { fill: #fff3d6; top: -20px; right: -14px; }
.row--flip .sticker--small { bottom: 8%; left: -12px; top: auto; }
.weave--berry .sticker--small { top: -14px; left: 10%; right: auto; fill: #fbe39a; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }
.tag { display: inline-block; background: var(--rose); color: var(--ink); font: 600 1rem/1 "DM Sans", sans-serif; padding: 9px 14px; border-radius: 8px; }
.row-copy h2 { margin: 18px 0 18px; font: 900 clamp(2.4rem, 4.6vw, 4.1rem)/1 var(--heavy); letter-spacing: -.025em; }
.row-copy p { margin: 0 0 30px; font-size: 1.14rem; line-height: 1.55; max-width: 34rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 4. Menu */
.menu { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); background: linear-gradient(180deg, var(--cream), #fdeee9 60%, var(--cream)); }
.menu-title { text-align: center; font: 900 clamp(2.3rem, 6vw, 5.2rem)/1 var(--heavy); font-stretch: 125%; letter-spacing: -.035em; margin-bottom: clamp(32px, 5vw, 56px); }
.menu-title em { display: inline-block; font: italic 600 1em/1 var(--script); font-stretch: normal; letter-spacing: -.01em; color: var(--berry-bright); background: linear-gradient(transparent 88%, currentColor 88%, currentColor 93%, transparent 93%); padding: 0 .06em; }
.feature { position: relative; max-width: 1180px; margin: 0 auto clamp(40px, 6vw, 72px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 52px) clamp(24px, 5vw, 64px); border-radius: 36px; background: linear-gradient(135deg, #c42f55, #9c1f43); color: #fff; box-shadow: 0 40px 70px -30px rgba(156,31,67,.55); overflow: hidden; }
.feature-photo { width: clamp(180px, 24vw, 300px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 24px 40px rgba(0,0,0,.25); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 90%; }
.feature-tag { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff7f1; color: var(--berry-bright); font: 800 .8rem/1 var(--heavy); letter-spacing: .14em; text-transform: uppercase; }
.feature h3 { margin: 16px 0 12px; font: 900 clamp(2rem, 4.4vw, 3.8rem)/1 var(--heavy); font-stretch: 125%; letter-spacing: -.035em; padding-right: clamp(0px, 9vw, 120px); }
.feature h3 em { font: italic 500 .62em/1 var(--script); font-stretch: normal; letter-spacing: 0; opacity: .95; white-space: nowrap; }
.feature-list { margin: 0 0 14px; font-size: 1.15rem; opacity: .95; }
.feature-note { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-weight: 600; font-size: 1.08rem; }
.feature-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff7f1; color: var(--berry-bright); font-size: 1.3rem; }
.feature-seal { position: absolute; top: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); width: clamp(84px, 10vw, 128px); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-heart { position: absolute; color: rgba(255,255,255,.9); pointer-events: none; animation: float 4s ease-in-out infinite; }
.float-heart.h1 { top: 12%; left: 3%; font-size: 1.3rem; }
.float-heart.h2 { bottom: 14%; left: 24%; font-size: 1rem; animation-delay: -1.5s; }
.float-heart.h3 { top: 18%; left: 22%; font-size: .8rem; animation-delay: -3s; }

.cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { position: relative; background: var(--art); border-radius: 28px; padding: 20px 20px 26px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -24px rgba(79,16,41,.35); }
.card--pink { background: #f9dcdc; }
.card-art img { filter: drop-shadow(0 14px 14px rgba(79,16,41,.12)); }
.card-art { position: relative; display: grid; place-items: center; margin-bottom: 30px; }
.card-art img { display: block; width: 100%; margin-inline: auto; aspect-ratio: 4 / 3; object-fit: contain; object-position: center; transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.card:hover .card-art img { transform: scale(1.06) rotate(-2deg); }
.card-btn { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; padding: 12px 18px; border-radius: 999px; background: var(--berry-bright); color: #fff; font: 700 .95rem/1 "DM Sans", sans-serif; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(179,38,74,.35); }
.card h3 { font: 900 1.55rem/1.05 var(--heavy); font-stretch: 118%; letter-spacing: -.03em; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.card .card-price { margin-top: 12px; color: var(--berry-bright); font: 800 1.1rem/1 var(--heavy); }
.card-sticker { position: absolute; z-index: 2; top: 14px; right: 10px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--berry-bright); color: var(--berry-bright); font: 900 .78rem/1 var(--heavy); font-stretch: 120%; letter-spacing: .06em; text-transform: uppercase; transform: rotate(6deg); }

/* 5. Builder */
.builder { position: relative; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); background: linear-gradient(180deg, var(--cream), #fff 30%); }
.builder-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.builder-head h2 { margin: 16px 0 14px; font: 900 clamp(2.3rem, 5.4vw, 4.6rem)/1 var(--heavy); font-stretch: 125%; letter-spacing: -.035em; }
.builder-head h2 em { font: italic 600 1em/1 var(--script); font-stretch: normal; letter-spacing: -.01em; color: var(--berry-bright); }
.builder-head p { margin: 0 auto; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.builder-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.builder-side { position: sticky; top: 92px; display: grid; gap: 18px; }

.stage { position: relative; aspect-ratio: 1 / .82; border-radius: 30px; overflow: hidden; background: radial-gradient(80% 70% at 50% 35%, #fff6ec 0%, #fbe3dc 60%, #f3cfc7 100%); box-shadow: inset 0 0 0 1px rgba(127,29,62,.08), 0 30px 60px -36px rgba(79,16,41,.4); }
.stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(196,127,94,0), rgba(196,127,94,.16)); }
.stage-glow { position: absolute; left: 50%; top: 42%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 65%); }
.stage-photo { position: absolute; top: 7%; bottom: 7%; left: 50%; aspect-ratio: 3 / 4; transform: translateX(-50%) rotate(-2deg); }
.stage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 26px 44px -20px rgba(79,16,41,.55); opacity: 0; transform: scale(.96); transition: opacity .45s ease, transform .55s cubic-bezier(.2,1.3,.4,1); }
.stage-photo img.on { opacity: 1; transform: none; }
.stage-chips { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 3; }
.stage-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--berry-deep); font: 700 .82rem/1 "DM Sans", sans-serif; box-shadow: 0 6px 14px rgba(79,16,41,.15); }
.stage-chip[hidden] { display: none; }
.stage-chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.stage-chip--ribbon span { text-transform: capitalize; }
.stage-count { position: absolute; z-index: 3; left: 16px; top: 16px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 .9rem/1 var(--heavy); font-stretch: 112%; }
.stage-free { position: absolute; z-index: 3; left: 16px; top: 56px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff1d6; color: var(--berry-deep); font: 800 .8rem/1 var(--heavy); box-shadow: 0 6px 14px rgba(150,90,40,.2); animation: float 3s ease-in-out infinite; }
.stage-free .won-cookie { width: 22px; height: 22px; }
.stage-free[hidden] { display: none; }

.postcard { position: absolute; right: 4%; bottom: 9%; width: 36%; aspect-ratio: 6 / 4; perspective: 900px; cursor: pointer; transform: rotate(7deg); animation: cardIn .6s cubic-bezier(.2,1.4,.4,1); z-index: 2; }
.postcard[hidden] { display: none; }
@keyframes cardIn { from { transform: rotate(30deg) translate(40%, 30%); opacity: 0; } }
.postcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.9,.3,1.1); }
.postcard.flipped .postcard-inner { transform: rotateY(180deg); }
.postcard-face { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 26px rgba(79,16,41,.3); overflow: hidden; }
.postcard-front { display: grid; place-items: center; text-align: center; padding: 8%; }
.postcard-back { transform: rotateY(180deg); background: #fffdf8 repeating-linear-gradient(180deg, transparent 0 17px, rgba(127,29,62,.12) 17px 18px); padding: 9% 10% 8%; display: flex; flex-direction: column; justify-content: center; }
.pc-msg { margin: 0; font: 600 clamp(.8rem, 1.5vw, 1.05rem)/1.15 "Caveat", cursive; color: #2a1a4a; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pc-from { margin: 6px 0 0; font: 700 clamp(.75rem, 1.3vw, .95rem)/1 "Caveat", cursive; color: var(--berry); text-align: right; }
.pc-stamp { position: absolute; right: 7%; top: 9%; width: 16%; aspect-ratio: .85; display: grid; place-items: center; background: var(--berry); color: #fff; font: italic 700 .9rem/1 var(--script); outline: 2px dashed #fff; outline-offset: -4px; }
.design--holiday { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 1.5px, transparent 2px) 0 0 / 22px 22px, radial-gradient(circle at 70% 70%, rgba(255,255,255,.35) 0 1px, transparent 1.5px) 0 0 / 16px 16px, linear-gradient(160deg, #a3294f, #5a1430); color: #fff; font: 400 clamp(.9rem, 2vw, 1.4rem)/1 var(--brush); }
.design--babcia { background: radial-gradient(circle at 50% 50%, rgba(232,169,60,.35) 0 4px, transparent 5px) 0 0 / 26px 26px, #fff4e4; color: var(--berry); font: italic 700 clamp(.8rem, 1.7vw, 1.15rem)/1.05 var(--script); }
.design--simple { background: #fff; color: var(--ink); font: italic 500 clamp(.8rem, 1.6vw, 1.1rem)/1.1 var(--script); box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(127,29,62,.35); }

.summary { background: #fff; border-radius: 26px; padding: 22px 22px 18px; box-shadow: 0 0 0 1px rgba(127,29,62,.08), 0 24px 50px -34px rgba(79,16,41,.45); }
.summary h3 { font: 900 1.3rem/1 var(--heavy); font-stretch: 118%; margin-bottom: 12px; }
.summary-lines { list-style: none; margin: 0; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed rgba(127,29,62,.15); font-weight: 600; animation: lineIn .35s ease backwards; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } }
.summary-lines small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.summary-lines b { white-space: nowrap; }
.summary-lines li.free b { color: #2f8a4f; }
.summary-lines li.free span { color: var(--berry-deep); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 16px; }
.summary-total span { font-weight: 700; }
.summary-total small { color: var(--muted); font-weight: 500; }
.summary-total b { font: 900 2rem/1 var(--heavy); color: var(--berry); font-variant-numeric: tabular-nums; }
.summary-checkout { width: 100%; min-height: 58px; font-size: 1.1rem; }
.summary-note { margin: 10px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }

.steps { display: grid; gap: 16px; }
.step { margin: 0; border: 0; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(127,29,62,.08); min-width: 0; transition: box-shadow .2s; }
.step:focus-within { box-shadow: 0 0 0 2px rgba(179,38,74,.35), 0 18px 40px -30px rgba(79,16,41,.5); }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 900 1.25rem/1.1 var(--heavy); letter-spacing: -.015em; }
.step legend + * { clear: both; }
.step-num { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--berry); color: #fff; font: 800 .95rem/1 var(--heavy); }
.step-help { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.step-help:empty { display: none; }

.qty { display: flex; align-items: center; justify-content: center; gap: 14px; }
.qty-btn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: 700 1.6rem/1 "DM Sans", sans-serif; color: var(--ink); cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.qty-btn:hover { background: var(--ink); color: #fff; }
.qty-btn:active { transform: scale(.92); }
.qty-field { display: flex; flex-direction: column; align-items: center; }
.qty-field input { width: 3.6ch; border: 0; background: transparent; text-align: center; font: 900 clamp(2.8rem, 6vw, 3.8rem)/1 var(--heavy); color: var(--berry); -moz-appearance: textfield; padding: 0; }
.qty-field input::-webkit-outer-spin-button, .qty-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-field input:focus { outline: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.qty-field span { font: 600 .8rem/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin: 18px 0 14px; border-radius: 999px; background: linear-gradient(90deg, var(--berry-bright) var(--fill, 20%), #f1dcd6 var(--fill, 20%)); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dcae, #d39c56); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(79,16,41,.35); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dcae, #d39c56); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(79,16,41,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(31,16,20,.18); background: #fff; font: 700 .95rem/1 "DM Sans", sans-serif; color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip.active, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input, .tile input, .swatch input, .design input { position: absolute; opacity: 0; pointer-events: none; }
.chip--shape span { display: inline-flex; align-items: center; gap: 7px; }
.chip--shape svg { width: 18px; height: 18px; fill: #e2b878; stroke: #b98445; stroke-width: 1; }
.chip--shape .shape-detail { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; }
.chip:has(input:focus-visible), .tile:has(input:focus-visible), .swatch:has(input:focus-visible), .design:has(input:focus-visible) { outline: 3px solid rgba(179,38,74,.4); outline-offset: 2px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; cursor: pointer; }
.tile-body { display: grid; justify-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 20px; border: 2px solid rgba(31,16,20,.12); background: var(--art); text-align: center; transition: all .2s; }
.tile img { width: 100%; height: 120px; object-fit: contain; object-position: center; border-radius: 14px; margin-bottom: 8px; transition: transform .3s cubic-bezier(.2,1.5,.4,1); }
.tile--bag img { object-fit: cover; object-position: center 88%; }
.tile b { font: 900 1.05rem/1.1 var(--heavy); }
.tile small { color: var(--muted); font-size: .84rem; }
.tile:hover .tile-body { border-color: rgba(31,16,20,.35); }
.tile:has(input:checked) .tile-body { border-color: var(--berry-bright); background: #fff0ef; box-shadow: 0 0 0 4px rgba(179,38,74,.12); }
.tile:has(input:checked) img { transform: scale(1.08) rotate(-3deg); }
.tile:has(input:disabled) { cursor: not-allowed; }
.tile:has(input:disabled) .tile-body { opacity: .42; filter: grayscale(.55); background: #f4efec; border-style: dashed; }
.tile:has(input:disabled):hover .tile-body { border-color: rgba(31,16,20,.12); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row b { display: block; font-size: 1.02rem; }
.switch-row small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.switch { -webkit-appearance: none; appearance: none; flex: none; width: 58px; height: 34px; border-radius: 999px; background: #e6d6d2; position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.switch:checked { background: var(--berry-bright); }
.switch:checked::after { transform: translateX(24px); }
.switch:focus-visible { outline: 3px solid rgba(179,38,74,.4); outline-offset: 2px; }
.ribbons { display: flex; align-items: center; gap: 10px; margin-top: 16px; transition: opacity .2s; }
.ribbons.off { opacity: .45; }
.ribbons-label { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.swatch { position: relative; cursor: pointer; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); font-size: 0; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 3px rgba(31,16,20,.12); transition: transform .2s; }
.swatch:has(input:checked) span { transform: scale(1.12); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 3px #fff, 0 0 0 5px var(--c); }

.postcard-options { margin-top: 18px; display: grid; gap: 14px; }
.postcard-options[hidden] { display: none; }
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.design { position: relative; cursor: pointer; text-align: center; }
.design-thumb { display: grid; place-items: center; aspect-ratio: 6 / 4; border-radius: 10px; padding: 8px; font-size: .85rem !important; line-height: 1.05 !important; box-shadow: 0 0 0 2px rgba(31,16,20,.1); transition: transform .2s, box-shadow .2s; }
.design small { display: block; margin-top: 6px; font-weight: 700; font-size: .84rem; }
.design:has(input:checked) .design-thumb { box-shadow: 0 0 0 3px var(--berry-bright), 0 10px 20px -10px rgba(79,16,41,.5); transform: translateY(-3px) rotate(-1.5deg); }
.field textarea { resize: vertical; min-height: 92px; font-family: "DM Sans", sans-serif; }
.field i { float: right; font-style: normal; }

.builder-bar { display: none; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px); }
.faq h2 { text-align: center; font: 400 clamp(2.4rem, 5vw, 3.8rem)/1 var(--brush); color: var(--berry); margin-bottom: 32px; transform: rotate(-1.5deg); }
.faq details { border-bottom: 1.5px solid rgba(79,16,41,.14); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 800 1.15rem/1.3 var(--heavy); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--berry); font: 700 1.3rem/1 "DM Sans", sans-serif; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }

/* Closer + footer */
.closer { background: var(--berry); color: #fff; text-align: center; padding: clamp(64px, 9vw, 110px) 16px; display: grid; justify-items: center; gap: 28px; }
.brush--small { font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: .95; transform: rotate(-2deg); max-width: 12ch; }
.footer { background: var(--berry-deep); color: rgba(255,255,255,.85); text-align: center; padding: 48px 16px 40px; font-size: .95rem; }
.footer-mark { width: 240px; margin: 0 auto 16px; filter: brightness(0) invert(1); }
.footer p { margin: 6px 0; }
.footer .fine { opacity: .6; font-size: .85rem; margin-top: 18px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Tablet and phone */
@media (max-width: 960px) {
  .builder-grid { grid-template-columns: 1fr; max-width: 620px; }
  .builder-side { position: static; }
  .builder-side .stage { position: relative; }
  .builder-side { display: contents; }
  .stage { order: 0; }
  .steps { order: 1; }
  .summary { order: 2; }
  .builder-bar { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,1.2,.4,1); }
  .builder-bar.show { transform: none; }
  .builder-bar b { display: block; font: 900 1.3rem/1 var(--heavy); }
  .builder-bar small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 3px; }
  .builder-bar .pill { min-height: 46px; padding: 0 22px; }
  .intro { grid-template-columns: 1fr; padding-top: 24px; }
  .intro-copy { text-align: center; }
  .intro-brand { transform-origin: center; }
  .intro-lede { margin-left: auto; margin-right: auto; }
  .intro-actions { justify-content: center; }
  .game { aspect-ratio: 4 / 4.6; max-width: 620px; width: 100%; margin: 0 auto; }
  .row, .row--flip { grid-template-columns: 1fr; max-width: 560px; }
  .row--flip .row-media { order: 0; }
  .feature { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature h3 { padding-right: 0; }
  .feature-note { justify-content: center; text-align: left; }
}
@media (max-width: 760px) {
  .stage { aspect-ratio: 1 / .7; border-radius: 22px; }
  .builder { padding-bottom: 110px; }
  .step { padding: 18px 16px; }
  .postcard { width: 34%; right: 4%; bottom: 6%; }
  .topbar { height: 64px; }
  .topbar-menu { display: block; }
  .topbar-nav { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--cream); border-bottom: 1px solid rgba(79,16,41,.1); box-shadow: 0 20px 30px rgba(0,0,0,.08); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .topbar-nav.open { transform: none; visibility: visible; }
  .topbar-nav a { width: 100%; padding: 16px 4px; border-bottom: 1px solid rgba(79,16,41,.08); font-size: 1.05rem; }
  .topbar-nav .topbar-order { margin-top: 12px; text-align: center; border: 0; padding: 16px; }
  html { scroll-padding-top: 70px; }
  body { font-size: 16px; }
  .intro h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .game { border-radius: 26px; aspect-ratio: 4 / 5.4; box-shadow: 0 40px 70px -40px rgba(79,16,41,.75), 0 0 0 6px rgba(255,255,255,.55); }
  .game-panel { padding: 20px 16px 14px; }
  .game-hud { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .hud-score, .hud-goal, .hud-timer { height: 44px; }
  .hud-score { padding: 0 12px 0 9px; } .hud-score b { font-size: 1.3rem; }
  .hud-goal { padding: 0 12px; gap: 8px; grid-template-columns: 1fr auto; }
  .hud-goal-label { display: none; }
  .hud-timer { width: 44px; } .hud-timer svg { inset: 2px; width: 40px; height: 40px; }
  .mode { min-height: 78px; padding: 12px 6px 14px; border-radius: 18px; }
  .mode-name { font-size: 1.12rem; white-space: nowrap; }
    .modes { gap: 10px; }
  .legend li { font-size: .82rem; padding: 5px 10px 5px 6px; }
  .banner { min-height: 82vh; }
  .row-media { --h: 320px; }
  .row-copy { text-align: left; }
  .feature-seal { width: 70px; top: 12px; right: 12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { padding: 14px 12px 20px; border-radius: 22px; }
  .card h3 { font-size: 1.2rem; }
  .card-btn { font-size: .82rem; padding: 10px 13px; }
  .card p:not(.card-price) { font-size: .88rem; }
}
@media (max-width: 330px) { .cards { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Builder: whole thing fits one screen on desktop */
@media (max-width: 960px) {
  .builder-main { display: contents; }
  .qty-row .chips { margin-top: 14px; justify-content: center; }
  .builder-head { order: -1; margin-bottom: 8px; }
}
@media (min-width: 961px) {
  .builder { padding: 20px clamp(16px, 3vw, 40px); background: linear-gradient(180deg, #fff, var(--cream)); }
  .builder-grid { max-width: 1240px; height: calc(100vh - 112px); min-height: 600px; max-height: 860px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
  .builder-side { position: static; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
  .stage { flex: 1; aspect-ratio: auto; min-height: 0; }
  .stage-photo { top: 6%; bottom: 6%; }
  .summary { padding: 16px 18px 14px; border-radius: 22px; }
  .summary h3 { display: none; }
  .summary-lines li { padding: 5px 0; font-size: .92rem; }
  .summary-lines small { display: inline; margin-left: 6px; font-size: .8rem; }
  .summary-total { padding: 10px 0 12px; }
  .summary-total b { font-size: 1.7rem; }
  .summary-checkout { min-height: 52px; }
  .summary-note { margin-top: 8px; font-size: .78rem; }

  .builder-main { display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 26px; box-shadow: 0 0 0 1px rgba(127,29,62,.08), 0 24px 50px -36px rgba(79,16,41,.4); padding: 18px 24px 8px; overflow: auto; scrollbar-width: thin; }
  .builder-head { margin: 0 0 4px; text-align: left; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .builder-head .tag { font-size: .8rem; padding: 6px 10px; }
  .builder-head h2 { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
  .builder-head p { display: none; }
  .steps { gap: 0; }
  .step { padding: 12px 0; border-radius: 0; box-shadow: none; background: none; border-top: 1px solid rgba(127,29,62,.1); }
  .step:first-child { border-top: 0; }
  .step:focus-within { box-shadow: none; }
  .step legend { margin-bottom: 8px; font-size: 1rem; gap: 9px; }
  .step-num { width: 24px; height: 24px; font-size: .78rem; }
  .step-help { margin-top: 6px; font-size: .84rem; }
  .step-help--shapes { display: none; }

  .qty-row { display: flex; align-items: center; gap: 18px; }
  .qty { justify-content: flex-start; gap: 8px; flex: none; }
  .qty-row .chips { margin: 0; gap: 6px; }
  .qty-btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .qty-field input { font-size: 2.4rem; width: 3.2ch; }
  .qty-field span { font-size: .68rem; }
  .range { margin: 10px 0 0; height: 8px; display: block; }
  .chip { min-height: 34px; padding: 0 13px; font-size: .88rem; }

  .tiles { gap: 10px; }
  .tile-body { grid-template-columns: 50px 1fr; grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 12px 8px 8px; border-radius: 16px; text-align: left; }
  .tile img { grid-row: span 2; width: 50px; height: 50px; margin: 0; border-radius: 12px; }
  .tile b { font-size: .98rem; align-self: end; }
  .tile small { align-self: start; font-size: .8rem; }

  .switch-row b { font-size: .95rem; }
  .switch-row small { font-size: .8rem; }
  .gift-row { display: flex; align-items: center; gap: 20px; }
  .gift-row .switch-row { flex: 1; }
  .gift-row .ribbons { margin: 0; order: -1; }
  .gift-row .ribbons-label { display: none; }
  .switch { width: 50px; height: 30px; }
  .switch::after { width: 22px; height: 22px; }
  .switch:checked::after { transform: translateX(20px); }
  .swatch span { width: 28px; height: 28px; }

  .postcard-options { margin-top: 10px; gap: 8px; grid-template-columns: 1.7fr 1fr; align-items: end; }
  .postcard-options .field--from span { visibility: hidden; }
  .designs { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .design-thumb { aspect-ratio: auto; height: 44px; font-size: .72rem !important; padding: 4px 6px; }
  .design small { display: none; }
  .postcard-options textarea { min-height: 52px; height: 52px; }
  .postcard-options .field input, .postcard-options .field textarea { min-height: 40px; padding: 8px 12px; font-size: 15px; }
}
@media (min-width: 961px) and (max-height: 880px) {
  .builder-head .tag { display: none; }
  .builder-main { padding-top: 14px; }
  .step { padding: 8px 0; }
  .step legend { margin-bottom: 6px; }
  .switch-row small { display: none; }
  .design-thumb { height: 34px; }
  .postcard-options { margin-top: 8px; }
  .postcard-options textarea { min-height: 44px !important; height: 44px; }
  .summary-note { display: none; }
  .summary-lines li { padding: 3px 0; }
  #qty-help { display: none; }
  .range { margin-top: 8px; }
}

/* ============ Cart ============ */
.topbar-nav { margin-left: auto; }
.topbar-cart { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 13px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font: 600 .98rem/1 var(--round); letter-spacing: .06em; text-transform: uppercase; flex: none; transition: background .15s, color .15s; }
.topbar-cart:hover { background: var(--ink); color: #fff; }
.topbar-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.topbar-cart b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgba(31,16,20,.1); font: 800 .78rem/1 var(--heavy); letter-spacing: 0; }
.topbar-cart.has-items b { background: var(--berry); color: #fff; }

.cart { position: relative; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); background: radial-gradient(1200px 500px at 85% -10%, #ffe6ec 0, transparent 60%), linear-gradient(180deg, #fff 0, var(--cream) 100%); scroll-margin-top: 72px; }
.cart-inner { max-width: 1120px; margin: 0 auto; }
.cart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px); }
.cart-kicker { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #ffe3ea; color: var(--berry); font: 800 .74rem/1 var(--heavy); letter-spacing: .14em; text-transform: uppercase; }
.cart-head h2 { margin: 12px 0 0; font: 900 clamp(2.6rem, 6vw, 4.4rem)/.95 var(--heavy); font-stretch: 125%; letter-spacing: -.04em; }
.cart-head h2 em { font: italic 600 1em/1 var(--script); font-stretch: normal; letter-spacing: -.01em; color: var(--berry-bright); }
.cart-more { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.cart-more span { font-size: 1.3rem; line-height: 1; }
.cart-more:hover { background: var(--ink); color: #fff; }
.cart--empty .cart-more { display: none; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.cart-item { display: grid; grid-template-columns: 128px 1fr; gap: clamp(14px, 2vw, 22px); padding: 16px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(127,29,62,.07), 0 26px 50px -34px rgba(79,16,41,.45); animation: lineIn .4s ease backwards; }
.cart-item-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--cream); transform: rotate(-2deg); box-shadow: 0 0 0 5px #fff, 0 14px 26px -14px rgba(79,16,41,.6); margin: 6px 4px; }
.cart-item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-body { display: flex; flex-direction: column; min-width: 0; padding: 4px 4px 2px 0; }
.cart-item-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.cart-item-top h3 { margin: 0; font: 900 clamp(1.35rem, 2.2vw, 1.7rem)/1.05 var(--heavy); font-stretch: 118%; letter-spacing: -.02em; }
.cart-item-top p { margin: 5px 0 0; color: var(--muted); font-size: .95rem; }
.cart-item-price { font: 900 clamp(1.25rem, 2vw, 1.5rem)/1.05 var(--heavy); color: var(--berry); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cart-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(127,29,62,.12); font: 700 .84rem/1 var(--round); color: var(--berry-deep); }
.cart-tag svg { width: 17px; height: 17px; fill: var(--berry-bright); stroke: none; }
.cart-tag--wrap { background: #fff1d6; }
.cart-tag--wrap::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e0a93a; margin-left: 2px; }
.cart-item-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: auto; padding-top: 16px; }
.cart-stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(31,16,20,.14); padding: 4px; }
.cart-stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(79,16,41,.12); font: 700 1.2rem/1 "DM Sans", sans-serif; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.cart-stepper button:hover { background: var(--ink); color: #fff; }
.cart-stepper button:active { transform: scale(.9); }
.cart-stepper b { min-width: 30px; text-align: center; font: 900 1.05rem/1 var(--heavy); }
.cart-wrap { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.cart-wrap small { color: var(--muted); font-weight: 500; }
.switch--sm { width: 44px; height: 26px; }
.switch--sm::after { top: 3px; left: 3px; width: 20px; height: 20px; }
.switch--sm:checked::after { transform: translateX(18px); }
.cart-item-links { display: inline-flex; gap: 16px; margin-left: auto; }
.cart-link { border: 0; background: none; padding: 6px 0; font: 600 .92rem "DM Sans", sans-serif; color: var(--berry); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }
.cart-link--remove { color: var(--muted); }
.cart-link:hover { color: var(--berry-bright); }

.cart-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 24px 44px; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 0 0 1px rgba(127,29,62,.07); }
.cart-empty img { width: 150px; height: auto; margin-bottom: 4px; }
.cart-empty h3 { margin: 0; font: 900 1.5rem/1.1 var(--heavy); font-stretch: 118%; }
.cart-empty p { margin: 0 0 14px; color: var(--muted); max-width: 30ch; }

.order-card { position: sticky; top: 92px; border-radius: 28px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(127,29,62,.08), 0 30px 60px -36px rgba(79,16,41,.55); }
.order-card-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px; background: var(--berry); color: #fff; background-image: radial-gradient(circle at 92% -20%, rgba(255,255,255,.18), transparent 50%); }
.order-card-head span { font: 900 1.15rem/1 var(--heavy); font-stretch: 118%; letter-spacing: -.01em; }
.order-card-head small { color: rgba(255,255,255,.75); font-weight: 600; }
.order-card-body { padding: 16px 22px 20px; }
.order-card .summary-lines li { padding: 10px 0; }
.order-pickup { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; margin: 16px 0 4px; padding: 14px; border-radius: 18px; background: #fff7ee; box-shadow: inset 0 0 0 1px rgba(127,29,62,.08); }
.order-pickup svg, .pay-pickup svg { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #ffe3ea; fill: none; stroke: var(--berry); stroke-width: 2; stroke-linejoin: round; }
.order-pickup b, .pay-pickup b { display: block; font-size: .98rem; }
.order-pickup small, .pay-pickup small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 2px; }
.order-card .summary-total { padding: 18px 0 16px; }
.order-pay { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 26px; border: 0; border-radius: 999px; background: var(--berry); color: #fff; font: 700 1.1rem/1 "DM Sans", sans-serif; cursor: pointer; box-shadow: 0 14px 28px -12px rgba(127,29,62,.7); transition: transform .15s, box-shadow .15s, background .15s; }
.order-pay b { padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.16); font: 800 1rem/1 var(--heavy); font-variant-numeric: tabular-nums; }
.order-pay b:empty { display: none; }
.order-pay:hover:not(:disabled) { background: var(--berry-bright); transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(127,29,62,.75); }
.order-pay:active:not(:disabled) { transform: translateY(1px); }
.order-pay:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.order-pay.busy span::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.order-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: .84rem; text-align: center; }
.order-secure svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.cart-status { min-height: 1.2em; margin: 10px 0 0; font-size: .92rem; color: var(--berry-bright); text-align: center; }
.cart-status:empty { display: none; }

.cart-result { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding: 18px 20px; border-radius: 22px; background: #fff1d6; box-shadow: 0 0 0 1px rgba(127,29,62,.1); animation: lineIn .4s ease; }
.cart-result h3 { margin: 0 0 4px; font: 900 1.25rem/1.2 var(--heavy); color: var(--berry-deep); }
.cart-result p { margin: 0; color: var(--muted); }
.cart-result-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1f7a47; color: #fff; font: 900 1.1rem/1 var(--heavy); }
.cart-result--done { background: #e7f4ea; box-shadow: 0 0 0 1px rgba(31,122,71,.22); }
.cart-result--done h3 { color: #1f5f3a; }
.cart-result--failed { background: #ffe9ec; }
.cart-result[hidden] { display: none; }

/* ============ Payment screen ============ */
html.pay-open { overflow: hidden; }
.pay { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(31,16,20,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.pay.in { opacity: 1; }
.pay[hidden] { display: none; }
.pay-sheet { width: min(1040px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--cream); box-shadow: -30px 0 80px rgba(31,16,20,.25); transform: translateX(40px); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
.pay.in .pay-sheet { transform: none; }
.pay-top { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 68px; padding: 0 clamp(16px, 3vw, 32px); background: rgba(255,247,238,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(79,16,41,.08); }
.pay-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 4px; font: 700 .95rem "DM Sans", sans-serif; color: var(--ink); cursor: pointer; }
.pay-back svg, .pay-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pay-logo { width: clamp(150px, 18vw, 210px); height: auto; }
.pay-lock { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: #1f7a47; font: 700 .85rem "DM Sans", sans-serif; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 48px; align-items: start; }
.pay-summary { order: 2; position: sticky; top: 92px; border-radius: 26px; background: #fff; padding: 20px; box-shadow: 0 0 0 1px rgba(127,29,62,.07), 0 26px 50px -36px rgba(79,16,41,.5); }
.pay-summary-toggle { display: none; }
.pay-items { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; }
.pay-items li { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; }
.pay-thumb { position: relative; width: 58px; height: 72px; border-radius: 12px; overflow: visible; }
.pay-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 3px #fff, 0 8px 16px -8px rgba(79,16,41,.5); }
.pay-thumb i { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--berry); color: #fff; font: 800 .75rem/22px var(--heavy); font-style: normal; text-align: center; }
.pay-thumb i:empty { display: none; }
.pay-item-text b { display: block; font: 900 1.02rem/1.2 var(--heavy); font-stretch: 112%; }
.pay-item-text small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 2px; }
.pay-item-price { font: 800 1rem/1 var(--heavy); color: var(--berry); white-space: nowrap; }
.pay-summary .summary-lines { border-top: 1px solid rgba(127,29,62,.1); margin-top: 14px; padding-top: 6px; }
.pay-summary .summary-total { padding-bottom: 2px; }
.pay-form { order: 1; min-width: 0; }
.pay-form h2 { margin: 4px 0 18px; font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--heavy); font-stretch: 125%; letter-spacing: -.035em; }
.pay-step { margin-bottom: 14px; padding: 20px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(127,29,62,.07); }
.pay-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 900 1.1rem/1 var(--heavy); font-stretch: 112%; }
.pay-step h3 span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--berry); color: #fff; font: 800 .85rem/1 var(--heavy); font-stretch: normal; }
.pay-step .field { margin-bottom: 12px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-hint { margin: 0; color: var(--muted); font-size: .84rem; }
.pay-pickup { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: #fff7ee; box-shadow: inset 0 0 0 2px var(--berry); }
.pay-free { padding: 7px 12px; border-radius: 999px; background: #e7f4ea; color: #1f5f3a; font: 800 .82rem/1 var(--heavy); }
.pay-element { min-height: 120px; }
.pay-loading { margin: 0; padding: 32px 0; text-align: center; color: var(--muted); }
.pay-submit { margin-top: 6px; min-height: 64px; font-size: 1.15rem; }

@media (max-width: 960px) {
  .cart-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .pay-sheet { width: 100%; }
  .pay-grid { grid-template-columns: 1fr; padding-top: 14px; }
  .pay-summary { order: 0; position: static; padding: 0; overflow: hidden; }
  .pay-summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 18px; border: 0; background: #fff; font: 700 .98rem "DM Sans", sans-serif; color: var(--berry); cursor: pointer; }
  .pay-summary-toggle span::after { content: "▾"; margin-left: 8px; display: inline-block; transition: transform .2s; }
  .pay-summary-toggle[aria-expanded="true"] span::after { transform: rotate(180deg); }
  .pay-summary-toggle b { font: 900 1.15rem/1 var(--heavy); color: var(--ink); }
  .pay-summary-body { display: none; padding: 4px 18px 18px; }
  .pay-summary.open .pay-summary-body { display: block; }
}
@media (max-width: 760px) {
  .topbar-cart { margin-left: auto; height: 42px; padding: 0 12px 0 10px; }
  .topbar-cart-label { display: none; }
  .topbar { gap: 10px; }
  .cart { scroll-margin-top: 64px; }
  .cart-head { align-items: flex-start; }
  .cart-more { min-height: 40px; padding: 0 14px; font-size: .92rem; }
  .cart-item { grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; border-radius: 24px; }
  .cart-item-photo { margin: 4px 2px; border-radius: 14px; }
  .cart-item-controls { gap: 12px 14px; padding-top: 12px; }
  .cart-item-links { margin-left: 0; }
  .cart-item-top h3 { font-size: 1.22rem; white-space: nowrap; }
  .cart-item-price { font-size: 1.1rem; }
  .cart-item-top p { font-size: .88rem; }
  .order-card-body { padding: 14px 18px 18px; }
  .pay-top { grid-template-columns: auto 1fr auto; height: 60px; }
  .pay-logo { width: 140px; justify-self: center; }
  .pay-lock { font-size: 0; gap: 0; }
  .pay-row { grid-template-columns: 1fr; gap: 0; }
  .pay-step { padding: 16px; border-radius: 20px; }
}
