/* A quiet photo deck: one person, two lines of information, and a swipe cue. */
.guests {
  display:flex; flex-direction:column; align-items:center;
  padding:22px 24px 16px;
  background:#fbe5eb url('assets/background.webp') center/cover;
}
.guests::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,#fff8fa08,#ffd6e433 65%,#ffe6ef08); pointer-events:none; }
.guests > * { z-index:1; }
.guests-header { width:min(100%,470px); display:grid; grid-template-columns:50px 1fr 50px; align-items:center; gap:12px; margin-bottom:18px; flex-shrink:0; }
.guests-heading { text-align:center; }
.guests-heading p { font-size:8px; color:#b17b93; letter-spacing:2px; margin:0 0 5px; }
.guests-header h2 { margin:0; color:#9c4c70; font-family:"Songti SC","STSong",serif; font-size:24px; font-weight:600; letter-spacing:5px; text-shadow:0 1px 8px #fff8; }
.header-mark { color:#be6185; font:34px/1 Georgia,serif; text-align:center; transform:rotate(-12deg); }
.icon-button,.open-filters { display:inline-flex; align-items:center; justify-content:center; background:none; color:#956a7d; min-height:36px; padding:5px 0; line-height:1.4; }
.icon-button { width:40px; font-size:24px; text-align:left; }
.open-filters { width:50px; font-size:11px; text-align:right; letter-spacing:1px; }
.open-filters { gap:4px; }
.open-filters svg { width:10px; height:10px; fill:none; stroke:currentColor; stroke-width:1.4; }
.open-filters.has-filter { color:#b83161; font-weight:600; }
.card-stage { flex:1; min-height:0; width:min(100%,880px); position:relative; display:flex; align-items:center; justify-content:center; isolation:isolate; touch-action:pan-y; }
.profile-card { width:470px; height:100%; max-height:780px; display:block; overflow:hidden; position:relative; border-radius:22px; background:#d8c7cb; box-shadow:0 15px 45px #74354a24; transform:translateX(var(--drag-x,0px)) rotate(var(--drag-rotation,0deg)); transition:opacity .14s,transform .2s; }
.profile-card::before { content:""; position:absolute; inset:0; border:1.5px solid #ffffffb3; border-radius:inherit; z-index:3; pointer-events:none; }
.profile-card::after { content:"♡"; position:absolute; right:17px; top:14px; font:31px/1 Georgia,serif; color:#ffffffe6; text-shadow:0 1px 8px #82435f55; pointer-events:none; }
.profile-card.dragging { transition:none; }
.peek-card { position:absolute; top:4%; left:50%; width:470px; height:92%; padding:0; border:1px solid #fff8; border-radius:22px; background:#c6bbc9; overflow:hidden; opacity:.95; z-index:-1; box-shadow:0 8px 25px #9c657825; }
.peek-card img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 32%; filter:brightness(.82); }
.peek-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,#ffe8f017,#481a3938); }
.peek-left { transform:translateX(calc(-150% - 12px)); }
.peek-right { transform:translateX(calc(50% + 12px)); }
.peek-arrow { position:absolute; top:50%; transform:translateY(-50%); width:24px; height:44px; display:grid; place-items:center; font-family:Arial,sans-serif; font-size:31px; line-height:1; color:#fff; z-index:1; text-shadow:0 1px 8px #24101b80; }
.peek-left .peek-arrow { right:4px; }
.peek-right .peek-arrow { left:4px; }
.transition-card { position:absolute; z-index:2; pointer-events:none; margin:0; }
.card-stage.sliding .profile-card,.card-stage.sliding .peek-card { pointer-events:none; }
.card-stage.swipe-intro .profile-card { animation:swipe-intro 1.3s .35s ease-in-out; }
@keyframes swipe-intro { 0%,100% { transform:translateX(0); } 35% { transform:translateX(-24px); } 70% { transform:translateX(20px); } }
.photo-button { position:absolute; inset:0; width:100%; height:100%; padding:0; overflow:hidden; background:#d8c7cb; border-radius:inherit; }
.photo-button > img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 32%; }
.photo-button::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%,#4920330a 60%,#48203566 80%,#351424d9 100%); pointer-events:none; }
.photo-caption,.guest-number { display:none; }
.profile-body { position:absolute; bottom:0; left:0; right:0; padding:28px; pointer-events:none; }
.name-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.name-row h3 { color:#fff; font-size:31px; font-weight:600; letter-spacing:1px; line-height:1.4; margin:0; text-shadow:0 2px 8px #301b3030; }
.overlay-age { font-family:Georgia,serif; font-size:25px; font-weight:400; margin-left:12px; letter-spacing:0; }
.full-profile { display:inline-flex; align-items:center; justify-content:center; gap:5px; line-height:1.4; pointer-events:auto; background:none; color:#ffffffe0; padding:10px 0 10px 8px; font-size:10px; letter-spacing:1px; white-space:nowrap; }
.full-profile svg { display:block; width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.2; flex-shrink:0; }
.details { margin:8px 0 0; }
.details dt { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.details dd { margin:0; font-size:12px; color:#ffffffcf; line-height:1.7; letter-spacing:.5px; overflow-wrap:anywhere; }
.card-navigation { display:flex; align-items:center; justify-content:center; margin-top:17px; flex-shrink:0; }
.nav-button { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; padding:0; }
.nav-button:focus-visible { position:static; width:34px; height:34px; clip:auto; background:#fff; color:#ad577b; border-radius:50%; }
.progress { text-align:center; min-width:200px; }
.progress > div:first-child { font-size:10px; color:#b594a2; letter-spacing:2px; }
.progress strong { color:#b2557b; font-size:17px; font-family:Georgia,serif; font-weight:400; }
.progress-track { display:none; }
.progress p { font-size:9px; letter-spacing:2px; color:#ab8a9b; margin:8px 0 0; }
.photo-unavailable { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:15px; color:#fff; font-size:12px; background:linear-gradient(145deg,#d6a9bb,#b7c6da); }
.photo-unavailable > span { font-size:60px; font-family:serif; }
.empty-state,.load-error { align-self:stretch; display:flex; flex-direction:column; justify-content:center; align-items:center; width:100%; padding:40px 24px; border-radius:20px; background:#fff9; text-align:center; }
.empty-state > span { color:#ce94ad; font-size:65px; margin-bottom:20px; }
.empty-state h3,.load-error h3 { font-size:18px; margin:0; color:#9d5372; font-weight:500; }
.empty-state p,.load-error p { font-size:12px; line-height:1.8; color:#b38c9c; }
.empty-state button,.load-error button,.apply-filters { padding:13px 24px; border-radius:25px; background:#b94770; color:#fff; margin-top:15px; font-size:12px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Details and filters appear only when requested. */
dialog { padding:0; border:0; border-radius:12px; background:#fff6f7; max-width:95vw; max-height:94svh; overflow:auto; box-shadow:0 20px 80px #3c172c4d; }
dialog::backdrop { background:#301822bc; backdrop-filter:blur(8px); }
dialog > img { display:block; max-width:92vw; max-height:82svh; object-fit:contain; }
dialog > p { text-align:center; font-size:13px; color:#96546e; letter-spacing:3px; margin:16px; }
.dialog-close { position:fixed; right:20px; top:20px; width:40px; height:40px; background:#fff; color:#9a4263; border-radius:50%; font-size:26px; z-index:10; }
.details-dialog { position:fixed; inset:auto 0 0; margin:0 auto; width:min(100%,520px); max-width:100%; max-height:80svh; border-radius:26px 26px 0 0; padding:35px 27px max(28px,env(safe-area-inset-bottom)); background:#fff9f9; }
.details-dialog::before { content:""; position:absolute; top:11px; left:calc(50% - 19px); width:38px; height:4px; border-radius:3px; background:#e8cbd5; }
.sheet-close { position:absolute; right:18px; top:22px; background:none; color:#a85877; width:30px; height:30px; font-size:24px; }
.details-dialog .sheet-kicker { color:#bb8a9b; font-size:10px; letter-spacing:2px; margin:8px 0 13px; text-align:left; }
.details-dialog h3 { font-size:28px; color:#94556f; margin:8px 0 0; letter-spacing:2px; font-weight:500; }
.details-dialog dl { margin:24px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:20px 22px; }
.details-dialog dl > div { min-width:0; }
.details-dialog dl > div.wide { grid-column:1/-1; }
.details-dialog dt { font-size:10px; color:#b08999; letter-spacing:1px; margin-bottom:6px; }
.details-dialog dd { margin:0; font-size:14px; line-height:1.8; color:#714b5b; white-space:pre-wrap; overflow-wrap:anywhere; }
.toolbar { display:flex; flex-direction:column; gap:20px; margin:28px 0 10px; }
.filters { display:flex; gap:9px; }
.filters button { display:inline-flex; align-items:center; justify-content:center; flex:1; background:#f7eaf0; color:#a2758b; font-size:12px; line-height:1.4; padding:12px; border-radius:22px; white-space:nowrap; }
.filters button.active { background:#b94770; color:#fff; }
.filters button span { font-size:10px; margin-left:4px; opacity:.8; }
.search { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #efdae3; border-radius:12px; padding:14px; color:#ad8195; }
.search svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.4; flex-shrink:0; }
.search input { width:100%; min-width:0; background:none; border:0; color:#80465b; font-size:13px; outline:none; }
.search input::placeholder { color:#bd9aaa; }
.apply-filters { display:inline-flex; align-items:center; justify-content:center; gap:.35em; width:100%; line-height:1.4; margin-top:12px; }
.ambient-decor { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.ambient-decor i { position:absolute; width:14px; height:22px; border-radius:85% 0 85% 12%; background:linear-gradient(135deg,#fff9,#df7d9fb3); box-shadow:0 3px 10px #d5759b25; animation:petal-drift 7s ease-in-out infinite alternate; }
.ambient-decor i:nth-child(1) { left:3%; top:20%; transform:rotate(-24deg); }
.ambient-decor i:nth-child(2) { right:3%; top:55%; animation-delay:-3s; }
.ambient-decor i:nth-child(3) { left:9%; bottom:5%; width:10px; height:15px; animation-delay:-5s; }
.ambient-decor > span { position:absolute; right:8%; bottom:3%; color:#d39bb0; font:26px/1 Georgia,serif; transform:rotate(15deg); }
@keyframes petal-drift { from { translate:0 -6px; rotate:-12deg; } to { translate:4px 10px; rotate:18deg; } }
@media(max-width:700px) {
  .guests { padding:max(12px,env(safe-area-inset-top)) 12px max(14px,env(safe-area-inset-bottom)); }
  .guests-header { width:100%; padding:0 12px; margin-bottom:12px; }
  .guests-header h2 { font-size:21px; }
  .profile-card,.peek-card { width:calc(100% - 64px); max-height:none; border-radius:20px; }
  .peek-left { transform:translateX(calc(-150% - 8px)); }
  .peek-right { transform:translateX(calc(50% + 8px)); }
  .profile-body { padding:20px 18px; }
  .name-row h3 { font-size:26px; }
  .overlay-age { font-size:23px; margin-left:10px; }
  .full-profile { font-size:9px; }
  .details dd { font-size:11px; }
  .card-navigation { margin-top:13px; }
  .progress p { font-size:8px; margin-top:6px; letter-spacing:1.5px; }
}
@media(max-height:650px) and (max-width:700px) {
  .guests { padding-top:7px; padding-bottom:9px; }
  .guests-header { margin-bottom:7px; }
  .profile-body { padding:18px; }
  .name-row h3 { font-size:25px; }
  .card-navigation { margin-top:9px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}
