/* ============================================================================
   /recipes — STANDALONE stylesheet.
   Intentionally NOT in scripts/build-css.js MANIFEST and NOT styles.min.css:
   this page is a full-screen takeover sharing zero site components, and a
   standalone file avoids the 4-location cache-token bump. Loaded only by
   pages/recipes.html (bump its ?v= on every edit — /css is 1y immutable).
   ============================================================================ */

/* Instrument Serif — self-hosted (SIL Open Font License 1.1, © 2022 The
   Instrument Serif Project Authors). Family suffixed 'VS' per the site's
   anti-hijack font rule (see CLAUDE.md — never plain Google family names). */
@font-face {
    font-family: 'Instrument Serif VS';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/instrument-serif-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Serif VS';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
}

/* Mirrors css/fonts.css (roman) — keep family name 'Work Sans VS' (Klaviyo
   hijack guard). This page does not load the site bundle, hence the copy. */
@font-face {
    font-family: 'Work Sans VS';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/work-sans-var-roman-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Work Sans VS';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/work-sans-var-roman-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Work Sans VS';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/work-sans-var-roman-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Scoped tokens (page-local by design: fixed-dark composition) ─────────── */
.rcp-root {
    --rcp-bg: #0E0E0E;
    --rcp-ink: #FCFCFC;
    --rcp-ink-dim: rgba(255, 255, 255, 0.5);
    --rcp-red: #DA251D;          /* Vietnam flag red */
    --rcp-gold: #FFCD00;         /* Vietnam flag gold */
    --rcp-panel: #141414;
    --rcp-hairline: rgba(218, 218, 218, 0.3);
    --rcp-serif: 'Instrument Serif VS', 'Instrument Serif', Georgia, serif;
    --rcp-sans: 'Work Sans VS', 'Work Sans', -apple-system, sans-serif;
    --rcp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --rcp-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    --rcp-gutter: 50px;
}

html.rcp-html,
html.rcp-html body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #0E0E0E;
    color: #FCFCFC;
    color-scheme: dark;
}
.rcp-root {
    font-family: var(--rcp-sans);
    -webkit-font-smoothing: antialiased;
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    user-select: none;
}
.rcp-root *, .rcp-root *::before, .rcp-root *::after { box-sizing: border-box; }
.rcp-root img { -webkit-user-drag: none; }

/* Blur-out everything behind an open modal */
.rcp-blurable { transition: filter 0.35s ease; }
.rcp-modal-open .rcp-blurable { filter: blur(14px); }

/* ── Skip link ────────────────────────────────────────────────────────────── */
.rcp-skip {
    position: absolute;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    z-index: 60;
    background: #FFF;
    color: #000;
    font: 500 14px var(--rcp-sans);
    padding: 10px 18px;
    border-radius: 22px;
    text-decoration: none;
    transition: top 0.25s ease;
}
.rcp-skip:focus-visible { top: 12px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.rcp-header {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 41px;
    padding: 0 var(--rcp-gutter);
    z-index: 30;
    /* Transparent strip must not swallow clicks on cards dispersed beneath it */
    pointer-events: none;
}
.rcp-header .rcp-burger,
.rcp-header .rcp-wordmark,
.rcp-header .rcp-cta { pointer-events: auto; }
.rcp-burger {
    position: absolute;
    left: var(--rcp-gutter);
    top: 50%;
    transform: translateY(-50%);
    width: 78px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.rcp-burger-line {
    width: 78px;
    height: 1px;
    background: #FFF;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.45s var(--rcp-ease);
}
.rcp-loading .rcp-burger-line--top { animation: rcpLineGrow 0.9s var(--rcp-ease) 0.05s forwards; }
.rcp-loading .rcp-burger-line--bottom { animation: rcpLineGrow 0.9s var(--rcp-ease) 0.5s forwards; }
.rcp-loaded .rcp-burger-line { transform: scaleX(1); }
.rcp-loaded.rcp-menu-open .rcp-burger-line { transform: scaleX(0.53); }

.rcp-wordmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--rcp-ink);
}
.rcp-star-path {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: rcpStarDraw 1.1s ease-out 0.15s forwards;
}
.rcp-wordmark-text {
    font-family: var(--rcp-serif);
    font-size: 24px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.rcp-wordmark-text .rcp-letter { display: inline-block; opacity: 0; white-space: pre; }
.rcp-wordmark-text .rcp-letter--italic { font-style: italic; }

/* ── CTA buttons (two-stage pop → expand) ─────────────────────────────────── */
.rcp-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 41px;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font: 400 16px/1 var(--rcp-sans);
    letter-spacing: -0.48px;
    width: 41px;
    transform: scale(0);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.rcp-cta-label { opacity: 0; }
.rcp-anim-in .rcp-cta {
    animation: rcpBtnPop 0.5s var(--rcp-pop) forwards, rcpBtnExpand 0.55s var(--rcp-ease) forwards;
}
.rcp-anim-in .rcp-cta-label { animation: rcpFadeIn 0.4s ease-out forwards; }
#rcpHeaderCta { position: absolute; right: var(--rcp-gutter); top: 50%; margin-top: -20.5px; --rcp-btn-w: 158px; animation-delay: 1.4s, 1.8s; }
.rcp-anim-in #rcpHeaderCta .rcp-cta-label { animation-delay: 1.95s; }
#rcpScrollCta { --rcp-btn-w: 168px; animation-delay: 3.4s, 3.8s; border: 0; }
.rcp-anim-in #rcpScrollCta .rcp-cta-label { animation-delay: 3.95s; }
.rcp-cta--outline {
    background: transparent;
    border: 1px solid var(--rcp-hairline);
    color: #FFF;
}
.rcp-cta--filled {
    background: #FFF;
    border: 1px solid #FFF;
    color: #000;
}
.rcp-cta .rcp-cta-inner,
.rcp-cta-label { padding-left: 16px; }
.rcp-cta-arrow {
    margin: 0 13px 0 auto;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}
.rcp-cta-arrow::before {
    content: "→";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}
.rcp-cta--outline:hover { background: #FFF; border-color: #FFF; color: #000; }
.rcp-cta--filled:hover { background: transparent; border-color: var(--rcp-hairline); color: #FFF; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.rcp-sidebar-wrap { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.rcp-menu-open .rcp-sidebar-wrap { pointer-events: auto; }
.rcp-sidebar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rcp-menu-open .rcp-sidebar-overlay { opacity: 1; }
.rcp-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 340px;
    max-width: 88vw;
    background: var(--rcp-panel);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 40px 40px 50px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.5s var(--rcp-ease);
}
.rcp-menu-open .rcp-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
}
.rcp-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 56px;
}
.rcp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--rcp-serif);
    font-size: 18px;
    color: var(--rcp-ink);
}
.rcp-sidebar-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #FFF;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.rcp-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.rcp-sidebar-nav a {
    color: var(--rcp-ink);
    font-family: var(--rcp-serif);
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -1px;
    padding: 6px 0;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.rcp-sidebar-nav a:hover { opacity: 1; transform: translateX(6px); }
.rcp-sidebar-foot {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ── Mosaic stage ─────────────────────────────────────────────────────────── */
#rcp-stage { position: absolute; inset: 0; z-index: 10; }
#rcp-mosaic { position: absolute; inset: 0; }
.rcp-cell {
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.25s var(--rcp-ease), width 0.25s var(--rcp-ease), height 0.25s var(--rcp-ease);
}
.rcp-parallax { position: absolute; inset: 0; will-change: transform; }
.rcp-reveal {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: rcpCellReveal 0.8s var(--rcp-ease) forwards;
    animation-delay: var(--rcp-reveal-delay, 0.6s);
}
.rcp-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1A1A1A;
    border: 0;
    padding: 0;
    cursor: default;
    border-radius: 2px;
}
.rcp-ready .rcp-card { cursor: pointer; transition: transform 0.3s var(--rcp-ease), box-shadow 0.3s ease; }
.rcp-ready .rcp-card:hover,
.rcp-ready .rcp-card:focus-visible {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.rcp-ready .rcp-cell:has(.rcp-card:hover) { z-index: 15; }
.rcp-ready .rcp-card:focus-visible { outline: 2px solid var(--rcp-gold); outline-offset: 2px; }

/* Cursor chip: recipe name follows the pointer over a ready card */
.rcp-chip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 26;
    pointer-events: none;
    padding: 6px 11px;
    border-radius: 18px;
    background: #FFF;
    color: #000;
    font: 500 12px var(--rcp-sans);
    letter-spacing: -0.3px;
    white-space: nowrap;
    opacity: 0;
    transform: translate(16px, 20px) scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s var(--rcp-ease);
    will-change: left, top;
}
.rcp-chip.rcp-chip--on { opacity: 1; transform: translate(16px, 20px) scale(1); }
.rcp-chip em { font-style: normal; color: rgba(0, 0, 0, 0.5); margin-left: 6px; }

/* Film-strip progress meter */
.rcp-film {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Doubles as a scrubber (recipes.js): click/drag sets the frame. */
    pointer-events: auto;
    cursor: pointer;
    touch-action: none;
    padding: 6px;
}
.rcp-film-track {
    position: relative;
    width: 12px;
    height: 148px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.rcp-film-track::before,
.rcp-film-track::after {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 2px;
    background: repeating-linear-gradient(rgba(14, 14, 14, 0.9) 0 3px, transparent 3px 9px);
    z-index: 2;
}
.rcp-film-track::before { left: 2px; }
.rcp-film-track::after { right: 2px; }
.rcp-film-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    background: linear-gradient(var(--rcp-gold), var(--rcp-red));
}
.rcp-film-count {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
}
.rcp-film-hint {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
    transition: opacity 0.3s ease;
}
/* One-time "click a photo" hint once fully dispersed (recipes.js). */
.rcp-open-hint {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translate(-50%, 8px);
    z-index: 20;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    white-space: nowrap;
}
.rcp-open-hint--on { opacity: 1; transform: translate(-50%, 0); }
body.has-cookie-banner .rcp-open-hint { bottom: calc(92px + var(--cc-h, 88px)); }
@media (max-width: 900px) {
    .rcp-film { right: 10px; }
    .rcp-chip { display: none; }
}
.rcp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Mini star mosaic ─────────────────────────────────────────────────────── */
#rcp-mini {
    position: absolute;
    pointer-events: none;
    z-index: 12;
    transform-origin: center center;
}
.rcp-mini-cell {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    overflow: hidden;
    animation: rcpMiniIn 0.5s var(--rcp-ease) forwards;
    animation-delay: var(--rcp-mini-delay, 3.6s);
}
.rcp-mini-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

/* ── Bottom typography ────────────────────────────────────────────────────── */
.rcp-type {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    padding: 0 var(--rcp-gutter);
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    pointer-events: none;
}
.rcp-headline {
    font-family: var(--rcp-serif);
    font-size: 93.554px;
    font-weight: 400;
    line-height: 90%;
    letter-spacing: -2.807px;
    margin: 0;
    color: #FFF;
}
.rcp-headline--right { text-align: right; }
.rcp-headline-line { display: block; }
/* Hide raw text until JS splits it into animated word spans */
.rcp-headline-line, .rcp-para-line { opacity: 0; }
.rcp-anim-in .rcp-headline-line, .rcp-anim-in .rcp-para-line { opacity: 1; }
.rcp-type-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
    padding-bottom: 6px;
}
.rcp-para {
    margin: 0;
    text-align: center;
    font-size: 19px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.5px;
    color: #FFF;
    /* The flex centre column squeezes below the line width at ~900–1250px
       viewports, orphan-wrapping "…Fujifilm / shooters," — keep the designed
       line breaks and let the para overflow its column over the dark bg. */
    width: max-content;
    max-width: calc(100vw - 3rem);
}
.rcp-para-line { display: block; white-space: nowrap; }

/* Word/letter split animation targets (spans injected by JS) */
.rcp-word {
    display: inline-block;
    opacity: 0;
    margin-right: 0.28em;
}
.rcp-anim-in .rcp-word--dim { animation: rcpWordInDim 0.8s var(--rcp-ease) forwards; }
.rcp-anim-in .rcp-word--std { animation: rcpWordIn 0.8s var(--rcp-ease) forwards; }
.rcp-anim-in .rcp-word--para { animation: rcpParaWordIn 0.5s var(--rcp-ease) forwards; }
.rcp-anim-in .rcp-letter { animation: rcpLetterIn 0.6s var(--rcp-ease) forwards; }

/* ── Fuji X Weekly credit chip ────────────────────────────────────────────── */
.rcp-credit {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    z-index: 21;
    font-size: 11.5px;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.42);
}

/* Cookie-consent banner (site-wide, injected by cookie-consent.js) reserves
   space via body padding-bottom — on this fixed-position page that instead
   SHIFTS the absolutely-anchored bottom typography off-screen (bottom offsets
   resolve against the padding box). Opt out of the padding and lift the type
   and credit above the banner until it's dismissed. */
html.rcp-html body.has-cookie-banner { padding-bottom: 0 !important; }
body.has-cookie-banner .rcp-type {
    transform: translateY(calc(-1 * var(--cc-h, 88px)));
}
body.has-cookie-banner .rcp-credit {
    transform: translate(-50%, calc(-1 * var(--cc-h, 88px)));
}
.rcp-credit a { color: rgba(255, 255, 255, 0.62); text-decoration: underline; text-underline-offset: 2px; }
.rcp-credit a:hover { color: #FFF; }

/* ── Recipe modal ─────────────────────────────────────────────────────────── */
.rcp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    cursor: pointer;
}
.rcp-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 481px;
    height: 638px;
    background: #111;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.55s var(--rcp-ease), width 0.55s var(--rcp-ease), height 0.55s var(--rcp-ease);
    cursor: default;
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.rcp-modal-imgwrap {
    position: relative;
    height: 38%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}
.rcp-modal-imgwrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 40%;
    background: linear-gradient(rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.85) 70%, #111 100%);
    pointer-events: none;
}
.rcp-modal-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    animation: rcpImgFadeIn 0.55s ease-out forwards;
}
.rcp-modal-copy {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%) scale(0.6);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 25px;
    border: 0;
    background: #FFF;
    color: #000;
    font: 400 15px/1 var(--rcp-sans);
    letter-spacing: -0.45px;
    cursor: pointer;
    opacity: 0;
    animation: rcpPillPop 0.45s var(--rcp-pop) 0.55s forwards;
    white-space: nowrap;
    z-index: 3;
}
.rcp-modal-copy:hover { background: var(--rcp-gold); }
.rcp-modal-copy svg { flex-shrink: 0; }
.rcp-modal-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 28px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}
.rcp-modal-name {
    margin: 0;
    font-family: var(--rcp-serif);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: #FFF;
    line-height: 1.05;
}
.rcp-modal-name .rcp-word { margin-right: 0.22em; }
.rcp-modal-sim {
    font-size: 12px;
    color: var(--rcp-ink-dim);
    white-space: nowrap;
}
.rcp-modal-body {
    padding: 14px 28px 20px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
}
.rcp-modal-body .rcp-tags { margin: 14px 0 10px; }
.rcp-modal-vibe {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}
.rcp-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 20px;
    margin: 0;
}
.rcp-settings > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 6px; }
.rcp-settings dt {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
}
.rcp-settings dd {
    margin: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #FFF;
    text-align: right;
}
/* ── Look preview (before/after slider) ───────────────────────────────────── */
.rcp-preview {
    position: relative;
    margin: 2px 0 16px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #000;
    touch-action: none;
    cursor: ew-resize;
    user-select: none;
}
.rcp-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.rcp-look {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--rcp-split, 50%));
}
.rcp-look-tint {
    position: absolute;
    inset: 0;
    background: var(--rcp-tint, transparent);
    mix-blend-mode: var(--rcp-tint-blend, overlay);
    pointer-events: none;
}
.rcp-look-bloom {
    filter: var(--rcp-look-filter, none) blur(7px) brightness(1.35);
    mix-blend-mode: screen;
    opacity: 0.3;
}
.rcp-look-grain {
    position: absolute;
    inset: 0;
    mix-blend-mode: overlay;
    opacity: var(--rcp-grain, 0);
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="120" height="120" filter="url(%23n)"/></svg>');
    background-size: 120px 120px;
}
.rcp-look-grain--coarse {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.45" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="160" height="160" filter="url(%23n)"/></svg>');
    background-size: 160px 160px;
}
.rcp-preview-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--rcp-split, 50%);
    width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: ew-resize;
    z-index: 4;
}
.rcp-preview-handle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.rcp-preview-handle::after {
    content: "◂ ▸";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #FFF;
    color: #000;
    font-size: 10px;
    line-height: 34px;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.rcp-preview-handle:focus-visible::after { outline: 2px solid var(--rcp-gold); outline-offset: 2px; }
.rcp-preview-label {
    position: absolute;
    bottom: 8px;
    z-index: 3;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 12px;
    pointer-events: none;
}
.rcp-preview-label--before { left: 8px; }
.rcp-preview-label--after { right: 8px; color: var(--rcp-gold); }
.rcp-preview-note {
    margin: -8px 0 14px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.38);
}

/* ── Camera compatibility + pocket card ───────────────────────────────────── */
.rcp-compat {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.rcp-compat-badge {
    display: none;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}
.rcp-compat-badge--ok {
    background: rgba(80, 200, 120, 0.14);
    color: #7EDFA5;
}
.rcp-compat-pick {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
}
.rcp-compat-pick select {
    margin-left: 4px;
    background: #1A1A1A;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 4px 8px;
    font: 400 11.5px var(--rcp-sans);
}
.rcp-tools { display: flex; gap: 18px; flex-wrap: wrap; }
.rcp-pocket {
    display: block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font: 400 12px var(--rcp-sans);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.rcp-pocket:hover { color: var(--rcp-gold); }

/* ── Community CTA in modal ───────────────────────────────────────────────── */
.rcp-modal-community {
    display: block;
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px dashed rgba(255, 205, 0, 0.35);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.rcp-modal-community:hover { border-color: var(--rcp-gold); color: #FFF; }
.rcp-modal-community strong { color: var(--rcp-gold); font-weight: 500; }

.rcp-modal-cams {
    margin-top: 12px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}
.rcp-modal-foot {
    padding: 12px 28px 20px;
    flex-shrink: 0;
}
.rcp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rcp-tag {
    padding: 5px 11px;
    border-radius: 28px;
    border: 0.5px solid var(--rcp-hairline);
    font-size: 11.5px;
    letter-spacing: -0.3px;
    color: #FFF;
    opacity: 0;
    animation: rcpTagIn 0.6s var(--rcp-ease) forwards;
}
.rcp-modal-credit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.rcp-modal-credit a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 2px; }
.rcp-modal-credit a:hover { color: var(--rcp-gold); }
.rcp-modal-hint {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--rcp-ink-dim);
    font-size: 15px;
    letter-spacing: -0.45px;
    opacity: 0;
    animation: rcpModalFade 0.5s ease-out 1.1s forwards;
}
.rcp-modal-hint button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #FFF;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.rcp-modal-hint button:hover { border-color: #FFF; }

/* ── Live viewfinder ──────────────────────────────────────────────────────── */
.rcp-vf {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #000;
}
.rcp-vf-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.rcp-vf-video,
.rcp-vf-bloom {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rcp-vf-bloom {
    filter: var(--rcp-look-filter, none) blur(7px) brightness(1.35);
    mix-blend-mode: screen;
    opacity: 0.3;
    display: none;
}
.rcp-vf-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), transparent);
}
.rcp-vf-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rcp-vf-name {
    font-family: var(--rcp-serif);
    font-size: 28px;
    color: #FFF;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rcp-vf-sim { font-size: 12px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.rcp-vf-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: #FFF;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.rcp-vf-note {
    position: absolute;
    top: 64px;
    left: 20px;
    right: 20px;
    z-index: 5;
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.rcp-vf-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}
.rcp-vf-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #FFF;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.rcp-vf-btn:hover { border-color: #FFF; }
.rcp-vf-btn--capture {
    width: 66px;
    height: 66px;
    background: #FFF;
    border: 4px solid rgba(255, 255, 255, 0.35);
    background-clip: padding-box;
}
.rcp-vf-btn--capture:hover { border-color: var(--rcp-gold); }
.rcp-vf-btn--flip { font-size: 18px; }
.rcp-vf-error {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}
.rcp-vf-flash::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    background: #FFF;
    animation: rcpVfFlash 0.35s ease-out forwards;
    pointer-events: none;
}

/* "Try it live" button in the modal */
.rcp-vf-open {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
    font: 400 12.5px var(--rcp-sans);
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.rcp-vf-open:hover { border-color: var(--rcp-gold); background: rgba(255, 205, 0, 0.08); }
.rcp-vf-open-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--rcp-red);
    box-shadow: 0 0 0 3px rgba(218, 37, 29, 0.25);
    animation: rcpVfPulse 1.6s ease-in-out infinite;
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes rcpVfFlash { from { opacity: 1; } to { opacity: 0; } }
@keyframes rcpVfPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(218, 37, 29, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(218, 37, 29, 0.1); }
}
@keyframes rcpStarDraw { to { stroke-dashoffset: 0; } }
@keyframes rcpLineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rcpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rcpLetterIn {
    from { opacity: 0; filter: blur(6px); transform: translateX(8px); }
    to { opacity: 1; filter: blur(0); transform: translateX(0); }
}
@keyframes rcpWordIn {
    from { opacity: 0; color: rgba(255, 255, 255, 0.15); transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rcpWordInDim {
    from { opacity: 0; filter: brightness(0.3); transform: translateY(18px); }
    to { opacity: 1; filter: brightness(1); transform: translateY(0); }
}
@keyframes rcpParaWordIn {
    from { opacity: 0; filter: blur(5px); transform: translateY(10px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes rcpBtnPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rcpBtnExpand { from { width: 41px; } to { width: var(--rcp-btn-w, 150px); } }
@keyframes rcpCellReveal {
    from { opacity: 0; filter: blur(8px); transform: translateY(30px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes rcpMiniIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes rcpImgFadeIn {
    from { opacity: 0; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes rcpModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rcpPillPop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes rcpTagIn {
    from { opacity: 0; filter: blur(6px); transform: translateY(10px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ── Noscript fallback ────────────────────────────────────────────────────── */
.rcp-noscript {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    background: #0E0E0E;
    padding: 80px 24px;
    max-width: 640px;
    margin: 0 auto;
}
.rcp-noscript h1 { font-family: var(--rcp-serif, serif); font-weight: 400; }
.rcp-noscript a { color: #FFCD00; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rcp-root { --rcp-gutter: 20px; }
    .rcp-burger, .rcp-burger-line { width: 54px; }
    .rcp-wordmark-text { font-size: 18px; }
    .rcp-headline { font-size: clamp(40px, 10.5vw, 93.554px); letter-spacing: -0.03em; }
    .rcp-type { flex-wrap: wrap; row-gap: 10px; bottom: 44px; }
    .rcp-credit { font-size: 10.5px; bottom: 8px; width: 100%; text-align: center; }
    .rcp-type-center { order: 3; width: 100%; gap: 14px; }
    .rcp-para { font-size: 15px; }
    #rcpHeaderCta { display: none; }
    .rcp-modal { width: min(481px, calc(100vw - 28px)) !important; height: min(639px, 84dvh) !important; }
    /* Film meter has done its job once everything is dispersed — fade it so
       the right-rail cards (TARGETS_MOBILE) get the edge to themselves. */
    .rcp-film { transition: opacity 0.4s ease; }
    .rcp-ready .rcp-film { opacity: 0; pointer-events: none; }
    /* Keep the modal prev/next arrows as tap targets; drop the keyboard
       wording (swipe also works — recipes.js). */
    .rcp-modal-hint-txt { display: none; }
    .rcp-modal-hint button {
        width: 44px;
        height: 44px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.35);
    }
}
@media (max-width: 420px) {
    /* Two columns squeeze long values ("Auto, +3 Red & -5 Blue") into
       three-line wraps — single column reads better. */
    .rcp-settings { grid-template-columns: 1fr; }
}

/* ── Reduced motion: settle instantly, stay fully usable ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rcp-root *, .rcp-root *::before, .rcp-root *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}
