/* Arnold & Jenny — wedding guest app. Blue #151667 + dark navy #041438 + muted autumn orange. */
:root {
  --navy-950: #041438; --navy-900: #0c154f; --navy-800: #151667; --navy-700: #1f2181; --navy-600: #2c2f99;
  --cream: #f3ece0; --cream-2: #ddd3c2; --muted: #b3ac9e; --line: rgba(243, 236, 224, .14);
  --orange: #dd9233; --orange-2: #f0ae55; --orange-soft: rgba(221,146,51, .16); --rust: #b06d24;
  --ok: #7fae6e; --bad: #d0675a;
  --opt-0: #dd9233; --opt-1: #4f7fa8; --opt-2: #6f9160; --opt-3: #9a5c7a;
  --script: "Great Vibes", cursive;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--navy-950) radial-gradient(120% 60% at 50% 0%, var(--navy-800) 0%, var(--navy-950) 70%) fixed;
  color: var(--cream); font: 16px/1.5 var(--sans);
}
a { color: var(--orange-2); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ── Shell ── */
.app { max-width: 620px; margin: 0 auto; min-height: 100vh; padding: env(safe-area-inset-top) 16px calc(124px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.monogram { font: 30px/1 var(--script); color: var(--orange-2); text-decoration: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 700; color: var(--cream-2); cursor: pointer; letter-spacing: .04em; min-height: 38px; }
.lang-btn:empty { visibility: hidden; }
.lang-btn .flag-ic { width: 24px; height: 16px; }
/* Language picker: first login and the top-bar sheet */
.lp-title { display: grid; gap: 2px; }
.lp-title span:not(:first-child) { font-size: 19px; color: var(--muted); font-weight: 500; }
.lang-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; margin-top: 18px; }
.lang-pick button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--cream); font: 600 17px var(--sans); }
.lang-pick button .flag-ic { width: 54px; height: 36px; border-radius: 6px; }
.lang-pick button[aria-pressed="true"] { border-color: var(--orange-2); background: rgba(240,174,85,.12); }
.lang-pick button:active { transform: scale(.97); }
.lang-sheet .lang-pick { margin: 4px auto 0; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(4, 20, 56, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav-inner { max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted);
  text-decoration: none; font-size: 11px; font-weight: 600; border-radius: 12px; }
.nav a svg { width: 24px; height: 24px; }
.nav a.active { color: var(--orange-2); }

.page-title { font: 500 32px/1.15 var(--serif); margin: 14px 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 18px; }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--orange); margin: 18px 0; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .6; }

.card { background: linear-gradient(180deg, rgba(38, 54, 92, .55), rgba(28, 42, 74, .55)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 13px 22px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: var(--navy-950); }
.btn-primary:active { background: var(--orange-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--cream); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; }
.btn-block { width: 100%; }

/* ── Home ── */
.hero { text-align: center; padding: 18px 0 6px; }
.hero .hello { font: 600 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero .names { font: clamp(46px, 14vw, 66px)/1.1 var(--script); color: var(--cream); margin: 6px 0 2px; }
.hero .names .amp { color: var(--orange-2); }
.hero .date { font: 500 21px var(--serif); color: var(--cream-2); letter-spacing: .05em; }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.countdown div { min-width: 70px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.countdown b { display: block; font: 600 30px/1 var(--serif); color: var(--orange-2); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.welcome { text-align: center; color: var(--cream-2); font: italic 500 19px/1.5 var(--serif); margin: 6px 6px 34px; white-space: pre-line; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; min-height: 128px; text-decoration: none; color: var(--cream);
  border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); }
.tile svg { width: 30px; height: 30px; color: var(--orange-2); }
.tile b { font: 600 22px/1.1 var(--serif); }
.tile span { font-size: 13px; color: var(--muted); }
.live-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--orange-soft); border: 1px solid rgba(221,146,51,.5); color: var(--cream); text-decoration: none; font-weight: 600; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 0 0 rgba(240,174,85,.7); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240,174,85,0); } 100% { box-shadow: 0 0 0 0 rgba(240,174,85,0); } }

/* ── Agenda ── */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), var(--navy-600)); opacity: .6; }
.event { position: relative; margin-bottom: 14px; }
.event::before { content: ""; position: absolute; left: -25px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-950); border: 2px solid var(--orange); }
.event details { border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(38,54,92,.6), rgba(28,42,74,.6)); overflow: hidden; }
.event details[open] { border-color: rgba(221,146,51,.55); }
.event summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.event summary::-webkit-details-marker { display: none; }
.event .time { grid-column: 1; font-weight: 700; color: var(--orange-2); font-size: 14px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.event .title { grid-column: 1; font: 600 23px/1.15 var(--serif); }
.event .summary { grid-column: 1; color: var(--muted); font-size: 14px; }
.event .chev { grid-column: 2; grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--orange-2); transition: transform .25s; }
.event details[open] .chev { transform: rotate(180deg); }
.event .body { padding: 0 16px 16px; color: var(--cream-2); white-space: pre-line; animation: reveal .25s ease; }
.event .body img { width: 100%; border-radius: 12px; margin-bottom: 12px; display: block; }
.event .where { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--muted); font-size: 14px; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

/* ── Translations ── */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tabs a { text-align: center; padding: 9px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; }
.tabs a.active { background: var(--navy-600); color: var(--cream); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.chips button { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--cream-2); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--orange); color: var(--navy-950); border-color: var(--orange); }
.phrase { padding: 14px 16px; margin-bottom: 10px; }
.phrase .mine { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.phrase .row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.phrase .flag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--orange-2); width: 24px; }
.phrase .say { font: 600 21px/1.25 var(--serif); flex: 1; }
.speak { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--cream-2); cursor: pointer; display: grid; place-items: center; }
.speak svg { width: 18px; height: 18px; }

.live-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; }
.captions { display: flex; flex-direction: column; gap: 10px; }
.caption { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); animation: reveal .3s ease; }
.caption .txt { font: 500 21px/1.35 var(--serif); }
.caption .orig { font-size: 13px; color: var(--muted); margin-top: 4px; }
.caption.pending .txt { color: var(--muted); font-style: italic; }
.caption:last-child { border-color: rgba(221,146,51,.5); }

/* ── Quiz ── */
.quiz-wait { text-align: center; padding: 30px 10px; }
.quiz-wait .big { font: 600 30px/1.2 var(--serif); margin: 14px 0 8px; }
.q-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.q-text { font: 600 26px/1.2 var(--serif); margin: 0 0 12px; }
.q-img { width: 100%; max-height: 34vh; object-fit: cover; border-radius: 14px; margin-bottom: 12px; display: block; }
.timer { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 14px; }
.timer i { display: block; height: 100%; background: var(--orange); border-radius: 3px; transition: width .25s linear; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 84px; padding: 14px; border: 0; border-radius: 14px;
  color: #fff; font-weight: 800; font-size: 17px; text-align: left; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.opt .shape { flex: none; width: 22px; height: 22px; fill: rgba(255,255,255,.95); }
.opt:disabled { cursor: default; }
.opt.dim { opacity: .3; }
.opt.chosen { outline: 3px solid var(--cream); outline-offset: 2px; }
.opt.correct { outline: 3px solid var(--cream); outline-offset: 2px; }
.result { text-align: center; padding: 22px 12px; margin-top: 14px; }
.result .icon { font-size: 44px; line-height: 1; }
.result .big { font: 600 28px/1.2 var(--serif); margin: 8px 0 2px; }
.result .pts { font-weight: 800; color: var(--orange-2); font-size: 20px; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.lb .rank { width: 28px; font-weight: 800; color: var(--orange-2); text-align: center; }
.lb .name { flex: 1; font-weight: 600; }
.lb .score { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb li.me { background: var(--orange-soft); border-radius: 10px; }

/* ── Photos ── */
.upload-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.upload-bar .btn { flex: 1; }
.uploads { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.up { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.up .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.up .bar i { display: block; height: 100%; background: var(--orange); width: 0; transition: width .2s; }
/* The wall: a full-width strip of polaroids in two rows that you browse sideways */
.wall { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.grid { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: max-content; align-items: start; gap: 26px 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 24px; padding: 18px 24px 22px; scrollbar-width: none; }
.grid::-webkit-scrollbar { display: none; }
.grid .empty { grid-row: 1 / span 2; width: calc(100vw - 48px); max-width: 572px; margin: 0 auto; }
.wall-nav { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(4,20,56,.85); color: var(--cream); font: 600 26px/1 var(--serif); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.wall-nav.prev { left: 10px; } .wall-nav.next { right: 10px; }
@media (hover: none) { .wall-nav { display: none; } }
/* Polaroid wall */
.polaroid { position: relative; display: block; scroll-snap-align: start; margin: 0; padding: 8px 8px 0; border: 0; cursor: pointer;
  background: #fbf8f2; border-radius: 2px; transform: rotate(var(--tilt, 0deg)); color: #3a3340;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 22px rgba(2,8,30,.55); transition: transform .2s; }
.polaroid:nth-child(4n+2) { margin-top: 14px; } .polaroid:nth-child(4n+3) { margin-left: 18px; }
.polaroid:active { transform: rotate(0deg) scale(1.03); }
.polaroid .ph { position: relative; display: block; background: #222; }
.polaroid img, .polaroid video { height: 170px; width: auto; min-width: 120px; max-width: 64vw; object-fit: cover; display: block; }
@media (min-width: 700px) { .polaroid img, .polaroid video { height: 230px; max-width: 360px; } }
.polaroid .by { display: block; width: 0; min-width: 100%; padding: 6px 2px 9px; font: 22px/1.1 var(--script); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid .vid { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 700; }
/* push pins */
.polaroid.pin::before, .polaroid.pin-gold::before { content: ''; position: absolute; z-index: 2; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a8a, #c2362b 55%, #7d1d16); box-shadow: 0 3px 4px rgba(0,0,0,.45); }
.polaroid.pin-gold::before { background: radial-gradient(circle at 35% 30%, #fff1c9, var(--orange) 55%, #8a5514); left: 30%; }
/* tape */
.polaroid.tape::before, .polaroid.tape-r::before, .polaroid.tape-2::before, .polaroid.tape-2::after { content: ''; position: absolute; z-index: 2; top: -10px; left: 50%; width: 70px; height: 22px; margin-left: -35px;
  background: rgba(243,236,224,.55); box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: rotate(-4deg); backdrop-filter: blur(1px); }
.polaroid.tape-r::before { left: auto; right: -18px; margin: 0; top: 8px; width: 56px; transform: rotate(42deg); background: rgba(240,174,85,.5); }
.polaroid.tape-2::before { left: -14px; margin: 0; top: 6px; width: 48px; transform: rotate(-40deg); }
.polaroid.tape-2::after { left: auto; right: -14px; margin: 0; top: 6px; width: 48px; transform: rotate(40deg); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 22, .96); display: flex; flex-direction: column; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; gap: 10px; }
.lightbox .lb-media { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox .lb-actions { display: flex; gap: 10px; justify-content: center; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); display: grid; place-items: center; cursor: pointer; color: var(--cream); }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--navy-700); border: 1px solid var(--line); color: var(--cream); padding: 11px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: calc(100% - 32px); text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Translate hub: two cards */
.tr-cards { display: grid; gap: 12px; }
.tr-card { min-height: 0; }
.tr-live { display: flex; align-items: center; gap: 8px; color: var(--orange-2) !important; font-weight: 700; }
.back { display: inline-block; margin-bottom: 6px; color: var(--muted); text-decoration: none; font-weight: 700; }

/* Monogram A&J: small white ampersand, letters close together. Great Vibes' J has a wide swash, so pull it in. */
.monogram .amp { font-size: .55em; color: #fff; margin: 0 .12em; vertical-align: .25em; }
.monogram .j, .names .j { display: inline-block; margin-left: -.18em; }
.names .amp + .j { margin-left: -.06em; }

/* Church: order of service */
.church-item .time { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.church-plain { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(28,42,74,.35); }
.church-text { white-space: pre-line; font: 18px/1.5 var(--serif); color: var(--cream); }
.church-other { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.church-other summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.church-other .other { display: flex; gap: 10px; margin-top: 10px; }
.church-other .church-text { font-size: 16px; color: var(--muted); }

.ch-live-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
.ch-live-btn svg { width: 20px; height: 20px; }
.ch-live:not(:empty) { margin-top: 12px; }
.ch-live-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ch-live-cur { padding: 14px 16px; border-radius: 16px; background: rgba(240,174,85,.10); border: 1px solid rgba(240,174,85,.35); }
.ch-live-cur .tr { font: 600 22px/1.35 var(--serif); color: var(--cream); }
.ch-live-cur .orig { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 14px; color: var(--muted); }
.ch-live-cur .flag-ic { width: 18px; height: 12px; margin-top: 4px; flex: none; }
.ch-live-interim:not(:empty) { margin-top: 8px; font: italic 16px/1.4 var(--serif); color: var(--muted); }
.ch-live-old { padding: 8px 2px 0; margin-top: 8px; border-top: 1px solid var(--line); font: 16px/1.4 var(--serif); color: var(--cream-2); }

/* Favourite verses */
.verse { padding: 18px 16px; margin-bottom: 12px; }
.verse .ref { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); }
.verse blockquote { margin: 8px 0 0; font: italic 21px/1.4 var(--serif); color: var(--cream); }
.verse .note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.verse details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.verse summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.verse .other { display: flex; gap: 10px; margin-top: 10px; font: 16px/1.4 var(--serif); }
.verse .other .ref { margin-bottom: 2px; }

/* Heart above the greeting */
.hero .heart { width: 56px; height: 51px; margin: 0 auto 8px; color: #fff; }
.hero .heart svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.hero .heart .paw { fill: var(--orange-2); stroke: none; }
/* Photos: camera + library buttons, small download icon */
.upload-bar .btn { padding-left: 10px; padding-right: 10px; white-space: nowrap; font-size: 14px; }
.upload-bar .btn.zip { flex: none; }

/* Top-left monogram: "AJ", letters close together */
.monogram .j { margin-left: -.2em; }
/* Transcript / personal translator */
.section-title { display: flex; align-items: center; gap: 10px; font: 600 22px var(--serif); margin: 8px 0 10px; }
.speak.playing { color: var(--orange-2); }

/* Transcript as an hourglass (zandloper): what is said on top, the translation below */
.hg { margin: 4px 0 16px; }
.hg-bulb { background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 16px 18px; min-height: 120px; }
.hg-top { border-radius: 22px 22px 44px 44px; }
.hg-bot { border-radius: 44px 44px 22px 22px; background: rgba(240,174,85,.10); border-color: rgba(240,174,85,.35); text-align: center; }
.hg-lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hg-bot .hg-lbl { justify-content: center; color: var(--orange-2); }
.hg-lbl svg { width: 16px; height: 16px; }
.hg-text { margin-top: 10px; font: 500 19px/1.4 var(--serif); color: var(--cream-2); }
.hg-bot .hg-text { font: 600 24px/1.35 var(--serif); color: var(--cream); }
#interim { color: var(--muted); font-style: italic; }
#interim:not(:empty) + #topText { display: none; }
.hg-neck { position: relative; height: 44px; margin: -1px 0; display: flex; justify-content: center; }
.hg-neck > svg { width: 70%; height: 100%; fill: rgba(255,255,255,.05); }
.flag-ic { display: inline-flex; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.flag-ic svg { width: 100%; height: 100%; display: block; }
.hg-lbl .flag-ic { width: 21px; height: 14px; }
.lbl-up { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.flag-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.flag-btns button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--cream); font: 700 15px var(--sans); cursor: pointer; }
.flag-btns button .flag-ic { width: 42px; height: 28px; border-radius: 5px; }
.flag-btns button[aria-pressed="true"] { border-color: var(--orange-2); background: rgba(240,174,85,.18); box-shadow: 0 0 0 1px var(--orange-2) inset; }
.pair { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.pair > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; }
.pair .flag-ic { width: 18px; height: 12px; margin-top: 5px; }
.p-top { color: var(--muted); font-size: 14px; }
.p-bot { background: rgba(240,174,85,.08); font: 500 18px/1.35 var(--serif); color: var(--cream); }

/* Practical info */
.info-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; margin-bottom: 12px; }
.info-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(240,174,85,.14); color: var(--orange-2); }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h3 { margin: 0 0 4px; font: 600 21px var(--serif); }
.info-card .txt { color: var(--cream-2); white-space: pre-line; line-height: 1.5; }
.info-card .txt a { color: var(--orange-2); }
.info-card .btn { margin-top: 10px; }
/* Who's who */
.people { display: grid; gap: 10px; margin-bottom: 18px; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px 14px; }
.person img, .person .ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.person .ph { display: grid; place-items: center; background: rgba(240,174,85,.16); color: var(--orange-2); font: 600 24px var(--serif); }
.person b { font: 600 20px var(--serif); }
.person .rel { color: var(--orange-2); font-size: 14px; font-weight: 700; }
.person p { margin: 4px 0 0; color: var(--cream-2); font-size: 14px; }
/* Guestbook */
.gb-form { padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.gb-form textarea { width: 100%; box-sizing: border-box; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); color: var(--cream);
  padding: 12px; font: 500 18px/1.4 var(--serif); resize: vertical; }
.wish { padding: 16px; margin-bottom: 10px; }
.wish .w-text { margin: 0; font: italic 500 19px/1.45 var(--serif); white-space: pre-line; }
.wish details { margin-top: 8px; } .wish summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.wish .w-orig { color: var(--muted); white-space: pre-line; margin: 6px 0 0; }
.w-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--orange-2); font-weight: 700; }
.linkbtn { display: inline-flex; gap: 4px; align-items: center; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.linkbtn svg { width: 15px; height: 15px; }
/* Conversation mode */
.convo-btn { width: 100%; min-height: 52px; margin: 0 0 18px; }
body.no-scroll { overflow: hidden; }
.convo { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: 1fr auto 1fr; background: var(--navy-900, #0f1626); }
.c-half { display: flex; flex-direction: column; padding: 18px 18px 10px; overflow: hidden; }
.c-top { transform: rotate(180deg); background: rgba(255,255,255,.03); }
.c-bottom { background: rgba(240,174,85,.07); }
.c-flags { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.c-flags button { padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: none; opacity: .55; }
.c-flags button[aria-pressed="true"] { opacity: 1; border-color: var(--orange-2); }
.c-flags .flag-ic { width: 33px; height: 22px; }
.c-lines { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.c-lines p { margin: 6px 0; font: 500 18px/1.35 var(--serif); color: var(--muted); }
.c-lines p.cur { font: 600 clamp(24px, 6.5vw, 32px)/1.3 var(--serif); color: var(--cream); }
.c-lines p.mine { opacity: .6; }
.c-lines { flex-direction: column-reverse; }
.c-mid { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 16px; border-block: 1px solid var(--line); position: relative; }
.c-hint { position: absolute; right: 16px; font-size: 11px; color: var(--muted); max-width: 30%; text-align: right; }
.c-close { position: absolute; left: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--cream); }
.c-close svg, .c-mic svg { width: 22px; height: 22px; }
.c-mic { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--orange-2); color: #1b1b1b; display: grid; place-items: center; }
.c-mic svg { width: 28px; height: 28px; }
.c-mic.on { background: #c0392b; color: #fff; box-shadow: 0 0 0 0 rgba(192,57,43,.6); animation: pulse 1.6s infinite; }

/* Hourglass v2: grey bulbs, white text, start button in the neck */
.hg-bulb, .hg-bot { background: #4a505e; border-color: #5b6272; }
.hg-lbl, .hg-bot .hg-lbl { color: #fff; }
.hg-text, .hg-bot .hg-text, #interim, #topText.muted { color: #fff; }
#interim { opacity: .75; }
.hg-top { padding-bottom: 34px; }
.hg-bot { padding-top: 34px; }
.hg-neck { height: 64px; margin: -22px 0; z-index: 1; align-items: center; }
.hg-neck > svg { position: absolute; inset: 0; width: 70%; left: 15%; fill: #4a505e; }
.hg-neck .listen-btn { position: relative; min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  background: var(--orange); color: var(--navy-950); border: 3px solid #4a505e; }
.hg-neck .listen-btn.btn-danger { background: #c0392b; color: #fff; animation: pulse 1.6s infinite; }
.hg-neck .listen-btn svg { width: 22px; height: 22px; }
.flag-btns { margin-top: 4px; }

/* Translate from: Auto + three flags */
.flag-btns.four { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flag-btns.four button { padding: 12px 4px; font-size: 13px; }
.flag-btns.four button .flag-ic { width: 36px; height: 24px; }
.flag-ic.auto { display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.flag-ic.auto svg { width: 16px; height: 16px; }
/* Guestbook selfie */
.selfie-box { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px; }
.selfie { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(240,174,85,.14); color: var(--orange-2);
  border: 2px solid var(--orange-2); }
.selfie svg { width: 34px; height: 34px; } .selfie img { width: 100%; height: 100%; object-fit: cover; }
.selfie.busy { opacity: .5; animation: pulse 1.6s infinite; }
.selfie-box b { font: 600 20px var(--serif); } .selfie-box p { margin: 2px 0 10px; }
.row-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.w-foot { gap: 10px; } .w-name { flex: 1; }
.w-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange-2); }

/* First-visit onboarding: profile picture before anything else */
body.onboarding .nav { display: none; }
.onboard { text-align: center; padding: 20px 4px 10px; display: flex; flex-direction: column; align-items: center; }
.onboard .heart { width: 46px; height: 42px; margin-bottom: 8px; }
.onboard .heart svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.2; }
.onboard .hello { font: 600 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.onboard h1 { font: 600 30px/1.2 var(--serif); margin: 10px 0 8px; }
.onboard p { color: var(--cream-2); line-height: 1.5; margin: 0 0 22px; max-width: 34ch; }
.selfie.big { width: 168px; height: 168px; margin-bottom: 24px; }
.selfie.big svg { width: 52px; height: 52px; }
.ob-btn { width: 100%; max-width: 360px; min-height: 56px; margin-bottom: 10px; font-size: 17px; }

.selfie-box .selfie { width: 84px; height: 84px; }
.selfie-box .row-btns .btn { padding-left: 12px; padding-right: 12px; }

/* Who's who: two columns of people, face on top */
.people { grid-template-columns: 1fr 1fr; }
.person { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 14px 10px; align-content: start; }
.person img, .person .ph { width: 88px; height: 88px; }
.person b { font-size: 18px; line-height: 1.2; }
.section-title .count { font: 700 13px var(--sans); color: var(--muted); }

/* Who's who: the couple on top, heart in between */
.couple-hero { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 22px; }
.couple-hero .c-p { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.couple-hero img, .couple-hero .ph { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange-2); }
.couple-hero .ph { display: grid; place-items: center; background: rgba(240,174,85,.16); color: var(--orange-2); font: 600 40px var(--serif); }
.couple-hero b { font: 34px/1 var(--script); color: var(--cream); font-weight: 400; }
.couple-hero .c-heart { width: 40px; height: 36px; margin-bottom: 36px; flex: none; }
.couple-hero .c-heart svg { width: 100%; height: 100%; fill: #fff; }

/* Auto-detected language: highlighted next to "Auto" */
.flag-btns button.detected { border-color: var(--orange-2); border-style: dashed; background: rgba(240,174,85,.10); position: relative; }
.flag-btns button.detected::after { content: '●'; position: absolute; top: 5px; right: 8px; font-size: 9px; color: var(--orange-2); animation: pulse 1.6s infinite; }
/* Word-by-word translation */
#botText .w { animation: wordIn .35s ease-out both; }
@keyframes wordIn { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }

/* Cards everywhere (home tiles and every page's cards): a sapphire edge that catches the light — a slow glint travels around the border,
   and a soft sheen sweeps across each card now and then (staggered, so it never feels busy). */
@property --glint { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tile { min-height: 112px; justify-content: space-between; }
.tile, .card, .event details, .church-plain { position: relative; overflow: hidden; isolation: isolate;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #18284e, #122143) padding-box,
    conic-gradient(from var(--glint),
      rgba(243,236,224,.16) 0deg, rgba(243,236,224,.16) 30deg, rgba(255,255,255,.55) 52deg, rgba(255,255,255,.95) 60deg,
      rgba(255,255,255,.55) 68deg, rgba(243,236,224,.16) 90deg, rgba(243,236,224,.16) 210deg,
      rgba(240,174,85,.55) 235deg, rgba(243,236,224,.16) 260deg, rgba(243,236,224,.16) 360deg) border-box;
  box-shadow: 0 10px 26px rgba(2, 8, 30, .45), inset 0 1px 0 rgba(255,255,255,.08);
  animation: glint var(--gdur, 9s) linear var(--gd, 0s) infinite; }
.tile::after, .card::after, .event details::after, .church-plain::after { content: ''; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.04) 47%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.04) 53%, transparent 58%);
  transform: translateX(-60%); animation: sheen var(--sdur, 7s) ease-in-out var(--sd, 0s) infinite; }
.tile:active { transform: scale(.985); }
@keyframes glint { to { --glint: 360deg; } }
@keyframes sheen { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .tile, .card, .event details, .church-plain, .tile::after, .card::after, .event details::after, .church-plain::after { animation: none; } }

/* Who's who: "met" checklist, progress, tap a face to enlarge */
.person { position: relative; cursor: pointer; -webkit-user-select: none; user-select: none; }
.person .face { cursor: zoom-in; }
.met-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.met-btn svg { width: 15px; height: 15px; opacity: .4; }
.met-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--navy-950); }
.met-btn[aria-pressed="true"] svg { opacity: 1; }
.person.met { box-shadow: 0 0 0 1.5px rgba(240,174,85,.7), 0 10px 26px rgba(2, 8, 30, .45); }
.person .you { margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font: 700 12px var(--sans); color: var(--cream); }
.met-bar { margin: 0 0 18px; }
.met-txt { font-weight: 700; color: var(--cream-2); margin-bottom: 6px; font-size: 14px; }
.met-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.met-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width .4s; }
.couple-hero .c-p { cursor: zoom-in; }
.face-zoom { position: fixed; inset: 0; z-index: 90; background: rgba(2, 8, 30, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: zoom-out; padding: 20px; }
.face-zoom img { width: min(86vw, 460px); aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 3px solid var(--orange-2); }
.face-zoom b { font: 600 26px var(--serif); color: var(--cream); }
/* Offline: small notice; the cached content keeps working */
.offline-bar { display: none; }
body.offline .offline-bar { display: block; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(208,103,90,.18); color: var(--cream); font-size: 13px; text-align: center; }
body.offline .offline-bar::before { content: '⚠︎ Offline · Hors ligne · Geen verbinding'; }

/* Personal welcome note on the home page */
.personal-note { margin: 0 4px 22px; padding: 16px 18px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(180deg, rgba(240,174,85,.12), rgba(240,174,85,.05)); border: 1px solid rgba(240,174,85,.35); }
.pn-lbl { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.pn-lbl svg { width: 15px; height: 15px; }
.personal-note p { margin: 8px 0 6px; font: italic 500 20px/1.45 var(--serif); color: var(--cream); white-space: pre-line; }
.pn-sign { font: 26px/1 var(--script); color: var(--cream-2); }
/* Our story: vertical timeline */
.story { position: relative; padding-left: 26px; }
.story::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 34px; width: 2px; background: linear-gradient(var(--orange-2), rgba(240,174,85,.15)); }
.moment { position: relative; margin-bottom: 18px; }
.moment::before { content: ''; position: absolute; left: -25px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-950); border: 2px solid var(--orange-2); }
.moment .when { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 6px; }
.m-card { padding: 0; overflow: hidden; }
.m-card img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.m-card h3 { margin: 14px 16px 4px; font: 600 23px/1.2 var(--serif); }
.m-card p { margin: 0 16px 16px; color: var(--cream-2); white-space: pre-line; line-height: 1.55; }
.m-card h3:last-child { margin-bottom: 16px; }
.story-end { display: grid; place-items: center; margin: 4px 0 10px -26px; color: #fff; }
.story-end svg { width: 34px; height: 34px; fill: #fff; stroke: #fff; }

/* Practical info: map + navigation */
.info-map { height: 260px; border-radius: var(--radius); overflow: hidden; margin: 0 0 14px; border: 1px solid var(--line); background: #0d1424; }
.info-map .leaflet-control-attribution { background: rgba(4,20,56,.7); color: var(--muted); font-size: 10px; }
.info-map .leaflet-control-attribution a { color: var(--cream-2); }
.map-pin span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--orange); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.map-pin svg { width: 19px; height: 19px; transform: rotate(45deg); color: var(--navy-950); }
.info-card .addr { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.info-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.info-btns .btn { margin-top: 0; }
.sheet-bg { position: fixed; inset: 0; z-index: 95; background: rgba(2,8,30,.7); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(100%, 520px); background: var(--navy-900); border-top-left-radius: 22px; border-top-right-radius: 22px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  display: grid; gap: 10px; border: 1px solid var(--line); }
.sheet b { font: 600 22px var(--serif); text-align: center; } .sheet .muted { text-align: center; }
.sheet .btn { width: 100%; min-height: 50px; justify-content: center; }
/* OpenStreetMap tiles turned into a dark map that matches the app */
.info-map img.leaflet-tile { filter: invert(1) hue-rotate(200deg) brightness(.72) contrast(.9) saturate(.5); }

/* Translate, simplified: navy top (what is said), warm bottom (your language), one button */
.hg { margin-top: 10px; }
.hg-bulb { min-height: 150px; }
.hg-top { background: linear-gradient(180deg, #1c2d58, #16244a); border-color: rgba(243,236,224,.18); }
.hg-bot { background: linear-gradient(180deg, #3a2f3b, #4a3434); border-color: rgba(240,174,85,.5); }
.hg-neck > svg { fill: none; }
.hg-neck .listen-btn { border-color: #16244a; min-height: 60px; padding: 0 28px; font-size: 18px; }
.hg-bot .hg-text { font-size: 26px; }
.convo-link { display: flex; margin: 4px auto 18px; padding: 8px 12px; font-size: 14px; color: var(--muted); }

/* Guestbook voice messages */
.voice-box { padding: 14px 4px 10px; margin: 6px 0 26px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.voice-box .v-big { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.voice-box .v-big svg { width: 17px; height: 17px; color: var(--orange-2); }
.voice-box > .muted.small { margin: 0; font-size: 12px; }
.v-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.v-dot { width: 12px; height: 12px; border-radius: 50%; background: #e0544a; animation: pulse 1.2s infinite; }
.v-left { font-variant-numeric: tabular-nums; color: var(--muted); }
.voice-box .row-btns { justify-content: center; }
.w-voice { margin-bottom: 10px; }
/* Agenda: photos taken during each moment */
.pic-count { grid-column: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--orange-2); font-weight: 700; }
.pic-count svg { width: 14px; height: 14px; }
.moment-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.moment-pics button { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #0d1424; cursor: zoom-in; }
.moment-pics img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.moment-pics i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 22px; text-shadow: 0 2px 8px #000; }
.pic-zoom img, .pic-zoom video { width: auto; max-width: 94vw; max-height: 86vh; aspect-ratio: auto; object-fit: contain; border-radius: 12px; }

/* Our story: world map of our travels */
.trip { position: relative; margin: 0 0 16px; }
.trip-map { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--navy-950); }
.trip-map.leaflet-container { background: #08143f; font: inherit; }
.trip-all { position: absolute; top: 10px; right: 10px; z-index: 500; border: 1px solid var(--line); background: rgba(4,20,56,.85); color: var(--cream);
  font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.trip-map[hidden] + .trip-all { display: none; }
.trip-pin span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px; background: var(--orange); color: var(--navy-950);
  border: 2px solid var(--cream); font: 800 11px/1 var(--sans); box-shadow: 0 2px 8px rgba(0,0,0,.5); white-space: nowrap; }
.trip-map .trip-tip { background: var(--navy-900); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; font: 600 13px var(--sans); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.trip-map .trip-tip.leaflet-tooltip-top::before { border-top-color: var(--navy-900); }
.trip-line { animation: trip-draw 2.4s ease-out both; }
@keyframes trip-draw { from { opacity: 0; } to { opacity: .95; } }
.moment .when { display: block; min-height: 24px; padding-top: 0; margin-bottom: 8px; font-size: 26px; line-height: 1.3; letter-spacing: .04em; color: #f6c27c; overflow-wrap: anywhere; }
.moment .when i { font-style: normal; opacity: .55; margin: 0 6px; }
.moment.has-stop::before { display: none; }
.stop-dot { position: absolute; left: -29px; top: 5px; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid var(--cream);
  background: var(--orange); color: var(--navy-950); font: 800 11px/1 var(--sans); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.45); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .trip-line { animation: none; } }

/* Background sparkles: minuscule hearts, each softly pulsing in and out on its own rhythm */
.sparkles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.app { position: relative; z-index: 1; }
.sparkles i { position: absolute; width: var(--s); height: var(--s); opacity: var(--o); animation: heart-pulse var(--d) ease-in-out infinite; }
.sparkles svg { display: block; width: 100%; height: 100%; fill: var(--orange-2); filter: drop-shadow(0 0 3px rgba(255,214,150,.75)); }
@keyframes heart-pulse { 0%, 100% { transform: scale(.6); opacity: calc(var(--o) * .4); } 50% { transform: scale(1.15); opacity: var(--o); } }
@media (prefers-reduced-motion: reduce) { .sparkles i { animation: none; } }

/* Quiz run from the quizmaster's phone (no big screen needed) */
.host-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 18px; display: grid; gap: 8px; padding: 12px;
  border-radius: var(--radius); background: rgba(12,21,79,.96); border: 1px solid rgba(240,174,85,.45); box-shadow: 0 10px 30px rgba(2,8,30,.6); }
.host-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--cream-2); font-weight: 600; }
.host-info span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-2); }
.host-info svg { width: 16px; height: 16px; }
.host-info b { color: var(--orange-2); font-size: 15px; }
.host-bar .btn { margin: 0; }
.host-bar .btn-primary { min-height: 52px; font-size: 17px; }
.opt .cnt { margin-left: auto; font: 800 18px var(--sans); font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* Our story: the special moments (first coffee, proposal, wedding day) — the same card, just brighter */
.moment.special .card { background:
    linear-gradient(180deg, #263c74, #1c2f5e) padding-box,
    conic-gradient(from var(--glint),
      rgba(243,236,224,.38) 0deg, rgba(243,236,224,.38) 30deg, rgba(255,255,255,.8) 52deg, #fff 60deg,
      rgba(255,255,255,.8) 68deg, rgba(243,236,224,.38) 90deg, rgba(243,236,224,.38) 210deg,
      rgba(240,174,85,.8) 235deg, rgba(243,236,224,.38) 260deg, rgba(243,236,224,.38) 360deg) border-box;
  box-shadow: 0 0 22px rgba(170,190,255,.16), 0 10px 26px rgba(2, 8, 30, .45), inset 0 1px 0 rgba(255,255,255,.14); }
.moment.special .card h3::before { content: '♥ '; color: var(--orange-2); }
/* Photo carousel inside a story card */
.m-card .m-pics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-card .m-pics::-webkit-scrollbar { display: none; }
.m-card .m-pics img { flex: none; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; max-height: none; scroll-snap-align: center; display: block; }
.m-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.m-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243,236,224,.3); transition: background .2s, transform .2s; }
.m-dots i.on { background: var(--orange-2); transform: scale(1.25); }
/* Top bar: the guest's own profile picture (tap to change) */
.topbar { gap: 10px; }
.topbar .lang-btn { margin-left: auto; }
.me-av { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; display: grid; place-items: center;
  border: 2px solid var(--orange-2); background: var(--navy-800); color: var(--cream-2); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.me-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-av svg { width: 20px; height: 20px; }
.me-sheet { justify-items: center; text-align: center; }
.me-sheet .selfie.big { margin: 0 auto 4px; }

.sheet-bg.centered { align-items: center; padding: 16px; }
.sheet-bg.centered .sheet { border-radius: 22px; padding-bottom: 18px; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

.to-top { position: fixed; right: max(16px, calc(50% - 294px)); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 30; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(240,174,85,.5); background: rgba(12,21,79,.92); color: var(--orange-2); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(2,8,30,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.to-top svg { width: 22px; height: 22px; }

/* Quiz: "Arnold or Jenny?" and true / false questions — two big buttons */
.options.k-who .opt, .options.k-tf .opt { flex-direction: column; justify-content: center; text-align: center; min-height: 150px; gap: 10px; font-size: 20px; }
.opt-face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.tf-mark { font: 800 40px/1 var(--sans); }
.options.k-who .opt .cnt, .options.k-tf .opt .cnt { margin: 0; }

/* Translate, restyled: two cards in the app's own style (what is said / your language), the button between them */
.hg { margin: 6px 0 14px; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 250px - env(safe-area-inset-bottom)); }
.hg .hg-bulb { border-radius: 24px; padding: 18px 18px; text-align: left; }
.hg .hg-top { min-height: 150px; padding-bottom: 40px; }
.hg .hg-bot { min-height: 210px; padding-top: 42px; text-align: center; background:
    linear-gradient(180deg, #263c74, #1c2f5e) padding-box,
    conic-gradient(from var(--glint),
      rgba(243,236,224,.36) 0deg, rgba(243,236,224,.36) 30deg, rgba(255,255,255,.8) 52deg, #fff 60deg,
      rgba(255,255,255,.8) 68deg, rgba(243,236,224,.36) 90deg, rgba(243,236,224,.36) 210deg,
      rgba(240,174,85,.85) 235deg, rgba(243,236,224,.36) 260deg, rgba(243,236,224,.36) 360deg) border-box; }
.hg .hg-lbl { color: var(--muted); font-size: 12px; }
.hg .hg-bot .hg-lbl { color: var(--orange-2); justify-content: center; }
.hg .hg-text { color: var(--cream-2); font: 500 20px/1.4 var(--serif); }
.hg .hg-bot .hg-text { color: var(--cream); font: 600 26px/1.35 var(--serif); }
.hg #interim { color: var(--muted); }
.hg .hg-neck { height: 0; margin: 7px 0; z-index: 2; align-items: center; overflow: visible; }
.hg .hg-neck > svg { display: none; }
.hg .hg-neck .listen-btn { position: relative; flex: none; min-height: 58px; padding: 0 26px; font-size: 17px;
  background: var(--orange); color: var(--navy-950); border: 4px solid var(--navy-950); box-shadow: 0 8px 24px rgba(2,8,30,.55), 0 0 0 1px rgba(240,174,85,.35); }
.hg .hg-neck .listen-btn.btn-danger { background: #c0392b; color: #fff; }
.convo-link { display: flex; margin: 0 auto; }

/* Voice message player */
.vp { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(240,174,85,.10); border: 1px solid rgba(240,174,85,.3); }
.vp-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--orange); color: var(--navy-950); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.vp-btn svg { width: 18px; height: 18px; }
.vp-wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.vp-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(243,236,224,.28); transition: background .15s; }
.vp-wave i.on { background: var(--orange-2); }
.vp.playing .vp-btn { box-shadow: 0 0 0 4px rgba(240,174,85,.25), 0 3px 10px rgba(0,0,0,.3); }
.vp-time { flex: none; min-width: 34px; text-align: right; font: 700 13px var(--sans); color: var(--cream-2); font-variant-numeric: tabular-nums; }
.voice-box .vp { max-width: 420px; }

/* Our own confirm dialog */
.btn-danger { background: #c4584b; color: #fff; }
.ask .sheet { width: min(100%, 360px); justify-items: center; text-align: center; gap: 12px; padding: 24px 20px 20px; }
.ask-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-2); }
.ask-ic.danger { background: rgba(208,103,90,.16); color: #f0a196; }
.ask-ic svg { width: 26px; height: 26px; }
.ask .ask-msg { font: 600 21px/1.3 var(--serif); margin-bottom: 6px; }
.ask .btn { width: 100%; min-height: 48px; }
.m-car { position: relative; }
.m-nav { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(4,20,56,.55); color: #fff; font: 600 24px/1 var(--serif); display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.m-nav.prev { left: 10px; } .m-nav.next { right: 10px; }

/* Gifts */
.gifts-intro { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 16px; margin-bottom: 8px; }
.gifts-intro p { margin: 0; font: italic 500 19px/1.45 var(--serif); color: var(--cream); }
.cause { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 16px; }
.cause h3 { margin: 0 0 4px; font: 600 22px/1.15 var(--serif); }
.cause p { margin: 0 0 12px; color: var(--cream-2); }
.cause .btn[aria-disabled="true"] { opacity: .6; cursor: default; }

/* Love languages (also used by the gifts page) */
.love-list { display: grid; gap: 12px; }
.love-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 16px; }
.love-card h3 { margin: 0 0 4px; font: 600 22px/1.15 var(--serif); }
.love-card p { margin: 0; color: var(--cream-2); }
.love-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-2); }
.love-ic svg { width: 26px; height: 26px; }
.love-n { position: absolute; top: 10px; right: 14px; font: 600 30px/1 var(--serif); color: rgba(240,174,85,.28); }

/* Photo wall: on wide screens keep it a comfortable width instead of edge to edge */
@media (min-width: 900px) { .wall { width: min(100vw, 1080px); margin-left: calc(50% - min(50vw, 540px)); } }

/* Menu inside a programme card — like a little printed menu card */
.menu-card { white-space: normal; margin: 14px 0 6px; padding: 18px 16px 16px; border-radius: 14px; text-align: center;
  background: #fbf8f2; color: #2b2633; box-shadow: 0 6px 18px rgba(2,8,30,.4); }
.menu-h { font: 34px/1 var(--script); color: #b06d24; margin-bottom: 10px; }
.menu-c { font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8a7f74; }
.menu-d { font: 500 18px/1.3 var(--serif); margin-top: 2px; }
.menu-sep { display: block; font-style: normal; color: #dd9233; font-size: 11px; margin: 9px 0; }

/* Icebreakers: our four cultures */
.cultures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.culture { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.culture .cu-flag { font-size: 28px; line-height: 1; }
.culture b { font: 600 20px/1.1 var(--serif); }
.cu-words { display: flex; flex-wrap: wrap; gap: 4px; }
.cu-words span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-2); }
.culture p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--cream-2); }
.phrase .row.extra .say { color: var(--cream-2); }

/* Translator bottom box: a long translation scrolls inside the box instead of running off the screen */
.hg .hg-bot #botText { max-height: 42vh; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.hg .hg-bot #botText::-webkit-scrollbar { display: none; }
.ams-nav { margin-top: 10px; }
.ams-nav svg { width: 16px; height: 16px; color: var(--orange-2); }
.ppl-order { margin: 4px 0 6px; }
.ppl-order button { display: inline-flex; align-items: center; gap: 6px; }
.ppl-order svg { width: 16px; height: 16px; }

/* Amsterdam tips: a photo on top of each card */
.ams-card { padding: 0; }
.ams-card .love-card { padding: 16px; }
.ams-pic { position: relative; margin: 0; }
.ams-pic img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ams-pic figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 10px; }
.ams-pic figcaption a { color: rgba(255,255,255,.85); text-decoration: none; background: rgba(4,20,56,.55); padding: 2px 7px; border-radius: 999px; }
.ppl-group + .ppl-group { margin-top: 22px; }

/* Family tree: future kids → Arnold ♥ Jenny → brothers & sisters → parents → grandparents, one row revealed at a time while scrolling */
.ft-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 8px 8px; scrollbar-width: none; }
.ft-scroll::-webkit-scrollbar { display: none; }
.ft-tree { position: relative; min-width: max(100%, 366px); }
.ft-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.ft-lines path { fill: none; stroke: rgba(240,174,85,.6); stroke-width: 1.5; opacity: 0; }
.ft-lines path.dash { stroke-dasharray: 4 4; }
.ft-lines path.on { opacity: 1; }
.ft-lines path.grow { transition: stroke-dashoffset .6s ease-out; }
.ft-tree > * { position: relative; z-index: 1; }
.ft-lines { z-index: 0 !important; position: absolute !important; }

.ft-p { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; --fs: 42px; --ns: 11.5px; }
.ft-p[data-zoom] { cursor: zoom-in; }
.ft-face { position: relative; }
.ft-face img, .ft-face .ph { display: block; width: var(--fs); height: var(--fs); border-radius: 50%; object-fit: cover; border: 2px solid var(--orange-2); background: var(--navy-950); }
.ft-face .ph { display: grid; place-items: center; background: #1a2160; color: var(--orange-2); font: 600 calc(var(--fs) * .36) var(--serif); }
.ft-p.unknown .ph { border-style: dashed; border-color: rgba(240,174,85,.5); color: rgba(240,174,85,.6); }
.ft-p b { font: 600 var(--ns)/1.15 var(--serif); color: var(--cream); }
.ft-p span { font-size: 10.5px; color: var(--muted); }
.ft-p.unknown b { color: var(--muted); font-weight: 400; font-style: italic; }
.ft-passed { width: var(--fs); height: var(--fs); display: grid; place-items: center; }
.ft-passed svg { width: 78%; height: 78%; fill: #9a9aa6; opacity: .85; }

/* Layer 1: the couple */
.ft-hero { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.ft-p.big { --fs: 100px; width: 120px; }
.ft-p.big b { font: 400 32px/1 var(--script); }
.ft-heart { width: 30px; height: 27px; margin-top: 36px; flex: none; }
.ft-heart svg { width: 100%; height: 100%; fill: #fff; }

/* Each generation row */
.ft-row { margin-top: 64px; }
.ft-gen { display: table; margin: 0 auto 10px; padding: 3px 10px; border-radius: 99px; background: #0a1446; border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .4s; }
.ft-line { display: flex; justify-content: center; align-items: flex-start; }
.ft-row.in .ft-gen { opacity: 1; }
.ft-row .ft-p { opacity: 0; }
.ft-row.in .ft-p { animation: ftIn .5s cubic-bezier(.2,.8,.3,1.2) both; }
.ft-row.in .ft-pair:nth-child(2n) .ft-p { animation-delay: .12s; }
@keyframes ftIn { from { opacity: 0; transform: translateY(-14px) scale(.8); } to { opacity: 1; transform: none; } }

/* Layer 2: brothers & sisters in birth order: faces on one line, names alternating below and above */
/* each family takes its own half, so it sits right above its parents */
.ft-sibrow .ft-line { padding-top: 18px; gap: 22px; }
.ft-group { flex: 1 1 0; display: flex; justify-content: center; }
.ft-slide { flex: 1 1 0; max-width: 46px; display: flex; justify-content: center; }
.ft-sibrow .ft-p { --fs: 30px; --ns: 11px; width: 32px; position: relative; }
.ft-sibrow .ft-p b { white-space: nowrap; }
.ft-sibrow .ft-slide.low .ft-p b { position: absolute; bottom: 100%; margin-bottom: 4px; }
.ft-sibrow .ft-p span { display: none; }
.ft-self { justify-content: center; height: 32px; }
.ft-self i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 0 4px rgba(240,174,85,.25), 0 0 12px rgba(240,174,85,.6); }
.ft-sibrow.in .ft-p { animation: ftSlide .6s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--k) * .07s); }
.ft-sibrow.in .ft-slide[style*="--k:-"] .ft-p { animation-delay: calc(var(--k) * -.07s); }
.ft-sibrow.in .ft-self { animation: ftIn .4s both; }
@keyframes ftSlide { from { opacity: 0; transform: translateX(calc(var(--k) * 36px)) scale(.6); } to { opacity: 1; transform: none; } }

/* Layer 3+: parents and grandparents, each pair right under its child */
.ft-pair { flex: 1 1 0; display: flex; justify-content: space-evenly; min-width: 0; }
.ft-pair .ft-p { flex: 1 1 0; padding: 0 2px; }
.ft-row[data-depth="0"] .ft-p { --fs: 58px; --ns: 14px; }
.ft-row[data-depth="1"] .ft-p { --fs: 40px; --ns: 11px; }
.ft-row[data-depth="2"] .ft-p { --fs: 32px; --ns: 10px; }
/* The oldest known generation fades into the past */
.ft-p.leaf::after { content: ''; display: block; width: 0; height: 26px; margin-top: 2px; border-left: 1.5px dashed rgba(240,174,85,.4); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }

/* "Keep scrolling" arrow until the last generation is shown */
.ft-hint { display: flex; justify-content: center; margin: 18px 0 0; color: var(--orange-2); transition: opacity .4s; }
.ft-hint svg { width: 26px; height: 26px; animation: ftNudge 1.6s ease-in-out infinite; }
.ft-hint.done { opacity: 0; }
@keyframes ftNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* The next generation (just for fun): the top row of the tree — dashed faces, blurred names until tapped */
.ft-future { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.ft-future .ft-gen { opacity: 1; }
.ft-kidrow { display: flex; justify-content: center; gap: 8px; }
.ft-kid { --fs: 38px; width: 52px; animation: ftBob 3s ease-in-out infinite; }
.ft-kid .ph { border-style: dashed; border-color: rgba(240,174,85,.6); background: rgba(240,174,85,.08); }
.ft-kid .ph svg { width: 16px; height: 15px; fill: none; stroke: var(--orange-2); stroke-width: 4; }
.ft-kid b { font: 600 11px/1.1 var(--sans); color: var(--cream-2); filter: blur(4px); user-select: none; }
.ft-hero { padding-top: 34px; }
@keyframes ftBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Name twins: matching coloured ring + ≈ badge in the tree, pair cards at the bottom */
.ft-face[data-tw] img, .ft-face[data-tw] .ph { border-color: var(--tw); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tw) 28%, transparent), 0 0 14px color-mix(in srgb, var(--tw) 45%, transparent); }
.ft-tw { position: absolute; right: -4px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tw); color: var(--navy-950); font: 800 12px/1 var(--sans); font-style: normal; box-shadow: 0 0 0 2px var(--navy-950); }
.ft-p.big .ft-tw { width: 22px; height: 22px; font-size: 15px; right: 2px; bottom: 2px; }
.ft-twins { margin-top: 28px; }
.ft-twin { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 14px 12px; margin-bottom: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tw) 16%, transparent), transparent 70%); border-color: color-mix(in srgb, var(--tw) 45%, transparent); }
.tw-p { display: flex; flex-direction: column; align-items: center; gap: 6px; --fs: 64px; }
.tw-p[data-zoom] { cursor: zoom-in; }
.tw-p img, .tw-p .ph { border-color: var(--tw); }
.tw-p .ph { font-size: 22px; }
.tw-p b { font: 400 28px/1 var(--script); color: var(--cream); }
.tw-eq { font: 300 30px/1 var(--serif); color: var(--tw); }
.tw-note { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font: italic 15px var(--serif); color: var(--cream-2); }

@media (prefers-reduced-motion: reduce) {
  .ft-kid, .ft-hint svg { animation: none; }
  .ft-row.in .ft-p, .ft-sibrow.in .ft-p { animation: none; opacity: 1; }
  .ft-lines path.grow { transition: none; }
}
