/* Product Playables runtime: phone-first, tactile, fast. */
:root {
  --paper: #f5f3ee;
  --surface: #ffffff;
  --ink: #17160f;
  --ink-2: #3a3830;
  --muted: #6d695f;
  --line: #e3dfd5;
  --accent: #136f50;
  --on-accent: #ffffff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.stage { position: relative; min-height: 100%; min-height: 100dvh; max-width: 460px; margin: 0 auto; overflow-x: hidden; }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 100%;
  padding: max(22px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px));
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
}
.screen.is-in { opacity: 1; transform: none; position: relative; }
.screen.is-out { opacity: 0; transform: translateX(calc(var(--dir, 1) * -28px)); pointer-events: none; }
.screen-inner { flex: 1; display: flex; flex-direction: column; gap: 16px; }

.h1 { font: 700 28px/1.12 var(--display); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.lead { margin: 0; color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }
.meta { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.top { display: flex; align-items: center; gap: 12px; min-height: 40px; }

/* Buttons */
.primary, .ghost, .option, .cta { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-decoration: none; user-select: none; }
.primary {
  height: 56px; padding: 0 28px; border-radius: 18px; width: 100%;
  background: var(--ink); color: #fbfaf6; font-weight: 650; font-size: 17px; letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px -12px rgba(23,22,15,.55);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), opacity 160ms;
}
.primary:active { transform: scale(0.97); box-shadow: 0 4px 10px -6px rgba(23,22,15,.5); }
.primary[disabled] { opacity: .55; }
.ghost { background: transparent; color: var(--ink-2); font-weight: 560; padding: 10px 12px; border-radius: 12px; min-height: 44px; transition: background 140ms var(--ease), transform 140ms var(--ease); }
.ghost:active { background: rgba(23,22,15,.06); transform: scale(0.97); }
.actions { display: grid; gap: 6px; margin-top: auto; padding-top: 8px; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; border-radius: 16px; background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, #000);
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}
.cta:active { transform: scale(0.97); filter: brightness(0.95); }
.cta-arrow { transition: transform 260ms var(--spring); }
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta.is-disabled { background: #e7e3da; color: var(--muted); box-shadow: none; cursor: default; }

/* Cards & media */
.card { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 0 rgba(23,22,15,.04), 0 18px 40px -24px rgba(23,22,15,.35); border: 1px solid var(--line); }
.media { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #ece8df; }
.media-empty { background: repeating-linear-gradient(135deg, #ece8df 0 10px, #e5e0d5 10px 20px); }
.product { animation: pop 520ms var(--spring) both; }
.product-body { padding: 18px; display: grid; gap: 12px; }
.product h2 { margin: 0; font: 680 21px/1.2 var(--display); letter-spacing: -0.02em; }
.note { margin: 0; color: var(--ink-2); font-size: 15px; }
.msg { padding: 24px; display: grid; gap: 10px; margin-top: 20vh; }
.msg h1 { font-size: 22px; margin: 0; }
.msg p { margin: 0; color: var(--muted); }

/* Quiz */
.hero { display: grid; gap: 12px; margin-top: 4vh; }
.stack-art { position: relative; height: 170px; margin-bottom: 8px; }
.stack-img { position: absolute; top: 0; width: 132px; height: 160px; object-fit: cover; border-radius: 20px; background: #ece8df; border: 4px solid var(--surface); box-shadow: 0 16px 30px -18px rgba(23,22,15,.6); animation: deal 700ms var(--spring) both; }
.stack-img:nth-child(1) { left: 6%; transform: rotate(-8deg); animation-delay: 60ms; }
.stack-img:nth-child(2) { left: 33%; z-index: 2; transform: translateY(-6px); animation-delay: 140ms; }
.stack-img:nth-child(3) { left: 60%; transform: rotate(8deg); animation-delay: 220ms; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: #e2ddd2; transition: background 300ms var(--ease); }
.progress i.on { background: var(--accent); }
.q-text { margin-top: 2vh; }
.options { display: grid; gap: 10px; margin-top: 6px; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 14px 18px; border-radius: 18px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); font-size: 16.5px; font-weight: 560;
  box-shadow: 0 1px 0 rgba(23,22,15,.03), 0 6px 14px -10px rgba(23,22,15,.3);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
  animation: rise 420ms var(--ease) both; animation-delay: calc(var(--i) * 50ms);
}
.option:active { transform: scale(0.98); }
.option-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc9bb; transition: all 220ms var(--spring); }
.option.is-picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.option.is-picked .option-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); transform: scale(1.12); }

/* All picks */
.picks { display: grid; gap: 12px; }
.pick { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.pick-media { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: #ece8df; }
.pick-body { flex: 1; display: grid; gap: 8px; min-width: 0; }
.pick-body h3 { margin: 0; font-size: 15.5px; font-weight: 620; }
.pick .cta { height: 42px; font-size: 14.5px; border-radius: 12px; }

/* Spin */
.wheel-wrap { position: relative; width: min(82vw, 330px); aspect-ratio: 1; margin: 6px auto 0; }
.wheel { width: 100%; height: 100%; filter: drop-shadow(0 18px 26px rgba(23,22,15,.28)); }
.wheel-rot { transform-origin: 0 0; transform-box: view-box; transition: transform 4.2s cubic-bezier(0.12, 0.75, 0.08, 1); }
.wheel-num { font: 700 15px var(--display); }
.wheel-hub { fill: var(--surface); stroke: #e3dfd5; stroke-width: 2; }
.pointer { position: absolute; top: -6px; left: 50%; z-index: 2; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--ink); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.reveal { display: grid; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity 360ms var(--ease), transform 480ms var(--spring); }
.reveal:empty { display: none; }
.reveal.is-on { opacity: 1; transform: none; }
.in-wheel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.in-wheel summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.in-wheel ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.in-wheel li { padding-left: 4px; }
.in-wheel li > span { display: block; font-weight: 560; margin-bottom: 6px; }
.in-wheel .cta { height: 40px; font-size: 14px; border-radius: 12px; }

/* Colour switcher */
.cs-frame { position: relative; aspect-ratio: 1 / 1; background: #ece8df; touch-action: pan-y; }
.cs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 380ms var(--ease), transform 600ms var(--ease); }
.cs-img.is-front { opacity: 1; transform: none; }
.cs-name { margin: -6px 0 0; color: var(--muted); font-weight: 560; min-height: 1.4em; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 4px; border-radius: 50%; cursor: pointer; transition: transform 220ms var(--spring); }
.swatch:active { transform: scale(0.9); }
.swatch-dot { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow 220ms var(--ease), transform 260ms var(--spring); }
.swatch[aria-checked='true'] .swatch-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); transform: scale(1.06); }

/* Disclosure: always visible on every screen */
.disclosure { margin-top: 18px; padding-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.ad-tag { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border: 1px solid #cfc9bb; border-radius: 6px; padding: 1px 6px; margin-top: 1px; }
.noscript { padding: 24px; }

.rt-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px); max-width: 90vw; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease), transform 300ms var(--spring); z-index: 10; text-align: center; }
.rt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes deal { from { opacity: 0; transform: translateY(30px) rotate(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ── v2 additions: built-in art, games, overlays, HUD ── */
.art { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 7%, #f3efe7); }
.art-svg { width: 78%; height: 78%; }
.media.art { aspect-ratio: 1 / 1; }
.pick-media.art, .stack-img.art { display: grid; }
.stack-img.art .art-svg, .pick-media.art .art-svg { width: 84%; height: 84%; }
.cs-img.art { display: grid; }

body { color: var(--on-paper, var(--ink)); }
.stage.is-game { max-width: none; height: 100dvh; min-height: 100dvh; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: var(--paper); }
.game-canvas { position: absolute; inset: 0; display: block; }
.hud { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; z-index: 3; }
.hud-pill { min-width: 56px; padding: 7px 12px; border-radius: 999px; background: rgba(23,22,15,.78); color: #f5f3ee; font: 650 15px/1 var(--display); font-variant-numeric: tabular-nums; text-align: center; backdrop-filter: blur(6px); }
.hud-pill:empty, .hud-pill:has(span:empty) { visibility: hidden; }
.overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(23,22,15,.28); opacity: 0; transition: opacity 260ms var(--ease); }
.overlay.is-in { opacity: 1; }
.overlay-card { width: min(340px, 100%); background: var(--surface); color: var(--ink); border-radius: 24px; padding: 24px; text-align: center; display: grid; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: translateY(14px) scale(.97); transition: transform 420ms var(--spring); }
.overlay.is-in .overlay-card { transform: none; }
.overlay-card h2 { margin: 0; font: 700 24px/1.15 var(--display); letter-spacing: -0.02em; }
.overlay-card p { margin: 0; color: var(--muted); }
.overlay-actions { display: grid; gap: 6px; margin-top: 8px; }
.overlay.is-intro { background: rgba(23,22,15,.18); }
.cta-end { width: 100%; }
.demo-badge { position: fixed; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; padding: 4px 9px; border-radius: 999px; background: rgba(23,22,15,.72); color: #f5f3ee; font: 600 11px/1.3 var(--font); pointer-events: none; }

/* ── v3: vivid studio finish (rich colour, depth, motion) ── */
:root {
  --paper: #fffaf3;
  --ink: #101425;
  --ink-2: #2d3348;
  --muted: #5e6479;
  --line: #e7e3ee;
  --accent: #ff5a36;
  --pop-1: #ffc531; --pop-2: #12c27e; --pop-3: #2f6bff; --pop-4: #ff4f8b; --pop-5: #18c5d8;
}
body:not(:has(.stage.is-game)) {
  background:
    radial-gradient(120% 55% at 100% -8%, color-mix(in srgb, var(--accent) 26%, transparent) 0, transparent 60%),
    radial-gradient(90% 45% at -10% 18%, color-mix(in srgb, var(--pop-1) 24%, transparent) 0, transparent 62%),
    var(--paper);
  background-attachment: fixed;
}
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.eyebrow { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); font-size: 11.5px; }

/* Buttons */
.primary { background: linear-gradient(180deg, #23283d, var(--ink)); border-radius: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 26px -14px rgba(16,20,37,.75); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 88%, #000));
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 14px 26px -12px color-mix(in srgb, var(--accent) 85%, #000);
  font-weight: 750;
}
.cta::after { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); animation: shine 3.2s var(--ease) infinite 1s; }
.cta.is-disabled::after { display: none; }

/* Cards */
.card { border: 0; border-radius: 26px; box-shadow: 0 0 0 1px rgba(16,20,37,.06), 0 2px 4px rgba(16,20,37,.04), 0 24px 48px -26px rgba(16,20,37,.45); }
.product { animation: pop 560ms var(--spring) both; }
.product-body h2, .product h2 { font-weight: 780; }

/* Built-in art becomes a scene: tinted gradient, shapes, soft floor shadow */
.art {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 55% at 50% 58%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, #fff) 0%, color-mix(in srgb, var(--pop-1) 26%, #fff) 100%);
}
.art::before, .art::after { content: ''; position: absolute; z-index: -1; border-radius: 30%; }
.art::before { width: 46%; aspect-ratio: 1; right: -10%; top: -12%; background: color-mix(in srgb, var(--accent) 40%, transparent); transform: rotate(18deg); }
.art::after { width: 30%; aspect-ratio: 1; left: -6%; bottom: 8%; border-radius: 50%; background: color-mix(in srgb, var(--pop-3) 18%, transparent); }
.art-svg { filter: drop-shadow(0 14px 14px rgba(16,20,37,.22)); animation: float 4.5s ease-in-out infinite; }
.pick-media.art .art-svg, .stack-img.art .art-svg { animation: none; }
.media-empty { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--pop-3) 14%, #fff)); }

/* Quiz & options */
.progress i { height: 6px; background: rgba(16,20,37,.09); }
.progress i.on { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--pop-1))); }
.option { border: 0; box-shadow: 0 0 0 1.5px rgba(16,20,37,.08), 0 8px 18px -12px rgba(16,20,37,.4); font-weight: 620; }
.option:hover { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent), 0 12px 22px -12px rgba(16,20,37,.45); transform: translateY(-1px); }
.option.is-picked { box-shadow: 0 0 0 2.5px var(--accent), 0 14px 26px -14px color-mix(in srgb, var(--accent) 80%, #000); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.option.is-picked .option-dot { animation: pulse 520ms var(--spring); }
.pick { border: 0; box-shadow: 0 0 0 1px rgba(16,20,37,.06), 0 12px 24px -18px rgba(16,20,37,.5); border-radius: 20px; animation: rise 420ms var(--ease) both; }
.pick:nth-child(2) { animation-delay: 60ms; } .pick:nth-child(3) { animation-delay: 120ms; } .pick:nth-child(4) { animation-delay: 180ms; }

/* Swatches */
.swatch-dot { width: 40px; height: 40px; box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), inset 0 3px 6px rgba(255,255,255,.35), 0 4px 10px -4px rgba(0,0,0,.35); }
.swatch[aria-checked='true'] .swatch-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--sw), 0 8px 16px -6px var(--sw); transform: scale(1.1); }
.cs-frame { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #fff), #fff); }
.cs-name { color: var(--ink); font-weight: 700; }

/* Spin wheel */
.wheel { filter: drop-shadow(0 22px 30px rgba(16,20,37,.35)); }
.pointer { border-top-color: var(--accent); }

/* Disclosure */
.ad-tag { border-color: color-mix(in srgb, var(--accent) 40%, #ccc); color: color-mix(in srgb, var(--accent) 70%, #000); background: #fff; }

/* Games: HUD */
.hud-pill { display: inline-flex; align-items: center; gap: 7px; min-width: 64px; padding: 7px 12px 7px 8px; background: rgba(12,15,28,.72); color: #fff; font: 800 16px/1 ui-rounded, 'SF Pro Rounded', var(--display); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 8px 18px -10px rgba(0,0,0,.6); position: relative; overflow: hidden; }
.hud-pill[hidden] { display: none; }
.hud-ico { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.hud-ico-star { background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc531 45%, #e8930c); box-shadow: 0 0 0 2px rgba(255,197,49,.25); }
.hud-ico-star::before { content: ''; width: 9px; height: 9px; background: #fff; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); opacity: .9; }
.hud-ico-clock { background: #18c5d8; box-shadow: 0 0 0 2px rgba(24,197,216,.25); }
.hud-ico-clock::before { content: ''; width: 2px; height: 7px; background: #fff; border-radius: 2px; transform: translateY(-2px); box-shadow: 2px 3px 0 -0.5px #fff; }
.hud-track { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.hud-bar { display: block; height: 100%; background: linear-gradient(90deg, #12c27e, #ffc531); transform-origin: left; transition: transform 120ms linear; }
.hud-pill-time.is-low .hud-ico-clock { background: #ff4d4f; animation: pulse 600ms ease-in-out infinite; }
.hud-pill-time.is-low .hud-bar { background: #ff4d4f; }
.hud-pill.bump { animation: bump 380ms var(--spring); }

/* Games: overlay cards */
.overlay { background: radial-gradient(80% 60% at 50% 45%, rgba(12,15,28,.18), rgba(12,15,28,.55)); }
.overlay.is-intro { background: radial-gradient(80% 60% at 50% 45%, rgba(12,15,28,.06), rgba(12,15,28,.42)); }
.overlay-card { border-radius: 28px; padding: 26px 22px 20px; gap: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 40px 70px -24px rgba(0,0,0,.6); }
.overlay-card h2 { font-size: 26px; font-weight: 850; letter-spacing: -0.03em; }
.ov-badge { width: 76px; height: 76px; margin: -62px auto 2px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); box-shadow: 0 0 0 5px #fff, 0 16px 26px -10px color-mix(in srgb, var(--accent) 90%, #000); }
.ov-hand { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: tapHint 1.4s var(--ease) infinite; }
.play-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 86%, #000)); color: var(--on-accent); font-size: 18px; font-weight: 800; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -3px 0 rgba(0,0,0,.14) inset, 0 16px 28px -12px color-mix(in srgb, var(--accent) 85%, #000); }
.play-btn:hover { transform: translateY(-1px); }
.play-tri { width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ov-score { display: grid; justify-items: center; gap: 2px; padding: 14px 12px; margin: -4px 0 2px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, #ffc531 22%, #fff)); }
.ov-score-label { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 70%, #000); }
.ov-score-num { font: 900 54px/1 ui-rounded, 'SF Pro Rounded', var(--display); letter-spacing: -0.04em; color: var(--ink); animation: countIn 600ms var(--spring) both; }
.ov-best { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* DOM confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px; background: var(--c); animation: confetti var(--t) cubic-bezier(.2,.6,.4,1) var(--d) forwards; }

@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes tapHint { 0% { transform: scale(.85); box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 60% { transform: scale(1); box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { transform: scale(.85); box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes countIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .cta::after, .art-svg, .play-btn, .ov-hand { animation: none !important; } }

/* ── v3 product templates ── */
/* Shared pieces for the ten product playables (quiz, colour, outfit, bundle, room, beauty, gift, before/after, explorer, spin). */
.screen { --tint: color-mix(in srgb, var(--accent) 14%, #fff); --deep: color-mix(in srgb, var(--accent) 72%, #0b1020); }
/* built-in art inside the fanned card stack keeps its absolute position */
.stack-art .stack-img.art { position: absolute; display: grid; }
.stack-art .stack-img { border-width: 5px; box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 22px 34px -18px rgba(16,20,37,.6); }

/* Chunky game-style start button */
.primary.ps-go {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 60%);
  color: var(--on-accent); font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 5px 0 var(--deep), 0 18px 26px -14px var(--deep);
  transform: translateY(-2px); transition: transform 140ms var(--ease), box-shadow 140ms var(--ease);
}
.primary.ps-go::after { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); animation: shine 3.4s var(--ease) infinite 1.6s; }
.primary.ps-go:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 0 0 var(--deep), 0 8px 14px -10px var(--deep); }
.screen .actions .ghost { font-weight: 700; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); border-radius: 999px; }
.screen .actions .ghost:hover { background: var(--tint); }
.ghost.ps-back { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(16,20,37,.08), 0 6px 14px -8px rgba(16,20,37,.4); font-size: 18px; flex: none; display: grid; place-items: center; }

/* Hero stage: a vivid coloured panel the product cards are dealt onto */
.ps-stage {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; height: 236px;
  background:
    radial-gradient(60% 70% at 50% 110%, rgba(255,255,255,.35), transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 78%, #fff) 0%, var(--accent) 55%, var(--deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 26px 44px -26px var(--deep);
}
.ps-stage::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.14); z-index: -1; }
.ps-stage::after { content: ''; position: absolute; left: -12%; bottom: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--pop-1) 55%, transparent); opacity: .55; z-index: -1; }
.ps-stage .stack-art { position: absolute; inset: 30px 0 0; height: auto; margin: 0; }
.ps-stage .stack-img { top: 4px; width: 128px; height: 158px; border-color: #fff; }
.ps-stage .stack-img:nth-child(1) { left: calc(50% - 160px); }
.ps-stage .stack-img:nth-child(2) { left: calc(50% - 64px); top: -6px; }
.ps-stage .stack-img:nth-child(3) { left: calc(50% + 32px); }
.ps-spark { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .9; animation: twinkle 2.6s ease-in-out infinite; z-index: 3; }
.ps-spark:nth-of-type(1) { left: 9%; top: 14%; }
.ps-spark:nth-of-type(2) { right: 8%; top: 22%; width: 10px; height: 10px; animation-delay: .8s; }
.ps-spark:nth-of-type(3) { right: 18%; bottom: 12%; width: 18px; height: 18px; animation-delay: 1.5s; }

/* Chips */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 1px rgba(16,20,37,.07), 0 4px 10px -6px rgba(16,20,37,.35); }
.ps-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ps-chip.is-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -8px var(--deep); }
.ps-chip.bump { animation: bump 420ms var(--spring); }

/* Progress: one continuous bar + step counter */
.ps-progress { flex: 1; display: flex; align-items: center; gap: 10px; }
.ps-bar { position: relative; flex: 1; height: 10px; border-radius: 999px; background: rgba(16,20,37,.08); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,20,37,.12); }
.ps-bar b { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--pop-1))); transition: width 560ms var(--spring); }
.ps-bar b::after { content: ''; position: absolute; inset: 2px 6px auto; height: 3px; border-radius: 3px; background: rgba(255,255,255,.5); }
.ps-count { flex: none; min-width: 46px; height: 28px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 800 13px/1 var(--display); font-variant-numeric: tabular-nums; box-shadow: 0 6px 12px -8px var(--deep); }

/* Option buttons with a letter key */
.option .option-key { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--k, var(--accent)) 16%, #fff); color: color-mix(in srgb, var(--k, var(--accent)) 75%, #000); font: 800 14px/1 var(--display); transition: transform 300ms var(--spring), background 200ms var(--ease), color 200ms var(--ease); }
.option.has-key { justify-content: flex-start; gap: 14px; }
.option.has-key > span:nth-child(2) { flex: 1; }
.option.is-picked .option-key { background: var(--accent); color: var(--on-accent); transform: rotate(-8deg) scale(1.12); }
.options.is-done .option:not(.is-picked), .ps-done > :not(.is-picked) { animation: none; opacity: .45; transform: scale(.98); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.is-picked { animation: picked 420ms var(--spring); }
.q-num { margin: 6px 0 -8px; font: 900 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* Tap ripple + selection pop */
.ps-ripple { position: absolute; left: var(--rx); top: var(--ry); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; animation: ripple 560ms var(--ease) forwards; }
.ps-pop { animation: picked 420ms var(--spring); }

/* Result reveal: a burst of soft rays behind the card */
.ps-reveal { position: relative; isolation: isolate; animation: reveal 720ms var(--spring) both; }
.ps-reveal::before { content: ''; position: absolute; left: 50%; top: 34%; width: 150%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 10deg, transparent 10deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
  animation: spinSlow 18s linear infinite; }
.ps-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; justify-self: start; margin: 0; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; box-shadow: 0 10px 18px -10px var(--deep); animation: reveal 560ms var(--spring) both; }
.ps-badge::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); font-size: 13px; font-weight: 900; }

/* Picks list */
.picks .pick { animation-delay: calc(var(--i, 0) * 60ms); }
.pick-media.art { border-radius: 14px; }
.screen-picks .h1 { display: flex; align-items: center; gap: 10px; }

.product .media.art { aspect-ratio: 16 / 11; }
.product .media.art .art-svg { width: 62%; height: 86%; }

@keyframes picked { 0% { transform: scale(1); } 35% { transform: scale(.95); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(18); opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes spinSlow { to { rotate: 360deg; } }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-26px) scale(.8); } 60% { opacity: 1; transform: translateY(4px) scale(1.04); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .primary.ps-go, .primary.ps-go::after, .ps-spark, .ps-reveal::before { animation: none !important; } }
.ps-in { animation: reveal 640ms var(--spring) both; }

/* Buddy mascot (Wobnimo, MIT) */
.buddy { position: absolute; right: 8px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 50px); z-index: 4; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
