/* Framecap v5 "Familiar": v3 app layer + Instagram-style touches (profile stats, square photo grid, floating camera bar). No feed, no likes.
   Framecap v3 "App": a layer on top of v2 framecap.css + pages.css. CSS only, same markup, same ids.
   Built from the mobile-app-ui-design guide: thumb-zone actions, one serif + one sans, 4 sizes,
   60/30/10 colour, 8-point spacing, soft tinted shadows, one peak moment (a photo reaching the couple). */
@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  /* 60: warm near-black · 30: cream text and surfaces · 10: champagne accent */
  --fc-bg: #120d09; --fc-bg-deep: #0c0906; --fc-surface: #1e1711; --fc-raise: #2a2018;
  --fc-line: rgba(255,240,214,.08); --fc-line-2: rgba(255,240,214,.18);
  --fc-ink: #fff4e2; --fc-muted: rgba(255,244,226,.78); --fc-faint: rgba(255,244,226,.62);
  --fc-accent: #e8c48f; --fc-accent-ink: #1a120b;
  --fc-display: "Playfair Display", Georgia, serif;
  --fc-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* four sizes, two weights */
  --t-xl: 40px; --t-lg: 24px; --t-md: 17px; --t-sm: 14px;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --shadow: 0 1px 0 rgba(255,240,214,.04) inset, 0 16px 32px -16px rgba(0,0,0,.85);
  --tray: 156px;
}
body.fc { background: radial-gradient(120% 60% at 50% -10%, rgba(232,196,143,.16), transparent 60%), var(--fc-bg); color: var(--fc-ink); font: 400 var(--t-md)/1.5 var(--fc-font); }

/* type: 4 sizes, 400 + 600 */
.fc-logo { font: 600 var(--t-md)/1.2 var(--fc-display); gap: 8px; }
.fc-eyebrow, #event-date { font: 600 var(--t-sm)/1.3 var(--fc-font); letter-spacing: .02em; text-transform: none; color: var(--fc-muted); }
.fc-h1 { font: 600 var(--t-xl)/1.08 var(--fc-display); letter-spacing: -.01em; }
.fc-h2 { font: 600 var(--t-xl)/1.1 var(--fc-display); }
.fc-h3 { font: 600 var(--t-lg)/1.2 var(--fc-display); }
.fc-lead { font: 400 var(--t-md)/1.55 var(--fc-font); color: var(--fc-muted); }
.fc-small, .fc-label .fc-muted, .fc-shutter__hint, .fc-counter__label, .fc-stat__label { font-size: var(--t-sm); }
.fc-label { font: 600 var(--t-sm)/1.3 var(--fc-font); color: var(--fc-ink); margin-bottom: 8px; }
.fc-muted { color: var(--fc-muted); }

/* controls */
.fc-btn { min-height: 56px; border-radius: 999px; font: 600 var(--t-md)/1 var(--fc-font); gap: 8px; }
.fc-btn--primary { background: var(--fc-accent); color: var(--fc-accent-ink); border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 28px -10px rgba(232,196,143,.55); }
.fc-btn--secondary { background: rgba(232,196,143,.06); border: 1px solid var(--fc-line-2); color: var(--fc-ink); }
.fc-input { min-height: 56px; border-radius: var(--r-sm); background: var(--fc-bg-deep); border: 1px solid var(--fc-line-2); font-size: var(--t-md); padding: 0 16px; color: var(--fc-ink); }
.fc-input:focus { border-color: var(--fc-accent); box-shadow: 0 0 0 4px rgba(232,196,143,.2); }
.fc-note { border-radius: var(--r-md); padding: 16px; font-size: var(--t-sm); line-height: 1.5; background: var(--fc-surface); border: 1px solid var(--fc-line); box-shadow: none; }
.fc-note svg { color: var(--fc-accent); }
.fc-bar { min-height: 56px; }
.fc-bar > .fc-eyebrow#event-date { padding: 8px 12px; border-radius: 999px; background: var(--fc-surface); border: 1px solid var(--fc-line); }

/* ---------- landing: names up top, everything you tap in the bottom third ---------- */
#landing { padding-bottom: 0; }
#landing > section.fc-stack { background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; transform: none !important; padding: 0 4px !important; text-align: center; color: var(--fc-ink); }
#landing > section.fc-stack::before { content: none !important; }
#landing > section.fc-stack .fc-eyebrow { color: var(--fc-accent) !important; text-transform: none !important; letter-spacing: .04em !important; font-size: var(--t-sm) !important; }
#landing > section.fc-stack .fc-h1 { color: var(--fc-ink) !important; font-size: 36px !important; margin-top: 8px !important; }
#landing > section.fc-stack .fc-lead { color: var(--fc-muted) !important; font-size: var(--t-md) !important; margin: 16px auto 0 !important; max-width: 20em !important; }
#landing .fc-names__a { font-family: var(--fc-display); font-weight: 600; white-space: nowrap; }
#landing .fc-names__and { font: italic 400 .5em/1.2 var(--fc-display) !important; color: var(--fc-accent) !important; margin: 4px 0 !important; }
#landing .fc-names__b { font-size: 1.3em !important; color: var(--fc-ink); white-space: nowrap; }
/* a monogram seal above the names, echoing the invite's double line */
#landing > section.fc-stack { position: relative; padding-top: 112px !important; }
#landing > section.fc-stack::after {
  content: "J  ·  A"; position: absolute; top: 0; left: 50%; width: 88px; height: 88px; margin-left: -44px; border-radius: 50%;
  display: grid; place-items: center; font: 600 var(--t-lg)/1 var(--fc-display); color: var(--fc-accent); white-space: pre;
  border: 1px solid rgba(232,196,143,.8); box-shadow: inset 0 0 0 4px var(--fc-bg), inset 0 0 0 5px rgba(232,196,143,.5), 0 0 48px rgba(232,196,143,.18);
}
#join-form { margin: 0 -20px; padding: 24px 20px calc(24px + var(--fc-safe-b, 0px)); background: var(--fc-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -16px 40px -24px rgba(0,0,0,.9); border-top: 1px solid var(--fc-line); }
#join-form .fc-small { font-size: var(--t-sm); margin-top: 16px !important; }

/* ---------- capture: camera button in the thumb zone ---------- */
#capture { padding-bottom: calc(var(--tray) + 24px + var(--fc-safe-b, 0px)); }
#capture .fc-bar { background: rgba(18,13,9,.92) !important; }
#greeting { font: 600 var(--t-sm)/1 var(--fc-font); color: var(--fc-ink); padding: 8px 12px; border-radius: 999px; background: var(--fc-surface); border: 1px solid var(--fc-line); }
#capture .fc-stack { gap: 16px; margin-top: 16px !important; }
/* stats card: the number leads, the label follows */
#capture .fc-counter { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 24px; }
#capture .fc-counter__num { order: -1; font: 600 48px/1 var(--fc-display) !important; color: var(--fc-accent) !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-width: 0 !important; border: 0 !important; letter-spacing: 0 !important; }
#capture .fc-counter__label { font: 600 var(--t-md)/1.3 var(--fc-font); color: var(--fc-ink); }
#capture .fc-counter::after { content: none; }

/* floating camera bar: drawn by the page itself, buttons sit on it; status floats above as a pill */
#capture::after { content: ""; position: fixed; left: 50%; bottom: calc(16px + var(--fc-safe-b, 0px)); width: 176px; height: 88px; margin-left: -88px;
  border-radius: 999px; background: #211912; border: 1px solid var(--fc-line-2); z-index: 4; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,240,214,.07), 0 24px 48px -16px rgba(0,0,0,.95), 0 8px 16px -8px rgba(0,0,0,.6); }
#capture .fc-dock { position: fixed; left: 50%; bottom: calc(116px + var(--fc-safe-b, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; height: auto;
  padding: 8px 14px; border-radius: 999px; background: rgba(33,25,18,.96); border: 1px solid var(--fc-line-2); z-index: 5; flex-direction: row; align-items: center; gap: 10px;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.9); }
#capture .fc-dock__status { white-space: nowrap; font: 600 var(--t-sm)/1.2 var(--fc-font); padding: 0; background: none; border: 0; }
#capture #dock-hint { font-size: var(--t-sm); white-space: nowrap; color: var(--fc-muted); padding: 0 0 0 10px; border-left: 1px solid var(--fc-line-2); }
#capture #dock-hint:empty { display: none; }
#capture .fc-stack > label.fc-file:nth-of-type(1) { position: fixed; z-index: 6; left: 50%; bottom: calc(22px + var(--fc-safe-b, 0px)); width: 76px; height: 76px; margin-left: 4px; border-radius: 50%; }
#capture .fc-stack > label.fc-file:nth-of-type(1) .fc-shutter { width: 76px; height: 76px; aspect-ratio: auto; max-height: none; border-radius: 50%; padding: 0; border: 0; background: none; box-shadow: none; font-size: 0; gap: 0; }
#capture .fc-stack > label.fc-file:nth-of-type(1) .fc-shutter > span:not(.fc-shutter__ring) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#capture .fc-shutter__ring { width: 76px; height: 76px; background: radial-gradient(circle at 35% 30%, #fff6e6, var(--fc-accent) 60%, #b98c55);
  box-shadow: 0 0 0 5px var(--fc-bg), 0 0 0 6px rgba(232,196,143,.6), 0 0 32px rgba(232,196,143,.4); }
#capture .fc-stack > label.fc-file:nth-of-type(2) { position: fixed; z-index: 6; left: calc(50% - 80px); bottom: calc(32px + var(--fc-safe-b, 0px)); width: 56px; height: 56px; }
#capture .fc-stack > label.fc-file:nth-of-type(2) .fc-btn { width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; font-size: 0; gap: 0; background: var(--fc-raise); border: 1px solid var(--fc-line-2); }
#capture .fc-stack > label.fc-file:nth-of-type(2) .fc-btn svg { width: 24px; height: 24px; }

/* your photos: square grid edge to edge, a check on sent, a chip on waiting */
#capture section { margin-top: 24px !important; }
#capture section > .fc-row { padding-bottom: 12px; border-bottom: 1px solid var(--fc-line); margin-bottom: 2px !important; }
#capture section > .fc-row .fc-small { padding: 8px 14px; border-radius: 999px; background: var(--fc-accent); color: var(--fc-accent-ink); font-weight: 600; }
.fc-shots { gap: 2px; margin: 0 -20px; }
.fc-shot { background: none !important; padding: 0 !important; border-radius: 0; overflow: hidden; box-shadow: none !important; transform: none !important; }
.fc-shot img { border-radius: 0; }
.fc-shot::after { content: none !important; }
.fc-shot__badge { left: 6px !important; right: auto !important; bottom: 6px !important; top: auto; height: 24px !important; padding: 0 8px; border-radius: 999px; background: rgba(12,9,6,.85); color: var(--fc-ink) !important; font: 600 12px/1 var(--fc-font) !important; }
.fc-shot[data-status="sent"] .fc-shot__badge { left: auto !important; right: 6px !important; top: 6px !important; bottom: auto !important; width: 24px; padding: 0; justify-content: center; font-size: 0 !important; background: var(--fc-accent); color: var(--fc-accent-ink) !important; }
.fc-shot[data-status="sent"] .fc-shot__badge svg { width: 14px; height: 14px; }
.fc-shot[data-status="failed"] .fc-shot__badge { background: #b5452e; color: #fff !important; }
.fc-shot[data-state="lost"] { padding-bottom: 0 !important; }
.fc-shot[data-state="lost"] .fc-shot__badge { right: 6px !important; height: auto !important; padding: 6px 8px; border-radius: 10px; font-size: 11px !important; }
.fc-shot[data-status="waiting"] img, .fc-shot[data-status="queued"] img, .fc-shot[data-status="uploading"] img { filter: brightness(.55) saturate(.6); }
.fc-shot__bar { left: 6px; right: 6px; bottom: 36px; height: 4px; border-radius: 4px; background: rgba(255,244,226,.2); }
.fc-shot__bar > i { background: var(--fc-accent); border-radius: 4px; }
/* the peak: a photo reaching the couple gets a glow ring and the chip pops */
@media (prefers-reduced-motion: no-preference) {
  .fc-shot[data-status="sent"] { animation: v3-glow 1.2s ease-out both !important; }
  .fc-shot[data-status="sent"] img { animation: none !important; }
  .fc-shot[data-status="sent"] .fc-shot__badge { animation: v3-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
}
@keyframes v3-glow { 0% { box-shadow: 0 0 0 0 rgba(232,196,143,.9); } 100% { box-shadow: 0 0 0 10px rgba(232,196,143,0); } }
@keyframes v3-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- album ---------- */
#locked::after { content: none !important; }
#locked { padding: 32px 24px; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 20%, rgba(232,196,143,.16), transparent 60%), linear-gradient(160deg, #2a2018, #17110c); border: 1px solid var(--fc-line); text-align: center; }
#locked .fc-eyebrow { color: var(--fc-accent); }
#locked .fc-counter, #open .fc-counter { border-radius: var(--r-md); padding: 16px 24px; }
#locked .fc-counter__num { font: 600 var(--t-xl)/1 var(--fc-display) !important; color: var(--fc-accent) !important; background: none !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
#open .fc-h2 { font-size: var(--t-xl) !important; }
#open-count { color: var(--fc-accent); }
.fc-album { grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -20px; }
.fc-album > li { transform: none !important; }
.fc-album a, .fc-album button { background: none !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; color: var(--fc-ink) !important; }
.fc-album img { border-radius: 0; }
.fc-album a::after, .fc-album button::after { content: none !important; }
.fc-album__name { left: 6px !important; right: auto !important; bottom: 6px !important; max-width: calc(100% - 12px); padding: 4px 8px !important; border-radius: 999px; background: rgba(12,9,6,.8); font: 600 12px/1.2 var(--fc-font) !important; color: var(--fc-ink) !important; }
@media (min-width: 600px) { .fc-album { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0; } }

/* ================= layered cards ================= */
:root { --card: linear-gradient(180deg, #241b14, #1b140f); --card-shadow: inset 0 1px 0 rgba(255,240,214,.07), 0 1px 2px rgba(0,0,0,.4), 0 20px 40px -20px rgba(0,0,0,.95); --ease: cubic-bezier(.16,1,.3,1); }
#capture .fc-counter, #capture .fc-note, #capture section, #locked, #join-form { background: var(--card) !important; border: 1px solid var(--fc-line) !important; box-shadow: var(--card-shadow) !important; border-radius: var(--r-lg) !important; }
#capture section { padding: 16px 8px 8px; margin-top: 16px !important; }
#capture section > .fc-row { padding: 0 8px 12px; border: 0; margin-bottom: 0 !important; }
#capture section > .fc-note { margin: 8px 0 0 !important; box-shadow: none !important; background: rgba(255,240,214,.04) !important; border-radius: var(--r-md) !important; }
#capture #shots-empty { padding: 0 8px 8px; }
.fc-shots { gap: 6px; margin: 0; }
.fc-shot, .fc-shot img { border-radius: 16px; }
.fc-album { gap: 6px; margin: 0 -8px; padding: 8px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--fc-line); box-shadow: var(--card-shadow); }
.fc-album img { border-radius: 16px; }
.fc-album a, .fc-album button { border-radius: 16px !important; overflow: hidden; }
#capture .fc-bar, .fc-bar { background: transparent; }
#capture .fc-bar { backdrop-filter: none; background: linear-gradient(180deg, var(--fc-bg) 70%, rgba(18,13,9,0)) !important; }

/* ================= motion ================= */
/* press: everything you tap gives way a little */
.fc-btn, .fc-shutter__ring, .fc-file .fc-btn { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.fc-btn:active, .fc-file:active .fc-btn { transform: scale(.96); }
.fc-file:active .fc-shutter__ring { transform: scale(.9); }
@media (prefers-reduced-motion: no-preference) {
  /* cards rise into place, one after another */
  #landing > *, #capture .fc-stack > *, #capture section, #locked > *, #open > * { animation: v5-rise .6s var(--ease) both; }
  #landing > *:nth-child(2), #capture .fc-stack > *:nth-child(2), #locked > *:nth-child(2), #open > *:nth-child(2) { animation-delay: .06s; }
  #landing > *:nth-child(3), #capture .fc-stack > *:nth-child(3), #locked > *:nth-child(3), #open > *:nth-child(3) { animation-delay: .12s; }
  #landing > *:nth-child(n+4), #capture .fc-stack > *:nth-child(n+4), #locked > *:nth-child(n+4), #capture section { animation-delay: .18s; }
  /* fixed controls keep their own transform, so they don't use the rise */
  #capture .fc-stack > label.fc-file { animation: v5-pop .5s .2s cubic-bezier(.3,1.4,.5,1) both; }
  #capture::after { animation: v5-bar .6s .1s var(--ease) both; }
  #capture .fc-stack > label.fc-file:nth-of-type(1) .fc-shutter__ring { animation: v5-breathe 2.8s 1s ease-in-out infinite; }
  #capture .fc-dock { animation: v5-pill .5s .3s var(--ease) both; }
  /* a new photo drops into the grid */
  .fc-shot--new { animation: v5-in .45s var(--ease) both !important; }
  /* the album opens: the first prints fade up in a wave */
  .fc-album > li { animation: v5-in .5s var(--ease) both; }
  .fc-album > li:nth-child(2) { animation-delay: .04s } .fc-album > li:nth-child(3) { animation-delay: .08s }
  .fc-album > li:nth-child(4) { animation-delay: .12s } .fc-album > li:nth-child(5) { animation-delay: .16s }
  .fc-album > li:nth-child(6) { animation-delay: .2s } .fc-album > li:nth-child(n+7) { animation-delay: .24s }
  /* the peak: sent check springs in and the tile glows once */
  .fc-shot[data-status="sent"] { animation: v3-glow 1s ease-out both !important; }
  .fc-shot[data-status="sent"] .fc-shot__badge { animation: v5-check .5s cubic-bezier(.3,1.6,.5,1) both; }
  .fc-shot img { transition: filter .5s var(--ease); }
}
@keyframes v5-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes v5-in { from { opacity: 0; transform: scale(.94); } }
@keyframes v5-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes v5-bar { from { opacity: 0; transform: translateY(24px); } }
@keyframes v5-pill { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes v5-breathe { 50% { box-shadow: 0 0 0 5px var(--fc-bg), 0 0 0 6px rgba(232,196,143,.6), 0 0 44px 6px rgba(232,196,143,.5); } }
@keyframes v5-check { 0% { transform: scale(0); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* album + host tiles: the img carries width/height=400 attributes; keep every tile square */
.fc-album a, .fc-album button { display: block; width: 100%; }
.fc-album img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }

/* never crop a name: couple's names in the header wrap to two lines, guest names wrap inside their chip */
.fc-bar { align-items: center; }
.fc-bar > :last-child { flex: none; }
.fc-logo { align-items: center; }
.fc-logo > span:last-child { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.2; text-wrap: balance; padding: 6px 0; }
#landing .fc-names__a, #landing .fc-names__b { white-space: normal; text-wrap: balance; }
#landing > section.fc-stack .fc-h1 { font-size: min(36px, 10vw) !important; }
.fc-album__name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25 !important; }
.hd-lb__caption, .fc-lightbox__bar { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }

/* ================= LIGHT: mostly white, champagne accents (Nath, 20 Nov) ================= */
:root {
  --fc-bg: #fbf8f3; --fc-bg-deep: #f4eee4; --fc-surface: #ffffff; --fc-raise: #f3ece1;
  --fc-line: rgba(90,62,34,.10); --fc-line-2: rgba(90,62,34,.18);
  --fc-ink: #2a1d12; --fc-muted: rgba(42,29,18,.70); --fc-faint: rgba(42,29,18,.52);
  --fc-accent: #e3c591; --fc-accent-ink: #2a1d12; --fc-accent-text: #8a6232;
  --fc-paper: #ffffff; --fc-paper-ink: #2a1d12;
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(90,62,34,.06), 0 12px 32px -14px rgba(90,62,34,.22);
  --shadow: var(--card-shadow);
}
html, body.fc, body.fc--dark { background: radial-gradient(120% 50% at 50% -10%, rgba(227,197,145,.28), transparent 60%), var(--fc-bg) !important; color: var(--fc-ink); color-scheme: light; }
::selection { background: rgba(227,197,145,.6); color: var(--fc-ink); }
.fc-logo, .fc-h1, .fc-h2, .fc-h3, .fc-label { color: var(--fc-ink) !important; }
.fc-logo__mark { background: var(--fc-accent); box-shadow: none; } .fc-logo__mark::after { background: #fff; }
.fc-eyebrow, #event-date { color: var(--fc-muted); }
#open-count, #locked .fc-eyebrow, #landing > section.fc-stack .fc-eyebrow { color: var(--fc-accent-text) !important; }
.fc-link { color: var(--fc-accent-text); }
.fc-btn--primary { background: var(--fc-accent); color: var(--fc-accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 24px -10px rgba(176,128,60,.55); }
.fc-btn--secondary { background: #fff; color: var(--fc-ink); border-color: var(--fc-line-2); }
.fc-input { background: #fff; color: var(--fc-ink); border-color: var(--fc-line-2); }
.fc-input:focus { border-color: var(--fc-accent-text); box-shadow: 0 0 0 4px rgba(227,197,145,.45); }
.fc-note, #capture section > .fc-note { background: var(--fc-bg-deep) !important; color: var(--fc-ink); border-color: var(--fc-line) !important; }
.fc-note svg { color: var(--fc-accent-text); }
.fc-note--offline { background: #fbf0dc !important; } .fc-note--bad { background: #fbe6e0 !important; }
.fc-bar > .fc-eyebrow#event-date, #greeting { background: #fff; border-color: var(--fc-line); box-shadow: 0 2px 8px -4px rgba(90,62,34,.2); }
#capture .fc-bar { background: linear-gradient(180deg, var(--fc-bg) 70%, rgba(251,248,243,0)) !important; }

/* landing */
#landing > section.fc-stack .fc-h1, #landing .fc-names__b { color: var(--fc-ink) !important; }
#landing .fc-names__and { color: var(--fc-accent-text) !important; }
#landing > section.fc-stack .fc-lead { color: var(--fc-muted) !important; }
#landing > section.fc-stack::after { color: var(--fc-accent-text); background: #fff; border-color: var(--fc-accent);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(201,163,106,.6), 0 10px 30px -10px rgba(176,128,60,.4); }
#join-form { box-shadow: 0 -12px 32px -18px rgba(90,62,34,.3) !important; }

/* capture */
#capture .fc-counter__num { color: var(--fc-accent-text) !important; }
#capture .fc-counter__label { color: var(--fc-ink); }
#capture::after { background: #fff; border-color: var(--fc-line); box-shadow: 0 16px 36px -12px rgba(90,62,34,.35), 0 2px 6px rgba(90,62,34,.08); }
#capture .fc-dock { background: rgba(255,255,255,.97); border-color: var(--fc-line); box-shadow: 0 10px 24px -10px rgba(90,62,34,.35); color: var(--fc-ink); }
#capture .fc-shutter__ring { background: radial-gradient(circle at 35% 30%, #fffaf0, #ecd3a5 55%, #c9a36a); box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(201,163,106,.7), 0 8px 24px -6px rgba(176,128,60,.55); }
#capture .fc-shutter__ring::after { border-color: #5a3e22; background: radial-gradient(circle at 50% 55%, transparent 6px, #5a3e22 6.5px 8.5px, transparent 9px); }
#capture .fc-stack > label.fc-file:nth-of-type(2) .fc-btn { background: var(--fc-bg-deep); color: var(--fc-ink); }
@keyframes v5-breathe { 50% { box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(201,163,106,.7), 0 8px 32px 2px rgba(176,128,60,.55); } }
.fc-dot { background: var(--fc-accent-text); box-shadow: 0 0 0 3px rgba(201,163,106,.25); }
.fc-shot__badge { background: rgba(255,255,255,.94) !important; color: var(--fc-ink) !important; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.fc-shot[data-status="sent"] .fc-shot__badge { background: var(--fc-accent) !important; color: var(--fc-accent-ink) !important; }
.fc-shot[data-status="failed"] .fc-shot__badge { background: #b5452e !important; color: #fff !important; }
.fc-shot[data-status="waiting"] img, .fc-shot[data-status="queued"] img, .fc-shot[data-status="uploading"] img { filter: brightness(.8) saturate(.5) opacity(.8); }
@keyframes v3-glow { 0% { box-shadow: 0 0 0 0 rgba(201,163,106,.9); } 100% { box-shadow: 0 0 0 10px rgba(201,163,106,0); } }

/* album */
.fc-album__name { background: rgba(255,255,255,.94) !important; color: var(--fc-ink) !important; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
#locked { background: radial-gradient(circle at 50% 15%, rgba(227,197,145,.35), transparent 60%), #fff !important; }
#locked .fc-counter { background: var(--fc-bg-deep); }
#locked .fc-counter__num { color: var(--fc-accent-text) !important; }
.fc-lightbox { background: #fbf8f3; color: var(--fc-ink); }

/* ================= album showcase: layered photo cards (album page only; host keeps its grid) =================
   One big card per photo. Each card sticks just under the header and the next one slides up over it,
   so the photos pile up like prints on a table. CSS only; the button and lightbox are unchanged. */
#open .fc-album { display: block; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
#open .fc-album > li { position: sticky; top: 72px; margin: 0 0 24px; }
#open .fc-album > li:nth-child(3n+1) { top: 72px; }
#open .fc-album > li:nth-child(3n+2) { top: 80px; }
#open .fc-album > li:nth-child(3n)   { top: 88px; }
#open .fc-album a, #open .fc-album button { padding: 8px !important; background: #fff !important; border-radius: 28px !important; overflow: hidden;
  box-shadow: 0 1px 2px rgba(90,62,34,.08), 0 -6px 18px -10px rgba(90,62,34,.18), 0 24px 48px -20px rgba(90,62,34,.35) !important; }
#open .fc-album img { aspect-ratio: 4 / 5 !important; border-radius: 22px; }
#open .fc-album__name { left: 20px !important; bottom: 20px !important; top: auto; max-width: calc(100% - 40px); padding: 8px 14px !important; font-size: 14px !important; }
@media (min-width: 600px) { #open .fc-album { max-width: 480px; margin: 0 auto; } }
@media (prefers-reduced-motion: no-preference) {
  /* where the browser supports it, a card eases back and dims a touch as the next one covers it */
  @supports (animation-timeline: view()) {
    #open .fc-album > li > button, #open .fc-album > li > a { animation: v5-settle linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
  }
}
@keyframes v5-settle { to { transform: scale(.94); filter: brightness(.92); } }
