/* Wedding guest app: Telugu wedding palette. Mobile first, no framework. */
:root {
  --ivory: #fbf6ec; --paper: #fffdf8; --ink: #2b1d14; --muted: #7a6656; --line: rgba(43, 29, 20, .12);
  --kumkum: #b3261e; --kumkum-deep: #8e1b15; --turmeric: #f0b323; --turmeric-deep: #c98a00;
  --leaf: #2f6b3a; --leaf-light: #6ea15a; --gold: #b8862b; --gold-light: #e6c27a;
  --serif: "Fraunces", "Noto Serif Telugu", Georgia, serif; --sans: "Manrope", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --te: "Noto Serif Telugu", serif;
  --r: 20px; --nav-h: 74px; --top-h: 58px; --shadow: 0 1px 2px rgba(43, 29, 20, .06), 0 8px 24px -12px rgba(43, 29, 20, .25);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; overflow-x: hidden; }
body { min-height: 100dvh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--kumkum); }
.te { font-family: var(--te); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; border-radius: 8px; }

/* kolam dot pattern used as quiet texture */
.kolam-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b8862b' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M28 6c8 8 8 14 0 22-8-8-8-14 0-22zM28 50c8-8 8-14 0-22-8 8-8 14 0 22zM6 28c8-8 14-8 22 0-8 8-14 8-22 0zM50 28c-8-8-14-8-22 0 8 8 14 8 22 0z'/%3E%3C/g%3E%3Cg fill='%23b8862b' fill-opacity='.22'%3E%3Ccircle cx='28' cy='28' r='1.6'/%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='56' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='56' r='1.6'/%3E%3Ccircle cx='56' cy='56' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }

/* ───── shell ───── */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; background: color-mix(in srgb, var(--ivory) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .back { width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center; }
.topbar .back[hidden] { display: none; }
.topbar h1 { font: 600 19px/1.1 var(--serif); margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.topbar h1 small { display: block; font: 500 12px/1.3 var(--sans); color: var(--muted); letter-spacing: 0; }
.lang { height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; padding: 3px; gap: 2px; font-size: 13px; font-weight: 700; }
.lang span.te { font-size: 15px; line-height: .9; }
.lang span { padding: 5px 9px; border-radius: 999px; line-height: 1; color: var(--muted); }
.lang span.on { background: var(--ink); color: var(--ivory); }
main#view { padding: 4px 16px calc(var(--nav-h) + 28px + var(--safe-b)); max-width: 560px; margin: 0 auto; min-height: calc(100dvh - var(--top-h)); }
main#view.flush { padding-left: 0; padding-right: 0; }
.view-enter { animation: viewIn .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* bottom nav with centre camera */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 0 10px var(--safe-b); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(43, 29, 20, .35); }
.nav-inner { max-width: 560px; margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.nav a { position: relative; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; min-height: 52px; justify-content: center; transition: color .2s; }
.nav a svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.nav a.on { color: var(--kumkum); }
.nav a.on svg { transform: translateY(-1px) scale(1.06); }
.nav a .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--kumkum); border: 2px solid var(--paper); }
.nav a.cam { color: #fff; }
.nav a.cam .shutter { width: 66px; height: 66px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e4473c, var(--kumkum) 55%, var(--kumkum-deep)); box-shadow: 0 0 0 5px var(--paper), 0 10px 22px -6px rgba(142, 27, 21, .7), inset 0 -3px 6px rgba(0, 0, 0, .2); transition: transform .2s; }
.nav a.cam:active .shutter { transform: scale(.92); }
.nav a.cam svg { width: 30px; height: 30px; }
.nav a.cam span { color: var(--muted); }
.nav a.cam.on span { color: var(--kumkum); }

/* ───── common blocks ───── */
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.pad { padding: 18px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.h2 { font: 600 24px/1.15 var(--serif); letter-spacing: -.015em; margin: 4px 0 6px; }
.h3 { font: 600 18px/1.2 var(--serif); margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.section-title h2 { font: 600 20px/1.2 var(--serif); margin: 0; }
.section-title a, .linkish { font-size: 14px; font-weight: 700; color: var(--kumkum); text-decoration: none; }
.btn { min-height: 48px; padding: 0 20px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; letter-spacing: .01em; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--kumkum); color: #fff; box-shadow: 0 8px 18px -10px rgba(142, 27, 21, .9); }
.btn-primary:hover { background: var(--kumkum-deep); }
.btn-gold { background: linear-gradient(180deg, #f6c64a, var(--turmeric)); color: #3a2600; box-shadow: 0 8px 18px -10px rgba(201, 138, 0, .9); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.btn-soft { background: rgba(255, 255, 255, .6); color: inherit; border: 1.5px solid rgba(0, 0, 0, .08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px 2px; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230, 194, 122, .35); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; background: rgba(43, 29, 20, .06); border-radius: 14px; }
.seg button { min-height: 44px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 120px; height: auto; margin: 0 auto 10px; opacity: .9; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + 22px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--ivory); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, rgba(43,29,20,.06), rgba(43,29,20,.12), rgba(43,29,20,.06)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* toran */
.toran { display: block; width: 100%; height: 54px; }
.toran.sway path.leaf, .toran.sway g.leaf { transform-origin: top center; transform-box: fill-box; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(4deg); } }

/* ───── home ───── */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 0 20px 22px; color: #fff8ea; background: radial-gradient(120% 90% at 50% 0%, #c8382c 0%, var(--kumkum) 40%, #7c1611 100%); box-shadow: 0 20px 40px -24px rgba(124, 22, 17, .9); text-align: center; margin-top: 6px; }
.hero::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(230, 194, 122, .45); border-radius: 18px; pointer-events: none; }
.hero .toran { margin: 0 -20px 4px; width: calc(100% + 40px); height: 58px; }
.hero .namaste { font-size: 14.5px; font-weight: 700; color: var(--gold-light); letter-spacing: .02em; }
.hero .couple { font: 500 clamp(30px, 9vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; margin: 10px 0 2px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero .couple em { font-style: italic; color: var(--gold-light); font-weight: 400; display: block; font-size: .55em; margin: 4px 0; }
.hero .couple-te { font-family: var(--te); color: rgba(255, 248, 234, .82); font-size: 15px; }
.hero .when { margin-top: 12px; font-size: 14px; color: rgba(255, 248, 234, .9); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 4px; position: relative; z-index: 1; }
.countdown div { background: rgba(255, 248, 234, .12); border: 1px solid rgba(230, 194, 122, .35); border-radius: 14px; padding: 10px 0 8px; }
.countdown b { display: block; font: 600 26px/1 var(--serif); font-variant-numeric: tabular-nums; color: #fff; }
.countdown span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.now-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; text-decoration: none; color: var(--t-ink); background: var(--t-bg); border: 1px solid rgba(0, 0, 0, .05); margin-top: 14px; box-shadow: var(--shadow); }
.now-card .illo-sm { width: 84px; height: 70px; flex: none; }
.now-card .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t-accent); }
.now-card .tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.now-card h3 { font: 600 19px/1.15 var(--serif); margin: 3px 0 2px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { aspect-ratio: 1 / 1.02; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; position: relative; overflow: hidden; }
.tile:active { transform: scale(.96); }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tile-bg, #fdecc8); color: var(--tile-ink, #8a5a00); }
.tile .ic svg { width: 22px; height: 22px; }
.tile b { font-size: 14px; font-weight: 800; line-height: 1.15; }
.tile small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.contact + .contact { border-top: 1px solid var(--line); }
.contact .av { width: 42px; height: 42px; border-radius: 50%; background: #fbe3c4; color: #7a4300; display: grid; place-items: center; font-weight: 800; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(43, 29, 20, .06); color: var(--ink); flex: none; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.wa { background: #e3f6e8; color: #1c7c3c; }
.arrive { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #e8f3e3; border: 1px solid #cfe4c7; color: #1f4a20; margin-top: 14px; }
.arrive.done { background: var(--paper); border-color: var(--line); color: var(--muted); }

/* ───── schedule: themed full-height cards ───── */
.t-peach { --t-bg: #fce3cf; --t-ink: #5f2810; --t-accent: #d9692f; --t-soft: #f7cfb0; }
.t-rose { --t-bg: #f9dbe1; --t-ink: #651a2f; --t-accent: #c0405f; --t-soft: #f2c3cd; }
.t-turmeric { --t-bg: #ffeaa6; --t-ink: #573700; --t-accent: #d38f00; --t-soft: #f8d97a; }
.t-mint { --t-bg: #d6efdf; --t-ink: #1c4a30; --t-accent: #2f8a57; --t-soft: #b6e0c5; }
.t-cream { --t-bg: #f6ead2; --t-ink: #571812; --t-accent: #b3261e; --t-soft: #ead6ae; }
.t-purple { --t-bg: #e4dbf4; --t-ink: #30205a; --t-accent: #6a48b3; --t-soft: #cfc0ec; }
.sched-wrap { position: relative; }
.sched { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.sched::-webkit-scrollbar { display: none; }
.ev { flex: 0 0 calc(100% - 28px); max-width: 520px; scroll-snap-align: center; height: calc(100dvh - var(--top-h) - var(--nav-h) - 64px - var(--safe-b)); min-height: 520px; border-radius: 28px; background: var(--t-bg); color: var(--t-ink); position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 40px -26px rgba(43, 29, 20, .55); }
.ev .art { position: relative; height: 38%; min-height: 170px; display: grid; place-items: end center; background: radial-gradient(70% 90% at 50% 100%, var(--t-soft), transparent 70%); }
.ev .art svg.illo { width: 88%; max-width: 330px; height: 100%; }
.ev .art .num { position: absolute; top: 16px; left: 18px; font: 600 13px/1 var(--sans); letter-spacing: .12em; color: var(--t-accent); }
.ev .art .opt { position: absolute; top: 12px; right: 14px; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.ev .body { flex: 1; overflow-y: auto; padding: 4px 20px 18px; -webkit-overflow-scrolling: touch; }
.ev .te-name { font-family: var(--te); font-size: 17px; color: var(--t-accent); font-weight: 600; }
.ev h2 { font: 500 34px/1.02 var(--serif); letter-spacing: -.02em; margin: 2px 0 12px; font-variation-settings: "SOFT" 100; }
.ev .facts { display: grid; gap: 8px; margin-bottom: 12px; }
.ev .fact { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.ev .fact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--t-accent); }
.ev details { background: rgba(255, 255, 255, .45); border-radius: 14px; padding: 0 14px; margin-bottom: 12px; }
.ev summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; font-size: 14px; cursor: pointer; list-style: none; }
.ev summary::-webkit-details-marker { display: none; }
.ev summary::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; }
.ev details[open] summary::after { content: "–"; }
.ev details p { margin: 0 0 12px; font-size: 14.5px; }
.ev .rsvp { background: rgba(255, 255, 255, .55); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.ev .rsvp .q { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.ev .rsvp .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev .rsvp .yn button { min-height: 46px; border-radius: 12px; font-weight: 800; background: rgba(255, 255, 255, .8); border: 1.5px solid rgba(0, 0, 0, .07); transition: all .2s; }
.ev .rsvp .yn button.on { background: var(--t-ink); color: var(--t-bg); border-color: var(--t-ink); }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 14px; font-weight: 700; }
.stepper .ctl { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 3px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; font-weight: 700; }
.stepper b { min-width: 28px; text-align: center; font-size: 17px; }
.ev .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev .acts .btn { min-height: 46px; padding: 0 10px; font-size: 14px; background: var(--t-ink); color: var(--t-bg); }
.ev .acts .btn.alt { background: rgba(255, 255, 255, .7); color: var(--t-ink); }
.ev .acts .btn.live { grid-column: 1 / -1; background: var(--t-accent); color: #fff; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(43, 29, 20, .2); transition: all .3s; }
.dots i.on { width: 22px; background: var(--kumkum); }
.sched-tabs { padding: 2px 16px 4px; }

/* ───── updates ───── */
.upd { display: flex; gap: 14px; padding: 16px; }
.upd + .upd { border-top: 1px solid var(--line); }
.upd .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: #fdecc8; color: #8a5a00; }
.upd .ic svg { width: 22px; height: 22px; }
.upd.k-reminder .ic { background: #fde1dc; color: var(--kumkum); }
.upd.k-photos .ic { background: #e6defa; color: #5a3aa0; }
.upd.k-travel .ic { background: #dcefe2; color: #1f6a3c; }
.upd.k-urgent .ic { background: var(--kumkum); color: #fff; }
.upd h3 { font-size: 16px; font-weight: 800; margin: 0 0 3px; line-height: 1.25; }
.upd p { margin: 0 0 4px; font-size: 14.5px; color: #4a3a2e; }
.upd time { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.upd.new h3::after { content: "New"; margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--kumkum); color: #fff; padding: 2px 7px; border-radius: 99px; vertical-align: 2px; }

/* ───── more ───── */
.list a, .list button { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); width: 100%; text-align: left; min-height: 64px; }
.list > * + * { border-top: 1px solid var(--line); }
.list .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--tile-bg, #fdecc8); color: var(--tile-ink, #8a5a00); }
.list .ic svg { width: 22px; height: 22px; }
.list b { display: block; font-weight: 800; font-size: 15.5px; }
.list small { display: block; color: var(--muted); font-size: 13px; }
.list .chev { margin-left: auto; color: var(--muted); width: 18px; height: 18px; flex: none; }

/* ───── chat ───── */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 90px; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.msg.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: #fbe6c2; border-color: #f1d39c; }
.msg .who { font-size: 12.5px; font-weight: 800; color: var(--kumkum); display: flex; gap: 6px; align-items: center; }
.msg .who .side { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.msg p { margin: 2px 0 0; font-size: 15px; word-wrap: break-word; white-space: pre-wrap; }
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; text-align: right; }
.msg.travel { border-left: 4px solid var(--leaf-light); }
.msg.travel .who::before { content: "✈"; color: var(--leaf); }
.composer { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); padding: 10px 12px; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.composer form { max-width: 536px; margin: 0 auto; display: flex; gap: 8px; }
.composer .input { min-height: 48px; border-radius: 24px; }
.composer button { width: 48px; height: 48px; border-radius: 50%; background: var(--kumkum); color: #fff; display: grid; place-items: center; flex: none; }
.composer button svg { width: 22px; height: 22px; }
.day-sep { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; margin: 6px 0; }

/* ───── camera ───── */
.camwrap { padding-top: 6px; }
.film-cam { position: relative; margin: 6px auto 0; max-width: 400px; border-radius: 26px; padding: 16px; background: linear-gradient(180deg, #2e2a27, #1d1a18); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); color: #eee; overflow: hidden; }
.film-cam::before { content: ""; position: absolute; inset: 70px 0 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px); background-size: 5px 5px; pointer-events: none; }
.film-cam .top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.film-cam .brand { font: italic 600 20px/1 var(--serif); color: #f3d79c; letter-spacing: .01em; }
.film-cam .brand small { display: block; font: 700 9.5px/1.4 var(--sans); letter-spacing: .22em; color: #a39a90; font-style: normal; text-transform: uppercase; margin-top: 3px; }
.film-cam .counter { background: #0d0c0b; border-radius: 10px; padding: 6px 10px; border: 1px solid #000; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9); font: 700 26px/1 ui-monospace, "SF Mono", Menlo, monospace; color: #ff8a3a; text-shadow: 0 0 8px rgba(255, 120, 40, .6); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.film-cam .counter small { display: block; font: 700 8.5px/1.3 var(--sans); color: #8f857a; letter-spacing: .14em; text-shadow: none; margin-top: 2px; }
.film-cam .face { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.viewfinder { aspect-ratio: 4 / 3; border-radius: 12px; background: #0e0d0c; border: 3px solid #3c3732; overflow: hidden; position: relative; display: grid; place-items: center; box-shadow: inset 0 0 20px rgba(0, 0, 0, .9); }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.viewfinder .vf-txt { color: #9e958b; font-size: 12px; font-weight: 700; text-align: center; padding: 10px; letter-spacing: .03em; }
.viewfinder::after { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 4px; pointer-events: none; }
.lens { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #5b6d86 0, #1a2230 26%, #06080c 50%, #22252a 52%, #0c0d0f 70%, #3a3632 72%, #24211e 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .06); position: relative; }
.lens::after { content: ""; position: absolute; width: 14px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .55); top: 26px; left: 30px; filter: blur(2px); transform: rotate(-30deg); }
.shoot { position: relative; margin: 18px auto 2px; width: 100%; min-height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; font-size: 17px; color: #fff; background: radial-gradient(circle at 35% 20%, #e54a3e, var(--kumkum) 60%, var(--kumkum-deep)); box-shadow: 0 10px 24px -10px rgba(220, 50, 40, .9), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.shoot:active { transform: translateY(2px); box-shadow: 0 6px 14px -8px rgba(220, 50, 40, .9), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.shoot svg { width: 26px; height: 26px; }
.film-cam .upl { position: relative; display: block; text-align: center; margin-top: 12px; font-size: 13.5px; color: #cfc6bb; font-weight: 700; min-height: 40px; line-height: 40px; }
.cam-tags { margin-top: 18px; display: grid; gap: 12px; }
.print { background: #fff; padding: 12px 12px 46px; border-radius: 6px; box-shadow: 0 20px 40px -18px rgba(43, 29, 20, .6); transform: rotate(-1.2deg); position: relative; margin: 8px auto 0; max-width: 380px; animation: develop 1.4s ease-out; }
.print img { width: 100%; border-radius: 2px; }
.print .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; font: italic 500 16px/1.2 var(--serif); color: #4a3a2e; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes develop { from { filter: brightness(2.2) sepia(1) blur(2px); opacity: .4; transform: rotate(-1.2deg) translateY(20px); } }
.progress { height: 6px; border-radius: 6px; background: rgba(43, 29, 20, .1); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--kumkum); transition: width .2s; }

/* ───── gallery ───── */
.masonry { columns: 2; column-gap: 8px; }
@media (min-width: 520px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin: 0 0 8px; position: relative; border-radius: 14px; overflow: hidden; background: #efe5d3; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; opacity: 0; transition: opacity .4s; }
.masonry img.ok { opacity: 1; }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); display: flex; justify-content: space-between; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15, 10, 6, .96); display: flex; flex-direction: column; color: #fff; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox .lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.lightbox .lb-img { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lightbox .lb-img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox .lb-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px calc(14px + var(--safe-b)); }
.lightbox .lb-bar button, .lightbox .lb-bar a { min-height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; text-decoration: none; }
.lightbox .lb-bar svg { width: 22px; height: 22px; }
.lightbox .liked svg { fill: #ff5a4f; color: #ff5a4f; }
.lightbox .x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.lightbox .x svg { width: 22px; height: 22px; }

/* ───── games ───── */
.board-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-card { border-radius: 18px; padding: 14px; color: #fff; position: relative; overflow: hidden; }
.side-card.groom { background: linear-gradient(150deg, #2f6b3a, #1d4a26); }
.side-card.bride { background: linear-gradient(150deg, #c0405f, #8e1b3a); }
.side-card b { display: block; font: 600 30px/1 var(--serif); margin-top: 6px; }
.side-card small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.side-card .lead { position: absolute; bottom: 12px; right: 10px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .2); padding: 3px 8px; border-radius: 99px; }
.bar { height: 10px; border-radius: 10px; overflow: hidden; display: flex; margin-top: 10px; background: #eee; }
.bar i { display: block; height: 100%; transition: width .6s; }
.rank { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.rank + .rank { border-top: 1px solid var(--line); }
.rank .pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: rgba(43, 29, 20, .07); flex: none; }
.rank:nth-child(1) .pos { background: #f6c64a; color: #4a3200; }
.rank:nth-child(2) .pos { background: #dcdcdc; }
.rank:nth-child(3) .pos { background: #e7b48a; }
.rank .pts { font: 600 18px/1 var(--serif); }
.rank.me { background: #fff6e2; }
.sidetag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.sidetag.groom { background: #dcefe2; color: #1f5a2c; }
.sidetag.bride { background: #fbdde4; color: #8e1b3a; }
.quiz-q { font: 500 24px/1.2 var(--serif); margin: 10px 0 18px; letter-spacing: -.01em; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); text-align: left; font-weight: 700; font-size: 15.5px; transition: all .15s; }
.opt + .opt { margin-top: 10px; }
.opt .k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 29, 20, .07); font-size: 13px; flex: none; }
.opt:active { transform: scale(.98); }
.opt.picked { border-color: var(--kumkum); background: #fdeeea; }
.opt.picked .k { background: var(--kumkum); color: #fff; }
.qbar { height: 6px; border-radius: 6px; background: rgba(43, 29, 20, .1); overflow: hidden; }
.qbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--turmeric), var(--kumkum)); transition: width .3s; }
.timer { font: 600 15px/1 ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
.result-score { font: 500 64px/1 var(--serif); color: var(--kumkum); }
.review li { margin: 6px 0; font-size: 14px; }
.chal { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.chal + .chal { border-top: 1px solid var(--line); }
.chal .pts { min-width: 54px; height: 54px; border-radius: 16px; background: #fdecc8; color: #7a4f00; display: grid; place-items: center; text-align: center; font: 600 18px/1 var(--serif); flex: none; }
.chal .pts small { display: block; font: 800 9.5px/1 var(--sans); letter-spacing: .08em; margin-top: 2px; }
.chal.done .pts { background: #dcefe2; color: #1f5a2c; }
.chal .thumb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }

/* ───── memories ───── */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-card { border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; display: block; width: 100%; color: var(--ink); }
.media-card .cover { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, #7c1611, #b3261e 60%, #c98a00); color: #fff3d9; overflow: hidden; }
.media-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-card .cover .play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--kumkum); display: grid; place-items: center; position: relative; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.media-card .cover .play svg { width: 24px; height: 24px; margin-left: 3px; }
.media-card .cover .soon { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .35); padding: 4px 9px; border-radius: 99px; }
.media-card .meta { padding: 10px 12px 12px; }
.media-card b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.media-card small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.media-card:nth-child(4n+2) .cover { background: linear-gradient(160deg, #1d4a26, #2f6b3a 60%, #b8862b); }
.media-card:nth-child(4n+3) .cover { background: linear-gradient(160deg, #30205a, #6a48b3 70%, #e6c27a); }
.media-card:nth-child(4n+4) .cover { background: linear-gradient(160deg, #5f2810, #d9692f 70%, #f0b323); }
.modal { position: fixed; inset: 0; z-index: 85; background: rgba(15, 10, 6, .9); display: flex; flex-direction: column; justify-content: center; padding: 16px; animation: fadeIn .2s; }
.modal .frame { width: 100%; max-width: 720px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.modal .frame.tall { aspect-ratio: 3 / 4; max-height: 76vh; }
.modal iframe { width: 100%; height: 100%; border: 0; }
.modal .frame img { width: 100%; height: 100%; object-fit: contain; }
.modal .close { align-self: flex-end; margin-bottom: 12px; }

/* ───── blessings ───── */
.wall { columns: 2; column-gap: 10px; }
.bless { break-inside: avoid; margin: 0 0 10px; padding: 16px 14px 14px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); position: relative; box-shadow: var(--shadow); }
.bless::before { content: "“"; position: absolute; top: -6px; left: 10px; font: 600 54px/1 var(--serif); color: var(--gold-light); }
.bless p { margin: 10px 0 8px; font: 400 16px/1.35 var(--serif); }
.bless b { font-size: 12.5px; color: var(--kumkum); }
.bless img { border-radius: 12px; margin-top: 4px; }
.bless:nth-child(3n+2) { background: #fff6e2; }
.bless:nth-child(3n+3) { background: #fbeef0; }

/* keepsake (printable) */
.keepsake { text-align: center; }
.keepsake h1 { font: 500 38px/1.05 var(--serif); margin: 10px 0 4px; }
.keepsake .wall { text-align: left; margin-top: 20px; }

/* ───── travel / venue ───── */
.venue-art { height: 170px; border-radius: 20px 20px 0 0; position: relative; overflow: hidden; background: #e9efe0; }
.venue-art iframe { width: 100%; height: 100%; border: 0; }
.venue-art .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); width: 42px; height: 42px; color: var(--kumkum); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.venue-art .load-map { position: absolute; right: 10px; bottom: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.check input { width: 22px; height: 22px; accent-color: var(--kumkum); }

/* ───── entry / invitation reveal ───── */
.gate { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--ivory); }
.gate .inner { max-width: 440px; margin: 0 auto; padding: 0 20px 40px; min-height: 100%; display: flex; flex-direction: column; }
.gate .crest { text-align: center; padding-top: 6px; }
.gate .crest .couple { font: 500 40px/1.02 var(--serif); letter-spacing: -.02em; margin: 14px 0 4px; color: var(--kumkum-deep); }
.gate .crest .couple em { display: block; font: italic 400 20px/1.4 var(--serif); color: var(--gold); }
.gate form { margin-top: 22px; display: grid; gap: 14px; }
.side-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.side-pick button { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 14px; }
.side-pick button.on { border-color: var(--kumkum); background: #fdeeea; color: var(--kumkum-deep); }

.reveal { position: fixed; inset: 0; z-index: 70; overflow: hidden; background: #6e130e; perspective: 1400px; }
.reveal .letter { position: absolute; inset: 0; overflow-y: auto; background: var(--ivory); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 22px 40px; }
.reveal .letter .toran { height: 64px; margin: 0 -22px; width: calc(100% + 44px); max-width: none; transform: translateY(-70px); transition: transform .9s cubic-bezier(.2, 1.3, .4, 1) .5s; }
.reveal.open .letter .toran { transform: none; }
.reveal .letter .content { opacity: 0; transform: translateY(16px); transition: all .8s ease .9s; max-width: 380px; margin: auto 0; padding: 20px 0; }
.reveal.open .letter .content { opacity: 1; transform: none; }
.reveal .letter .to { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.reveal .letter .gname { font: 500 34px/1.1 var(--serif); color: var(--kumkum-deep); margin: 10px 0 6px; letter-spacing: -.015em; }
.reveal .letter .lead { font-size: 16px; color: #5a463a; }
.reveal .letter .couple { font: 500 44px/1 var(--serif); margin: 18px 0 4px; letter-spacing: -.02em; }
.reveal .letter .couple em { display: block; font: italic 400 22px/1.5 var(--serif); color: var(--gold); }
.reveal .letter .divider { width: 120px; height: 24px; margin: 14px auto; color: var(--gold); }
.reveal .door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #8e1b15, #b3261e 60%, #9b1f18); transition: transform 1.3s cubic-bezier(.6, .05, .25, 1); z-index: 2; display: flex; align-items: center; box-shadow: inset 0 0 60px rgba(0, 0, 0, .35); }
.reveal .door::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(230, 194, 122, .6); border-radius: 6px; }
.reveal .door::after { content: ""; position: absolute; inset: 28px; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e6c27a' stroke-opacity='.5' stroke-width='1.2'%3E%3Cpath d='M28 6c8 8 8 14 0 22-8-8-8-14 0-22zM28 50c8-8 8-14 0-22-8 8-8 14 0 22zM6 28c8-8 14-8 22 0-8 8-14 8-22 0zM50 28c-8-8-14-8-22 0 8 8 14 8 22 0z'/%3E%3C/g%3E%3C/svg%3E"); }
.reveal .door.l { left: 0; transform-origin: left center; }
.reveal .door.r { right: 0; transform-origin: right center; background: linear-gradient(270deg, #8e1b15, #b3261e 60%, #9b1f18); }
.reveal.open .door.l { transform: rotateY(-100deg); }
.reveal.open .door.r { transform: rotateY(100deg); }
.reveal .seal { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff3d9; width: min(86vw, 340px); transition: opacity .4s, transform .6s; }
.reveal.open .seal { opacity: 0; transform: translate(-50%, -50%) scale(.85); pointer-events: none; }
.reveal .seal .medal { width: 116px; height: 116px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f8dc8e, #d4a23e 55%, #9c6c1c); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 -4px 10px rgba(0, 0, 0, .25); color: #7c1611; font: 600 44px/1 var(--te); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.reveal .seal .for { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.reveal .seal .nm { font: 500 30px/1.15 var(--serif); margin: 8px 0 18px; }
.reveal .seal .btn { min-width: 220px; }
.petal { position: absolute; top: -40px; z-index: 4; width: 14px; height: 18px; border-radius: 80% 0 80% 0; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal .door { display: none; }
  .petal { display: none; }
}
@media print {
  .topbar, .nav, .composer, .no-print { display: none !important; }
  main#view { padding: 0; max-width: none; }
  body { background: #fff; }
  .bless { box-shadow: none; }
}
