/* ─────────────────────────────────────────────────────────────────
   Moogibean — launch site styles
   Palette: warm off-white bg, near-black text, white cards,
   warm "backlit" amber accent (placeholder until charm palette locks).
   Type: Figtree (display) + Nunito Sans (body).
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg: #F7F5F2;
  --ink: #1A1A1A;
  --card: #FFFFFF;
  --line: #E8E4DE;
  --muted: #6E6A64;
  --glow: #FFB963;          /* warm backlit accent */
  --glow-deep: #F09A2E;
  /* line weights: hairline for dividers + resting surfaces, stroke for anything you press or pick */
  --hair: 1px;
  --stroke: 1.5px;
  --icon-stroke: 1.75;       /* SVG icons: reads the same weight as the 1.5 px borders at 16–20 px */
  /* radius scale */
  --r-sm: 10px;              /* fields, notices */
  --r-md: 14px;              /* tiles, cards, thumbnails */
  --r-lg: 20px;              /* stage, modal */
  --r-pill: 999px;           /* buttons, switches, chips */
  /* status */
  --cta: #D9246F;            /* 'Add to bag' once a photo is in — the tape's pink, deepened so white text reads (4.7:1) */
  --deal: #1f8a4c;
  --deal-night: #6fdc9f;
  --warn-ink: #7A4A00;
  --warn-bg: #FFF3E0;
  --shadow: 0 2px 10px rgba(26,26,26,.06), 0 12px 32px rgba(26,26,26,.05);
  --font-display: 'Figtree', system-ui, sans-serif;   /* Oscar, 2026-10-21: clean + friendly (was Space Grotesk, an AI-site default; Fredoka tried, too childish) */
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }
img, svg, canvas { display: block; max-width: 100%; }
/* [hidden] always wins (display rules above and below would otherwise override it) */
[hidden] { display: none !important; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--hair) solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo img { height: 26px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.bag-btn {
  display: flex; align-items: center; gap: 8px;
  border: var(--stroke) solid var(--ink); background: transparent; color: var(--ink);
  border-radius: var(--r-pill); padding: 7px 16px; font-weight: 800; font-size: 14px;
}
.bag-btn .count {
  background: var(--ink); color: var(--bg); border-radius: var(--r-pill);
  min-width: 20px; height: 20px; display: grid; place-items: center;
  font-size: 12px; padding: 0 5px;
}

/* ── select screen: library + stage ── */
.select { padding: 32px 0 48px; scroll-margin-top: 64px; }
.select-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "head stage" "lib stage";
  grid-template-rows: auto 1fr;
  column-gap: 40px; row-gap: 22px;
}
.select-head { grid-area: head; }
.select-head h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.select-head h1 em {
  font-style: normal;
  background: radial-gradient(ellipse at 50% 60%, var(--glow-deep), var(--glow) 55%, #ffd9a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.select-head p { margin-top: 8px; font-size: 16px; color: var(--muted); max-width: 46ch; }

.library { grid-area: lib; min-width: 0; display: grid; gap: 26px; align-content: start; }
.lib-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lib-title {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.lib-title b { color: var(--ink); }
.lib-aside { font-size: 13px; color: var(--muted); font-weight: 600; }
/* who-it's-for group: a small colour-coded glyph in the tile's top-right corner (loot-style) —
   the grid itself stays open and neutral */
.tile .t-cat { position: absolute; top: 9px; right: 11px; z-index: 3; width: 17px; height: 17px; line-height: 0; }
.tile .t-cat svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(26,26,26,.12)); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.tile {
  position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  border: var(--stroke) solid var(--line); background: linear-gradient(160deg, #fff, #f1ede7);
  padding: 0; display: block; text-align: left;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 6% 6% 16%; width: 88%; height: 78%; object-fit: contain; transition: opacity .3s ease; }
/* charms stream in after the page is up: a soft shimmer holds the tile until its model arrives */
.tile.loading img { opacity: 0; }
.tile.loading::after {
  content: ''; position: absolute; inset: 20% 24% 28%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(100deg, #ece7df 30%, #f8f5f0 50%, #ece7df 70%) 0 0 / 220% 100%;
  animation: tileload 1.3s linear infinite;
}
@keyframes tileload { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .tile.loading::after { animation: none; } }
.tile .t-no {
  position: absolute; top: 10px; left: 12px; font-family: var(--font-display);
  font-weight: 700; font-size: 11px; color: var(--muted); letter-spacing: .04em;
}
.tile .t-name {
  position: absolute; left: 12px; right: 12px; bottom: 9px; font-size: 12px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile.soon .t-name { color: var(--muted); font-weight: 700; }
/* selected: an outline in the charm's group colour (its corner glyph's colour; --sel set per tile in
   app.js), so it never blends into the white titles in backlight mode. Limited drops = their gold. */
.tile.selected { border-color: var(--sel, var(--ink)); box-shadow: 0 0 0 var(--stroke) var(--sel, var(--ink)), 0 10px 26px rgba(26,26,26,.16); }
.tile.limited { --sel: #d9bb72; }

/* limited: foil tile */
.tiles-drop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile.limited {
  background: radial-gradient(circle at 50% 35%, #2c2946, #15131f 75%);
  border-color: #b8943f;
}
.tile.limited .t-no { color: #d9bb72; }
.tile.limited .t-name { color: #f3e6c4; }
.tile.limited::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255,214,140,.30) 42%, rgba(170,220,255,.28) 50%, rgba(255,160,220,.24) 58%, transparent 70%);
  background-size: 260% 100%; animation: foil 4.8s ease-in-out infinite;
}
@keyframes foil { 0% { background-position: 110% 0; } 55%, 100% { background-position: -30% 0; } }
/* limited: the mythic glyph — a gold hourglass, sand slowly trickling through, a glint sweeping the
   glass every few seconds and a soft breathing glow. Time-limited drops, told without words. */
.tile .t-mythic {
  position: absolute; top: 7px; right: 8px; z-index: 3; width: 22px; height: 22px; line-height: 0;
  animation: mythic-glow 4s ease-in-out infinite;
}
.tile .t-mythic svg { width: 100%; height: 100%; overflow: visible; }
.t-mythic .sand { fill: #F2C35B; }
.t-mythic .sand-top { transform-box: fill-box; transform-origin: 50% 100%; animation: sand-drain 9s linear infinite; }
.t-mythic .sand-bot { transform-box: fill-box; transform-origin: 50% 100%; animation: sand-fill 9s linear infinite; }
.t-mythic .sand-stream {
  stroke: #F7D27A; stroke-width: .9; stroke-linecap: round; stroke-dasharray: .6 1.5;
  animation: sand-fall .9s linear infinite;
}
.t-mythic .glint { animation: mythic-glint 4.5s ease-in-out infinite; }
@keyframes sand-drain { from { transform: scaleY(1); } to { transform: scaleY(.25); } }
@keyframes sand-fill  { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes sand-fall  { to { stroke-dashoffset: -2.1; } }
@keyframes mythic-glint { 0%, 55% { transform: skewX(-18deg) translateX(0); } 85%, 100% { transform: skewX(-18deg) translateX(40px); } }
@keyframes mythic-glow {
  0%, 100% { filter: drop-shadow(0 0 1.5px rgba(255,214,140,.55)); }
  50%      { filter: drop-shadow(0 0 5px rgba(255,214,140,.95)); }
}
@media (prefers-reduced-motion: reduce) {
  .tile .t-mythic, .t-mythic .sand-top, .t-mythic .sand-bot, .t-mythic .sand-stream, .t-mythic .glint { animation: none; }
  .tile .t-mythic { filter: drop-shadow(0 0 3px rgba(255,214,140,.8)); }
}

/* locked: coming-soon silhouette */
.tile.locked {
  background: repeating-linear-gradient(135deg, #f4f1ec 0 8px, #efebe5 8px 16px);
  border-style: dashed; cursor: default;
}
.tile.locked:hover { transform: none; box-shadow: none; }
.tile.locked svg { position: absolute; inset: 20% 20% 26%; width: 60%; height: 54%; }
.tile.locked svg path { fill: #ddd7cf; }
.tile.locked .t-name { color: #b3aca2; font-weight: 700; }

/* stage */
.stage-col { grid-area: stage; position: sticky; top: 84px; align-self: start; min-width: 0; container-type: inline-size; }
/* No frame: the charm floats on the page itself. */
.stage { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); }
/* Daylight: a faint round spotlight. Backlit: the spotlight goes; the backlight rays below glow behind the charm. */
.stage::after {
  content: ''; position: absolute; left: 50%; top: 50%; pointer-events: none;
  height: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  transition: opacity .7s ease;
  background: radial-gradient(circle closest-side, rgba(255,255,255,.9), rgba(255,255,255,0));
}
.stage.lit::after { opacity: 0; }
/* Backlight rays (Oscar, 2026-10-19: "a little more magic"): a soft sunburst behind the charm, centred on its litho
   window (app.js placeRays → --rx/--ry) in one warm white (--ray). Two uneven ray sets turn slowly in opposite
   directions, so the rays shimmer where they cross; a warm core breathes. Pure CSS behind the canvas, animating only
   transform/opacity — cheap on phones. Fades in after the backlight rises. */
.stage-rays { position: absolute; inset: -8%; z-index: 1; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity .9s ease; --rx: 50%; --ry: 50%; --ray: #ffe4bd; }   /* one warm white for every charm (Oscar) */
.stage.lit .stage-rays { opacity: 1; transition: opacity 1.6s ease .5s; }
.stage-rays i, .stage-rays::before { position: absolute; left: calc(8% / 1.16 + var(--rx) / 1.16); top: calc(8% / 1.16 + var(--ry) / 1.16);
  translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; }
.stage-rays i { width: 125%;
  -webkit-mask: radial-gradient(closest-side, #000 3%, rgba(0,0,0,.72) 11%, rgba(0,0,0,.46) 21%, rgba(0,0,0,.26) 31%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.04) 47%, transparent 52%);
  mask: radial-gradient(closest-side, #000 3%, rgba(0,0,0,.72) 11%, rgba(0,0,0,.46) 21%, rgba(0,0,0,.26) 31%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.04) 47%, transparent 52%);
  animation: rays-turn 120s linear infinite; }
/* fat soft-edged beams (Oscar: much fatter): ~7 broad beams, each fading in and out across its width, uneven widths + gaps;
   they pulse (brightness + reach) on top of the slow turn — rotate / scale / opacity are separate properties, so both run */
.stage-rays i:first-child { background: repeating-conic-gradient(from 0deg,
  transparent 0deg, color-mix(in srgb, var(--ray) 52%, transparent) 13deg, transparent 27deg, transparent 31deg,
  color-mix(in srgb, var(--ray) 34%, transparent) 40deg, transparent 49deg, transparent 52deg);
  animation: rays-turn 120s linear infinite, rays-pulse 3.6s ease-in-out infinite; }
.stage-rays i:last-child { background: repeating-conic-gradient(from 20deg,
  transparent 0deg, rgba(255,250,240,.2) 9deg, transparent 18deg, transparent 44deg, rgba(255,250,240,.12) 51deg, transparent 58deg, transparent 72deg);
  animation: rays-turn 170s linear infinite reverse, rays-pulse 3.6s ease-in-out -1.8s infinite; }
/* the warm core: big enough to spill round the charm's edges. Rays + core fade out well inside the layer's edge (Oscar:
   no hard cut-off — on phones the charm sits low, so the old reach hit the bottom edge) */
.stage-rays::before { content: ''; width: 62%;
  background: radial-gradient(closest-side, color-mix(in srgb, #fff 30%, var(--ray)) 0%, color-mix(in srgb, var(--ray) 42%, transparent) 38%, color-mix(in srgb, var(--ray) 12%, transparent) 66%, transparent);
  animation: rays-breathe 3.6s ease-in-out infinite; }
@keyframes rays-turn { to { rotate: 360deg; } }
@keyframes rays-breathe { 50% { opacity: .5; scale: .86; } }
@keyframes rays-pulse { 0%, 100% { opacity: 1; scale: 1.06; } 50% { opacity: .35; scale: .9; } }
/* the corona round the charm's outline is drawn in the 3D scene (app.js coronaFor): iPhone Safari ignores CSS filters on WebGL */
.stage:not(.lit) .stage-rays i, .stage:not(.lit) .stage-rays::before { animation-play-state: paused; }   /* idle in daylight */
@media (prefers-reduced-motion: reduce) { .stage-rays i, .stage-rays::before { animation: none; } }

/* Backlight on = lights off in the room: the whole select section goes to night.
   Full-bleed with straight edges so it reads as a mode, not a box. Cool ink, never brown. */
.select { transition: background-color .7s ease, color .7s ease; }
.select.night { background-color: #14121c; color: #f4f0ea; }
.select.night .select-head p,
.select.night .lib-aside,
.select.night .stage-sub,
.select.night .stage-note { color: #a29cb4; }
.select.night .lib-title { color: #a29cb4; }
.select.night .lib-title b { color: #fff; }
.select.night .tile:not(.limited) { border-color: transparent; }
.select.night .tile.limited { box-shadow: 0 0 0 var(--hair) rgba(233,196,106,.35), 0 8px 24px rgba(0,0,0,.35); }
.select.night .tile.selected { border-color: var(--sel, #fff); box-shadow: 0 0 0 var(--stroke) var(--sel, #fff), 0 10px 30px rgba(0,0,0,.4); }
.select.night .stage-tier:not(.limited) { background: #fff; color: #14121c; }
.select.night .btn-primary { background: #fff; color: #14121c; }
.select.night .btn-primary:hover { box-shadow: 0 8px 24px rgba(255,190,110,.25); }
.select.night .stage-tools input[type=range] { accent-color: #fff; }
.select.night .btn-small { border-color: transparent; }

.light-switch {
  position: absolute; top: 6px; left: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); border: var(--stroke) solid var(--line); box-shadow: var(--shadow);
  border-radius: var(--r-pill); padding: 5px 12px 5px 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 800;
}
.light-switch:hover { border-color: var(--ink); }
/* one gentle pulse on a first visit: "the magic is here" (armSwitchPulse in app.js) */
.light-switch.pulse { animation: ls-pulse 1.8s ease-out 1; }
.light-switch.pulse .ls-knob { animation: ls-knob-glow 1.8s ease-out 1; }
@keyframes ls-pulse {
  0% { box-shadow: var(--shadow), 0 0 0 0 rgba(255,185,99,.55); }
  60% { box-shadow: var(--shadow), 0 0 0 12px rgba(255,185,99,0); }
  100% { box-shadow: var(--shadow), 0 0 0 0 rgba(255,185,99,0); }
}
@keyframes ls-knob-glow {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 10px 3px rgba(255,185,99,.85); }
}
@media (prefers-reduced-motion: reduce) { .light-switch.pulse, .light-switch.pulse .ls-knob { animation: none; } }
.view-switch {
  position: absolute; top: 6px; right: 0; z-index: 3;
  background: var(--card); color: var(--ink); border: var(--stroke) solid var(--line); box-shadow: var(--shadow);
  border-radius: var(--r-pill); padding: 7px 13px;
  font-family: var(--font-body); font-size: 13px; font-weight: 800;
}
.view-switch:hover, .view-switch[aria-pressed="true"] { border-color: var(--ink); }
/* Look closer (2026-10-15): the camera glides in to the photo window — only once there's a photo to look at */
.zoom-switch { top: 50px; }
.stage:not(.has-photo) .zoom-switch { display: none; }
.ls-track { position: relative; width: 30px; height: 18px; border-radius: var(--r-pill); background: rgba(26,26,26,.16); transition: background .3s; }
.ls-knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform .3s ease, box-shadow .3s ease;
}
.light-switch[aria-pressed="true"] .ls-track { background: var(--glow-deep); }
.light-switch[aria-pressed="true"] .ls-knob { transform: translateX(12px); box-shadow: 0 0 10px 3px rgba(255,185,99,.85); }
.stage:not(.has-photo) { cursor: pointer; }
.stage.has-photo { touch-action: none; cursor: grab; }
.stage.has-photo:active { cursor: grabbing; }
.stage.drag { outline: 3px dashed var(--glow-deep); outline-offset: -6px; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.crop-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.stage.adjusting .crop-overlay { opacity: 1; }
.stage-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; border-radius: var(--r-pill);
  font-size: 12px; padding: 5px 13px; white-space: nowrap; pointer-events: none;
}

.stage-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.stage-tools input[type=range] { flex: 1; accent-color: var(--ink); min-width: 80px; }

.stage-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.stage-meta { min-width: 0; }
.stage-tier {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 9px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); white-space: nowrap;
}
.stage-tier.limited { background: linear-gradient(90deg, #e9c46a, #f5dfa0, #e9c46a); color: #1c1a2e; }
.stage-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-top: 4px; line-height: 1.15; }
.stage-sub { font-size: 13px; color: var(--muted); }
.stage-buy { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.stage-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
/* a narrow stage (phones, mid-size desktops): name on its own line, price + button in a row beneath */
@container (max-width: 460px) {
  .stage-info { flex-wrap: wrap; row-gap: 10px; }
  .stage-meta { flex: 1 1 100%; }
  .stage-buy { flex: 1 1 100%; justify-content: space-between; }
  .stage-info .stage-buy .price { text-align: left; }
  .stage-info .stage-buy .price small { margin-left: 0; max-width: none; }
  .stage-info .stage-buy .price small br { display: none; }
  .stage-info .stage-buy .price small .dot { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .tile.limited::after { animation: none; }
}

.trust-strip { padding: 0; border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--card); }
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  padding-top: 18px; padding-bottom: 18px;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.trust-strip span::before { content: '✦'; color: var(--glow-deep); margin-right: 8px; }

.btn-primary {
  background: var(--ink); color: var(--bg); border: none; border-radius: var(--r-pill);
  padding: 15px 30px; font-size: 16px; font-weight: 700; font-family: var(--font-display);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,26,26,.22); }
.btn-primary:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.btn-primary.ready, .select.night .btn-primary.ready { background: var(--cta); color: #fff; }
.btn-primary.ready:hover, .select.night .btn-primary.ready:hover { box-shadow: 0 8px 24px rgba(217,36,111,.35); }
.btn-ghost {
  background: transparent; border: var(--stroke) solid var(--line); color: var(--ink);
  border-radius: var(--r-pill); padding: 14px 26px; font-size: 15px; font-weight: 800; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-small {
  border: var(--stroke) solid var(--line); background: var(--card); border-radius: var(--r-pill); color: var(--ink);
  padding: 7px 13px; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
/* line icons: one stroke weight everywhere, drawn in the text colour */
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round; }
.btn-small:hover { border-color: var(--ink); }
.btn-small.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── sections ── */
section { padding: 64px 0; }
.section-title { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 8px; }
.section-sub { color: var(--muted); max-width: 56ch; margin-bottom: 36px; }

.price { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; display: block; line-height: 1.3; }
/* stage: the bundle caption wraps narrow under the price so it never pushes into the charm name */
.stage-buy .price { text-align: right; }
/* rays off "Add your photo" (drawn by drawRays in app.js), in the charm's glow colour (--beckon) */
.beckon { position: relative; display: inline-block; }
.beckon .rays { position: absolute; left: -24px; top: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
  max-width: none; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.beckon.on .rays { opacity: 1; }
.rays line { stroke: var(--beckon, #FFB963); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 7 60; stroke-dashoffset: 7; animation: ray-burst 2.8s ease-out infinite; }
.rays line:nth-child(even) { animation-delay: .14s; }
@keyframes ray-burst {
  0% { stroke-dashoffset: 7; opacity: 0; }
  12% { opacity: 1; }
  45% { stroke-dashoffset: -17; opacity: 0; }
  100% { stroke-dashoffset: -17; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .beckon .rays { display: none; } }
.stage-buy .price small { max-width: 8em; margin-left: auto; margin-top: 2px; }

/* ── bag drawer ── */
/* the page behind stays still while the bag or a form is open (.scroll-lock on <html>) */
html.scroll-lock, html.scroll-lock body { overflow: hidden; }
.bag-backdrop {
  position: fixed; inset: 0; background: rgba(26,26,26,.4); z-index: 60; touch-action: none;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.bag-backdrop.open { opacity: 1; pointer-events: auto; }
.bag-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 61;
  background: var(--card); box-shadow: -12px 0 40px rgba(26,26,26,.18);
  transform: translateX(102%); transition: transform .25s ease;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.bag-drawer.open { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: var(--hair) solid var(--line);
  position: sticky; top: 0; z-index: 1; background: var(--card); }
.bag-head h3 { font-size: 20px; }
.bag-close { background: none; border: none; color: var(--muted); width: 36px; height: 36px; margin-right: -8px; display: grid; place-items: center; border-radius: var(--r-pill); }
.bag-close:hover { color: var(--ink); background: var(--bg); }
.bag-close .icon { width: 20px; height: 20px; }
.bag-items { flex: 1 0 auto; padding: 14px 22px; }
.bag-empty { color: var(--muted); text-align: center; padding: 44px 0; font-size: 14px; }
.bag-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: var(--hair) solid var(--line); }
/* the charm itself (no ring/cord), centred on a soft tile, with the customer's photo — exactly as
   cropped, in the window's shape — badged on its corner so each charm visibly carries its photo */
.bag-thumb { position: relative; flex: none; width: 66px; height: 66px; border-radius: var(--r-md); background: linear-gradient(160deg, #fff, #f1ede7); border: var(--hair) solid var(--line); }
.bag-thumb .charm { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.bag-thumb .photo { position: absolute; right: -9px; bottom: -9px; width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(26,26,26,.35)); }
.bag-item .meta s { color: var(--muted); font-weight: 400; }
.bag-item .meta em { font-style: normal; color: var(--deal); font-weight: 800; }
.price s { font-size: .62em; opacity: .55; font-weight: 600; margin-right: 6px; }
.price small .dot { display: none; }
.price .deal { color: var(--deal); }
.price small.deal { color: var(--deal); font-weight: 800; }
.select.night .price .deal { color: var(--deal-night); }
.select.night .price small { color: #a29cb4; }
.select.night .price small.deal { color: var(--deal-night); }
.bag-item .meta { flex: 1; }
.bag-item .meta b { font-family: var(--font-display); }
.bag-item .meta span { display: block; font-size: 13px; color: var(--muted); }
.bag-item .meta .up { font-size: 12px; margin-top: 2px; }                   /* the photo's upload, saving in the background */
.bag-item .meta .up.bad { color: var(--warn-ink); }
.bag-item .retry { background: none; border: none; padding: 0; font: inherit; font-weight: 800; color: var(--ink); text-decoration: underline; cursor: pointer; }
.bag-item .rm { background: none; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.bag-item .acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bag-item .ed { background: none; border: var(--hair) solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.bag-cta { position: sticky; bottom: 0; z-index: 1; background: var(--card); padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: var(--hair) solid var(--line); box-shadow: 0 -8px 20px rgba(26,26,26,.05); }
.bag-cta .btn-primary { width: 100%; }
/* owner-only (shop opened with ?test): send the bag to the Print Desk as a £0 TEST order */
.bag-cta .btn-test { display: block; width: 100%; margin-top: 8px; padding: 9px 12px; background: none; border: var(--stroke) dashed var(--muted);
  border-radius: var(--r-pill); font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.bag-cta .btn-test[hidden] { display: none; }
.bag-foot { border-top: var(--hair) solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; }
.bag-row { display: flex; justify-content: space-between; font-weight: 700; }
.bag-saving span:last-child { color: var(--deal); font-weight: 800; }
.bag-nudge { font-size: 13px; color: var(--muted); margin: -2px 0 2px; }
.bag-nudge:empty { display: none; }
.bag-more { width: 100%; padding: 12px 18px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bag-more em { font-style: normal; font-weight: 800; color: var(--deal); }
.bag-status { font-size: 13px; font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); border-radius: var(--r-sm); padding: 8px 12px; }
.bag-nudge b { color: var(--ink); font-weight: 800; }
.bag-nudge em { font-style: normal; font-weight: 800; color: var(--deal); }
.zone-select { display: grid; gap: 6px; font-size: 14px; }
.zone-select select, .bag-foot input[type=email] {
  border: var(--stroke) solid var(--line); border-radius: var(--r-sm); padding: 10px 12px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--bg); width: 100%;
}
.bag-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
/* gift option (2026-10-15) */
.gift-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.gift-toggle input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cta); flex: none; }
.gift-box textarea { border: var(--stroke) solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; width: 100%;
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--bg); resize: vertical; }
.gift-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }

/* ── FAQ ── */
.faq details {
  background: var(--card); border: var(--hair) solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; margin-bottom: 10px;
}
.faq summary {
  font-family: var(--font-display); font-weight: 700; cursor: pointer; font-size: 16px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0;
  border: solid var(--muted); border-width: 0 var(--stroke) var(--stroke) 0; transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p, .faq details ul { margin-top: 10px; color: var(--muted); font-size: 15px; }
.faq details ul { padding-left: 20px; }
.faq details li + li { margin-top: 4px; }
.faq details b { color: var(--ink); }

/* ── footer ── */
.site-footer { border-top: var(--hair) solid var(--line); padding: 40px 0 56px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer img { height: 20px; opacity: .85; }
.foot-links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ── modal (success / message) ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(26,26,26,.45);
  display: grid; place-items: center; padding: 24px;
}
.modal {
  background: var(--card); border-radius: var(--r-lg); padding: 34px; max-width: 440px; width: 100%;
  text-align: center; box-shadow: 0 24px 80px rgba(26,26,26,.3);
}
.modal h3 { font-size: 24px; margin-bottom: 10px; }
.modal p { color: var(--muted); font-size: 15px; }
.modal .order-ref { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 14px 0; }
.modal .btn-primary { margin-top: 20px; }
.hidden { display: none !important; }

/* ── toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 40px));
  background: var(--ink); color: var(--bg); border-radius: var(--r-pill); padding: 11px 22px;
  font-size: 14px; font-weight: 700; z-index: 80; pointer-events: none;
  /* hidden = fully gone (a two-line toast on a phone used to peek out under the bag bar — launch night 2026-10-22) */
  visibility: hidden; opacity: 0; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; opacity: 1; transition: transform .25s ease, opacity .25s ease; }
body.has-buybar .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }   /* above the bag bar, not under it */

/* ── legal pages ── */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-home { display: inline-block; margin-bottom: 30px; }   /* her logo, back to the shop */
.legal-home img { height: 30px; width: auto; display: block; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: #3c3935; font-size: 15px; }
.legal ul { padding-left: 22px; }
.draft-banner {
  background: var(--warn-bg); border: var(--hair) solid #F0C179; color: var(--warn-ink);
  border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; margin-bottom: 26px;
}

/* ── responsive ── */
@media (max-width: 860px) {
  .select { padding-top: 20px; }
  .select-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "lib"; grid-template-rows: auto; row-gap: 14px; }
  .select-head p { font-size: 15px; }
  /* the stage scrolls with the page, so the whole library is browsable (Oscar, 2026-10-22: pinned, it hid all but a
     sliver of the charms until a photo was in); a tile tap scrolls back up to it */
  .stage-col {
    position: relative; top: auto; z-index: 20; background: var(--bg);
    margin: 0 -24px; padding: 8px 24px 10px; border-bottom: var(--hair) solid var(--line);
    transition: background-color .7s ease, border-color .7s ease;
  }
  .select.night .stage-col { background: #14121c; border-color: rgba(255,255,255,.08); }
  .stage { aspect-ratio: auto; height: min(36vh, 300px); }
  .stage-hint { bottom: auto; top: 44px; left: 0; transform: none; }
  .stage-tools { margin-top: 8px; }
  .stage-info { margin-top: 8px; }
  .stage-name { font-size: 17px; }
  .stage-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stage-note { display: none; }
  .stage-note.guide { display: block; font-size: 12px; margin-top: 6px; }
  .stage-buy .price { font-size: 20px; }
  .stage-buy .btn-primary { padding: 11px 18px; font-size: 14px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .site-nav { display: none; }
  .bag-btn { margin-left: auto; }

  /* ── phone FOCUS MODE (Oscar, 2026-10-13): once a photo is in, the intro folds away and the stage grows to most of
     the screen (the glow reveal lands big); it scrolls with the page instead of pinning, the library sits beneath with a
     nudge, and price + Add to bag move to a bar fixed under the thumb. ── */
  .select.photo-on { padding-top: 6px; }
  .select.photo-on .select-head { display: none; }
  .select.photo-on .stage-col { border-bottom: 0; }
  /* height fixed once on entering focus (--stage-h, app.js): vh follows the browser's address bar as it slides in and
     out, which re-fitted the charm every frame — the shudder when scrolling back to the top (Oscar, iPhone, 2026-10-13) */
  .select.photo-on .stage { height: var(--stage-h, min(64svh, 580px)); overflow: hidden; }   /* the drag zone can swing past the edge */
  html, body { overflow-x: clip; }   /* nothing may widen a phone's page (it zooms out and hides the bag bar) */
  .select.photo-on .stage-buy { display: none; }
  .select.photo-on .stage.has-photo { touch-action: pan-y; cursor: auto; }   /* swipes scroll; the drag zone grabs */
  .select.photo-on .drag-zone { display: block; }
  .select.photo-on .try-others {                                     /* floats just above the bag bar, so it's seen at once */
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 44; margin: 0; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  }
  .select.photo-on.seen-others .try-others { display: none; }
  .select.photo-on .buy-bar, .select.buy-away .buy-bar { display: flex; }   /* before a photo: once the stage's button is off screen */
  body.has-buybar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* the window's grab area on phones (positioned over the window every frame by app.js) */
.drag-zone { display: none; position: absolute; z-index: 2; border-radius: 50%; touch-action: none; }
/* "Your photo's in every charm" — a quiet pill with a bobbing arrow, gone after the first scroll down */
.try-others {
  display: none; align-items: center; gap: 8px; margin: 12px auto 2px; padding: 8px 16px;
  border: var(--hair) solid var(--line); border-radius: var(--r-pill); background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.try-others .arrow { display: inline-block; animation: try-bob 1.4s ease-in-out infinite; }
@keyframes try-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.select.night .try-others { background: #221f2e; color: #fff; border-color: rgba(255,255,255,.14); }
/* the bag bar */
.buy-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; box-sizing: border-box; max-width: 100vw;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: var(--hair) solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.bb-meta { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.bb-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-price { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-price s { font-weight: 600; margin-right: 4px; }
.bb-price .deal { color: #1a8a4a; }
.buy-bar .btn-primary { flex: 0 0 auto; padding: 12px 18px; font-size: 15px; white-space: nowrap; }
.select.night .buy-bar { background: rgba(20, 18, 28, .94); border-color: rgba(255,255,255,.08); color: #fff; }
.select.night .bb-price { color: #b9b3c9; }
@media (prefers-reduced-motion: reduce) { .try-others .arrow { animation: none; } }
.nowrap { white-space: nowrap; }

/* ── suggest a charm: the last tile is a page of sketchbook with a charm drawing itself ── */
.tile.suggest {
  background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(79,111,196,.13) 13px 14px), #fffdf8;
  border-style: dashed; border-color: #cfc8bd;
}
.tile.suggest:hover { border-color: var(--ink); }
.tile.suggest .sk { position: absolute; inset: 8% 10% 22%; width: 80%; height: 70%; overflow: visible; }
.sk path, .sk circle { fill: none; stroke: #4a4640; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sk .sk-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sk-draw 7s ease-in-out infinite; }
.sk .sk-2 { animation-name: sk-draw-2; }
.sk .sk-3 { animation-name: sk-draw-3; }
.sk .sk-pencil path { stroke: #4a4640; stroke-width: 2; fill: #FFD27A; }
.sk .sk-pencil path + path { fill: none; }
.sk .sk-pencil { transform-origin: 70px 88px; animation: sk-pencil 7s ease-in-out infinite; }
.sk .sk-spark { stroke: var(--glow-deep); stroke-width: 2.4; animation: sk-spark 7s ease-in-out infinite; }
@keyframes sk-draw   { 0% { stroke-dashoffset: 1; opacity: 1; } 30%, 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sk-draw-2 { 0%, 26% { stroke-dashoffset: 1; opacity: 1; } 44%, 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sk-draw-3 { 0%, 42% { stroke-dashoffset: 1; opacity: 1; } 50%, 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sk-pencil { 0%, 50% { transform: rotate(-4deg) translate(-2px, 1px); } 8%, 24%, 40% { transform: rotate(3deg) translate(1px, -1px); } 16%, 32%, 48% { transform: rotate(-3deg); } 56%, 100% { transform: none; } }
@keyframes sk-spark  { 0%, 50% { opacity: 0; transform: scale(.6); } 58% { opacity: 1; transform: scale(1.15); } 70%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.sk .sk-spark { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .sk .sk-draw, .sk .sk-pencil, .sk .sk-spark { animation: none; stroke-dashoffset: 0; opacity: 1; }
}
.select.night .tile.suggest { border-color: rgba(255,255,255,.28); }

/* the form */
.modal.suggest { text-align: left; position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 30px 28px 24px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: none; color: var(--muted); border-radius: var(--r-pill); }
.modal-x:hover { color: var(--ink); background: var(--bg); }
.modal-x .icon { width: 20px; height: 20px; }
.modal.suggest h3 { padding-right: 36px; }
.suggest-lead { font-size: 14.5px; }
.modal.suggest form, .suggest-done { display: grid; gap: 14px; }
.suggest-done { text-align: center; }
.chips { border: none; padding: 0; margin: 0; }
.chips legend, .field { font-size: 13px; font-weight: 800; color: var(--ink); }
.chips legend { margin-bottom: 8px; }
.chips > div { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 700;
  border: var(--stroke) solid var(--line); border-radius: var(--r-pill); padding: 6px 12px 6px 9px; background: var(--card); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip svg { width: 15px; height: 15px; color: var(--chip); flex: none; }
.chip .hd { width: 17px; height: 17px; color: var(--chip); }   /* her hand-drawn group icons */
.chip:hover { border-color: var(--chip); }
.chip:has(input:checked) { border-color: var(--chip); background: color-mix(in srgb, var(--chip) 12%, #fff); }
.chip:has(input:focus-visible) { outline: 2px solid var(--chip); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field i { font-style: normal; font-weight: 600; color: var(--muted); }
.field textarea, .field input {
  border: var(--stroke) solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; width: 100%;
  font: 400 16px var(--font-body); color: var(--ink); background: var(--bg); resize: vertical;
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--ink); }
.sketch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sketch-hint { flex: 1 1 100%; font-size: 13px; color: var(--muted); margin-bottom: -4px; }
.sketch-btn { cursor: pointer; }
#sketchPreview { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); border: var(--hair) solid var(--line); }
.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.suggest-small { font-size: 12px; color: var(--muted); text-align: center; }
.modal.suggest .btn-primary { margin-top: 2px; width: 100%; }

/* ── first-load stage: a jelly bean hopping under a warm, breathing backlight ── */
.stage-loader { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none;
  transition: opacity .5s ease; }
.stage-loader.done { opacity: 0; }
.stage-loader > * { grid-area: 1 / 1; }
.sl-glow { width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,185,99,.55), rgba(255,185,99,0) 68%);
  animation: sl-breathe 1.6s ease-in-out infinite; }
.sl-bean { width: 22%; max-width: 110px; overflow: visible; transform-origin: 50% 90%; animation: sl-hop 1.6s cubic-bezier(.45,0,.55,1) infinite; }
.sl-bean path { fill: var(--ink); }
.sl-shadow { width: 12%; max-width: 60px; height: 8px; border-radius: 50%; background: rgba(26,26,26,.14); transform: translateY(46px);
  animation: sl-shadow 1.6s cubic-bezier(.45,0,.55,1) infinite; }
.sl-text { transform: translateY(86px); font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
@keyframes sl-hop {
  0%, 100% { transform: translateY(0) scale(1.12, .86); }
  15% { transform: translateY(-6px) scale(.92, 1.1); }
  50% { transform: translateY(-34px) scale(1, 1) rotate(-8deg); }
  85% { transform: translateY(-4px) scale(.95, 1.06); }
}
@keyframes sl-shadow { 0%, 100% { transform: translateY(46px) scale(1); opacity: 1; } 50% { transform: translateY(46px) scale(.6); opacity: .5; } }
@keyframes sl-breathe { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sl-glow, .sl-bean, .sl-shadow { animation: none; } }

/* ═══ Hand-drawn layer (2026-10-17) ══════════════════════════════════════════════════════════════════════════════
   Oscar's girlfriend's Procreate drawings (06-brand/hand-drawn-ui/drawn/*.psd → export-web.py → assets/hand/*.webp):
   white + her crayon line as alpha, used as CSS masks so the site colours them (currentColor / group colour / glow).
   Her grain is kept on purpose (a smooth vector trace looked machine-made). Wobble = voice; prices, forms and the 3D
   stage stay crisp. To switch the whole layer off, delete this block and the `hd` hooks in index.html / app.js. */
.hd { display: inline-block; flex: none; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.hd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hd-ico { width: 18px; height: 18px; }

/* group glyphs on the tiles (her icons, in each group's colour) */
.tile .t-cat { width: 21px; height: 21px; top: 8px; right: 9px; }
.tile .t-cat .hd { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(26,26,26,.12)); }

/* lettering: the headline + row titles + "Your bag" (real words stay in the page for search + screen readers) */
.select-head h1 { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .32em; row-gap: .12em; line-height: 1; margin-bottom: .42em; }   /* room for the g's tail */
.hd-h1a { --m: url(/assets/hand/word-pick-a-charm.webp); height: 1em; aspect-ratio: 900 / 162; }   /* v2 lettering 2026-10-19 */
.hd-glow { position: relative; display: inline-flex; margin-bottom: -.40em; }   /* baselines match: the g hangs 0.38em lower (measured in her drawings) */
.hd-h1b { --m: url(/assets/hand/word-make-it-glow.webp); height: 1.45em; aspect-ratio: 900 / 228;
  background: radial-gradient(ellipse at 50% 60%, var(--glow-deep), var(--glow) 55%, #ffd9a0); }
.hd-glow::after { content: ''; position: absolute; right: -.55em; top: -.25em; width: .5em; height: .78em; background: var(--glow-deep);
  -webkit-mask: url(/assets/hand/sparkle-2.webp) center / contain no-repeat; mask: url(/assets/hand/sparkle-2.webp) center / contain no-repeat; }
.lib-title .hd { height: 15px; aspect-ratio: var(--ar); vertical-align: -2px; color: var(--ink); }
.select.night .lib-title .hd { color: #fff; }
.bag-head .hd-word { height: 25px; aspect-ratio: 560 / 130; color: var(--ink); vertical-align: middle; }

/* her outlines ARE the button edges (Oscar, 2026-10-18): the button's own crisp fill/border/shadow are switched off; a
   ::before fill cut to her shape (…-fill.webp: inside her line + the line) paints the button colour, ::after paints her
   line on that edge, and a drop-shadow on the button follows the drawn shape. Each kind keeps its own shape (a drawn line
   can't be stretched far): chips for pill buttons, circles for the round icon buttons, long/standard for the big ones. */
.bag-btn, .view-switch, .light-switch, .btn-small, .btn-ghost, .btn-primary {
  --hd-fill: transparent; border-color: transparent !important; background: transparent !important; box-shadow: none !important;
  isolation: isolate; }
.bag-btn, .btn-small, .btn-primary, .btn-ghost { position: relative; }
.bag-btn::before, .view-switch::before, .light-switch::before, .btn-small::before, .btn-primary::before, .btn-ghost::before,
.bag-btn::after, .view-switch::after, .light-switch::after, .btn-small::after, .btn-primary::after, .btn-ghost::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transition: background .14s; }
.bag-btn::before, .view-switch::before, .light-switch::before, .btn-small::before, .btn-primary::before, .btn-ghost::before {
  z-index: -1; background: var(--hd-fill);
  -webkit-mask: var(--hf, url(/assets/hand/chip-1-fill.webp)) center / 100% 100% no-repeat;
  mask: var(--hf, url(/assets/hand/chip-1-fill.webp)) center / 100% 100% no-repeat; }
.bag-btn::after, .view-switch::after, .light-switch::after, .btn-small::after, .btn-primary::after, .btn-ghost::after {
  background: var(--hd-line, #a79f94);
  -webkit-mask: var(--hm, url(/assets/hand/chip-1.webp)) center / 100% 100% no-repeat;
  mask: var(--hm, url(/assets/hand/chip-1.webp)) center / 100% 100% no-repeat; }
.view-switch, .light-switch { --hd-fill: var(--card); filter: drop-shadow(0 2px 6px rgba(26,26,26,.10)); }
.btn-small { --hd-fill: var(--card); }
.btn-small.active { --hd-fill: var(--ink); --hd-line: var(--ink); }
.bag-btn { --hd-line: var(--ink); }
.view-switch, .light-switch, #changePhoto { --hm: url(/assets/hand/chip-2.webp); --hf: url(/assets/hand/chip-2-fill.webp); }
.bag-btn:hover, .view-switch:hover, .light-switch:hover, .btn-small:hover, .view-switch[aria-pressed="true"] { --hd-line: var(--ink); }
/* Backlight uses chip-2: chip-1's pointed left end crowded the slider (Oscar, 2026-10-18) */
#rotateBtn, #mirrorBtn { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
#rotateBtn { --hm: url(/assets/hand/circle-1.webp); --hf: url(/assets/hand/circle-1-fill.webp); }
#mirrorBtn { --hm: url(/assets/hand/circle-2.webp); --hf: url(/assets/hand/circle-2-fill.webp); }
.btn-ghost { --hm: url(/assets/hand/button-long-2.webp); --hf: url(/assets/hand/button-long-2-fill.webp); }
.btn-ghost:hover { --hd-line: var(--ink); }
.select.night .btn-small, .select.night .view-switch, .select.night .light-switch { --hd-line: #a29cb4; }
/* big filled buttons: the fill IS her shape; her line is a deeper tone of the fill so the edge reads drawn */
.btn-primary { --hd-fill: var(--ink); --hd-line: #000; --hm: url(/assets/hand/button-1.webp); --hf: url(/assets/hand/button-1-fill.webp); }
#checkoutBtn, #bbAdd { --hm: url(/assets/hand/button-long-1.webp); --hf: url(/assets/hand/button-long-1-fill.webp); }
.btn-primary:hover { filter: drop-shadow(0 6px 14px rgba(26,26,26,.25)); }
.btn-primary.ready, .select.night .btn-primary.ready { --hd-fill: var(--cta); --hd-line: #9d1450; }
.btn-primary.ready:hover { filter: drop-shadow(0 6px 14px rgba(217,36,111,.35)); }
.select.night .btn-primary { --hd-fill: #fff; --hd-line: #d9d2c7; }
.select.night .btn-primary.ready { --hd-line: #9d1450; }
/* keyboard focus: her line turns bright so the focused button is unmistakable */
.bag-btn:focus-visible, .view-switch:focus-visible, .light-switch:focus-visible, .btn-small:focus-visible, .btn-primary:focus-visible, .btn-ghost:focus-visible { outline: none; --hd-line: #1f6fd6; }

/* charm tiles: cut to her three frames (her line is the tile's edge); mixed so neighbours differ; the selected tile's
   line takes its group colour. The line covers exactly the cut's box (the cut includes the whole line), so none of it is
   trimmed (Oscar, 2026-10-18: a 4 px outset clipped its outer half and thinned her line). */
.tile { border-color: transparent !important; box-shadow: none !important;
  -webkit-mask: var(--ff, url(/assets/hand/frame-1-fill.webp)) center / 100% 100% no-repeat;
  mask: var(--ff, url(/assets/hand/frame-1-fill.webp)) center / 100% 100% no-repeat; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--hd-frame, #cfc7bc);
  -webkit-mask: var(--fm, url(/assets/hand/frame-1.webp)) center / 100% 100% no-repeat;
  mask: var(--fm, url(/assets/hand/frame-1.webp)) center / 100% 100% no-repeat; }
.tiles > .tile:nth-child(3n+2) { --fm: url(/assets/hand/frame-2.webp); --ff: url(/assets/hand/frame-2-fill.webp); }
.tiles > .tile:nth-child(3n) { --fm: url(/assets/hand/frame-3.webp); --ff: url(/assets/hand/frame-3-fill.webp); }
.tile.selected { --hd-frame: var(--sel, var(--ink)); }
.tile.limited { --hd-frame: #b8943f; }
.select.night .tile:not(.limited):not(.selected) { --hd-frame: #bdb4a8; }
.select.night .tile.selected { --hd-frame: var(--sel, #fff); }
@media (max-width: 600px) { .hd-h1a { height: 1.18em; } .hd-h1b { height: 1.72em; } .hd-glow { margin-bottom: -.48em; } }   /* phones: her lettering reads small at 30px */

/* ── template 3 (2026-10-19): nav, trust strip, FAQ, pop-ups, footer ─────────────────────────────────────────────── */
.hd-nav { height: 21px; aspect-ratio: var(--ar); vertical-align: middle; }
.site-nav a[href="#faq"] .hd-nav { height: 15px; }
/* her long lines replace the crisp hairlines on the page bands (header, trust strip, footer) */
.site-header, .trust-strip, .site-footer { border-color: transparent !important; }
.trust-strip, .site-footer { position: relative; }   /* (the header stays sticky — it already anchors its line) */
.site-header::after, .trust-strip::before, .trust-strip::after, .site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; height: 5px; background: #d9d2c8; pointer-events: none;
  -webkit-mask: url(/assets/hand/rule-1.webp) center / 100% 100% no-repeat; mask: url(/assets/hand/rule-1.webp) center / 100% 100% no-repeat; }
.site-header::after { bottom: -2px; }
.trust-strip::before, .site-footer::before { top: -2px; }
.trust-strip::after { bottom: -2px; -webkit-mask-image: url(/assets/hand/rule-2.webp); mask-image: url(/assets/hand/rule-2.webp); }
.trust-strip span { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip span::before { content: none; }
.trust-strip .hd-ico { width: 25px; height: 25px; color: var(--glow-deep); }
.hd-trust { height: 23px; aspect-ratio: var(--ar); color: #4a4640; }
/* FAQ: the title in her hand; each question wears her card frame (9-slice: corners as drawn, sides stretch); her chevron */
.hd-title { height: 1.05em; aspect-ratio: var(--ar); color: var(--ink); }
.faq details { background: transparent; border: 20px solid transparent; border-radius: 0; padding: 0 4px;
  border-image: url(/assets/hand/card-1-long-border.webp) 56 fill / 20px stretch; }
.faq details:nth-child(even) { border-image-source: url(/assets/hand/card-2-long-border.webp); }
@media (max-width: 600px) { .faq details { border-image-source: url(/assets/hand/card-1-border.webp); } .faq details:nth-child(even) { border-image-source: url(/assets/hand/card-2-border.webp); } }   /* phones: her drawing as drawn, barely stretched */
.faq summary::after { width: 15px; height: 13px; margin: 0; border: 0; transform: none; background: var(--muted);
  -webkit-mask: url(/assets/hand/icon-chevron.webp) center / contain no-repeat; mask: url(/assets/hand/icon-chevron.webp) center / contain no-repeat; }
.faq details[open] summary::after { transform: rotate(180deg); }
/* pop-ups: her frame + titles; a drop-shadow follows the drawn edge */
.modal { background: transparent; box-shadow: none; border: 30px solid transparent; border-radius: 0; padding: 8px;
  border-image: url(/assets/hand/card-2-border.webp) 56 fill / 30px stretch; filter: drop-shadow(0 20px 40px rgba(26,26,26,.28)); }
.modal.suggest { padding: 4px 2px 0; }
.hd-mtitle { height: 30px; aspect-ratio: var(--ar); color: var(--ink); vertical-align: middle; }
#successTitle .hd-mtitle { height: 26px; }
.suggest-done h3 .hd-mtitle { height: 40px; }
.hd-tick { display: block; width: 44px; height: 44px; margin: 0 auto 10px; color: var(--cta); }
.modal-x .hd-ico { width: 18px; height: 18px; }
.sketch-btn .hd-ico { width: 16px; height: 16px; }
/* footer: her words for the legal links, envelope by the email */
.hd-foot { height: 15px; aspect-ratio: var(--ar); vertical-align: middle; }
.foot-links a:hover .hd-foot { color: var(--ink); }
.foot-mail { display: inline-flex; align-items: center; gap: 6px; }
.foot-mail .hd-ico { width: 17px; height: 17px; }
/* trust strip balance (Oscar, 2026-10-19): her four phrases were written at different sizes, so one height made their
   letters differ; each is sized so its small letters measure 7.5 px (x-heights measured in the drawings) and nudged so
   the letters' middles line up. Icons sized to equal ink (the tall window read small, the round arrow light). */
.trust-strip span:nth-child(1) .hd-trust { height: 23.8px; }
.trust-strip span:nth-child(2) .hd-trust { height: 26.1px; transform: translateY(-.5px); }
.trust-strip span:nth-child(3) .hd-trust { height: 28.5px; transform: translateY(-1px); }
.trust-strip span:nth-child(4) .hd-trust { height: 26.9px; }
.trust-strip span:nth-child(1) .hd-ico { width: 24px; height: 24px; }
.trust-strip span:nth-child(2) .hd-ico { width: 23.5px; height: 23.5px; }
.trust-strip span:nth-child(3) .hd-ico { width: 31px; height: 31px; margin: -3px -3px; }
.trust-strip span:nth-child(4) .hd-ico { width: 28px; height: 28px; margin: -2px -1px; }

/* ── template 2 (2026-10-19): her logo, charm numbers + names ─────────────────────────────────────────────────────
   Names + numbers are masks of one shared height with the baseline in the same place (js/hand-type.js), laid side by
   side; --cap = the capital height. Her logo (A: crayon) replaces the traced SVG in the header + footer. */
.logo img, .site-footer img { width: auto; }
.logo img { height: 30px; }
.site-footer img { height: 23px; opacity: 1; }
.hd-type { --cap: 10px; display: inline-flex; align-items: flex-start; max-width: 100%; vertical-align: top; }
.hd-type i { height: calc(var(--cap) * 79 / 48);   /* = HAND_TYPE.h / HAND_TYPE.cap (js/hand-type.js) */ aspect-ratio: var(--ar); min-width: 0; margin-right: calc(var(--cap) * -.05);
  -webkit-mask-position: left center; mask-position: left center; }
.hd-gap { flex: none; width: calc(var(--cap) * .45); }
.tile .t-no .hd-type { --cap: 8.5px; margin-top: -2px; }
.tile .t-name .hd-type { --cap: 10.5px; margin-bottom: -1px; }
.tile .t-no:has(.hd-type), .tile .t-name:has(.hd-type) { letter-spacing: 0; line-height: 1; left: 16px; }   /* clear the drawn frames' wobbly corners */
.stage-name .hd-type { --cap: 17px; margin: 2px 0 -2px; }
@media (max-width: 600px) { .stage-name .hd-type { --cap: 14px; } }

/* ── the real thing: photo strip (2026-10-22) — a row that scrolls sideways, snap per photo; her card frame round each ── */
.real-strip { padding: 56px 0 8px; }
.real-lead { color: var(--muted); margin: 4px 0 18px; }
.real-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 22%); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.real-row figure { margin: 0; scroll-snap-align: start; }
.real-row img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #ece7df; }
.real-row figcaption { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 7px; }
@media (max-width: 860px) { .real-strip { padding-top: 40px; } .real-row { grid-auto-columns: 72%; margin: 0 -24px; padding: 4px 24px 14px; scroll-padding: 0 24px; } }
/* unboxing (2026-11-03): same row, plus what the packaging is made of as small pills */
.pack-points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -6px 0 18px; padding: 0; }
.pack-points li { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #e8f3e3; color: #2f6b2a; }

/* hero reveal loop (2026-10-23): the real thing, lifted to the light — beside the intro */
.head-row { display: flex; align-items: center; gap: 18px; }
.head-row p { flex: 1 1 auto; }
.hero-reveal { flex: none; width: 150px; aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: #2a201c;
  box-shadow: 0 10px 28px rgba(26,26,26,.18); }
@media (max-width: 860px) { .head-row { gap: 12px; align-items: flex-start; } .hero-reveal { width: 104px; border-radius: 16px; margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .hero-reveal { animation: none; } }
/* phones: the heading centred; the line and the reveal loop stay side by side (Oscar, launch night 2026-10-22) */
@media (max-width: 640px) {
  .select-head h1 { justify-content: center; }
}

/* ── review your order (Madeleine, 2026-10-22): each charm big before paying ── */
.bag-review { margin: 4px 22px 6px; padding: 12px 20px; font-size: 14px; }
.bag-thumb[role="button"] { cursor: zoom-in; }
.review {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease;
}
.review.open { opacity: 1; transform: none; }
.review-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; padding-top: calc(16px + env(safe-area-inset-top)); }
.review-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.review-list {
  flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; padding: 4px 16px 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.review-list::-webkit-scrollbar { display: none; }
.rv-card {
  flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; min-height: 0;
  background: var(--card); border: var(--hair) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.review-list:has(.rv-card:nth-child(2)) .rv-card { flex-basis: 88%; }   /* a peek of the next charm says "swipe" */
.rv-art {
  position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rv-glow) 26%, transparent), transparent 78%), linear-gradient(160deg, #fff, #f3efe9);
}
.rv-charm { width: 100%; height: 100%; max-height: 62vh; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(26,26,26,.16)); }
.rv-art.small .rv-charm { width: 72%; }
.rv-photo { position: absolute; right: 14px; bottom: 14px; width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(26,26,26,.3)); }
.rv-card figcaption { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px 16px; border-top: var(--hair) solid var(--line); }
.rv-n { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rv-card b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.rv-meta { font-size: 14px; color: var(--muted); font-weight: 700; }
.rv-meta s { font-weight: 400; } .rv-meta em { font-style: normal; color: var(--deal); font-weight: 800; }
.review-dots { display: flex; justify-content: center; gap: 7px; min-height: 8px; margin: 6px 0 2px; }
.review-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.review-dots i.on { background: var(--ink); transform: scale(1.15); }
.review-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.review-foot .btn-primary { width: 100%; }
@media (min-width: 861px) {               /* desktop: the whole order in one row, no swiping */
  .review-head, .review-foot { width: min(1080px, 100%); margin: 0 auto; }
  .review-foot .btn-primary { width: auto; min-width: 280px; float: right; }
  .review-list { justify-content: center; overflow-x: visible; scroll-snap-type: none; width: min(1080px, 100%); margin: 0 auto; padding: 8px 20px 20px; }
  .rv-card, .review-list:has(.rv-card:nth-child(2)) .rv-card { flex: 0 1 340px; }
  .rv-charm { max-height: 52vh; }
  .review-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .review { transition: none; } }

/* "Use the same photo" — after Add to bag the stage starts clean; the last photo is one tap away */
.same-photo {
  display: flex; align-items: center; gap: 10px; margin: 10px auto 0; padding: 5px 16px 5px 5px;
  background: var(--card); border: var(--stroke) solid var(--line); border-radius: var(--r-pill);
  font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); cursor: pointer;
}
.same-photo[hidden] { display: none; }
.same-photo:hover { border-color: var(--ink); }
.same-photo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.select.night .same-photo { background: #221f2e; color: #fff; border-color: rgba(255,255,255,.14); }

/* ── the real photos, big (Oscar, 2026-10-22): tap a photo in the strip ── */
.real-row img[role="button"] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 75; background: rgba(14,12,10,.97); opacity: 0; transition: opacity .2s ease; }
.lightbox.open { opacity: 1; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(64px + env(safe-area-inset-top)) 16px calc(56px + env(safe-area-inset-bottom)); }
.lb-slide img { max-width: min(100%, 86vh); max-height: 100%; min-height: 0; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-lg); background: #2a241f; }
.lb-slide figcaption { color: #f3eee7; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: center; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close .hd { background: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); display: grid; place-items: center; }
.lb-nav svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .lb-nav { display: none; } }   /* phones swipe */
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* browse charm to charm from the big view (feedback, 2026-10-27): ‹ › at the stage's sides + a 3 / 21 counter */
.stage-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--card); border: var(--stroke) solid var(--line); box-shadow: var(--shadow);
}
.stage-nav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stage-nav:hover { border-color: var(--ink); }
.stage-prev { left: 4px; } .stage-next { right: 4px; }
.stage-count {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3;
  padding: 3px 10px; border-radius: var(--r-pill); background: rgba(26,26,26,.55); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; pointer-events: none;
}
.stage-count:empty { display: none; }
.select.night .stage-nav { background: #221f2e; border-color: rgba(255,255,255,.14); }
.select.night .stage-nav svg { stroke: #fff; }
/* phones (Oscar, 2026-10-27): no buttons — the stage splits into invisible thirds: tap left = back, tap right = next,
   the middle = add a photo (as before). Her chevrons stay as the cue. The zones sit below the light / back switches and
   under the photo's grab zone (same layer, the grab zone comes later), and don't block vertical scrolling. */
@media (max-width: 860px) {
  .stage-nav {
    top: 92px; bottom: 34px; transform: none; z-index: 2; width: 33.3%; height: auto; border-radius: 0; padding: 0 6px;
    background: transparent; border: 0; box-shadow: none; display: flex; align-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .stage-prev { left: 0; justify-content: flex-start; } .stage-next { right: 0; justify-content: flex-end; }
  .stage-nav:hover { border: 0; }
  .stage-chev { filter: drop-shadow(0 0 3px rgba(255,255,255,.9)); transition: transform .15s; }
  .stage-prev:active .stage-chev { transform: rotate(90deg) scale(.85); }
  .stage-next:active .stage-chev { transform: rotate(-90deg) scale(.85); }
  .select.night .stage-nav { background: transparent; }
  .select.night .stage-chev { filter: drop-shadow(0 0 3px rgba(0,0,0,.8)); }
}
/* Madeleine's hand-drawn chevron (the FAQ's "V"), turned to point back / forward */
.stage-chev { width: 22px; height: 19px; color: var(--ink); }
.stage-prev .stage-chev { transform: rotate(90deg); }
.stage-next .stage-chev { transform: rotate(-90deg); }
.select.night .stage-chev { color: #fff; }

/* ── the promise bar (Oscar, 2026-10-29): free tracked UK delivery leads the page, plus the Christmas date in season ── */
.promo-bar {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 18px; row-gap: 2px;
  padding: 7px 16px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; text-align: center;
}
.promo-bar b { font-weight: 800; }
.promo-bar b::before { content: '✦'; color: var(--glow); margin-right: 7px; font-weight: 400; }
.pb-xmas { color: #ffd9a0; font-weight: 700; }
.pb-xmas::before { content: '🎄'; margin-right: 6px; }
.pb-short { display: none; }
@media (max-width: 600px) { .pb-more, .pb-long { display: none; } .pb-short { display: inline; } .promo-bar { font-size: 12px; column-gap: 10px; padding: 6px 10px; white-space: nowrap; } .promo-bar b::before { margin-right: 5px; } .pb-xmas::before { margin-right: 4px; } }

/* ── reassurance under the buy row: the worries answered where the decision is made ── */
.reassure { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 14px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.reassure li::before { content: '✓'; color: var(--deal); font-weight: 900; margin-right: 6px; }
.reassure b { color: var(--ink); font-weight: 700; }
.select.night .reassure b { color: #fff; }
.select.night .reassure { color: #a29cb4; }
@media (min-width: 601px) and (max-width: 860px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; } }   /* tablets: keep tiles near desktop size, the drawn frames scale with the tile but the labels don't (3 across on an iPad covered them, Oscar 2026-11-01) */
@media (max-width: 860px) { .reassure { margin-top: 10px; font-size: 12px; } .select.photo-on .reassure { display: none; } }

/* ── desktop, full width (Oscar, 2026-10-29): the phone's order — intro, a big charm with its arrows, then the whole
   library beneath (was: library left, sticky stage right) — spread across a full-size page. The buy row floats as a bar
   once it scrolls away. ── */
@media (min-width: 861px) {
  .wrap { max-width: 1400px; padding: 0 40px; }
  .faq { max-width: 900px; }
  .select { padding-top: 18px; }
  .select-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "lib"; grid-template-rows: auto; row-gap: 18px; }
  .select-head { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
  .select-head h1 { flex: none; margin-bottom: 0; }
  .head-row { max-width: 620px; }
  .hero-reveal { width: 112px; border-radius: 18px; }
  /* a wide band: the charm big in the middle, its arrows and switches out at the band's edges */
  .stage-col { position: relative; top: auto; justify-self: center; width: min(100%, 1040px); }
  .stage { aspect-ratio: auto; height: clamp(400px, calc(100svh - 430px), 680px); }
  .stage-info { max-width: 1040px; }
  .reassure { grid-template-columns: repeat(4, auto); justify-content: space-between; border-top: var(--hair) solid var(--line); padding-top: 12px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
  .tiles-drop { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .library { border-top: var(--hair) solid var(--line); padding-top: 26px; }
  .select.buy-away .buy-bar {
    display: flex; left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(680px, calc(100vw - 48px));
    border: var(--hair) solid var(--line); border-radius: var(--r-pill); padding: 8px 8px 8px 26px; box-shadow: var(--shadow);
  }
}
/* photo tips before the first photo (Oscar, 2026-11-04) */
.photo-tips { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: #fff6ea; font-size: 12.5px; color: var(--muted); }
.photo-tips[hidden] { display: none; }
.photo-tips b { color: var(--ink); }
.photo-tips ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 5px 0 4px; padding: 0; color: var(--ink); font-weight: 700; }
.photo-tips li::before { content: '✓'; color: var(--deal); font-weight: 900; margin-right: 5px; }
.photo-tips p { margin: 0; }
.select.night .photo-tips { background: rgba(255,255,255,.07); color: #a29cb4; }
.select.night .photo-tips b, .select.night .photo-tips ul { color: #fff; }
@media (max-width: 860px) { .photo-tips { font-size: 12px; padding: 9px 12px; } }
/* small / dark photo heads-up once a photo is in (Oscar, 2026-11-04) — shown on phones too */
.photo-warn { margin: 10px 0 0; padding: 9px 14px 9px 36px; border-radius: 14px; background: #fff1d6; color: #7a4a00; font-size: 12.5px; position: relative; }
.photo-warn[hidden] { display: none; }
.photo-warn::before { content: '!'; position: absolute; left: 12px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #e09a1a; color: #fff; font-weight: 900; font-size: 11px; line-height: 16px; text-align: center; }
.select.night .photo-warn { background: rgba(255, 196, 92, .14); color: #ffd99a; }
@media (max-width: 860px) { .photo-warn { font-size: 12px; margin-top: 6px; } }
