/* OurLittleWishlist v26. Colors come from CSS variables set by themes.js. */
:root {
  --bg: #f7f5f2; --sheet: #f7f5f2; --surface: #fff; --surface2: #eeeae4; --text: #24201c; --muted: #675f56;
  --accent: #6f4bb0; --on-accent: #fff; --accent-ink: #6f4bb0; --hero: #6f4bb0; --on-hero: #fff; --border: rgba(36,32,28,.1);
  --tile0: #ece6f7; --tile1: #f6e7dd; --tile2: #e3efe8; --tile3: #e5ecf6; --tile-ink: #3a3340;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --body: Figtree, 'Segoe UI', system-ui, sans-serif;
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root.is-dark { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--body); color: var(--text); background: var(--bg); background-attachment: fixed; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: color .3s; }
body.fade { background-size: 300% 300%; animation: olwFade 28s ease-in-out infinite; }
@keyframes olwFade { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
a { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
h2 { font-size: 21px; }
h3 { font-size: 23px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; align-self: center; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boot { display: grid; place-items: center; min-height: 100vh; }
.brand { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.brand.big { font-size: 30px; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); }
.label.accent { color: var(--accent-ink); }
.pad-top { padding-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---- layout ---- */
.app { min-height: 100vh; position: relative; }
.main { position: relative; z-index: 2; padding: 0 0 calc(96px + var(--safe-b)); }
.page { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 22px; max-width: 1080px; margin: 0 auto; }
.page.narrow { max-width: 640px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.page-title { font-size: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.desktop-only { display: none !important; }

/* ---- nav: bottom tabs on phones ---- */
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(8px + var(--safe-b)); background: var(--sheet); border-top: 1px solid var(--border); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; }
.nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tab-pill { width: 48px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s; }
.tab.on { color: var(--text); }
.tab.on .tab-pill { background: var(--surface2); }
.in-chat .nav { display: none; }
.in-chat .main { padding-bottom: 0; }

/* ---- buttons ---- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 25px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.danger { color: #b3261e; }
:root.is-dark .btn.danger { color: #ffb4ab; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; padding: 0; text-decoration: none; flex-shrink: 0; }
.icon-btn .avatar { border: 0; }
.link-btn { background: none; border: 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0; text-align: left; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; border: 0; font-weight: 600; font-size: 14px; }
.on-hero { background: rgba(255,255,255,.18); color: var(--on-hero); border: 0; }
.row-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; }
.row-btn.soft { background: var(--surface2); border-color: transparent; }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, legend { font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); padding: 11px 14px; font-size: 16px; }
textarea { resize: vertical; }
input.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); }
.error { padding: 10px 14px; border-radius: var(--r-sm); background: rgba(179,38,30,.1); color: #8c1d18; font-size: 14px; }
:root.is-dark .error { color: #ffb4ab; background: rgba(255,180,171,.12); }
.okmsg { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { width: 100%; margin-bottom: 8px; padding: 0; }
.choice { flex: 1; min-height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13.5px; }
.choice.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.checks { flex-direction: column; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface2); border-radius: 22px; padding: 4px; }
.seg button { min-height: 40px; border: 0; border-radius: 18px; background: none; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); text-align: left; margin-top: 14px; }
.t-label { display: block; font-weight: 600; }
.t-sub { display: block; font-size: 12.5px; color: var(--muted); }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--surface2); position: relative; flex-shrink: 0; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s; }
.switch.on { background: var(--accent); }
.switch.on span { left: 21px; }

/* ---- shared bits ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.empty { align-items: flex-start; }
.empty p { margin: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface2); font-size: 14px; }
.note svg { flex-shrink: 0; margin-top: 1px; }
.chip { align-self: flex-start; font-size: 13px; padding: 7px 12px; border-radius: 12px; background: var(--surface2); }
.pill { padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--surface2); white-space: nowrap; }
.pill.hot { background: var(--accent); color: var(--on-accent); }
.avatar { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex-shrink: 0; object-fit: cover; }
.tile0 { background: var(--tile0); color: var(--tile-ink); } .tile1 { background: var(--tile1); color: var(--tile-ink); }
.tile2 { background: var(--tile2); color: var(--tile-ink); } .tile3 { background: var(--tile3); color: var(--tile-ink); }

/* ---- home ---- */
.hello { display: flex; flex-direction: column; gap: 10px; }
.hello h1 { font-size: clamp(34px, 9vw, 54px); max-width: 15ch; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent-ink); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile-btn { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 128px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; text-align: left; }
.tile-btn strong { display: block; font-size: 16px; }
.tile-btn span { font-size: 13px; color: var(--muted); }
.tile-btn.accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tile-btn.accent span { color: inherit; opacity: .85; }
.bday-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: var(--muted); }
.count { display: flex; align-items: baseline; gap: 8px; padding-top: 2px; }
.count .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--accent-ink); }
.bar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bday-row { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--text); text-decoration: none; }
.bday-empty { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.group-list { display: flex; flex-direction: column; gap: 12px; }
.group-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.group-row strong { font-size: 16px; }
.group-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.chat-row .group-badge { width: 42px; height: 42px; border-radius: 21px; }
.faces { display: flex; }
.faces .avatar { margin-left: -8px; border: 2px solid var(--surface); }

/* ---- group ---- */
.group { padding: 0; gap: 0; }
.hero { background: var(--hero); color: var(--on-hero); padding: max(16px, env(safe-area-inset-top)) 20px 26px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: clamp(30px, 8vw, 44px); padding-top: 18px; }
.hero-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero-actions { display: flex; gap: 8px; }
.hero-sub { opacity: .88; font-size: 14px; }
.members { display: flex; gap: 14px; overflow-x: auto; padding: 18px 20px 8px; scrollbar-width: none; }
.members::-webkit-scrollbar { display: none; }
.member { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; min-width: 62px; padding: 4px 0; color: var(--muted); }
.member .avatar { transition: box-shadow .2s; }
.member.on { color: var(--text); }
.member.on .avatar { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--accent); }
.m-name { font-size: 12.5px; font-weight: 600; }
.m-bday { font-size: 11px; font-weight: 700; color: var(--accent-ink); margin-top: -4px; }
.list-area { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gift-grid.dim { opacity: .7; }
.gift { display: flex; flex-direction: column; padding: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: left; }
.gift-img { position: relative; }
.thumb { width: 100%; height: 132px; display: grid; place-items: center; }
img.thumb { object-fit: contain; background: #fff; }
.thumb.big { height: 210px; border-radius: var(--r-lg); }
.gift-body { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 2px; }
.gift-body strong { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: rgba(20,16,24,.72); color: #fff; }
.badge.mine { background: var(--accent); color: var(--on-accent); }
.badge.warn { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.detail { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.detail p { margin: 6px 0 0; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding-top: 16px; }
.claimed { min-height: 50px; display: grid; place-items: center; border-radius: 25px; background: var(--surface2); color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; padding: 0 12px; }
.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-row .thumb { width: 96px; height: 96px; border-radius: var(--r-md); }
.loading-row { display: flex; gap: 14px; align-items: center; }
.sk { height: 14px; border-radius: 7px; background: var(--surface2); animation: pulse 1.2s ease-in-out infinite; }
.sk.short { width: 60%; }
.sk-img { width: 96px; height: 96px; border-radius: var(--r-md); }
@keyframes pulse { 50% { opacity: .45; } }

/* ---- who's in the chat (always visible) ---- */
.in-chat-box { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.in-chat-title { font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
.people-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.people-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 18px; background: var(--surface2); font-weight: 700; font-size: 13.5px; }
.people-chips li.not { background: none; border: 1px dashed var(--border); opacity: .8; }
.people-chips li.not span:nth-child(2) { text-decoration: line-through; }
.not-tag { font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---- photo crop ---- */
.crop-wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.crop { position: relative; width: 280px; height: 280px; overflow: hidden; border-radius: 20px; background: #000; touch-action: none; cursor: grab; user-select: none; }
.crop:active { cursor: grabbing; }
.crop img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.9); pointer-events: none; }
.zoom-row { display: flex; align-items: center; gap: 12px; width: 280px; }
.zoom-row input { min-height: 44px; padding: 0; accent-color: var(--accent); border: 0; background: none; }

/* ---- setup checklist ---- */
.setup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { border-top: 1px solid var(--border); }
.steps li:first-child { border-top: 0; }
.step-link, .steps li.ok { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; background: none; border: 0; padding: 0; color: var(--text); text-decoration: none; text-align: left; font-weight: 600; }
.steps li.ok { color: var(--muted); }
.steps li.ok .step-text { text-decoration: line-through; }
.step-text { flex: 1; }
.step-dot { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.step-dot.ok { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* ---- sizes + photo ---- */
.about { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.empty-about { border-style: dashed; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.size { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface2); text-align: center; }
.size-label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.size-val { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; }
.size-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.size-grid legend { grid-column: 1 / -1; }
.photo-edit { display: flex; align-items: center; gap: 18px; }
.photo-edit .stack { gap: 6px; align-items: flex-start; }
.check.locked { opacity: .75; flex-wrap: wrap; }
.check.locked .muted { width: 100%; padding-left: 32px; margin-top: -8px; font-weight: 500; }

/* ---- priority tiles (no photo) ---- */
.prio { flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.prio-label { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.prio-nice { background: var(--tile2); color: var(--tile-ink); }
.prio-love { background: var(--tile1); color: var(--tile-ink); }
.prio-love .prio-art { fill: currentColor; fill-opacity: .18; }
.prio-dream { background: var(--accent); color: var(--on-accent); }
.prio-dream .prio-art { fill: currentColor; fill-opacity: .22; }
.prio-dream::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; height: 70%; border-radius: 50%; background: rgba(255,255,255,.14); }

/* ---- chats ---- */
.chat-group { display: flex; flex-direction: column; gap: 8px; }
.chat-group h2 { font-size: 17px; color: var(--muted); padding-top: 4px; }
.chat-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: left; color: var(--text); width: 100%; }
.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; }
.chat-head { display: flex; flex-direction: column; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--border); background: var(--sheet); }
.chat-head-row { display: flex; align-items: center; gap: 12px; }
.who-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0 0; min-height: 32px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: left; }
.stackfaces { display: inline-flex; flex-shrink: 0; }
.stackfaces .avatar { margin-left: -6px; border: 2px solid var(--sheet); }
.stackfaces .avatar:first-child { margin-left: 0; }
.secret-bar { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--surface2); font-size: 13px; }
.secret-bar svg { flex-shrink: 0; margin-top: 2px; }
.people-list { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.people-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.people-list li.not { opacity: .65; }
.people-list li.not span:nth-child(2) { text-decoration: line-through; }
.who-line { font-size: 13px; font-weight: 600; color: var(--text); opacity: .85; }
.hidden-from { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; }
.msg.mine { align-items: flex-end; }
.who { font-size: 11.5px; color: var(--muted); padding: 6px 8px 2px; }
.bubble { max-width: min(78%, 480px); padding: 9px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: var(--sheet); border-top: 1px solid var(--border); }
.composer input { border-radius: 24px; }
.send { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex-shrink: 0; }

/* ---- timestamps + gifs ---- */
.day-sep { display: flex; justify-content: center; margin: 14px 0 6px; }
.day-sep span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface2); padding: 4px 12px; border-radius: 12px; }
.stamp { font-size: 11px; color: var(--muted); padding: 3px 8px 6px; }
.gif-msg { display: block; width: min(240px, 70vw); height: auto; min-height: 80px; border-radius: 16px; background: var(--surface2); }
.plus { width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; flex-shrink: 0; padding: 0; }
.gif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 10px; }
.gif-pick { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface2); min-height: 90px; }
.gif-pick img { display: block; width: 100%; height: auto; }
.giphy-credit { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted); padding: 12px 0 2px; }

/* ---- sheets ---- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10,8,14,.45); display: flex; flex-direction: column; justify-content: flex-end; animation: fadeIn .18s ease-out; }
.sheet { background: var(--sheet); color: var(--text); border-radius: 26px 26px 0 0; padding: 14px 20px calc(24px + var(--safe-b)); max-height: 92vh; overflow-y: auto; animation: rise .22s ease-out; display: flex; flex-direction: column; gap: 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.sheet-head h2 { font-size: 22px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
@keyframes fadeIn { from { opacity: 0; } }
.auto-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); text-align: left; width: 100%; }
.auto-card.on, .swatch.on { outline: 3px solid var(--accent); outline-offset: -1px; }
.quad { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; flex-shrink: 0; }
.quad i:nth-child(1) { background: #c8323b; } .quad i:nth-child(2) { background: #7a42a6; } .quad i:nth-child(3) { background: #167482; } .quad i:nth-child(4) { background: #a8481c; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
.swatch { padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); text-align: left; }
.sw-top { height: 56px; display: flex; align-items: flex-end; gap: 5px; padding: 8px; }
.sw-top i { width: 18px; height: 18px; border-radius: 9px; }
.sw-name { display: block; padding: 7px 9px; font-weight: 700; font-size: 13px; }

/* ---- auth ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-card p { margin: 0; }

/* ---- toast ---- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: var(--text); color: var(--sheet); font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 30px rgba(0,0,0,.2); animation: rise .2s ease-out; }

/* ---- seasonal effects ---- */
.reindeer { position: fixed; z-index: 15; left: 0; width: 120px; height: 100px; pointer-events: none; animation-name: trot-ltr; animation-timing-function: linear; animation-fill-mode: forwards; }
.reindeer.rtl { animation-name: trot-rtl; }
.reindeer.rtl svg { transform: scaleX(-1); }
.reindeer svg { animation: bounce .45s ease-in-out infinite; }
@keyframes trot-ltr { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 20px)); } }
@keyframes trot-rtl { from { transform: translateX(calc(100vw + 20px)); } to { transform: translateX(-140px); } }
@keyframes bounce { 50% { translate: 0 -5px; } }
.reindeer .leg { transform-box: fill-box; transform-origin: 50% 0; animation: step .45s ease-in-out infinite alternate; }
.reindeer .back2, .reindeer .front1 { animation-delay: -.45s; }
@keyframes step { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
.snowman-fx { position: fixed; z-index: 15; left: 14px; bottom: calc(60px + var(--safe-b)); width: 72px; height: 99px; pointer-events: none; transform: translateY(115%); transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.snowman-fx.up { transform: translateY(0); }
.snowman-char { opacity: .95; }
.throw-arm { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .25s ease-out; }
.throw-arm.throwing { transform: rotate(-70deg); }
.sb-x { position: absolute; left: 66px; top: 26px; animation: sbx 1.4s linear forwards; }
.sb-y { animation: sby 1.4s forwards; }
.sb-y .ball { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: inset -2px -2px 0 #d6e0ea, 0 0 0 1px rgba(0,0,0,.08); animation: ballgone 1.4s steps(1, end) forwards; }
.sb-y .splat { position: absolute; left: -10px; top: -10px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, transparent 36%), radial-gradient(circle at 15% 30%, #fff 0 12%, transparent 14%), radial-gradient(circle at 85% 25%, #fff 0 12%, transparent 14%), radial-gradient(circle at 70% 85%, #fff 0 12%, transparent 14%), radial-gradient(circle at 20% 80%, #fff 0 10%, transparent 12%); opacity: 0; animation: splat .7s 1.38s ease-out forwards; }
@keyframes sbx { to { transform: translateX(var(--dx)); } }
@keyframes sby { 0% { transform: translateY(0); animation-timing-function: ease-out; } 50% { transform: translateY(calc(var(--peak) * -1)); animation-timing-function: ease-in; } 100% { transform: translateY(var(--drop)); } }
@keyframes ballgone { to { opacity: 0; } }
@keyframes splat { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.ghost { position: fixed; z-index: 1; left: 0; top: 0; width: 84px; height: 96px; pointer-events: none; transition: transform 7s ease-in-out; opacity: .7; }
.ghost-body { width: 100%; height: 100%; transition: transform 1.2s ease-in-out; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.snow i { position: absolute; top: -10px; border-radius: 50%; background: #fff; animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes fall { to { transform: translate3d(18px, 105vh, 0); } }
.art { position: fixed; z-index: 1; right: -36px; bottom: 90px; width: 250px; height: 270px; pointer-events: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: glow 9s ease-in-out infinite; }
.art.pumpkin { stroke: var(--accent); }
.art.snowman { stroke: var(--text); }
@keyframes glow { 0%, 100% { opacity: .05; } 50% { opacity: .17; } }

@media (prefers-reduced-motion: reduce) {
  body.fade, .snow i, .art, .sk, .sheet, .scrim, .toast, .ghost-body, .reindeer svg, .reindeer .leg { animation: none; }
  .reindeer, .sb-x { display: none; }
  .ghost { transition: none; }
  .snow { display: none; }
  .art { opacity: .1; }
}

/* ---- desktop: sidebar + wider grids ---- */
@media (min-width: 900px) {
  .desktop-only { display: flex !important; }
  .mobile-only { display: none !important; }
  .app { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 26px 16px; border-top: 0; border-right: 1px solid var(--border); }
  .nav .brand { padding: 0 12px 22px; font-size: 22px; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 15px; min-height: 46px; padding: 0 6px; border-radius: 14px; }
  .tab-pill { width: 36px; height: 36px; border-radius: 12px; }
  .snowman-fx { left: 262px; bottom: -6px; }
  .home > .setup { grid-column: 1; }
  .tab.on { background: var(--surface2); }
  .tab.on .tab-pill { background: none; }
  .main { padding-bottom: 40px; }
  .page { padding: 34px 40px 0; gap: 26px; }
  .group { padding: 0; }
  .hero { border-radius: 0 0 32px 32px; padding: 26px 40px 34px; }
  .members, .list-area { padding-left: 40px; padding-right: 40px; }
  .home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); align-items: start; column-gap: 36px; }
  .home > .top, .home > .hello, .home > .tiles { grid-column: 1; }
  .home > .bday { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; }
  .home > section:last-child { grid-column: 1 / -1; }
  .home .group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .thumb { height: 170px; }
  .scrim { justify-content: center; align-items: center; padding: 24px; }
  .sheet { width: min(520px, 100%); border-radius: 26px; max-height: 88vh; }
  .sheet.wide { width: min(640px, 100%); }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toast { bottom: 28px; }
  .chat { height: 100vh; }
  .in-chat .nav { display: flex; }
}

/* Signed-out landing page only. Signed-in layouts and effects stay unchanged. */
.landing { position: relative; isolation: isolate; overflow: hidden; display: block; padding: 0 6vw 28px; background: radial-gradient(ellipse at 12% 30%, var(--surface2), transparent 65%), var(--bg); }
.landing-header, .landing-layout, .landing-footer { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.landing-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; }
.landing-header .brand { font-size: 25px; }
.landing-brand-dot { color: var(--accent); }
.landing-season { font-size: 13px; color: var(--muted); }
.landing-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .85fr); gap: clamp(40px, 7vw, 110px); align-items: start; padding: 42px 0 68px; }
.landing-eyebrow, .landing-card-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--accent-ink); }
.landing-eyebrow { margin: 0 0 24px; }
.landing-intro h1 { font-size: clamp(42px, 4.7vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.landing-intro h1 em { color: var(--accent-ink); font-style: normal; }
.landing-lead { max-width: 520px; font-size: 17px; line-height: 1.75; color: var(--muted); margin: 24px 0 20px; }
.landing-promise { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.landing-promise > span { color: var(--accent-ink); font-size: 24px; }
.landing-how { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 26px; }
.landing-how h2 { font-size: 19px; }
.landing-how ol { list-style: none; display: grid; gap: 18px; padding: 0; margin: 24px 0 0; }
.landing-how li { display: flex; gap: 16px; align-items: flex-start; }
.landing-step { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 11px; color: var(--accent-ink); font-size: 11px; font-weight: 700; background: var(--surface); }
.landing-how h3 { font-family: var(--body); font-size: 14px; letter-spacing: 0; line-height: 1.4; }
.landing-how li p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 430px; margin: 4px 0 0; }
.landing-card { width: 100%; padding: 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 80px #00000020; margin-top: 6px; }
.landing-card h2 { font-size: 28px; line-height: 1.15; }
.landing-card > .muted { font-size: 14px; line-height: 1.65; }
.landing-card .seg { width: 100%; }
.landing-card .landing-account-note { font-size: 11px; text-align: center; line-height: 1.6; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--border); }
.landing-footer { color: var(--muted); font-size: 12px; text-align: center; padding-bottom: 12px; }
.landing-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.landing-halloween { background: radial-gradient(ellipse at 10% 30%, #38213c 0, transparent 55%), radial-gradient(ellipse at 90% 90%, #3a251a 0, transparent 50%), #141114; }
.landing-halloween .landing-card { background: #211b23f5; box-shadow: 0 25px 90px #0005; }
.landing-halloween .landing-header { border-bottom: 1px solid var(--border); }
.landing-moon { position: absolute; top: 2%; right: 5%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e2b8, #ac96ba); opacity: .19; box-shadow: 0 0 90px 35px #aa8bbe30; }
.landing-lightning { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, #dcd7ff88, #9a8fca12 70%); opacity: 0; animation: landing-storm 19s linear infinite; }
.landing-bolt { position: absolute; right: 22%; top: 0; width: 85px; height: 230px; color: #d7cdef; opacity: 0; animation: landing-storm 19s linear infinite; }
@keyframes landing-storm { 0%, 37%, 39%, 100% { opacity: 0; } 38% { opacity: .25; } }
.haunted-scene .ghost { opacity: .45; width: 100px; height: 115px; }
.haunted-scene .pumpkin { bottom: 8px; right: 120px; width: 140px; height: 150px; }
.landing-bat { position: absolute; left: -120px; top: 10%; width: 58px; color: #08070c; animation: landing-fly 28s linear infinite; }
.landing-bat svg { width: 100%; fill: currentColor; filter: drop-shadow(0 0 1px #ab8bb155); }
.bat-wing { transform-origin: 50px 24px; animation: landing-flap .55s ease-in-out infinite alternate; }
.bat-wing.right { animation-direction: alternate-reverse; }
.bat-1 { top: 16%; width: 38px; animation-delay: -5s; animation-duration: 32s; }
.bat-2 { top: 7%; width: 48px; animation-delay: -12s; animation-duration: 30s; }
.bat-3 { top: 64%; width: 36px; animation-delay: -19s; animation-duration: 35s; }
.bat-4 { top: 75%; width: 53px; animation-delay: -24s; }
@keyframes landing-fly { 0% { transform: translate(-100px, 20px) rotate(-10deg); } 35% { transform: translate(38vw, -30px) rotate(8deg); } 70% { transform: translate(75vw, 20px) rotate(-8deg); } 100% { transform: translate(calc(100vw + 220px), -40px); } }
@keyframes landing-flap { to { transform: scaleY(.4); } }
.landing-ground { position: absolute; bottom: -42px; left: -5%; width: 110%; height: 100px; background: #0c0b0e; border-radius: 50% 40% 0 0; box-shadow: 0 -25px 65px #1e18214a; }
.landing-arm { position: absolute; bottom: -20px; left: 4%; width: 125px; height: 210px; opacity: .65; transform-origin: 50% 100%; animation: landing-rise 16s ease-in-out infinite; }
.landing-hand { transform-origin: 90px 169px; animation: landing-wave 8s ease-in-out infinite; }
@keyframes landing-rise { 0%, 100% { transform: translateY(38px) rotate(-8deg); } 45%, 65% { transform: translateY(0) rotate(5deg); } }
@keyframes landing-wave { 0%, 60%, 100% { transform: rotate(0); } 72% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } }
@media (max-width: 760px) {
  .landing { padding: 0 22px 28px; }
  .landing-header { padding: 25px 0; }
  .landing-header .brand { font-size: 23px; }
  .landing-season { display: none; }
  .landing-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 30px 0 48px; }
  .landing-intro h1 { font-size: clamp(39px, 9vw, 60px); }
  .landing-lead { font-size: 16px; }
  .landing-card { padding: 25px; grid-row: 2; }
  .landing-moon { width: 100px; height: 100px; right: -20px; }
  .landing-arm { width: 90px; height: 155px; left: -12px; opacity: .4; }
  .haunted-scene .pumpkin { right: -20px; }
  .landing-footer { padding: 0 32px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-scene *, .landing-scene .bat-wing { animation: none !important; transition: none !important; }
  .landing-lightning, .landing-bolt { display: none; }
  .landing-bat { left: auto; right: 16%; top: 7%; }
  .bat-1 { right: 7%; top: 12%; }
  .bat-2, .bat-3, .bat-4 { display: none; }
}

/* Approved logo: the same vector silhouette in every active theme. */
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; text-align: left; }
.brand-mark { display: block; flex-shrink: 0; width: 43px; height: 47px; overflow: visible; }
.brand-wordmark { font-family: var(--display); font-size: 21px; line-height: .96; font-weight: 800; letter-spacing: -.055em; color: var(--text); }
.auth .brand.big .brand-mark { width: 56px; height: 60px; }
.auth .brand.big .brand-wordmark { font-size: 28px; }
.nav .brand .brand-wordmark { font-size: 22px; }
.nav .brand .brand-mark { width: 44px; height: 48px; }
.landing-header .brand .brand-mark { width: 49px; height: 53px; }
.landing-header .brand .brand-wordmark { font-size: 25px; }
.landing-footer > span { display: block; margin-top: 12px; }
.landing-footer > a { color: var(--accent-ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
/* Searchable, keyboard-accessible help; the phone dock stays at five tabs. */
.help-page { max-width: 1040px; padding-bottom: 38px; }
.help-public { padding: 26px 24px 48px; }
.help-public-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.help-heading h1 { font-size: clamp(34px, 5vw, 48px); margin: 14px 0; }
.help-heading p { max-width: 640px; line-height: 1.65; margin: 0; }
.help-heading > .label { letter-spacing: .1em; font-size: 11px; }
.help-quick h2 { font-size: 19px; }
.help-quick-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.help-quick-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 600; font-size: 13px; text-decoration: none; }
.help-quick-links a > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); color: var(--accent-ink); }
.help-find { display: flex; flex-direction: column; gap: 12px; }
.help-find > label { font-family: var(--display); font-weight: 700; font-size: 20px; }
.help-search-row { display: flex; gap: 10px; align-items: center; }
.help-search-row input { min-width: 0; }
.help-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.help-category { border: 1px solid var(--border); border-radius: 24px; background: var(--surface); padding: 10px 14px; min-height: 44px; font-size: 13px; font-weight: 600; }
.help-category.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.help-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.help-results-bar p { margin: 0; }
.help-results-bar > div { display: flex; gap: 18px; }
.help-guides { display: flex; flex-direction: column; gap: 12px; }
.help-guide { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; scroll-margin-top: 24px; }
.help-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; padding: 20px; min-height: 80px; list-style: none; }
.help-guide summary::-webkit-details-marker { display: none; }
.help-guide summary > span:first-child { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.help-guide summary strong { font-size: 16px; line-height: 1.35; }
.help-topic-label { color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.help-chevron { font-size: 25px; color: var(--accent-ink); font-weight: 500; flex-shrink: 0; transition: transform .15s; }
.help-guide[open] .help-chevron { transform: rotate(45deg); }
.help-guide[open] summary { border-bottom: 1px solid var(--border); }
.help-answer { padding: 4px 24px 24px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.help-intro { color: var(--muted); }
.help-answer ol { padding-left: 24px; }
.help-answer li { padding: 5px 0 8px 8px; }
.help-answer li::marker { color: var(--accent-ink); font-weight: 800; }
.help-tips { background: var(--surface2); border-radius: 14px; padding: 16px 18px; margin: 20px 0; font-size: 13px; }
.help-tips p { margin: 8px 0 0; }
.help-permalink { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; }
.help-bottom { border-top: 1px solid var(--border); margin-top: 10px; padding: 28px 0 12px; }
.help-bottom h2 { font-size: 23px; }
.help-bottom p { max-width: 680px; line-height: 1.7; font-size: 14px; }
@media (max-width: 600px) {
  .home .top-actions { gap: 5px; }
  .home .brand-wordmark { font-size: 18px; }
  .home .brand-mark { width: 35px; height: 39px; }
  .help-answer { padding: 4px 16px 18px; }
  .help-guide summary { padding: 17px; }
  .help-search-row { flex-wrap: wrap; }
  .help-search-row input { flex: 1 1 200px; }
}
@media (prefers-reduced-motion: reduce) { .help-chevron { transition: none; } }
/* Group occasions: decorative art never intercepts links or controls. */
.occasion-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 260px; padding-bottom: 38px; }
.group-art { position: absolute; z-index: -1; pointer-events: none; width: 300px; height: 190px; right: 12px; bottom: 0; }
.occasion-hero > .hero-bar { position: relative; z-index: 1; }
.occasion-hero > h1, .occasion-hero > .hero-sub { position: relative; max-width: calc(100% - 245px); overflow-wrap: anywhere; }
.occasion-hero .hero-actions { flex-wrap: wrap; justify-content: flex-end; }
.occasion-hero .on-hero { color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.occasion-hero .group-header-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .2; }
.group-design-preview { position: relative; isolation: isolate; border-radius: 18px; overflow: hidden; min-height: 148px; padding: 24px 18px; }
.group-design-preview .group-art { width: 175px; height: 125px; right: 0; }
.group-design-preview > div { max-width: calc(100% - 125px); position: relative; }
.group-design-preview span { font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.group-design-preview strong { display: block; font-family: var(--display); font-size: 23px; margin: 8px 0; line-height: 1.15; overflow-wrap: anywhere; }
.group-design-preview p { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.group-colors { border: 0; padding: 0; margin: 0; min-width: 0; }
.group-colors legend { margin-bottom: 10px; }
.group-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.group-color-options button { width: 44px; height: 44px; border-radius: 14px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px #0002; }
.group-color-options button[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.group-color-options span { font-size: 22px; }
.group-color-custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.group-color-custom label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.group-color-custom input[type="color"] { width: 52px; min-height: 44px; padding: 4px; cursor: pointer; }
.group-balloons { animation: group-balloon-bob 5s ease-in-out infinite; }
@keyframes group-balloon-bob { 50% { transform: translateY(5px); } }
@media (max-width: 650px) {
  .occasion-hero { min-height: 270px; }
  .occasion-hero > h1, .occasion-hero > .hero-sub { max-width: 100%; padding-right: 30px; }
  .occasion-hero .group-art { width: 220px; height: 142px; right: -18px; bottom: -10px; opacity: .35; }
  .occasion-hero .hero-actions { gap: 6px; }
  .occasion-hero .pill-btn { padding: 0 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .group-balloons { animation: none; } }
