/* Chitra's 40th — "40 and Fabulous". Modern-romantic: ivory + blush + champagne, warm gold, dusty rose.
   Inspiration: an arched cream backdrop with an organic blush/champagne balloon garland and a rose script. */
:root {
  --ivory: #faf6f1;
  --paper: #fffdf9;
  --cream: #f4ece2;
  --blush: #ecc5bb;
  --blush-2: #f6ddd5;
  --champ: #e9d6bb;
  --nude: #dcb9a4;
  --rose: #a8475f;      /* the "40 and Fabulous" script colour */
  --rose-2: #c46b80;
  --gold: #b48a52;
  --gold-2: #d8bb85;
  --ink: #3b2a2c;
  --muted: #8b7673;
  --line: #e8dccd;
  --sage: #a9b79b;
  --gold-grad: linear-gradient(135deg, #e5cf9c 0%, #b48a52 45%, #d9be86 100%);
  --radius: 20px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow-x: hidden; overflow-x: clip; } /* the garland hangs past the edge on purpose; never widen the page */
body {
  font-family: var(--sans); font-weight: 400; color: var(--ink);
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(236, 197, 187, 0.55), transparent 65%),
    radial-gradient(600px 420px at 0% 100%, rgba(233, 214, 187, 0.55), transparent 65%),
    var(--ivory);
  background-attachment: fixed;
  min-height: 100dvh; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- type ---------- */
.kicker { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.title { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.08; margin: 0 0 18px; color: var(--ink); letter-spacing: -0.2px; }
.lead { color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.55; margin: 8px 0 18px; }
.fine { color: var(--muted); font-size: 13px; font-weight: 300; line-height: 1.5; }
.center { text-align: center; }
.script-line { font-family: var(--script); font-size: 52px; line-height: 1; color: var(--rose); margin: 0 0 4px; }
.error { color: var(--rose); font-weight: 500; min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.ok { color: #5f7a55; font-weight: 500; min-height: 1.2em; margin: 10px 0 0; }

/* "40 and Fabulous" lockup */
.lockup { display: grid; grid-template-columns: auto auto; grid-template-areas: "n and" "s s"; align-items: end; justify-content: center; column-gap: 12px; color: var(--rose); margin: 6px 0 4px; }
.lock-40 { grid-area: n; font-family: var(--serif); font-weight: 500; font-size: 112px; line-height: 0.8; letter-spacing: -4px; }
.lock-and { grid-area: and; font-family: var(--sans); font-weight: 400; font-size: 18px; letter-spacing: 0.35em; text-transform: uppercase; padding-bottom: 10px; }
.lock-script { grid-area: s; font-family: var(--script); font-size: 74px; line-height: 1; margin-top: 14px; }
.lockup-sm .lock-40 { font-size: 84px; }
.lockup-sm .lock-and { font-size: 14px; padding-bottom: 8px; }
.lockup-sm .lock-script { font-size: 56px; margin-top: 10px; }

/* ---------- the arch backdrop ---------- */
.arch {
  position: relative; text-align: center; background: var(--paper);
  border-radius: 999px 999px 26px 26px; padding: 64px 26px 30px;
  box-shadow: 0 30px 60px -30px rgba(120, 80, 60, 0.35), inset 0 0 0 1px rgba(180, 138, 82, 0.18);
}
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 18px 18px; border: 1px solid rgba(180, 138, 82, 0.28); pointer-events: none; }
.arch-hero { margin-top: 6px; }
.arch-hero.has-photo { padding-top: 22px; }
/* her cut-out portrait: no halo, no ring — she sits plainly on the site background, fading out at the hip */
.portrait { width: min(70%, 270px); margin: 0 auto 6px; position: relative; }
.portrait img { width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%); }
.hero-name { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 10vw, 46px); line-height: 1; margin: 2px 0 10px; color: var(--ink); }
.arch-small { padding: 54px 22px 26px; }

/* ---------- balloon garland (pure CSS) ---------- */
/* The garland hangs past the screen edge on purpose. It lives inside a frame that is EXACTLY the viewport wide
   and clips, because an overhanging element makes phone browsers widen the whole layout (measured: 436px layout
   on a 390px iPhone, which pushed the header's play button off-screen). */
.garland-frame { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.garland-frame-top { top: 0; height: 340px; }
.garland-frame-bottom { position: fixed; bottom: 0; height: 200px; }
body:not([data-view="gate"]):not([data-view="home"]) .garland-frame { display: none; }
body:not([data-view="gate"]) .garland-frame-bottom { display: none; }
.garland { position: absolute; pointer-events: none; }
.garland-top { top: calc(var(--safe-t) - 118px); right: -54px; width: 230px; height: 300px; } /* drapes over the arch's shoulder, never over the words */
.garland-bottom { bottom: calc(var(--safe-b) - 96px); left: -62px; width: 200px; height: 170px; } /* a corner accent, kept clear of the form */
@media (max-height: 760px) { .garland-frame-bottom { display: none; } }
.b { position: absolute; border-radius: 50%; box-shadow: inset -10px -14px 26px rgba(120, 70, 50, 0.16), 0 10px 22px -10px rgba(110, 70, 50, 0.35); }
.b::before { content: ""; position: absolute; top: 16%; left: 20%; width: 28%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, 0.55); filter: blur(3px); }
.b.blush { background: radial-gradient(circle at 35% 30%, #f8dfd8, #e9b8ab 70%); }
.b.cream { background: radial-gradient(circle at 35% 30%, #fffaf2, #efe2cf 75%); }
.b.champ { background: radial-gradient(circle at 35% 30%, #f6ead6, #ddc29c 75%); }
.b.nude  { background: radial-gradient(circle at 35% 30%, #f1d9c9, #d3a993 75%); }
.b.gold  { background: radial-gradient(circle at 35% 30%, #fbefcf, #c49a5b 70%); }
.b.xl { width: 128px; height: 128px; } .b.lg { width: 98px; height: 98px; } .b.md { width: 72px; height: 72px; }
.b.sm { width: 50px; height: 50px; } .b.xs { width: 32px; height: 32px; }
.garland-top .b:nth-child(1) { top: 0; right: 0; }
.garland-top .b:nth-child(2) { top: 92px; right: 64px; }
.garland-top .b:nth-child(3) { top: 40px; right: 120px; }
.garland-top .b:nth-child(4) { top: 128px; right: 20px; }
.garland-top .b:nth-child(5) { top: 168px; right: 50px; }
.garland-top .b:nth-child(6) { top: 22px; right: 176px; }
.garland-top .b:nth-child(7) { top: 104px; right: 168px; }
.garland-top .b:nth-child(8) { top: 214px; right: 0; }
.garland-bottom .b:nth-child(1) { bottom: 0; left: 30px; }
.garland-bottom .b:nth-child(2) { bottom: 60px; left: 0; }
.garland-bottom .b:nth-child(3) { bottom: 80px; left: 90px; }
.garland-bottom .b:nth-child(4) { bottom: 40px; left: 124px; }
.garland-bottom .b:nth-child(5) { bottom: 104px; left: 44px; }
/* leaves tucked into the garland (the small circle-in-circle florals were removed — operator, 2026-10-04) */
.leaf { position: absolute; width: 30px; height: 12px; border-radius: 100% 0; background: linear-gradient(135deg, #b9c7a8, #879a77); }
.l1 { top: 74px; right: 160px; transform: rotate(-30deg); } .l2 { top: 186px; right: 4px; transform: rotate(40deg); }
.l3 { bottom: 120px; left: 120px; transform: rotate(-20deg); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- shell ---------- */
#main { position: relative; z-index: 1; }
.view { display: none; padding: calc(var(--safe-t) + 72px) 20px calc(var(--tab-h) + var(--safe-b) + 28px); max-width: 640px; margin: 0 auto; }
.view.active { display: block; animation: rise 0.45s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: calc(var(--safe-t) + 14px) 20px 12px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(250, 246, 241, 0.96), rgba(250, 246, 241, 0.8) 70%, rgba(250, 246, 241, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.appbar-title { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.2px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { border: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(168, 71, 95, 0.55); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 253, 249, 0.92); border-top: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--rose); }
.tabbar a.on svg { stroke-width: 1.8; }

/* ---------- buttons + fields ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; transition: transform 0.12s, opacity 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 14px 28px -14px rgba(168, 71, 95, 0.8); }
.btn-primary:hover { background: #973c53; }
.btn-ghost { background: rgba(255, 253, 249, 0.7); color: var(--ink); border: 1px solid var(--gold-2); }
.btn-block { width: 100%; margin-top: 12px; }
.btn-lg { min-height: 58px; font-size: 15px; }
.btn-icon { width: 52px; padding: 0; }

.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 8px; color: var(--gold); }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { border-color: var(--rose-2); box-shadow: 0 0 0 3px rgba(196, 107, 128, 0.15); }
input::placeholder, textarea::placeholder { color: #b9a8a3; font-weight: 300; }
textarea { resize: vertical; min-height: 140px; line-height: 1.55; }

/* ---------- gate ---------- */
.gate { display: none; min-height: 100dvh; padding: calc(var(--safe-t) + 46px) 22px calc(var(--safe-b) + 40px); }
.gate.active { display: flex; align-items: center; justify-content: center; }
.gate-card { width: 100%; max-width: 420px; position: relative; z-index: 2; }
.arch-gate { padding-top: 96px; }
.gate-card form { margin-top: 26px; }

/* ---------- home ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 4px; }
.countdown div { border-top: 1px solid var(--gold-2); border-bottom: 1px solid var(--gold-2); padding: 10px 2px; }
.countdown b { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1; color: var(--ink); }
.countdown small { color: var(--muted); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.today { font-family: var(--script); font-size: 38px; color: var(--rose); margin: 16px 0 0; }
.counter { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); margin: 14px 0 0; }
.cta-list { margin-top: 26px; display: grid; gap: 12px; }
.cta {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(110, 70, 50, 0.6); transition: transform 0.15s, border-color 0.2s;
}
.cta:active { transform: scale(0.985); }
.cta:hover { border-color: var(--gold-2); }
.cta-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--rose); background: var(--blush-2); }
.cta:nth-child(2) .cta-icon { background: #f3e8d6; color: var(--gold); }
.cta:nth-child(3) .cta-icon { background: #ece6ef; color: #7d5a78; }
.cta-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cta-txt b { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; }
.cta-txt small { color: var(--muted); font-weight: 300; font-size: 14px; }
.cta-arrow { color: var(--gold); font-size: 20px; }
.secret-note { text-align: center; margin-top: 26px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 17px; }

/* ---------- camera ---------- */
.camera {
  position: relative; width: 100%; margin: 0 auto;
  /* Fits the screen WITH the record button visible above the tab bar. */
  height: clamp(240px, calc(100dvh - 430px), 560px);
  border-radius: 24px; overflow: hidden; background: #2b2022; box-shadow: 0 0 0 1px var(--gold-2), 0 24px 40px -24px rgba(60, 30, 30, 0.6);
}
.camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
#cam { transform: scaleX(-1); }
#cam.rear { transform: none; }
.cam-overlay { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0566f; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.rec-time { color: #fff; font-weight: 500; letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.35); padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 130px; color: #fff; text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.cam-msg { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; margin: 0; color: #f6ece4; padding: 0 18px; font-weight: 300; }
.cam-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 4px; min-height: 84px; }
.rec-btn { width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--gold-2); background: var(--paper); display: grid; place-items: center; padding: 0; box-shadow: 0 10px 24px -10px rgba(168, 71, 95, 0.6); }
.rec-btn span { width: 56px; height: 56px; border-radius: 50%; background: var(--rose); transition: all 0.2s; }
.rec-btn.recording span { width: 28px; height: 28px; border-radius: 7px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 18px 0 6px; font-family: var(--serif); font-style: italic; font-size: 17px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt-actions .btn-block { margin-top: 10px; }

/* ---------- compose ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 20px; transition: all 0.15s; }
.chips button.on { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196, 107, 128, 0.18); transform: scale(1.06); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--paper); }
.swatches button.on { box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 2px var(--rose); }
.attachments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.attachments:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #2b2022; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, 0.9); color: var(--ink); font-weight: 600; }
.thumb .tag { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, 0.4); padding: 2px 8px; border-radius: 999px; }
.attach-row { display: flex; gap: 10px; }
.attach-row .btn { flex: 1; }

/* ---------- sending / sent ---------- */
.center-stack { text-align: center; padding-top: 5vh; }
.seal { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--rose); box-shadow: 0 0 0 6px var(--blush-2), 0 18px 36px -14px rgba(168, 71, 95, 0.7); }
.seal svg { width: 38px; height: 38px; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.progress { height: 6px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--gold-grad); transition: width 0.25s; }

/* ---------- wishes wall ---------- */
.wall-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.seg { display: flex; border: 1px solid var(--gold-2); border-radius: 999px; padding: 3px; margin-bottom: 18px; background: var(--paper); }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.seg button.on { background: var(--rose); color: #fff; }
.grid { columns: 2 160px; column-gap: 12px; }
@media (min-width: 640px) { .grid { columns: 3 180px; } }
.card { break-inside: avoid; margin: 0 0 12px; border-radius: 18px; overflow: hidden; color: var(--ink); border: 1px solid rgba(180, 138, 82, 0.22); box-shadow: 0 16px 30px -24px rgba(110, 70, 50, 0.7); animation: rise 0.5s ease both; }
.card .media img, .card .media video { width: 100%; display: block; background: #2b2022; }
.card .media img { cursor: zoom-in; }
.card .media + .media { margin-top: 2px; }
.card .body { padding: 14px 16px 16px; }
.card .emoji { font-size: 22px; line-height: 1; }
.card .msg { margin: 8px 0 12px; font-family: var(--serif); font-size: 18px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.card .who { font-family: var(--script); font-size: 28px; line-height: 1; color: var(--rose); }
.card .where { margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
/* card tones (keys kept stable for stored wishes) */
.c-pink { background: #f8e3dd; } .c-coral { background: #f3e2d0; } .c-gold { background: #fbf4e6; }
.c-mint { background: #e6ebdd; } .c-sky { background: #ece3ea; } .c-lilac { background: #efe6dc; } .c-peach { background: #f6dcd6; }
.surprise { padding: 8px 0; }
#wall-map { height: 68dvh; min-height: 360px; border-radius: 22px; overflow: hidden; border: 1px solid var(--gold-2); margin-bottom: 12px; background: #aadaff; }
/* Map view breaks out of the narrow reading column: almost full width on a computer, and taller. */
.view[data-view="wall"].map-mode { max-width: 1240px; }
@media (min-width: 900px) { #wall-map { height: calc(100dvh - 230px); min-height: 520px; } }
.map-stat { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); margin: 0 0 12px; }
.map-stat:empty { display: none; }
.pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--rose); transform: rotate(-45deg); border: 3px solid var(--paper); box-shadow: 0 4px 10px rgba(60, 30, 30, 0.35); }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content { font-family: var(--sans); }

/* ---------- celebration slideshow (made for a TV) ---------- */
.show { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 25%, #4a3236, #1f1517 72%); color: #f6ece4; display: flex; flex-direction: column; }
.show-close { position: absolute; top: calc(var(--safe-t) + 14px); right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(216, 187, 133, 0.5); background: transparent; color: #f6ece4; font-size: 16px; }
.show-stage { flex: 1; display: grid; place-items: center; padding: calc(var(--safe-t) + 64px) 22px 20px; text-align: center; }
.show-stage video, .show-stage img { max-width: 100%; max-height: 68dvh; border-radius: 18px; box-shadow: 0 0 0 1px rgba(216, 187, 133, 0.4), 0 30px 60px rgba(0, 0, 0, 0.5); }
.show-stage img.s-portrait { max-height: 54dvh; border-radius: 0; box-shadow: none; background: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
.show-stage .s-msg { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 5.5vw, 48px); line-height: 1.3; max-width: 900px; margin: 0 auto; white-space: pre-wrap; }
.show-stage .s-who { margin-top: 20px; font-family: var(--script); font-size: clamp(30px, 6vw, 50px); color: var(--gold-2); }
.show-stage .s-item { animation: rise 0.8s ease; width: 100%; }
.show-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 10px calc(var(--safe-b) + 20px); flex-wrap: wrap; }
.show-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 236, 228, 0.25); }
.show-dots i.on { background: var(--gold-2); width: 20px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; z-index: 55; background: rgba(31, 21, 23, 0.94); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---------- admin ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel-title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.a-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.a-row:first-child { border-top: 0; }
.a-row .t { flex: 1; min-width: 0; }
.a-row .t b { display: block; font-weight: 500; }
.a-row .t small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 300; }
.a-row.hidden-wish { opacity: 0.45; }
.a-row .btn { min-height: 38px; padding: 6px 16px; font-size: 11px; }

@media (prefers-reduced-motion: reduce) { .view.active, .card, .pulse { animation: none; } }

/* ---------- effortless-wishing helpers ---------- */
.hello-card { margin-top: 10px; text-align: left; }
.hello-card .script-line, .hello-card .title, .hello-card .lead { text-align: center; }
.linkish { appearance: none; border: 0; background: none; padding: 4px 0; margin: -8px 0 16px; color: var(--rose); font: inherit; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.linkish svg { width: 16px; height: 16px; }
.linkish:disabled { color: var(--muted); }
.starters { display: flex; gap: 8px; overflow-x: auto; margin: -8px -20px 18px; padding: 2px 20px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.starters::-webkit-scrollbar { display: none; }
.starters button { flex: none; border: 1px solid var(--gold-2); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; font-family: var(--serif); font-style: italic; white-space: nowrap; }
.starters button:active { background: var(--blush-2); }
.media-hint { margin: -6px 0 16px; color: var(--rose); }
label.cta { cursor: pointer; }

/* ---------- the story: a life in pictures ---------- */
.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 18px -20px 14px; padding: 2px 20px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row button { flex: none; border: 1px solid var(--gold-2); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px;
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.chips-row button.on { background: var(--rose); border-color: var(--rose); color: #fff; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(4, 1fr); } }
.story-grid button { padding: 0; border: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); cursor: pointer; }
.story-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.story-grid button:active img { transform: scale(0.96); }

.player { position: fixed; inset: 0; z-index: 70; background: #1a1214; color: #f6ece4; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.player-bar { position: absolute; top: calc(var(--safe-t) + 10px); left: 16px; right: 70px; height: 3px; background: rgba(246, 236, 228, 0.2); border-radius: 3px; z-index: 3; overflow: hidden; }
.player-bar i { display: block; height: 100%; width: 0; background: var(--gold-2); transition: width 0.4s; }
.player-close { position: absolute; top: calc(var(--safe-t) + 2px); right: 12px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 16px; }
.player-stage { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; }
.slide .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(0.45); }
.slide img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.slide.on img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.slide.chapter { background: radial-gradient(circle at 50% 40%, #4a3236, #1a1214 70%); text-align: center; padding: 30px; }
.slide.chapter .k { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-2); }
.slide.chapter h3 { font-family: var(--script); font-weight: 400; font-size: clamp(54px, 14vw, 96px); margin: 10px 0 6px; color: #f6ece4; }
.slide.chapter p { font-family: var(--serif); font-style: italic; font-size: 20px; color: #e9d6bb; margin: 0; }
.player-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 60px 22px calc(var(--safe-b) + 26px); text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 5vw, 30px); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6)); pointer-events: none; }
.player-caption:empty { display: none; }
.player-hint { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 26px); text-align: center; font-size: 12px; letter-spacing: 0.08em; color: rgba(246, 236, 228, 0.7); z-index: 3; transition: opacity 0.6s; pointer-events: none; }
.player.paused .player-caption::after { content: " · paused"; font-style: normal; font-size: 0.6em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); }
@media (prefers-reduced-motion: reduce) { .slide.on img { animation: none; } }

.toggle { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 500; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--rose); }
