/* ==========================================================================
   neon-feed.css — full-screen vertical feed for the storefront
   Loaded last. Every rule is scoped to body.feed-mode so the classic home,
   the catalog, checkout and the admin are untouched when the feed is off.
   ========================================================================== */

body.feed-mode {
  --nf-ink-3: #9BA3B2;
  --nf-top: 76px;
  --nf-bottom: 0px;
  --nf-head: clamp(2.1rem, 8.4vw, 4.6rem);
  --nf-pad: clamp(18px, 5vw, 44px);
}

/* The feed carries the storefront's own pink, not the amber the classic theme
   resolves to. Set on the body so the header, dock and focus rings match the
   feed; the classic pages are untouched because the class is feed-only. */
body.feed-mode {
  --accent: #FF3D91;
  --accent-ln: rgba(255, 61, 145, .42);
  --accent-bg: rgba(255, 61, 145, .12);
  --accent-glow: rgba(255, 61, 145, .30);
}
#neon-feed { background: #08090D; }

/* Header tagline inherits a 4.1:1 grey. Lift it inside feed mode only. */
body.feed-mode .store-brand small { color: var(--nf-ink-3); font-size: 11px; }

/* The catalog's primary buttons carry an amber glow from the old theme. The
   feed ships neutral elevation instead; the classic pages keep their own. */
body.feed-mode .btn,
body.feed-mode .btn-primary { box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }

/* Classic home blocks step aside while the feed owns the page. */
body.feed-mode #page-home > :not(#neon-feed) { display: none !important; }
body.feed-mode #page-home { padding: 0 !important; margin: 0 !important; max-width: none !important; }

/* storefront.css reserves body padding for the fixed header and the fixed
   bottom dock. The feed measures both and owns the full viewport itself —
   but only while the home page is the active page. Every other page keeps
   its normal document flow. */
body.feed-mode:has(#page-home[data-active="true"]) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  overscroll-behavior: none;
}

/* The feed ends at the dock. A footer underneath it would show through the
   dock's translucent background, so it goes away with the rest of the page. */
body.feed-mode:has(#page-home[data-active="true"]) .footer { display: none !important; }

@media (max-width: 1023px) {
  /* The support launcher floats over the bottom-right of every page and the
     dock owns the bottom edge; lift the hero actions clear of both. */
  body.feed-mode .nf-hero { padding-bottom: calc(var(--nf-pad) + 76px); }
}

/* One rule kills every [hidden] element inside the feed, because several
   of these components set an explicit display value. */
#neon-feed [hidden] { display: none !important; }

#neon-feed {
  position: relative;
  width: 100%;
  display: block;
}
body:not(.feed-mode) #neon-feed { display: none; }
body.feed-mode #neon-feed {
  margin-top: var(--nf-top);
  height: calc(100dvh - var(--nf-top) - var(--nf-bottom));
}

/* ── track ─────────────────────────────────────────────────────────── */
.nf-track {
  height: calc(100dvh - var(--nf-top) - var(--nf-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-top: 0;
}
.nf-track::-webkit-scrollbar { display: none; width: 0; height: 0; }

.nf-slide {
  position: relative;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(12px, 2.6vh, 26px);
  padding: calc(var(--nf-pad) + 18px) var(--nf-pad) var(--nf-pad);
  padding-bottom: calc(var(--nf-pad) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

/* Entrance is a short rise. Nothing is ever invisible: content that a
   reveal handler never reached still sits fully legible, just 14px lower. */
.nf-slide > * {
  transform: translateY(14px);
  transition: transform 420ms var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.nf-slide.is-visible > * { transform: none; }
.nf-slide.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.nf-slide.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.nf-slide.is-visible > *:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .nf-track { scroll-behavior: auto; }
  .nf-slide > * { transition: none; transform: none; }
}
body[data-motion="off"] .nf-slide > * { transition: none; transform: none; }

/* ── header language picker ────────────────────────────────────────── */
.lang-pick {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-surface-1, #15181f);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, .14));
}
.lang-pick-opt {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  background: none;
  border-radius: 999px;
  font: 700 11px/1 var(--font-body, inherit);
  letter-spacing: .08em;
  color: var(--ink-3, #9295A3);
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.lang-pick-opt:hover { color: var(--ink-1, #fff); }
.lang-pick-opt:disabled { opacity: .4; cursor: not-allowed; }
.lang-pick-opt[aria-current="true"]:disabled { opacity: 1; cursor: default; }
.lang-pick-opt:focus-visible { outline: 2px solid var(--accent, #FF3D91); outline-offset: 2px; }
.lang-pick-opt[aria-current="true"] {
  background: var(--accent, #FF3D91);
  color: #0A0A0C;
  cursor: default;
}

/* The shop chrome is green glass: the header, the nav pills, the bell and the
   help launcher all carry rgb(36 50 48). None of it belongs on a midnight feed,
   so the palette those four elements inherit is rebuilt here. The classic pages
   keep the shop glass because the scope is feed-only. */
body.feed-mode .site-header {
  background: rgba(8, 9, 13, .9);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
body.feed-mode :is(.delivery-icon, .floating-contact-btn) {
  background: rgba(255, 255, 255, .05);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--nf-ink-3);
  box-shadow: none;
  backdrop-filter: none;
}
body.feed-mode :is(.delivery-icon, .floating-contact-btn):hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}
body.feed-mode .floating-contact-btn { color: #F4F4F7; }

/* Desktop keeps the nav as a row of pills inside the header. */
@media (min-width: 1024px) {
  body.feed-mode .nav-item {
    background: rgba(255, 255, 255, .05);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: var(--nf-ink-3);
    box-shadow: none;
    backdrop-filter: none;
  }
  body.feed-mode .nav-item[aria-current="page"] {
    background: var(--accent-bg);
    background-image: none;
    border-color: var(--accent);
    color: #fff;
  }
  body.feed-mode .nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
}

/* Below 1024 the header row has no room for the pills, so the same nav becomes
   the bottom dock a phone would show. The feed runs under it; the dock is
   translucent on purpose. */
@media (max-width: 1023px) {
  body.feed-mode .nav {
    inset: auto 0 0;
    width: 100%;
    transform: none;
    height: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: rgba(13, 15, 20, .94);
    backdrop-filter: blur(16px);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 46;
  }
  body.feed-mode .nav-inner { gap: 0; max-width: 520px; margin: auto; }
  body.feed-mode .nav .nav-item {
    flex: 1;
    flex-direction: column;
    height: 64px;
    min-height: 64px;
    font-size: 11px;
    gap: 5px;
    padding: 8px 4px;
    background: none;
    background-image: none;
    border: 0;
    border-top: 2px solid transparent;
    border-radius: 0;
    color: var(--nf-ink-3);
    box-shadow: none;
    backdrop-filter: none;
  }
  body.feed-mode .nav .nav-item svg { display: block; width: 19px; height: 19px; flex: none; }
  body.feed-mode .nav .nav-item[aria-current="page"] {
    background: none;
    background-image: none;
    border-top-color: var(--accent);
    color: #fff;
  }
}

/* The feed owns its palette, so the theme swatches and the 3D toggle would be
   decoration that does nothing there. The language picker and the bell stay. */
body.feed-mode .neon-switcher,
body.feed-mode .garage-motion { display: none !important; }

/* ── type ──────────────────────────────────────────────────────────── */
.nf-head {
  margin: 0;
  font-family: var(--bs-display, inherit);
  font-size: var(--nf-head);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.nf-head em {
  font-style: normal;
  color: var(--accent);
}
.nf-sub {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(.92rem, 3.4vw, 1.05rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.nf-fine {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--nf-ink-3);
}

/* ── buttons (feed-local, inherits the site's .btn where possible) ─── */
.nf-btn {
  --nf-btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--nf-btn-h);
  padding: 0 26px;
  border: 1px solid var(--accent-ln, var(--accent));
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink, #05070b);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms linear, border-color 160ms linear, transform 120ms ease;
}
.nf-btn:hover { background: var(--accent-hover, var(--accent)); }
.nf-btn:active { transform: translateY(1px); }
.nf-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nf-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.nf-btn--ghost {
  background: transparent;
  border-color: var(--accent-ln, rgba(255,255,255,.22));
  color: var(--ink);
}
.nf-btn--ghost:hover { background: var(--accent-bg, rgba(255,255,255,.06)); }

.nf-link {
  background: none;
  border: 0;
  padding: 6px 2px;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.nf-link:hover { color: var(--ink); }
.nf-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── slide 1: hero ─────────────────────────────────────────────────── */
.nf-hero { justify-items: start; text-align: left; align-content: end; padding-bottom: calc(var(--nf-pad) + 8px); }
.nf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}
.nf-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  opacity: .55;
  filter: saturate(.92) contrast(1.04);
}
.nf-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 62% at 18% 88%, var(--accent-glow) 0%, transparent 62%),
    linear-gradient(to top, var(--bg) 12%, rgba(7,8,11,.86) 44%, rgba(7,8,11,.18) 78%, transparent 100%);
}
.nf-hero .nf-head { font-size: clamp(2.5rem, 11.5vw, 5.4rem); }
.nf-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .nf-hero-bg img { object-position: 52% 46%; }
  .nf-hero { align-content: end; }
}

/* ── slide 2: real proof ───────────────────────────────────────────── */
.nf-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(560px, 100%);
  background: var(--accent-ln, rgba(255,255,255,.12));
  border: 1px solid var(--accent-ln, rgba(255,255,255,.12));
  border-radius: 18px;
  overflow: hidden;
}
.nf-proof-cell {
  padding: 22px 10px;
  background: var(--surface);
  display: grid;
  gap: 6px;
  min-width: 0;
}
.nf-proof-val {
  font-family: var(--bs-display, inherit);
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.nf-proof-lbl {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nf-ink-3);
  line-height: 1.3;
}
.nf-proof-cell[hidden] { display: none; }
.nf-proof:has(.nf-proof-cell[hidden]) { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* ── slide 3: wheel ────────────────────────────────────────────────── */
.nf-slide[data-nf-slide="packs"] .nf-head { font-size: clamp(1.9rem, 7vw, 3.1rem); }
#nf-wheel-slot { display: grid; justify-items: center; gap: 14px; }
.nf-wheel-stage {
  position: relative;
  width: min(78vw, 340px, 40vh);
  height: min(78vw, 340px, 40vh);
  display: grid;
  place-items: center;
  margin: 4px auto 0;
}
.nf-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--accent-ln, rgba(255,255,255,.16)),
    0 0 0 10px var(--surface),
    0 0 0 11px var(--accent-ln, rgba(255,255,255,.1)),
    0 26px 60px -26px rgba(0,0,0,.85);
  will-change: transform;
}
.nf-wheel-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform 4.2s cubic-bezier(.14,.78,.16,1);
}
.nf-wheel.is-spinning .nf-wheel-rotor { transition-duration: 4.2s; }
.nf-wheel-seg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%);
}
/* A label wrapper covers the wheel and rotates around the centre; the inner
   text sits at a fixed radius, so rotating the rotor carries the labels. */
.nf-wheel-label {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  pointer-events: none;
}
.nf-wheel-label > i {
  position: absolute;
  top: 14%;
  left: 50%;
  display: block;
  transform: translateX(-50%) rotate(calc(-1 * var(--a, 0deg)));
  font-style: normal;
  font-family: var(--bs-display, inherit);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 380px) {
  .nf-wheel-label > i { font-size: 11px; }
}
.nf-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--accent-ln, rgba(255,255,255,.18));
  box-shadow: 0 0 0 10px var(--bg), 0 0 0 11px var(--accent-ln, rgba(255,255,255,.1));
  font-family: var(--bs-display, inherit);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nf-ink-3);
  z-index: 3;
}
.nf-wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid var(--accent);
  z-index: 4;
}
@media (prefers-reduced-motion: reduce) {
  .nf-wheel-rotor { transition: none; }
}

/* The spin note carries a sentence, not a micro-label. */
#nf-spin-note {
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}
.nf-link {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nf-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── slide 4: result ───────────────────────────────────────────────── */
.nf-result { width: min(620px, 100%); display: grid; gap: 18px; }
.nf-result-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--nf-ink-3);
}
.nf-prize {
  font-family: var(--bs-display, inherit);
  font-size: clamp(2.4rem, 12vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.nf-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  border: 1px dashed var(--accent-ln, rgba(255,255,255,.3));
  border-radius: 12px;
  background: var(--accent-bg, rgba(255,255,255,.05));
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--ink);
}
.nf-code button {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nf-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}
/* Three cards in a two-column row leaves one card orphaned on the left at
   phone and tablet widths. It takes the whole row instead. */
@media (max-width: 900px) {
  .nf-packs > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.nf-pack {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 14px;
  border: 1px solid var(--accent-ln, rgba(255,255,255,.14));
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms linear, background 160ms linear;
}
.nf-pack:hover { border-color: var(--accent); background: var(--surface-2); }
.nf-pack:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nf-pack-name { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.nf-pack-items {
  font-size: 12px;
  line-height: 1.45;
  color: var(--nf-ink-3);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.nf-pack-price {
  font-family: var(--bs-display, inherit);
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.nf-pack-was {
  font-size: 11.5px;
  color: var(--nf-ink-3);
  text-decoration: line-through;
}
.nf-pack-was[hidden] { display: none; }

/* ── slide 5: real deadline ────────────────────────────────────────── */
.nf-deadline {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.nf-unit {
  min-width: 66px;
  padding: 12px 8px;
  border: 1px solid var(--accent-ln, rgba(255,255,255,.14));
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 3px;
}
.nf-unit strong {
  font-family: var(--bs-display, inherit);
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
}
.nf-unit span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--nf-ink-3); }
.nf-expired { color: var(--ink-2); font-size: 14px; }

/* ── slide 6: steps ────────────────────────────────────────────────── */
.nf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  text-align: left;
  counter-reset: nfstep;
}
.nf-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--accent-ln, rgba(255,255,255,.08));
}
.nf-steps li > span { min-width: 0; overflow-wrap: anywhere; }
.nf-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.nf-steps li::before {
  counter-increment: nfstep;
  content: counter(nfstep, decimal-leading-zero);
  font-family: var(--bs-display, inherit);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.nf-steps strong { color: var(--ink); font-weight: 650; }

/* ── fixed chrome inside the feed ──────────────────────────────────── */
.nf-rail {
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  top: 50%;
  translate: 0 -50%;
  z-index: 40;
  display: grid;
  gap: 6px;
  pointer-events: none;
}
.nf-rail button,
.nf-rail span {
  pointer-events: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--nf-ink-3);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 160ms linear, border-color 160ms linear, transform 160ms linear;
}
.nf-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nf-rail button[aria-current="true"] { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* Phones: the rail would sit on top of the proof card and the wheel rim.
   Swipe is the navigation there; the rail returns once there is margin. */
@media (max-width: 520px) {
  .nf-rail { display: none; }
  .nf-proof-cell { padding: 18px 8px; }
  .nf-proof-val { font-size: clamp(1.05rem, 5vw, 1.4rem); letter-spacing: -.02em; white-space: nowrap; }
}

.nf-skip {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  z-index: 30;
  padding: 8px 14px;
  border: 0;
  border-radius: 0 0 12px 12px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 11.5px;
  letter-spacing: .06em;
  cursor: pointer;
}
.nf-skip:hover { color: var(--ink); }
.nf-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── empty-state when the feed has nothing real to show ────────────── */
.nf-empty {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 40px 20px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ── post-purchase card (orders page) ──────────────────────────────── */
.nf-repeat {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--accent-ln, rgba(255,255,255,.16));
  border-radius: 16px;
  background: linear-gradient(140deg, var(--accent-bg, rgba(255,255,255,.05)), transparent 70%), var(--surface);
}
.nf-repeat h3 {
  margin: 0;
  font-family: var(--bs-display, inherit);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.nf-repeat p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.nf-repeat .nf-code { font-size: 14px; }

/* ── narrow phones ─────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .nf-proof { grid-template-columns: 1fr; }
  .nf-proof:has(.nf-proof-cell[hidden]) { grid-template-columns: 1fr; }
}
