/* Mabel & Jérémy — cobalt blue on white, calligraphy + spaced capitals, like the invitations */
:root {
  --blue: #1546a8;
  --blue-deep: #0d347f;
  --blue-soft: #7d9fd6;
  --blue-mist: #e9eff9;
  --ink: #1d2740;
  --muted: #6b7489;
  --line: #dfe4ee;
  --paper: #fbfbfd;
  --card: #ffffff;
  --danger: #b4233c;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zh: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(21, 70, 168, 0.12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--serif); font-size: 18px; line-height: 1.5; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
[hidden] { display: none !important; }

.caps { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.32em; font-size: 11px; font-weight: 500; }
.script { font-family: var(--script); font-weight: 400; color: var(--blue); line-height: 1.1; }
.zh { font-family: var(--zh); letter-spacing: 0.2em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  border-radius: 999px; padding: 12px 22px; min-height: 46px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-deep); box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-mist); }
.btn.small { padding: 8px 14px; min-height: 36px; font-size: 11px; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--blue);
  display: inline-grid; place-items: center; position: relative; flex: none;
}
.icon-btn:hover { background: var(--blue-mist); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font: 600 11px/18px var(--sans); text-align: center;
}

/* ---------- landing ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0d1a33; }
.hero .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease; transform: scale(1.06);
}
.hero .slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,60,.35) 0%, rgba(10,25,60,.05) 35%, rgba(10,25,60,.15) 60%, rgba(251,251,253,1) 100%);
}
.hero-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 16px; }
.hero-text .caps { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-text h1 { font-family: var(--script); font-weight: 400; font-size: clamp(64px, 16vw, 150px); line-height: .95; margin: 14px 0 6px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-text h1 .amp { font-size: .55em; display: block; margin: -.05em 0 -.1em; }
.hero-text .zh { font-size: 15px; margin-top: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--blue); border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-cue svg { animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.topbar-land { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: flex-end; padding: max(12px, env(safe-area-inset-top)) 16px 0; }

.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; font: 600 11px var(--sans); letter-spacing: .15em; }
.lang-switch button { border: 0; background: transparent; padding: 7px 12px; color: inherit; }
.lang-switch button.on { background: #fff; color: var(--blue); }
.topbar-land .lang-switch { color: #fff; }
.light .lang-switch button.on { background: var(--blue); color: #fff; }

.thanks { position: relative; max-width: 680px; margin: 0 auto; padding: 56px 24px 24px; text-align: center; }
.thanks .script { font-size: 68px; margin: 0 0 10px; }
.thanks p { font-size: 21px; color: var(--ink); margin: 0 0 18px; }
.thanks .sign { font-style: italic; color: var(--muted); }
.thanks .sign .script { font-size: 40px; display: block; margin-top: 4px; }
.foliage { position: absolute; width: 260px; opacity: .55; pointer-events: none; }
.foliage.l { left: -70px; top: 10px; transform: rotate(-12deg); }
.foliage.r { right: -80px; bottom: -30px; transform: scaleX(-1) rotate(-10deg); }

.login-card {
  position: relative; max-width: 420px; margin: 24px auto 0; background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow); padding: 30px 22px 26px; text-align: center; z-index: 2; margin-inline: 16px;
}
@media (min-width: 460px) { .login-card { margin-inline: auto; } }
.login-card .corner { position: absolute; width: 92px; right: -14px; top: -40px; pointer-events: none; }
.login-card h2 { font-family: var(--script); font-weight: 400; color: var(--blue); font-size: 50px; margin: 0; }
.login-card p { color: var(--muted); font-size: 17px; margin: 4px 0 18px; }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; margin: 0 0 6px 4px; color: var(--muted); }
.input, select.input {
  width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #fff; font-family: var(--serif); font-size: 19px; outline: none; transition: border .2s, box-shadow .2s;
  appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%231546a8' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px var(--blue-mist); }
.form-error { color: var(--danger); min-height: 1.5em; font-size: 16px; }
.florals-bottom { width: 100%; max-width: 1100px; margin: 30px auto 0; opacity: .9; pointer-events: none; }

/* ---------- app shell ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30; background: rgba(251,251,253,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top);
}
.appbar-row { display: flex; align-items: center; gap: 4px; padding: 6px 10px; max-width: 1400px; margin: 0 auto; }
.brand { font-family: var(--script); color: var(--blue); font-size: 34px; line-height: 1; padding: 4px 6px; flex: 1; white-space: nowrap; background: none; border: 0; text-align: left; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--blue-mist); color: var(--blue); display: grid; place-items: center; font: 600 13px var(--sans); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }

.tabs { display: flex; gap: 4px; padding: 0 12px; max-width: 1400px; margin: 0 auto; }
.tab { flex: 1; max-width: 220px; border: 0; background: none; padding: 10px 6px 12px; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.tab.on { color: var(--blue); border-bottom-color: var(--blue); }

.filters { position: sticky; z-index: 20; background: var(--paper); padding: 10px 0 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; max-width: 1400px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 6px 13px; min-height: 36px; font-size: 16px; white-space: nowrap; color: var(--ink);
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip .avatar { width: 24px; height: 24px; margin-left: -7px; font-size: 10px; }
.chip .x { opacity: .7; margin-left: 2px; }
.chip.pchip { padding-left: 10px; }
.chip svg { width: 16px; height: 16px; }

.toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); flex: 1; font-size: 16px; }

.banner {
  margin: 4px 12px 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-mist); color: var(--blue-deep);
  display: flex; align-items: center; gap: 12px; max-width: 1376px;
}
@media (min-width: 1400px) { .banner { margin-inline: auto; } }
.banner .grow { flex: 1; }

/* ---------- gallery ---------- */
.gallery { max-width: 1400px; margin: 0 auto; padding: 0 6px 120px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 22px 8px 10px; }
.section-head h3 { margin: 0; font-family: var(--script); font-weight: 400; color: var(--blue); font-size: 38px; line-height: 1; }
.section-head span { color: var(--muted); font-size: 15px; }
.jrow { display: flex; gap: 4px; margin-bottom: 4px; }
.tile { position: relative; overflow: hidden; background: var(--blue-mist); border-radius: 3px; cursor: pointer; content-visibility: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .4s; }
.tile img.ld { opacity: 1; }
.tile:hover img { transform: scale(1.03); }
.tile .heart { position: absolute; right: 6px; bottom: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); width: 18px; height: 18px; }
.tile .ccount { position: absolute; left: 6px; bottom: 5px; color: #fff; font: 600 11px var(--sans); text-shadow: 0 1px 3px rgba(0,0,0,.6); display: flex; gap: 3px; align-items: center; }
.tile .ccount svg { width: 14px; height: 14px; }
.tile .uploader { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.tile .check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.2); display: none; }
.selecting .tile .check { display: block; }
.tile.sel .check { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat; }
.tile.sel img { transform: scale(.9); border-radius: 6px; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty img { width: 160px; margin: 0 auto 10px; opacity: .7; }

.selectbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; box-shadow: 0 -6px 30px rgba(0,0,0,.08);
  padding: 10px 14px calc(10px + var(--safe-b)); display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.selectbar .count { flex: 1; font-size: 17px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: #0b0f19; color: #fff; display: flex; flex-direction: column; touch-action: none; }
.lb-top, .lb-bottom { display: flex; align-items: center; gap: 4px; padding: 8px 8px; z-index: 2; }
.lb-top { padding-top: max(8px, env(safe-area-inset-top)); }
.lb-bottom { padding-bottom: calc(8px + var(--safe-b)); justify-content: space-around; }
.lb .icon-btn { color: #fff; }
.lb .icon-btn:hover { background: rgba(255,255,255,.12); }
.lb .icon-btn.on { color: #ff6b8a; }
.lb-count { flex: 1; text-align: center; font: 500 12px var(--sans); letter-spacing: .15em; opacity: .8; }
.lb-stage { flex: 1; position: relative; overflow: hidden; }
.lb-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; position: relative; }
.lb-imgwrap { position: relative; max-width: 100%; max-height: 100%; }
.lb-imgwrap img { max-width: 100vw; max-height: calc(100svh - 130px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.facebox { position: absolute; border: 2px solid rgba(255,255,255,.9); border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.facebox span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; background: rgba(255,255,255,.95); color: var(--blue-deep); white-space: nowrap; padding: 2px 8px; border-radius: 6px; font: 600 11px var(--sans); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.1) !important; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
@media (hover: none) { .lb-nav { display: none !important; } }
.lb-people { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; }
.lb-people .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; font-size: 15px; min-height: 32px; }
.lb-caption { text-align: center; padding: 0 16px 4px; opacity: .85; font-style: italic; }
.lb-btn-label { font: 600 10px var(--sans); position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); opacity: .8; }

/* ---------- sheets / drawers / modals ---------- */
.scrim { position: fixed; inset: 0; z-index: 150; background: rgba(13,26,51,.45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 151; left: 0; right: 0; bottom: 0; max-height: 88svh; background: var(--paper); color: var(--ink);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1);
  padding-bottom: var(--safe-b);
}
@keyframes up { from { transform: translateY(100%); } }
@media (min-width: 760px) {
  .sheet { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 560px; border-radius: 22px; max-height: 84vh; animation: pop .22s; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
  .sheet.right { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: 420px; max-height: none; border-radius: 22px 0 0 22px; animation: slideL .25s; }
  @keyframes slideL { from { transform: translateX(100%); } }
}
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { flex: 1; margin: 0; font-family: var(--script); font-weight: 400; color: var(--blue); font-size: 34px; line-height: 1.1; }
.sheet-body { overflow-y: auto; padding: 14px 16px 20px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; }
.grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
@media (min-width: 760px) { .grabber { display: none; } }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; }
.person { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px; border-radius: 12px; font-size: 15px; line-height: 1.15; text-align: center; }
.person .avatar { width: 62px; height: 62px; font-size: 20px; border: 3px solid transparent; transition: border .15s; }
.person.on .avatar { border-color: var(--blue); }
.person.on { color: var(--blue); font-weight: 600; }
.person small { color: var(--muted); font-size: 12px; }
.group-label { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); }

.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment .body { flex: 1; background: #fff; border-radius: 14px; padding: 8px 12px; border: 1px solid var(--line); }
.comment .who { font-weight: 600; color: var(--blue-deep); font-size: 16px; }
.comment .when { color: var(--muted); font-size: 13px; margin-left: 6px; font-weight: 400; }
.comment .text { white-space: pre-wrap; word-break: break-word; font-size: 17px; }
.comment .mention { color: var(--blue); font-weight: 600; }
.comment .del { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; margin-left: 6px; }
.comment-input { flex: 1; resize: none; max-height: 120px; min-height: 46px; }
.mention-pop { position: absolute; bottom: 100%; left: 12px; right: 12px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; }
.mention-pop button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 12px; text-align: left; font-size: 17px; }
.mention-pop button:hover, .mention-pop button.hl { background: var(--blue-mist); }

.notif { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 12px; width: 100%; border: 0; background: none; text-align: left; font-size: 16px; }
.notif:hover { background: var(--blue-mist); }
.notif.unread { background: #f1f5fd; }
.notif .txt { flex: 1; }
.notif .txt q { display: block; color: var(--muted); font-style: italic; quotes: "« " " »"; }
.notif .txt small { color: var(--muted); font-size: 13px; }
.notif .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--blue-mist); }

.menu { position: fixed; z-index: 160; right: 10px; top: calc(56px + env(safe-area-inset-top)); background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 8px; min-width: 240px; animation: fade .15s; }
.menu .who { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu button.item { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: none; padding: 10px; border-radius: 10px; font-size: 17px; text-align: left; }
.menu button.item:hover { background: var(--blue-mist); }
.menu .item svg { width: 20px; height: 20px; color: var(--blue); }
.menu .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }

.avatar-pick { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 10px 0 6px; }
.avatar-pick button { border: 3px solid transparent; padding: 0; border-radius: 50%; width: 92px; height: 92px; overflow: hidden; background: var(--blue-mist); transition: transform .15s, border .15s; }
.avatar-pick button:hover { transform: scale(1.05); border-color: var(--blue-soft); }
.avatar-pick button.on { border-color: var(--blue); }
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }

.upload-hero { text-align: center; padding: 26px 18px 10px; max-width: 560px; margin: 0 auto; position: relative; }
.upload-hero h2 { font-family: var(--script); font-weight: 400; font-size: 48px; color: var(--blue); margin: 0; }
.upload-hero p { color: var(--muted); margin: 6px 0 16px; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: var(--blue); width: 0; transition: width .3s; }
.upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 12px 0; }
.upload-list .u { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--blue-mist); }
.upload-list .u img { width: 100%; height: 100%; object-fit: cover; }
.upload-list .u .st { position: absolute; left: 4px; bottom: 4px; right: 4px; background: rgba(255,255,255,.92); border-radius: 6px; font: 600 9px var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 3px; text-align: center; color: var(--blue-deep); }
.thank-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; text-align: center; margin: 14px auto; max-width: 520px; }
.thank-card h3 { font-family: var(--script); font-weight: 400; color: var(--blue); font-size: 40px; margin: 0 0 6px; }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 16px; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* music */
.music-btn {
  position: fixed; left: 14px; bottom: calc(14px + var(--safe-b)); z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--blue); box-shadow: var(--shadow); display: grid; place-items: center;
}
.music-btn .bars { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.music-btn .bars i { width: 3px; background: var(--blue); border-radius: 2px; height: 30%; }
.music-btn.playing .bars i { animation: eq 1s infinite ease-in-out; }
.music-btn.playing .bars i:nth-child(2) { animation-delay: -.3s; } .music-btn.playing .bars i:nth-child(3) { animation-delay: -.6s; } .music-btn.playing .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.music-btn .muted-icon { display: none; }
.music-btn:not(.playing) .bars { display: none; }
.music-btn:not(.playing) .muted-icon { display: block; }
.selecting ~ .music-btn, body.lb-open .music-btn { bottom: calc(80px + var(--safe-b)); }
body.lb-open .music-btn { display: none; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--blue-mist); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }
.center { text-align: center; }
.stack > * + * { margin-top: 10px; }

@media (min-width: 760px) {
  .section-head h3 { font-size: 46px; }
  .gallery { padding-inline: 14px; }
  .jrow { gap: 6px; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
