/* Serial Gifter: shared look for the form (/) and results (/ideas).
   Warm Luxury palette, light, CRED-inspired: bold type, generous space, soft raised surfaces. */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #faf5f1; --surface: #ffffff; --fg: #26201e; --body: #4d443e; --muted: #736860; --line: #eae2db;
  /* One brand colour (cherry red) and one playful accent (muted mustard). */
  --primary: #96364d; --primary-hi: #a9465e; --on-primary: #ffffff; --tint: #f6e3e7; --cream: #f3ebdd;
  --link: var(--primary); --gold: #d8a928; --gold-chip: #d8a928; --on-gold: #1e1915; --err: #a3262f;
  --shadow-sm: 0 1px 2px rgba(30, 25, 21, .06), 0 2px 8px rgba(30, 25, 21, .05);
  --shadow: 0 1px 2px rgba(30, 25, 21, .05), 0 8px 24px rgba(30, 25, 21, .08);
  --shadow-cta: 0 8px 18px rgba(150, 54, 77, .22);
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1915; --surface: #2a231f; --fg: #f7f0eb; --body: #d4c9c1; --muted: #9a8f87; --line: #342c27;
    --primary: #e58c97; --primary-hi: #eea1aa; --on-primary: #1e1915; --tint: #3a2226; --cream: #352b23;
    --link: var(--primary); --gold: #d8a928; --gold-chip: #d8a928; --err: #f2a7ad;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 8px 24px rgba(0, 0, 0, .35); --shadow-cta: 0 10px 24px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1915; --surface: #2a231f; --fg: #f7f0eb; --body: #d4c9c1; --muted: #9a8f87; --line: #342c27;
  --primary: #e58c97; --primary-hi: #eea1aa; --on-primary: #1e1915; --tint: #3a2226; --cream: #352b23;
  --link: var(--primary); --gold: #d8a928; --gold-chip: #d8a928; --err: #f2a7ad;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 8px 24px rgba(0, 0, 0, .35); --shadow-cta: 0 10px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--body);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: 560px; margin: 0 auto;
  padding: 20px 16px 64px;
  display: flex; flex-direction: column; gap: 40px;
}
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* site header: the wordmark (one colour, no tagline), an action on the right, sticky with a frosted backdrop */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(30, 25, 21, .06); }
.site-header-inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { position: relative; display: inline-flex; align-items: center; gap: 0; text-decoration: none; min-width: 0; }
/* Logo hover: a tiny party popper (see common.js). Nothing shows until you hover. */
.pop { position: absolute; left: 100%; top: 50%; width: 0; height: 0; pointer-events: none; }
.pop .popper { position: absolute; left: 2px; top: -13px; font-size: 20px; line-height: 1; animation: popper-in 1.1s var(--ease) forwards; }
.pop i { position: absolute; left: 14px; top: -8px; width: 7px; height: 3px; border-radius: 1px; background: var(--c); opacity: 0; animation: confetti .9s cubic-bezier(.15, .7, .3, 1) var(--delay) forwards; }
.pop i.dot { width: 5px; height: 5px; border-radius: 50%; }
@keyframes popper-in {
  0% { opacity: 0; transform: scale(.3) rotate(-35deg); }
  22% { opacity: 1; transform: scale(1.15) rotate(10deg); }
  45% { transform: scale(1) rotate(0deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(.9) rotate(0deg); }
}
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  65% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 14px)) rotate(var(--r)); }
}
.wordmark { display: flex; flex-direction: column; min-width: 0; }
.wordmark .name { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; color: var(--primary); }
/* Header button: flat, softly rounded, boutique-like. */
.header-cta {
  flex: none; text-decoration: none; font-family: var(--font-body); font-weight: 500; font-size: 14px; white-space: nowrap;
  min-height: 40px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; gap: 14px;
  background: var(--primary); color: var(--on-primary); transition: background .15s;
}
.header-cta:hover { background: var(--primary-hi); }
.header-cta { transition: background .15s, opacity .25s, transform .25s var(--ease), visibility .25s; }
.header-cta.away { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; }
.header-cta .arr { transition: transform .2s var(--ease); }
.header-cta .short { display: none; }
@media (max-width: 480px) { .header-cta .long { display: none; } .header-cta .short { display: inline; } }
.header-cta:hover .arr { transform: translateX(3px); }
.header-cta.ghost { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
@media (min-width: 720px) {
  .site-header-inner { padding: 16px 24px; }
  .wordmark .name { font-size: 30px; }
  .header-cta { min-height: 46px; padding: 0 22px; font-size: 16px; gap: 20px; }
}

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.brandline { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--primary); letter-spacing: -0.01em; text-decoration: none; }
.brandline i { font-style: normal; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-chip); margin-left: 4px; vertical-align: middle; }
.back { font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--primary); }

.brandline b { color: var(--gold-chip); font-weight: 800; margin-left: 2px; }

/* type */
h1 {
  font-family: var(--font-display); font-weight: 800; color: var(--fg);
  font-size: clamp(38px, 9.5vw, 54px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
h1 span { color: var(--primary); }
.lede { margin-top: 14px; font-size: 17px; max-width: 40ch; }
.promise { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--fg); }
.step-head { display: flex; flex-direction: column; gap: 4px; }
.sub { font-size: 15px; color: var(--muted); }
.aside { font-size: 14px; font-style: italic; color: var(--primary); }
h2.sec { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--fg); line-height: 1.2; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* form steps */
.steps { display: flex; flex-direction: column; gap: 36px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--fg); }

.suggest { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  appearance: none; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--fg);
  transition: background .18s, color .18s, border-color .18s, transform .12s var(--ease);
}
.pill:hover { border-color: var(--tint); background: var(--tint); }
.pill:active { transform: scale(.97); }
.pill[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* "Open a new world": a switch, not an interest, so it can sit alongside any of them. */
.discover {
  appearance: none; font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg);
  transition: border-color .18s, background .18s;
}
.discover:hover { border-color: var(--tint); background: var(--tint); }
.discover .txt { display: flex; flex-direction: column; gap: 2px; }
.discover strong { font-weight: 600; font-size: 15px; }
.discover small { font-size: 13.5px; color: var(--muted); }
.discover .sw { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.discover .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(38, 32, 30, .25); transition: transform .2s var(--ease); }
.discover[aria-pressed="true"] { border-color: var(--primary); background: var(--tint); }
.discover[aria-pressed="true"] .sw { background: var(--primary); }
.discover[aria-pressed="true"] .sw::after { transform: translateX(16px); }
.fine { font-size: 13px; color: var(--muted); }

.gender { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.gender .pill { min-height: 38px; padding: 0 16px; font-size: 14px; }

.tagbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 1.5px solid var(--line); padding-bottom: 6px; transition: border-color .18s; }
.tagbox:focus-within { border-color: var(--primary); }
.tagbox input { flex: 1 1 160px; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--fg); padding: 8px 0; }
.tagbox input::placeholder { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; font-weight: 500; }
.tag button { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; width: 20px; height: 20px; font-size: 15px; line-height: 1; display: grid; place-items: center; }

/* main button: full width, sticks to the bottom of the screen on phones until you reach it */
.cta-wrap { display: flex; flex-direction: column; gap: 10px; }
.cta-wrap.ready { position: sticky; bottom: 12px; z-index: 5; }
/* While it's following you down the page, the small line under it hides, and a soft fade
   behind the button covers whatever scrolls underneath. */
.cta-wrap .note { transition: opacity .2s; }
.cta-wrap.ready.stuck .note { opacity: 0; visibility: hidden; }
.cta-wrap.ready.stuck::before {
  content: ""; position: absolute; z-index: -1; left: -16px; right: -16px; top: -28px; bottom: -12px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 28px);
}
.go {
  appearance: none; font: inherit; cursor: pointer; width: 100%; min-height: 56px; border: 0; border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--primary-hi), var(--primary)); color: var(--on-primary);
  box-shadow: var(--shadow-cta); display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s var(--ease), box-shadow .15s, opacity .15s;
}
.go:not(.waiting):hover { transform: translateY(-1px); }
.go:active { transform: scale(.99); }
.go.waiting { opacity: .35; transform: none; box-shadow: none; }
.go:disabled { opacity: .5; cursor: progress; }
/* A gentle wiggle on the question that still needs an answer. */
.nudge { animation: nudge .45s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .nudge { animation: none; } }
.go .arr { transition: transform .2s var(--ease); }
.go:not(.waiting):hover .arr { transform: translateX(3px); }
.note { font-size: 14px; color: var(--muted); }
.error { color: var(--err); font-size: 15px; }

/* reveal motion */
.rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.reveal { animation: reveal .35s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Featured ads (below the form): tall rounded tiles, picture or video only, brand + category below */
.featured { display: flex; flex-direction: column; gap: 12px; }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.featured-head .kicker { white-space: nowrap; flex: none; padding-bottom: 4px; }
@media (min-width: 900px) {
  /* Break out of the narrow form column so five tiles fit side by side. */
  .featured { width: min(1040px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%); }
}
.feat-wrap { position: relative; }
.feat-row {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -16px; padding: 4px 16px 16px; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
}
.feat-row::-webkit-scrollbar { display: none; }
.feat {
  flex: 0 0 calc((100% - 28px) / 2.3); scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit;
}
@media (min-width: 900px) { .feat { flex-basis: calc((100% - 4 * 14px) / 5); } }
.feat .box { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--cream); margin-bottom: 8px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.feat:hover .box { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat:active .box { transform: scale(.98); }
.feat .box img, .feat .box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat .ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tint); color: var(--primary); font: 800 40px var(--font-display); }
.feat .ad { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700; color: var(--on-gold); background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 2px 8px; }
/* Arrow in the top-right corner of ad tiles and sponsored cards (the whole tile is the link). */
.go-arrow {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--primary);
  font: 700 16px/1 var(--font-body); box-shadow: 0 2px 8px rgba(38, 32, 30, .15); transition: transform .2s var(--ease), background .2s, color .2s;
}
.feat:hover .go-arrow, .card.sponsored:hover .go-arrow { background: var(--primary); color: #fff; transform: translate(2px, -2px); }
/* Open ad slots: an invitation to brands, styled as a dashed "empty frame". */
.feat.open-slot .box { background: var(--surface); border: 2px dashed var(--tint); box-shadow: none; display: grid; place-items: center; }
.feat.open-slot:hover .box { border-color: var(--primary); }
.feat .slot-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; font-size: 22px; }
.feat .slot-msg strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; color: var(--primary); }
.feat .slot-msg span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.feat .cat.write { color: var(--primary); font-weight: 600; }
.feat .nm { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
.feat .cat { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }

/* desktop carousel controls, shown only while auto-advance is active */
.feat-nav, .feat-dots { display: none; }
.featured.auto .feat-nav {
  display: grid; place-items: center; position: absolute; top: 40%; transform: translateY(-50%); z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--primary); font: 600 18px/1 var(--font-body);
  box-shadow: var(--shadow); transition: transform .15s;
}
.featured.auto .feat-nav:hover { transform: translateY(-50%) scale(1.08); }
.featured.auto .feat-nav.prev { left: -14px; }
.featured.auto .feat-nav.next { right: -14px; }
.featured.auto .feat-dots { display: flex; justify-content: center; gap: 6px; }
.feat-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.feat-dots button[aria-current="true"] { width: 18px; background: var(--primary); }

/* results page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.secondary {
  appearance: none; font: inherit; cursor: pointer; align-self: flex-start; border: 0; border-radius: 14px;
  min-height: 44px; padding: 0 18px; font-weight: 600; font-size: 15px; color: var(--primary);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .12s;
}
.secondary:hover { box-shadow: var(--shadow); }
.secondary:active { transform: scale(.98); }
.secondary:disabled { opacity: .5; cursor: progress; }
.quiet-link { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.quiet-link:hover { color: var(--primary); }
.hint-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.hint-btn:hover { color: var(--primary); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---- results: "the gift edit", an image-led collection of cards ---- */
.page.wide { max-width: 1080px; }
.edit-hero { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.edit-hero h1 { font-size: clamp(34px, 7vw, 56px); }
.edit-vibe { font-size: 17px; color: var(--body); }
.edit-sub { font-size: 15px; font-weight: 600; color: var(--fg); }
.edit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.edit-chips span { font-size: 13px; font-weight: 500; color: var(--fg); background: var(--tint); border-radius: 999px; padding: 5px 12px; }
.edit-chips span:nth-child(even) { background: var(--cream); }
.edit-collection { display: flex; flex-direction: column; gap: 18px; }
.edit-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.edit-bar .sec { font-size: 22px; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { opacity: .5; cursor: progress; }
.refine { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.refine .suggest .pill { min-height: 40px; font-size: 14px; }
.refine-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.go.small { width: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.edit-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .pic { position: relative; aspect-ratio: 4 / 3; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
/* Product photos are shown whole, never cropped. */
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(38, 32, 30, .14)); }
.card.sponsored { text-decoration: none; color: inherit; }
.card .pic.fill > img, .card .pic.fill > video { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; object-fit: cover; filter: none; }
.card .pic.fill > .ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--tint); color: var(--primary); font: 800 40px var(--font-display); }
.card .pic.tile .emoji { font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 10px rgba(38, 32, 30, .16)); transition: transform .3s var(--ease); }
.card:hover .pic.tile .emoji { transform: scale(1.08) rotate(-4deg); }
.card .kind { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--fg); background: rgba(255, 255, 255, .88); border-radius: 999px; padding: 3px 10px; }
.card .kind.ad { background: var(--gold); color: var(--on-gold); }
.card .body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card .label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); }
.card .why { font-size: 15px; line-height: 1.5; }
.card .foot { margin-top: auto; padding-top: 8px; }
.card .price { font-size: 15px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.card .acts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.card .shop { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--primary); }
.card .shop:hover { text-decoration: underline; text-underline-offset: 3px; }
.card.skeleton { min-height: 340px; position: relative; box-shadow: none; background: var(--surface); }
.card.skeleton::before { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 3; background: var(--cream); }
.card.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: shimmer 1.3s infinite; transform: translateX(-100%);
}
.card.skeleton:hover { transform: none; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .card.skeleton::after { animation: none; } .card:hover, .card:hover .pic.tile .emoji { transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .pic.tile { filter: brightness(.82); } }

footer { font-size: 13px; color: var(--muted); }
footer p + p { margin-top: 4px; }

/* ---- home-page board: gifts pinned to grid paper ---- */
.board { --grid: rgba(110, 175, 200, .28); --paper: #fbfbf8; padding: 8px 12px 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .board { --grid: rgba(120, 180, 200, .14); --paper: #221c18; } }
:root[data-theme="dark"] .board { --grid: rgba(120, 180, 200, .14); --paper: #221c18; }
.board-inner {
  position: relative; max-width: 1200px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px; background-position: -1px -1px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.stickers { position: relative; height: 300px; }
.sticker {
  position: absolute; width: var(--size); transform: rotate(var(--tilt)) translateY(calc(var(--scroll, 0) * var(--drift) * -0.06px)) scale(var(--fit, 1));
  animation: pop .7s var(--ease) both; animation-delay: var(--d);
  transition: transform .25s var(--ease), filter .25s; text-decoration: none; color: inherit;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) rotate(0deg) scale(.85); } }
.sticker.filler { font-size: calc(var(--size) * .62); line-height: 1; text-align: center; filter: drop-shadow(0 6px 8px rgba(30, 25, 21, .18)); user-select: none; }
/* No square frames: a product is either a cutout (made in the admin) with a die-cut white
   sticker edge, or, until it has one, the photo in its own shape (a tall book stays tall, never
   cropped) with softly rounded corners. */
.sticker.real img { display: block; margin: 0 auto; }
.sticker.real.loading img { visibility: hidden; }
.sticker.real.cut img {
  width: auto; height: auto; max-width: 100%; max-height: var(--size);
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 8px 10px rgba(30, 25, 21, .22));
}
.sticker.real.photo img { width: auto; height: auto; max-width: 100%; max-height: var(--size); border-radius: 12px; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(30, 25, 21, .22); }
.sticker.hide { display: none; }
.sticker.real .noimg {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 8px;
  border: 5px solid #fff; background: #fff; box-shadow: 0 8px 18px rgba(30, 25, 21, .22);
}
.sticker.real .noimg { display: grid; place-items: center; padding: 8px; font: 700 13px/1.25 var(--font-display); color: var(--fg); text-align: center; }
.sticker.real { z-index: 1; }
.sticker.real .photo { display: block; cursor: pointer; }
.sticker.real:hover, .sticker.real:focus-within, .sticker.real.open { z-index: 5; transform: translateY(-6px) rotate(0deg) scale(calc(var(--fit, 1) * 1.08)); }
/* Product tag, like a tagged person on an Instagram photo: a small white label with a little pointer.
   Hidden until the product is hovered; always shown on touch screens. */
.sticker .tag {
  position: absolute; top: calc(100% - 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(var(--size) + 8px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4px; align-items: start;
  padding: 3px 7px; border-radius: 6px; background: #fff; color: #1E1915;
  font: 600 10px/1.3 var(--font-body); text-decoration: none; text-align: left;
  box-shadow: 0 3px 10px rgba(30, 25, 21, .18); transition: opacity .18s, margin-top .18s var(--ease), background .2s, color .2s;
  opacity: 0; margin-top: -4px; pointer-events: none;
}
.sticker .tag::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -4px;
  border: 4px solid transparent; border-bottom-color: #fff; border-top: 0; transition: border-color .2s;
}
.sticker.cap-left .tag { left: 0; transform: none; }
.sticker.cap-left .tag::before { left: calc(var(--size) / 2); }
.sticker.cap-right .tag { left: auto; right: 0; transform: none; }
.sticker.cap-right .tag::before { left: auto; right: calc(var(--size) / 2); margin: 0 -4px 0 0; }
.sticker .tname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sticker .tarr { color: #96364D; font-weight: 700; }
.sticker .tline { display: none; grid-column: 1 / -1; margin-top: 2px; font-weight: 400; color: #5f544d; }
.sticker .tag:hover { background: #96364D; color: #fff; }
.sticker .tag:hover .tarr, .sticker .tag:hover .tline { color: #fff; }
.sticker .tag:hover::before { border-bottom-color: #96364D; }
.sticker.real:hover .tag, .sticker.real:focus-within .tag, .sticker.real.open .tag { max-width: 180px; opacity: 1; margin-top: 0; pointer-events: auto; }
.sticker.real:hover .tline, .sticker.real:focus-within .tline, .sticker.real.open .tline { display: block; }
.sticker .tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Touch screens can't hover, so tags stay on show there; a tap on the photo adds Disha's line. */
@media (hover: none) { .sticker.real .tag { opacity: 1; margin-top: 0; pointer-events: auto; } }
/* Phones: a touch smaller still, so neighbours don't collide; the full name shows when opened. */
@media (max-width: 719px) {
  .sticker .tag { top: calc(100% - 5px); max-width: calc(var(--size) + 6px); padding: 3px 6px; font-size: 9.5px; border-radius: 5px; }
  .sticker.real.open .tag { max-width: 170px; }
  .sticker.real.open .tname { -webkit-line-clamp: 3; }
}

.board-copy { position: relative; padding: 0 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.board .type { font-family: "Space Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); max-width: 34ch; line-height: 1.8; }
.board-hero h1 { font-size: clamp(34px, 9vw, 64px); }
.board-hero .lede { font-size: 16px; }

@media (min-width: 720px) {
  .board { padding: 12px 24px 0; }
  /* Short enough that the first question peeks in below on a laptop's first screen. */
  .board-inner { height: clamp(460px, calc(100vh - 290px), 620px); }
  .stickers { position: absolute; inset: 0 0 0 0; height: auto; }
  .board-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 44px 30px; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; pointer-events: none; }
  .board-copy > * { pointer-events: auto; }
  .board .type { font-size: 13px; padding-bottom: 6px; }
  .board-hero { max-width: 600px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
  .board-hero .lede { max-width: 44ch; }
  .board-hero h1 { font-size: clamp(34px, min(5.2vw, 7.5vh), 64px); }
}
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }
