/* ============================================================
   JD Swipe (/discover + /start) — taste-study flow and the
   path chooser. Adapted from design_handoff/JD Swipe. Entirely
   token-driven (skins re-colour it); jewellery gold comes from
   --color-jewellery-gold in tokens.css — a metal, deliberately
   skin-independent (LOVE stamp, reveal keyline, taste-line
   dots, chooser keyline). Animation durations multiply by
   --animation-level so Classic Heirloom (level 0) renders
   instantly.
   ============================================================ */

.sf {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-primary, 'Montserrat', sans-serif);
}
.sf-column { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }

/* ---------- path chooser (/start) ---------- */
.sf-chooser {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 62px 20px 10px;
  box-sizing: border-box;
}
.sf-chooser-head { flex: none; text-align: center; }
.sf-chooser-wordmark {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700; font-size: 16px;
  color: var(--color-accent);
}
.sf-chooser-title {
  margin-top: 12px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 500; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--color-foreground);
}
/* All four cards share one phone viewport: each flexes, none scroll. */
.sf-choices {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 12px; margin-top: 18px;
}
.sf-choices form { display: contents; }
.sf-choice {
  position: relative; overflow: hidden;
  flex: 1; min-height: 110px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 0; text-align: left;
  background: var(--color-surface);
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  cursor: pointer;
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.4);
  transition: transform 100ms ease, box-shadow 200ms ease;
}
.sf-choice:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45); }
.sf-choice:active { transform: translateY(2px); }
/* Image lives on the right; a left-to-right scrim keeps text on brand colour. */
.sf-choice img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 82% center;
}
.sf-choice-vision img { object-position: 82% 30%; }
.sf-choice-surprise img { object-position: 82% 40%; }
.sf-choice-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--color-background) 34%, transparent 82%);
}
/* The surprise card's inner gold keyline — the reveal vitrine's language. */
.sf-choice-keyline {
  position: absolute; inset: 6px;
  border: 1px solid color-mix(in srgb, var(--color-jewellery-gold) 50%, transparent);
  border-radius: 11px;
  pointer-events: none;
}
.sf-choice-text { position: relative; display: block; padding: 16px 130px 16px 18px; }
.sf-choice-title {
  display: block;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700; font-size: 19px; line-height: 1.2;
  color: var(--color-foreground);
}
.sf-choice-sub {
  display: block; margin-top: 5px; max-width: 200px;
  font-size: 12px; line-height: 1.5;
  color: var(--color-muted-foreground);
}
.sf-chooser-skip { flex: none; text-align: center; padding: 12px 0 16px; }
.sf-chooser-skip .sf-startover { margin-top: 0; }

/* ---------- surprise gathering (/surprise) — handoff v2 ----------
   Tap-first form. Rows expand via CSS :has() with a Stimulus layer for
   the behaviours CSS can't do (not-much exclusivity, live name helper,
   DS .selected sync, More options). The full-screen gold keyline frame
   is this path's signature. DS metal-btn / gemstone-btn components are
   reused with the dark-green-glass overrides from the changelog. */
.sp-frame {
  position: fixed; inset: 10px;
  border: 1px solid color-mix(in srgb, var(--color-jewellery-gold) 40%, transparent);
  border-radius: 18px;
  pointer-events: none;
  z-index: 40;
}
.sp-gather {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 58px 30px 36px;
  box-sizing: border-box;
}
.sp-head { flex: none; text-align: center; }
.sp-eyebrow {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-jewellery-gold);
}
.sp-title {
  margin-top: 12px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 500; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--color-foreground);
}
.sp-lede { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--color-muted-foreground); }
.sp-form { display: flex; flex-direction: column; gap: 22px; flex: 1; margin-top: 24px; }
.sp-block { display: block; }
.sp-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-muted-foreground);
}
/* The gift, not a form: Playfair italic name input with a gold focus. */
.sp-input {
  width: 100%; margin-top: 10px; padding: 13px 16px;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-foreground);
  font-family: var(--font-display, 'Playfair Display', serif);
  font-style: italic; font-size: 19px;
}
.sp-input:focus { outline: none; border-color: color-mix(in srgb, var(--color-jewellery-gold) 60%, transparent); }
.sp-hint { display: block; margin-top: 8px; font-size: 11.5px; font-style: italic; color: var(--color-muted-foreground); }
/* Know rows: tactile emboss (quiz-button tokens) with a circle check. */
.sp-know-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 15px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--btn-surface-light), var(--btn-surface));
  box-shadow: 0 2px 6px var(--btn-shadow-soft), inset 0 1px 0 var(--btn-highlight);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 200ms ease;
}
.sp-know-row:hover { transform: translateY(-1px); }
.sp-know-row:active { transform: translateY(1px); }
.sp-know-row.sp-row-selected,
.sp-know-row:has(.sp-row-input:checked) {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-jewellery-gold) 75%, transparent),
              0 2px 6px var(--btn-shadow-soft);
}
.sp-know-row:has(.sp-row-input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sp-row-input { position: absolute; opacity: 0; pointer-events: none; }
.sp-row-title { font-size: 13px; font-weight: 600; color: var(--btn-text); }
.sp-row-check {
  flex: none; width: 22px; height: 22px;
  border: 1px solid var(--color-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sp-row-check svg {
  width: 12px; height: 12px;
  stroke: var(--color-jewellery-gold); stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity 200ms ease;
}
.sp-know-row.sp-row-selected .sp-row-check svg,
.sp-know-row:has(.sp-row-input:checked) .sp-row-check svg { opacity: 1; }
.sp-note { display: none; margin-top: 8px; font-size: 11.5px; font-style: italic; line-height: 1.6; color: var(--color-muted-foreground); }
.sp-form:has(input[name="surprise_brief[has_photos]"]:checked) .sp-photos-note { display: block; }
.sp-reassure {
  display: none; margin-top: 10px; text-align: center;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-style: italic; font-size: 14px; line-height: 1.6;
  color: var(--color-foreground);
}
.sp-reassure.sp-visible { display: block; }
/* Inline expansions: gentle reveal, never a growing questionnaire. */
.sp-expand {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 300ms ease, opacity 300ms ease;
  /* Dark green glass (changelog §3): accent-derived so it stays
     white-label safe, gold selected accents via the metal token. */
  --stone-btn-surface-light: color-mix(in srgb, var(--color-accent) 42%, rgba(5, 16, 12, 0.9));
  --stone-btn-surface: color-mix(in srgb, var(--color-accent) 26%, rgba(5, 16, 12, 0.9));
  --stone-btn-surface-dark: color-mix(in srgb, var(--color-accent) 16%, rgba(5, 16, 12, 0.92));
  --stone-btn-highlight: rgba(255, 255, 255, 0.22);
  --stone-btn-shadow-inner: rgba(255, 255, 255, 0.05);
  --stone-btn-text: rgba(255, 255, 255, 0.72);
  --stone-btn-icon-selected: #ffffff;
  --stone-btn-accent: var(--color-jewellery-gold);
  --stone-btn-accent-glow: color-mix(in srgb, var(--color-jewellery-gold) 35%, transparent);
}
.sp-form:has(.sp-toggle-metal:checked) .sp-expand-metal,
.sp-form:has(.sp-toggle-stones:checked) .sp-expand-stones {
  max-height: 1200px; opacity: 1; overflow: visible;
}
.sp-expand .sp-hint { margin: 10px 2px 0; }
/* Premium glass finish per chip (changelog §3). */
.sp-expand .metal-btn,
.sp-expand .gemstone-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
/* No-JS fallback for the DS .selected class. */
.sp-expand .metal-btn:has(:checked),
.sp-expand .gemstone-btn:has(:checked) {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-jewellery-gold) 75%, transparent);
}
/* ---- Selected chips: unmistakable gold edge + corner tick badge ----
   The DS default selected treatment is a faint, per-stone-coloured
   border that barely registers. Here selection must be obvious: a solid
   2px gold edge PLUS a filled-gold badge carrying the same checkmark the
   accordion headers use, so metal and stone chips speak one gold
   language. Scoped with .sp-gather so it overrides the per-gemstone
   .selected outlines/border-colours in gemstone_buttons.css. */
.sp-gather .sp-expand .metal-btn.selected,
.sp-gather .sp-expand .gemstone-btn.selected,
.sp-gather .sp-expand .metal-btn:has(:checked),
.sp-gather .sp-expand .gemstone-btn:has(:checked) {
  border-color: var(--color-jewellery-gold);
  outline: 2px solid var(--color-jewellery-gold);
  outline-offset: -2px;
}
/* The badge overlaps the card corner, so the card (already relative in
   the DS base) must not clip it — drop the base overflow:hidden here and
   keep the grids unclipped too. The base ::before sheen is inset:0 with
   its own radius, so removing the clip is visually safe. */
.sp-expand .metal-btn,
.sp-expand .gemstone-btn { position: relative; overflow: visible; }
.sp-metal-grid,
.sp-gem-grid { overflow: visible; }
/* Filled-gold circle + the accordion's exact checkmark. Gold comes from
   the skin-independent metal token; the tick is a fixed dark ink because
   that gold is a constant (#D4AF37) across skins — a white/contrast
   token would fail against it in light partner skins. Hidden until the
   chip is selected; the real non-visual signal is the checked input. */
.sp-card-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-jewellery-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
  z-index: 4;
}
.sp-card-badge svg {
  width: 11px;
  height: 11px;
  stroke: hsl(30, 20%, 10%);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sp-expand .metal-btn.selected .sp-card-badge,
.sp-expand .gemstone-btn.selected .sp-card-badge,
.sp-expand .metal-btn:has(:checked) .sp-card-badge,
.sp-expand .gemstone-btn:has(:checked) .sp-card-badge {
  opacity: 1;
  transform: scale(1);
}
.sp-metal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 12px;
}
.sp-gem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 12px;
}
.sp-more { display: none; margin-top: 8px; }
.sp-more.sp-more-open { display: grid; }
.sp-plus { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.sp-more-toggle { font-family: inherit; }
/* CTA: the path's gold shimmer, enabled from zero answers. */
.sp-actions { flex: none; text-align: center; }
.sp-continue {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 54px;
  border: 1px solid var(--color-accent-stroke);
  border-radius: var(--border-radius-lg, 8px);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent));
  background-size: 200% 100%;
  color: var(--color-accent-contrast);
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 10px 30px -6px var(--color-accent-glow);
  cursor: pointer;
  animation: sf-shimmer calc(var(--animation-level, 1) * 3s) linear infinite;
  transition: transform 100ms ease, filter 200ms ease;
}
.sp-continue:hover { transform: translateY(-1px); filter: brightness(1.07); }
.sp-continue:active { transform: translateY(2px); }
.sp-continue-hint { margin-top: 10px; font-size: 11px; }
.sp-skip { display: none; }
.sp-form:has(.sp-fact:checked) .sp-skip,
.sp-form.sp-has-facts .sp-skip { display: inline-block; }

/* ---------- desktop site chrome (handoff changelog §1) ----------
   Phones: untouched full-bleed. Desktop: the existing sidebar offsets
   the flow and the site footer follows it; flow columns stay centred
   in the remaining space. */
.sf-site-footer { display: none; }
@media (min-width: 768px) {
  .sf-shell { margin-left: 14rem; }
  .sf-site-footer { display: block; }
  .sp-frame { left: calc(14rem + 10px); }
}

/* ---------- intro ---------- */
.sf-intro { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; }
.sf-intro-photo { position: absolute; inset: 0 0 auto 0; height: 74dvh; overflow: hidden; }
.sf-intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sf-intro-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.18) 0%, transparent 18%, transparent 34%, var(--color-background) 72%, var(--color-background) 100%);
}
.sf-wordmark {
  position: absolute;
  top: 66px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.sf-intro-block { position: relative; z-index: 2; padding: 0 28px 44px; max-width: 520px; margin: 0 auto; width: 100%; }
.sf-eyebrow {
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-accent);
}
.sf-intro-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 500; font-size: 40px; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--color-foreground);
  margin-top: 12px;
}
.sf-intro-meta { font-size: 13.5px; line-height: 1.75; color: var(--color-muted-foreground); margin-top: 14px; }
.sf-start {
  display: block; width: 100%; height: 56px; margin-top: 26px;
  border-radius: var(--border-radius-lg, 8px);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  border: 1px solid var(--color-accent-stroke);
  color: var(--color-accent-contrast);
  font-family: inherit; font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 10px 30px -6px var(--color-accent-glow);
  cursor: pointer;
  transition: transform 100ms ease, filter 200ms ease;
}
.sf-start:hover { transform: translateY(-1px); filter: brightness(1.07); }
.sf-start:active { transform: translateY(2px); }

/* ---------- card loop ---------- */
.sf-cards { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.sf-head { padding: 64px 24px 6px; text-align: center; }
.sf-counter { font-weight: 500; font-size: 11.5px; letter-spacing: 0.22em; color: var(--color-muted-foreground); }
.sf-question {
  margin-top: 8px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-style: italic; font-size: 15.5px;
  color: var(--color-foreground);
}
.sf-stage { flex: 1; position: relative; margin: 12px 20px 6px; }
.sf-card {
  position: absolute; inset: 0;
  border-radius: 16px; overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.45);
}
/* The ring shows in full (contain) over a blurred cover copy of itself,
   so the card still reads edge-to-edge with no letterbox and the whole
   ring stays visible — never cropped. */
.sf-card-blur {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(22px); transform: scale(1.12);
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.sf-card-ring {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.sf-card .sf-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.sf-spec {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 14px;
}
.sf-under {
  transform: translateY(12px) scale(0.94);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35);
}
.sf-top { touch-action: none; cursor: grab; z-index: 2; }
.sf-top:active { cursor: grabbing; }

.sf-stamp {
  position: absolute;
  border: 2px solid currentColor; border-radius: 6px;
  padding: 6px 16px;
  font-weight: 700; font-size: 17px; letter-spacing: 0.22em;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
}
.sf-stamp-love { top: 22px; left: 20px; transform: rotate(-9deg); color: var(--color-jewellery-gold); }
.sf-stamp-pass { top: 22px; right: 20px; transform: rotate(9deg); color: rgba(255, 255, 255, 0.9); }
.sf-stamp-unsure {
  top: 22px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 15px; letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}

.sf-hint {
  text-align: center;
  font-size: 11px; font-style: italic;
  color: var(--color-muted-foreground);
  padding: 8px 20px 0;
}

.sf-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 12px 20px 14px; }
.sf-actions form { display: contents; }
.sf-btn {
  height: 64px;
  border-radius: var(--border-radius-lg, 8px);
  background: linear-gradient(180deg, var(--btn-surface-light), var(--btn-surface));
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px var(--btn-shadow-soft), inset 0 1px 0 var(--btn-highlight);
  color: var(--btn-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-family: inherit; font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 100ms ease, color 200ms ease;
}
.sf-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.sf-btn:hover { transform: translateY(-1px); color: var(--btn-text-hover); }
.sf-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 6px var(--btn-shadow-inner, rgba(0, 0, 0, 0.2)); }

/* whisper exit under the buttons — same quiet language as the reveal's
   start-over and the chooser's skip; the session stays in_progress so
   coming back resumes at the same card */
.sf-exit {
  display: block;
  text-align: center;
  padding: 0 20px 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-muted-foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-border);
  transition: color 200ms ease;
}
.sf-exit:hover { color: var(--color-foreground); }

/* ---------- reveal ---------- */
.sf-reveal {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 28px 44px;
}
.sf-reveal-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--color-accent);
}
.sf-reveal-eyebrow::before, .sf-reveal-eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--color-border);
}
/* Size the wrap to the arch itself (fit-content = the 272px vitrine), not to
   its sibling caption. The wrap + caption share one turbo-frame that is
   centre-sized to its widest line; the long "creating your design…" caption
   would otherwise stretch this wrap, and with it the -10px keyline and the
   centred pedestal, so the gold border only hugged once the shorter "rendered
   from your style" caption swapped in. Pinning to fit-content keeps the border
   hugging the arch in every state. */
.sf-vitrine-wrap { position: relative; width: fit-content; margin: 28px auto 8px; }
.sf-vitrine {
  width: 272px; height: 350px;
  border-radius: 140px 140px 10px 10px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.45);
  position: relative;
}
.sf-vitrine img { width: 100%; height: 100%; object-fit: cover; }
.sf-keyline {
  position: absolute; inset: -10px;
  border: 1px solid color-mix(in srgb, var(--color-jewellery-gold) 55%, transparent);
  border-radius: 150px 150px 16px 16px;
  pointer-events: none;
}
.sf-pedestal {
  position: absolute; left: 50%; bottom: -22px;
  width: 190px; height: 16px; transform: translateX(-50%);
  background: radial-gradient(rgba(0, 0, 0, 0.28), transparent 70%);
  border-radius: 50%;
}
.sf-vitrine-empty {
  position: absolute; inset: 10px;
  border: 1px dashed color-mix(in srgb, var(--color-jewellery-gold) 45%, transparent);
  border-radius: 132px 132px 6px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--color-muted-foreground);
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0 18px; text-align: center;
}
.sf-vitrine-empty svg { width: 26px; height: 26px; stroke: var(--color-jewellery-gold); fill: none; stroke-width: 1.2; }

/* Generation spinner in the arch: while a signed-in user's starter
   render is generating we reuse the designer's own ring-loader, shaped
   to fill the vitrine. The arch's overflow:hidden clips it and the gold
   keyline still frames it. Decorative motion multiplies by
   --animation-level (0 = a calm static gradient for Classic Heirloom)
   and is dropped under reduced motion; the honest message rotation keeps
   signalling real work either way. */
.sf-vitrine-loading.ring-loader {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
}
.sf-vitrine-loading.ring-loader .ring-loader__shimmer {
  animation-duration: calc(var(--animation-level, 1) * 8s);
}
.sf-vitrine-loading.ring-loader .animate-fade-in {
  animation-duration: calc(var(--animation-level, 1) * 0.6s);
}
/* Failed / timed-out: the designed empty frame, in a warmer voice. */
.sf-vitrine-workshop {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 11px; line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .sf-vitrine-loading.ring-loader .ring-loader__shimmer,
  .sf-vitrine-loading.ring-loader .animate-fade-in { animation: none; }
  .sf-vitrine-loading.ring-loader .ring-loader__dot { transition: none; }
}

.sf-caption { margin-top: 26px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); }
.sf-archetype {
  margin-top: 14px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-weight: 700; font-size: 33px; line-height: 1.12; letter-spacing: -0.01em;
}
.sf-archetype-sub {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-style: italic; font-weight: 500; font-size: 19px;
  color: var(--color-foreground); opacity: 0.85;
  margin-top: 4px;
}
.sf-description { max-width: 300px; margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--color-muted-foreground); }
.sf-lines { width: 100%; max-width: 330px; margin-top: 24px; text-align: left; list-style: none; padding: 0; }
.sf-lines li {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--color-border);
  padding: 11px 4px;
  font-size: 13.5px; line-height: 1.55; color: var(--color-foreground);
}
.sf-lines li::before {
  content: ""; flex: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-jewellery-gold);
}
.sf-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 330px; height: 54px; margin-top: 30px;
  border-radius: var(--border-radius-lg, 8px);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent));
  background-size: 200% 100%;
  border: 1px solid var(--color-accent-stroke);
  color: var(--color-accent-contrast);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 10px 30px -6px var(--color-accent-glow);
  animation: sf-shimmer calc(var(--animation-level, 1) * 3s) linear infinite;
}
@keyframes sf-shimmer {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}
.sf-startover {
  margin-top: 14px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px;
  color: var(--color-muted-foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-border);
}
.sf-startover:hover { color: var(--color-foreground); }

/* staged entrance: fade + 16px rise; durations scale with --animation-level */
.sf-enter { opacity: 0; animation: sf-rise calc(var(--animation-level, 1) * 0.6s) ease both; }
.sf-enter-hero { opacity: 0; animation: sf-hero calc(var(--animation-level, 1) * 0.9s) cubic-bezier(0.2, 0.7, 0.3, 1) both; animation-delay: calc(var(--animation-level, 1) * 300ms); }
.sf-d1 { animation-delay: calc(var(--animation-level, 1) * 100ms); }
.sf-d3 { animation-delay: calc(var(--animation-level, 1) * 550ms); }
.sf-d4 { animation-delay: calc(var(--animation-level, 1) * 650ms); }
.sf-d5 { animation-delay: calc(var(--animation-level, 1) * 750ms); }
.sf-d6 { animation-delay: calc(var(--animation-level, 1) * 850ms); }
.sf-d7 { animation-delay: calc(var(--animation-level, 1) * 950ms); }
.sf-d8 { animation-delay: calc(var(--animation-level, 1) * 1070ms); }
.sf-d9 { animation-delay: calc(var(--animation-level, 1) * 1190ms); }
.sf-d10 { animation-delay: calc(var(--animation-level, 1) * 1310ms); }
.sf-d11 { animation-delay: calc(var(--animation-level, 1) * 1450ms); }
@keyframes sf-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sf-hero { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .sf-enter, .sf-enter-hero { animation: none; opacity: 1; }
  .sf-cta { animation: none; }
}
/* Post-save-gate refresh: the replace-visit under the finished dissolve
   must not replay the entrance (save_gate_controller stamps this class). */
.sf-skip-enter .sf-enter, .sf-skip-enter .sf-enter-hero { animation: none; opacity: 1; }
/* Intro flash (e.g. empty-deck notice from the start guard). */
.sf-flash-alert { text-align: center; color: var(--color-muted-foreground); font-size: 0.9rem; margin: 0.75rem auto 0; max-width: 32ch; }
