:root {
  --bg1: #0f1724; --bg2: #25344a; --accent: #f6c177; --text: #fff8ef; --muted: #ead6c2;
  --card: rgba(255, 255, 255, .10); --card-strong: rgba(255, 255, 255, .16); --line: rgba(255, 255, 255, .22);
  --on-accent: #2a1a10; --title-font: 'Playfair Display', Georgia, serif;
  --panel: #fffaf3; --panel-text: #2b2420; --panel-muted: #6f625a; --panel-line: #e7ddd2;
  --radius: 16px;
}
body.light { --card: rgba(0, 0, 0, .05); --card-strong: rgba(0, 0, 0, .08); --line: rgba(0, 0, 0, .14); --on-accent: #fff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px; line-height: 1.45; color: var(--text);
  background-color: var(--bg1); background-image: linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment: fixed; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header, main, footer { position: relative; z-index: 3; }

/* ---------- decorations ---------- */
.lights { position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; justify-content: space-around; border-top: 3px solid #1b2a1b; }
.lights::before { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 12px; border-bottom: 2px solid #1b2a1b; border-radius: 0 0 50% 50%; opacity: .6; }
.bulb { width: 11px; height: 17px; margin-top: var(--y); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c); box-shadow: 0 0 10px 3px var(--c); position: relative; animation: twinkle 2.4s var(--d) infinite ease-in-out; }
.bulb::before { content: ''; position: absolute; top: -5px; left: 2px; width: 7px; height: 6px; background: #333; border-radius: 2px; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 3px 1px var(--c); } }
.garland { position: absolute; top: 2px; left: 0; white-space: nowrap; font-size: 22px; letter-spacing: 6px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); animation: drift 60s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bunting { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; }
.bunting span { width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--c); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.corner { position: absolute; font-size: 44px; opacity: .9; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.corner.bl { left: 8px; bottom: 8px; } .corner.br { right: 8px; bottom: 8px; }
.corner.tl { left: 4px; top: 4px; } .corner.tr { right: 4px; top: 4px; transform: scaleX(-1); }
.corner.web { font-size: 56px; opacity: .55; }
.float { animation: bob 4s ease-in-out infinite; } .float.d2 { animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 600px) { .corner { font-size: 32px; } .corner.web { font-size: 40px; } }

/* ---------- header ---------- */
header { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; max-width: 1100px; margin: 0 auto; }
body.topdeco header { padding-top: calc(38px + env(safe-area-inset-top)); }
.brand { flex: 1; min-width: 0; font-family: var(--title-font); font-size: 1.3rem; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
body.light .brand { text-shadow: none; }
.icon-btn { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: inline-grid; place-items: center; font-size: 22px; cursor: pointer; flex: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 110px; }
section { margin: 28px 0; }
h2 { font-family: var(--title-font); font-size: 1.6rem; margin: 0 0 12px; line-height: 1.15; }
h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; padding: 12px 18px; border-radius: 14px; min-height: 48px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); line-height: 1.2; text-align: center; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn.big { font-size: 1.15rem; padding: 16px 24px; min-height: 58px; }
.btn.block { width: 100%; }
.btn.danger { background: #b3261e; color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--accent); font-weight: 800; text-decoration: none; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero .icon { font-size: 68px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.title { font-family: var(--title-font); font-size: clamp(2.5rem, 11vw, 4.6rem); line-height: 1.05; margin: .12em 0; color: var(--accent); text-shadow: 0 3px 14px rgba(0,0,0,.35); font-weight: 700; }
body.light .title { text-shadow: none; }
.hero .sub { font-size: 1.15rem; color: var(--muted); margin: 0 0 18px; }
.hero-actions { display: grid; gap: 10px; max-width: 460px; margin: 0 auto 10px; }
@media (min-width: 600px) { .hero-actions { grid-template-columns: 1fr 1fr; } }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--muted); padding: 8px 0; min-height: 44px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.banner { display: flex; gap: 14px; align-items: center; background: var(--card-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; margin: 14px 0; }
.banner .em { font-size: 40px; }
.banner b { display: block; font-size: 1.1rem; }

.hgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .hgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .hgrid { grid-template-columns: repeat(4, 1fr); } }
.hcard { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1.05; background: linear-gradient(150deg, var(--c1), var(--c2)); color: var(--ct); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.15); }
.hcard .cover { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.hcard .shade { position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.55)); }
.hcard > *:not(.cover):not(.shade) { position: relative; }
.hcard .em { font-size: 38px; line-height: 1; }
.hcard .nm { font-family: var(--cf); font-size: 1.35rem; line-height: 1.1; font-weight: 700; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.hcard .ct { font-size: .9rem; color: #fff; opacity: .9; }
.hcard.add { background: var(--card); border: 2px dashed var(--line); color: var(--text); justify-content: center; align-items: center; text-align: center; box-shadow: none; }

.ygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .ygrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ygrid { grid-template-columns: repeat(4, 1fr); } }
.ycard { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; text-decoration: none; background: var(--card-strong) center / cover; display: flex; align-items: flex-end; padding: 10px 12px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.ycard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.65)); }
.ycard span { position: relative; }
.ycard .yr { font-family: var(--title-font); font-size: 1.9rem; font-weight: 700; line-height: 1; display: block; }
.ycard .ct { font-size: .9rem; opacity: .9; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.strip button { flex: none; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.strip img, .strip .vid { width: 140px; height: 140px; object-fit: cover; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.25); background: var(--card); }
.strip .yr { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

/* ---------- photo grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: var(--card); cursor: pointer; overflow: hidden; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.04); }
.tile .badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; font-size: .75rem; padding: 2px 8px; font-weight: 800; }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); pointer-events: none; }
.tile .restore { position: absolute; left: 6px; right: 6px; bottom: 6px; }
.empty { text-align: center; padding: 34px 16px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty .em { font-size: 54px; }

/* ---------- forms ---------- */
label.f { display: block; font-weight: 800; margin: 14px 0 0; }
label.f > span.hint { display: block; font-weight: 400; font-size: .9rem; color: var(--panel-muted); }
.input, select.input, textarea.input { width: 100%; font: inherit; font-size: 18px; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--panel-line); background: #fff; color: var(--panel-text); margin-top: 6px; min-height: 52px; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--bg2); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.err { color: #b3261e; font-weight: 700; margin-top: 10px; }

/* ---------- sheets (bottom sheet on phones, dialog on desktop) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--panel); color: var(--panel-text); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.35); animation: up .25s ease-out; -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) {
  .sheet-bg { align-items: center; }
  /* On a computer the window can be stretched by dragging its bottom-right corner. */
  .sheet { border-radius: 22px; width: 560px; max-width: 96vw; max-height: 94vh; min-width: 340px; min-height: 220px; }
  .sheet.wide { width: 760px; }
}
.sheet.big { width: 96vw; max-width: 96vw; height: 94vh; max-height: 94vh; }
@media (max-width: 699px) { .sheet.big { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; } }
.sheet h2 { font-family: var(--title-font); color: var(--panel-text); margin: 0 0 6px; }
.sheet .muted { color: var(--panel-muted); }
.sheet .btn { color: var(--panel-text); background: #f1e8de; border-color: var(--panel-line); backdrop-filter: none; }
.sheet .btn.primary { background: var(--bg2); color: #fff; border-color: transparent; }
.sheet .btn.danger { background: #b3261e; color: #fff; }
.sheet .chip { background: #f1e8de; border-color: var(--panel-line); color: var(--panel-text); }
.sheet .chip.on { background: var(--bg2); color: #fff; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sheet-head h2 { flex: 1; }
.sheet-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #eee3d6; font-size: 20px; cursor: pointer; color: var(--panel-text); }
.menu-list { display: grid; gap: 8px; margin-top: 10px; }
.menu-list .btn { justify-content: flex-start; font-size: 1.1rem; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.up-list { margin-top: 14px; display: grid; gap: 8px; }
.up-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--panel-line); border-radius: 12px; padding: 6px; }
.up-item .pv { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #eee; display: grid; place-items: center; font-size: 22px; }
.up-item .nm { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 0; background: var(--bg2); transition: width .2s; }
.up-item .st { font-size: 1.3rem; padding: 0 6px; }
.filepick { position: relative; overflow: hidden; }
.filepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ---------- login ---------- */
.login { max-width: 440px; margin: 0 auto; padding-top: 10px; }
.login .card { background: var(--panel); color: var(--panel-text); border: 0; box-shadow: 0 14px 40px rgba(0,0,0,.35); padding: 22px; }
.login .btn.primary { background: var(--bg2); color: #fff; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: #0b0b0b; color: #fff; display: flex; flex-direction: column; animation: fade .2s; }
.lb-top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
.lb-top .count { flex: 1; text-align: center; font-weight: 700; opacity: .8; }
.lb .icon-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; cursor: pointer; border-radius: 12px; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-info { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); max-height: 45vh; overflow: auto; background: linear-gradient(transparent, rgba(255,255,255,.04)); }
.lb-cap { font-size: 1.1rem; cursor: pointer; min-height: 1.5em; }
.lb-cap .ph { opacity: .55; font-style: italic; }
.lb-meta { font-size: .95rem; opacity: .8; margin: 4px 0 8px; }
.lb-meta b { opacity: 1; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.react { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 6px 12px; min-height: 42px; font-size: 1.05rem; cursor: pointer; }
.react.on { background: rgba(255,255,255,.28); border-color: #fff; }
.comments { margin-top: 10px; display: grid; gap: 6px; }
.comment { background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 12px; }
.comment b { margin-right: 6px; }
.comment-form { display: flex; gap: 8px; margin-top: 6px; }
.comment-form input { flex: 1; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; min-height: 46px; }

/* ---------- slideshow ---------- */
.ss { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; overflow: hidden; cursor: none; }
.ss.controls-on { cursor: default; }
body.ss-open #fx { z-index: 75; opacity: .8; }
body.ss-open #deco { display: none; }
.ss-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.ss-layer.show { opacity: 1; }
.ss-layer .bg { position: absolute; inset: -40px; background: center / cover; filter: blur(30px) brightness(.45); }
.ss-layer img, .ss-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ss-layer.kb img { animation: kb var(--dur, 8s) ease-out forwards; }
@keyframes kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(var(--s, 1.1)) translate(var(--tx, 0), var(--ty, 0)); } }
.ss-collage { position: absolute; inset: 0; display: grid; gap: 8px; padding: 8px; }
.ss-tile { position: relative; overflow: hidden; border-radius: 12px; background: #111; }
.ss-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease, transform 12s linear; transform: scale(1.02); }
.ss-tile img.show { opacity: 1; transform: scale(1.12); }
.ss-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); text-align: center; font-size: clamp(1rem, 2.6vw, 1.6rem); text-shadow: 0 2px 6px #000; transition: opacity .6s; z-index: 2; pointer-events: none; }
.ss-cap small { display: block; opacity: .75; font-size: .75em; }
.ss-title { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font-family: var(--title-font); font-size: clamp(1.6rem, 5vw, 3rem); color: var(--accent); text-shadow: 0 3px 12px #000; z-index: 2; transition: opacity 1s; pointer-events: none; }
.ss-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 80; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.85) 40%); transition: opacity .3s, transform .3s; }
.ss-top { position: absolute; top: 0; left: 0; right: 0; z-index: 80; display: flex; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; transition: opacity .3s; }
.ss:not(.controls-on) .ss-ui { opacity: 0; transform: translateY(20px); pointer-events: none; }
.ss:not(.controls-on) .ss-top { opacity: 0; pointer-events: none; }
.ss .icon-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: #fff; }
.ss-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.ss-row + .ss-row { margin-top: 10px; }
.ss .pill { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 10px 14px; min-height: 46px; font-weight: 800; cursor: pointer; }
.ss .pill.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ss .big-play { width: 64px; height: 64px; font-size: 28px; border-radius: 50%; }
.speed { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; max-width: 420px; font-weight: 800; }
.speed input { flex: 1; accent-color: var(--accent); height: 30px; }
.vol { width: 90px; accent-color: var(--accent); }

/* ---------- events ---------- */
.ev-card { display: block; text-decoration: none; background: var(--card-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.ev-card .when { color: var(--accent); font-weight: 800; }
.ev-card .t { font-size: 1.25rem; font-weight: 800; }
.ev-head { text-align: center; padding: 8px 0 4px; }
.ev-detail { display: grid; gap: 10px; }
.ev-detail .line { display: flex; gap: 12px; align-items: flex-start; }
.ev-detail .line .i { font-size: 24px; width: 30px; text-align: center; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.tally div { background: var(--card); border-radius: 12px; padding: 10px 4px; }
.tally b { display: block; font-size: 1.6rem; }
.rsvp-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp-btns .btn.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.list { display: grid; gap: 8px; }
.list .it { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.list .it .grow { flex: 1; min-width: 0; }
.note { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.note .by { font-size: .85rem; color: var(--muted); }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form .input { margin: 0; }
.email-frame { width: 100%; height: 60vh; border: 1px solid var(--panel-line); border-radius: 12px; background: #fff; margin-top: 12px; }
.people-pick { display: grid; gap: 6px; margin-top: 8px; max-height: 32vh; overflow: auto; }
.people-pick label { display: flex; gap: 10px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--panel-line); border-radius: 10px; font-weight: 700; }
.people-pick input { width: 22px; height: 22px; }
.people-pick .no { opacity: .5; font-weight: 400; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #222; color: #fff; padding: 14px 20px; border-radius: 14px; z-index: 100; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); animation: up .25s; text-align: center; }

.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; border-radius: 999px; padding: 16px 22px; font-size: 1.1rem; }
.qr svg { width: 100%; max-width: 280px; margin: 10px auto; display: block; background: #fff; border-radius: 12px; }
.spin { text-align: center; padding: 60px 0; font-size: 2rem; opacity: .7; }

/* food list builder */
.fb-step { margin-top: 14px; }
.foodb textarea { font-size: 1.05rem; line-height: 1.5; }
.food-sec { border-top: 1px solid var(--panel-line); margin-top: 18px; }
.foodb textarea::placeholder { color: #9a9a9a; font-weight: 400; font-style: italic; }

/* food list grid (looks like a small spreadsheet) */
.fg-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.fg-tools .chip { min-height: 40px; padding: 6px 12px; }
.fg { border: 1px solid #b9b0a6; border-radius: 10px; overflow: hidden; background: #fff; color: #2b2b2b; }
.fg-head, .fg-row, .fg-group { display: grid; grid-template-columns: 1fr 96px 44px; align-items: stretch; border-bottom: 1px solid #d9d2c9; }
.fg-head { background: #7a1f1f; color: #fff; font-weight: 800; font-size: .95rem; }
.fg-head span { padding: 8px 10px; }
.fg-head span + span { border-left: 1px solid rgba(255,255,255,.25); }
.fg-group { background: #f6e7d4; grid-template-columns: 1fr 44px; }
.fg .fg-group input { font-weight: 800; }
.fg input { width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: 10px; min-height: 46px; color: inherit; }
.fg input:focus { outline: 3px solid #e0a64a; outline-offset: -3px; background: #fffaf0; }
.fg-row input[type=number] { text-align: center; border-left: 1px solid #d9d2c9; }
.fg-cell { min-width: 0; }
.fg-who { font-size: .85rem; color: #2e7d32; padding: 0 10px 8px; margin-top: -6px; }
.fg-x { border: 0; border-left: 1px solid #d9d2c9; background: transparent; font-size: 1.1rem; color: #9a3b3b; cursor: pointer; }
.fg-x:hover, .fg-x:focus-visible { background: #fdecea; }
.fg-add { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #d9d2c9; background: #fff; color: #1a5fb4; font: inherit; font-weight: 700; padding: 10px; cursor: pointer; min-height: 44px; }
.fg-add:hover { background: #f4f8fd; }
.fg-head span { white-space: nowrap; }

/* resize grip in the window's bottom-right corner (computers and tablets) */
.sheet-grip { position: fixed; width: 30px; height: 30px; z-index: 51; cursor: nwse-resize; touch-action: none; display: none;
  background: linear-gradient(135deg, transparent 0 46%, #a8998a 46% 52%, transparent 52% 62%, #a8998a 62% 68%, transparent 68% 78%, #a8998a 78% 84%, transparent 84%); border-bottom-right-radius: 22px; }
@media (min-width: 700px) { .sheet-grip { display: block; } }
@media (max-width: 480px) {
  .fg-head, .fg-row { grid-template-columns: 1fr 70px 40px; }
  .fg-group { grid-template-columns: 1fr 40px; }
  .fg-head span { white-space: normal; font-size: .85rem; line-height: 1.15; }
  .fg input { padding: 10px 8px; }
}

/* ---------- home page photo table ---------- */
.ptable { position: relative; width: 100vw; margin: 6px 0 18px calc(50% - 50vw); height: clamp(340px, 58vh, 640px); overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.10), rgba(0,0,0,.16) 75%); box-shadow: inset 0 0 60px rgba(0,0,0,.25); }
@media (min-width: 700px) { .ptable { width: min(1200px, calc(100vw - 48px)); margin-left: calc(50% - min(600px, 50vw - 24px)); border-radius: 28px; } }
.pt-card { position: absolute; display: block; width: clamp(118px, 17vw, 200px); padding: 7px 7px 0; margin: 0; background: #fffdf8; border: 0; border-radius: 3px;
  box-shadow: 0 6px 14px rgba(0,0,0,.3); cursor: pointer; font: inherit; color: #3a3a3a; text-align: center; -webkit-tap-highlight-color: transparent; }
.pt-card:focus-visible { outline: 3px solid #ffd54f; outline-offset: 3px; }
.pt-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; pointer-events: none; user-select: none; }
.pt-cap { font-weight: 700; font-size: clamp(.72rem, 1.3vw, .9rem); padding: 6px 2px 8px; line-height: 1.15; overflow-wrap: anywhere; }
.pt-blank { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f3efe8 0 10px, #ece6dc 10px 20px); }
.pt-blank span { font-size: clamp(2rem, 5vw, 3.2rem); opacity: .55; }
.pt-empty { cursor: default; color: #8a8178; }
.pt-first { position: absolute; z-index: 1000; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88%, 420px); background: rgba(255,253,248,.95); color: #3a3a3a;
  border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.35); text-align: center; }
.pt-first p { margin: 0 0 12px; font-weight: 700; }

/* =====================================================================
   Polished look: classic serif titles, clean text, quieter surfaces,
   no emoji decorations. (Placed last so it refines everything above.)
   ===================================================================== */
:root { --radius: 12px; --title-font: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.5; letter-spacing: .005em;
  background-image: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 60%), linear-gradient(170deg, var(--bg1), var(--bg2)); }
body.light { background-image: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.5), transparent 60%), linear-gradient(170deg, var(--bg1), var(--bg2)); }
.ico { display: block; flex: none; }
.btn .ico { width: 20px; height: 20px; }

/* titles */
.title { font-weight: 600; letter-spacing: .01em; color: var(--text); text-shadow: 0 2px 24px rgba(0,0,0,.25); font-size: clamp(2.6rem, 10vw, 4.8rem); }
.hero .sub { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
h2 { font-weight: 600; font-size: 1.9rem; letter-spacing: .01em; }
.sheet h2 { font-weight: 600; font-size: 1.8rem; }
.brand { font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; text-shadow: none; }
.hero .icon, .hcard .em, .empty .em { display: none; }

/* buttons and controls */
.btn { font-weight: 600; border-radius: 10px; letter-spacing: .01em; }
.btn.primary { box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.btn.big { font-size: 1.05rem; }
.chip { font-weight: 600; }
.icon-btn { border-radius: 999px; width: 46px; height: 46px; background: rgba(255,255,255,.06); }
body.light .icon-btn { background: rgba(0,0,0,.04); }
.link { font-weight: 600; }
label.f { font-weight: 600; }

/* cards */
.card, .banner { border-radius: var(--radius); }
.banner { background: rgba(255,255,255,.07); gap: 16px; }
body.light .banner { background: rgba(255,255,255,.6); }
.banner b { font-weight: 600; font-size: 1.08rem; }
.datetile { flex: none; width: 56px; border-radius: 10px; overflow: hidden; text-align: center; background: #fbf7f0; color: #2b2420; box-shadow: 0 2px 8px rgba(0,0,0,.25); line-height: 1; }
.datetile span { display: block; background: var(--accent); color: #1e1612; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 0 4px; }
.datetile b { display: block; font-family: var(--title-font); font-size: 1.75rem; font-weight: 600; padding: 4px 0 6px; }

/* holiday cards: the photos do the decorating */
.hcard { border-radius: 12px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 24px rgba(0,0,0,.28); aspect-ratio: 4 / 5; padding: 14px; }
.hcard .cover { opacity: .9; transition: transform .6s ease; }
.hcard:hover .cover { transform: scale(1.04); }
.hcard .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.hcard .nm { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.6rem; letter-spacing: .01em; }
.hcard .ct { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hcard.add { border: 1px dashed var(--line); font-weight: 600; }
.ycard { border-radius: 12px; }
.ycard .yr { font-weight: 600; }

/* photo strips and grids */
.strip img, .strip .vid { border-radius: 8px; }
.grid { border-radius: 10px; }
.empty { border-width: 1px; }


body[data-theme="easter"] main { overflow-x: clip; }

/* sign-in: show/hide password */
.pw { position: relative; display: block; }
.pw .input { padding-right: 56px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--panel-muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--panel-text); background: rgba(0,0,0,.05); }
/* photo viewer zoom */
.lb-stage { touch-action: none; overflow: hidden; }
.lb-stage img { transform-origin: 50% 50%; will-change: transform; cursor: zoom-in; }
.lb.zoomed .lb-stage img { cursor: grab; }
.lb-stage img.zoom-anim { transition: transform .22s ease; }
.lb.zoomed .lb-nav { opacity: 0; pointer-events: none; }
.lb.zoomed .lb-stage img { cursor: zoom-out; }
.lb.zoomed .lb-stage img:active { cursor: grabbing; }

/* photo viewer "big" view (computer click): the whole photo, as large as the window */
.lb.big .lb-top, .lb.big .lb-info, .lb.big .lb-nav { display: none; }
.lb.big .lb-stage { padding: 0; }
.lb.big .lb-stage img { max-width: 100vw; max-height: 100vh; cursor: zoom-out; }
.lb-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(0,0,0,.65); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .9rem; pointer-events: none; animation: hintfade 2.6s ease forwards; }
@keyframes hintfade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.lb.big .lb-stage img { width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; }

/* Family "add several at once" table */
.pg { border: 1px solid #b9b0a6; border-radius: 10px; overflow: hidden; background: #fff; color: #2b2b2b; }
.pg-head, .pg-row { display: grid; grid-template-columns: 1.5fr 1.6fr 1fr 44px; border-bottom: 1px solid #d9d2c9; }
.pg-head { background: #7a1f1f; color: #fff; font-weight: 800; font-size: .95rem; }
.pg-head span { padding: 8px 10px; white-space: nowrap; }
.pg-row input { width: 100%; min-width: 0; box-sizing: border-box; border: 0; border-left: 1px solid #d9d2c9; background: transparent; font: inherit; font-size: 1.05rem; padding: 10px; min-height: 46px; color: inherit; }
.pg-row input:first-child { border-left: 0; }
.pg-row input:focus { outline: 3px solid #e0a64a; outline-offset: -3px; background: #fffaf0; }
.pg-row input::placeholder { color: #aaa; }
.pg-row.bad { background: #fdecea; }
.pg-problem { grid-column: 1 / -1; color: #b3261e; font-size: .9rem; padding: 0 10px 8px; }
label.linkbtn { color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .pg-head { display: none; }
  .pg-row { grid-template-columns: 1fr 44px; grid-template-areas: "n x" "e x" "b x" "p p"; }
  .pg-row input[data-k=name] { grid-area: n; }
  .pg-row input[data-k=email] { grid-area: e; border-left: 0; border-top: 1px solid #eee; }
  .pg-row input[data-k=bday] { grid-area: b; border-left: 0; border-top: 1px solid #eee; }
  .pg-row .fg-x { grid-area: x; }
  .pg-problem { grid-area: p; }
  .pg-row { border-bottom: 2px solid #b9b0a6; }
}
@media (min-width: 641px) { .pg-row input::placeholder { color: transparent; } .pg-row input[data-k=name]::placeholder, .pg-row input[data-k=bday]::placeholder { color: #aaa; } } /* headings row already labels the columns */
.pg-phone { background: #f6efe4; border: 1px solid #e4d8c6; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; color: #2b2b2b; }
.pg-how { margin-top: 8px; } .pg-how p { margin: 6px 0; }
button.linkbtn { background: none; border: 0; padding: 6px 4px; font: inherit; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
.pg-phone button.linkbtn { color: #1a5fb4; }
.home-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.home-links .btn { flex: 1 1 240px; max-width: 360px; }

