:root {
  --bg: #1b130c;
  --ink: #fbf4e6;
  --ink-2: #d9ccb4;
  --ink-3: #a8987c;
  --gold: #e8c47e;
  --gold-2: #c99a4b;
  --glass: rgba(30, 21, 13, 0.72);
  --glass-2: rgba(255, 244, 224, 0.07);
  --line: rgba(232, 196, 126, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif", "Apple SD Gothic Neo", "Hiragino Mincho ProN", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 35%, rgba(70, 45, 20, 0.55), rgba(12, 8, 4, 0.92) 70%);
  backdrop-filter: blur(3px);
  transition: opacity .9s ease, visibility .9s;
}
.intro.leaving { opacity: 0; visibility: hidden; }
.intro-card { text-align: center; max-width: 520px; width: 100%; }
.intro-cross {
  width: 54px; height: 82px; margin: 0 auto 22px; position: relative;
  filter: drop-shadow(0 0 18px rgba(255, 214, 140, .8));
}
.intro-cross::before, .intro-cross::after { content: ""; position: absolute; background: linear-gradient(#fff3d6, var(--gold)); border-radius: 2px; }
.intro-cross::before { left: 50%; top: 0; width: 10px; height: 100%; transform: translateX(-50%); }
.intro-cross::after { top: 22%; left: 0; width: 100%; height: 10px; }
.intro-title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6vw, 46px); letter-spacing: .06em; margin: 0 0 10px; color: #fff7e6; text-shadow: 0 2px 24px rgba(232, 196, 126, .35); }
.intro-tagline { font-family: var(--serif); color: var(--ink-2); font-size: 17px; margin: 0 0 28px; letter-spacing: .04em; }
.intro-lang select {
  appearance: none; background: var(--glass-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 36px 9px 18px; margin-bottom: 18px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.intro-lang select option { background: #2a1d12; }
.intro-hint { color: var(--ink-3); font-size: 13px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--glass-2); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .2s, transform .15s, border-color .2s; }
.btn:hover { background: rgba(255, 244, 224, .14); border-color: rgba(232, 196, 126, .5); }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, #f0d08f, #c99a4b); color: #2a1a08; border-color: transparent; font-weight: 600; box-shadow: 0 6px 24px rgba(201, 154, 75, .35); }
.btn-primary:hover { background: linear-gradient(180deg, #f6dba4, #d4a656); }
.btn-lg { padding: 13px 40px; font-size: 17px; letter-spacing: .08em; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); cursor: pointer; display: grid; place-items: center; font-size: 15px; backdrop-filter: blur(10px); }
.icon-btn:hover { border-color: rgba(232, 196, 126, .5); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; letter-spacing: .05em; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 14px; height: 20px; flex: none; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--gold); }
.brand-mark::before { left: 5px; top: 0; width: 4px; height: 20px; }
.brand-mark::after { left: 0; top: 5px; width: 14px; height: 4px; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; backdrop-filter: blur(10px); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 8px #7fd18b; }
.badge.offline .dot { background: var(--ink-3); box-shadow: none; }
.badge-gold { color: #2a1a08; background: linear-gradient(180deg, #f0d08f, #c99a4b); border-color: transparent; font-variant-numeric: tabular-nums; font-weight: 600; cursor: pointer; }

/* ---------- Dock ---------- */
.dock { position: fixed; z-index: 20; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; padding: 8px 8px 6px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; color: var(--ink-2); font-size: 11.5px; transition: background .2s, color .2s; }
.dock button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock button:hover { background: var(--glass-2); color: var(--ink); }
.dock button.active { background: rgba(232, 196, 126, .16); color: var(--gold); }

/* ---------- Panel ---------- */
.panel { position: fixed; z-index: 30; top: 70px; right: 16px; bottom: 96px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; border-radius: var(--radius); background: rgba(28, 20, 12, 0.86); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); animation: panelIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateX(16px); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .05em; color: #fff3d9; }
.panel-body { overflow-y: auto; padding: 14px 20px 22px; line-height: 1.75; font-size: 15px; color: var(--ink-2); }
.panel-body h3 { font-family: var(--serif); color: var(--ink); font-size: 16px; margin: 18px 0 8px; font-weight: 600; letter-spacing: .03em; }
.panel-body h3:first-child { margin-top: 4px; }
.panel-body p { margin: 0 0 10px; }
.panel-body blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--gold-2); background: var(--glass-2); border-radius: 0 10px 10px 0; font-family: var(--serif); color: var(--ink); }
.panel-body strong { color: var(--ink); }
.muted { color: var(--ink-3); font-size: 13px; }

.list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid transparent; transition: border-color .2s; }
.list-item:hover { border-color: var(--line); }
.list-item.playing { border-color: var(--gold-2); background: rgba(232, 196, 126, .1); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { color: var(--ink); font-size: 15px; }
.list-item .sub { color: var(--ink-3); font-size: 12.5px; }
a.list-item { color: inherit; text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.chip.active { background: rgba(232, 196, 126, .18); color: var(--gold); border-color: var(--gold-2); }

.verses { font-family: var(--serif); color: var(--ink); font-size: 16.5px; line-height: 1.95; }
.verses p { margin: 0 0 6px; }
.verses sup { color: var(--gold-2); font-family: var(--sans); font-size: 10.5px; margin-right: 4px; }
.explain { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); }
.explain-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

/* Prayer */
.timer { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 54px; text-align: center; color: #fff3d9; letter-spacing: .05em; margin: 6px 0 2px; text-shadow: 0 0 30px rgba(232, 196, 126, .35); }
.timer-label { text-align: center; color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
.stat { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--glass-2); }
.stat b { display: block; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); }
details.guide { border-radius: 12px; background: var(--glass-2); padding: 0 14px; margin-bottom: 8px; }
details.guide summary { cursor: pointer; padding: 11px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
details.guide summary::after { content: "+"; color: var(--gold); }
details.guide[open] summary::after { content: "−"; }
details.guide div { padding-bottom: 12px; white-space: pre-line; }

/* Offering */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.qr-card { text-align: center; padding: 12px; border-radius: 14px; background: #fffaf0; color: #3a2a14; }
.qr-card img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto 8px; }
.qr-card span { font-size: 14px; font-weight: 600; }

/* Knowledge */
.kcards { display: flex; flex-direction: column; gap: 8px; }
.kcard { border-radius: 14px; background: var(--glass-2); border: 1px solid transparent; }
.kcard[open] { border-color: var(--line); }
.kcard summary { cursor: pointer; list-style: none; padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 16px; }
.kcard summary .kicon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(232, 196, 126, .14); font-size: 16px; }
.kcard .kbody { padding: 0 16px 14px; }

/* Settings */
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 14px; }
.slider-row label { color: var(--ink); font-size: 14px; }
.slider-row output { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.slider-row input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold-2); }
.select { width: 100%; padding: 9px 12px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line); }
.select option { background: #2a1d12; }

/* Help + toasts */
.help { position: fixed; z-index: 15; left: 16px; bottom: max(14px, env(safe-area-inset-bottom)); max-width: 260px; padding: 10px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); line-height: 1.6; backdrop-filter: blur(10px); cursor: pointer; }
.help b { color: var(--ink); font-weight: 600; }
.toasts { position: fixed; z-index: 60; top: 72px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: calc(100vw - 32px); }
.toast { padding: 10px 18px; border-radius: 999px; background: rgba(28, 20, 12, .92); border: 1px solid var(--line); color: var(--ink); font-size: 14px; box-shadow: var(--shadow); animation: toastIn .4s ease, toastOut .5s ease 3.2s forwards; text-align: center; max-width: 100%; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 900px) { .help { display: none; } }
@media (max-width: 640px) {
  .panel { top: auto; right: 8px; left: 8px; width: auto; bottom: 88px; max-height: 64vh; }
  .brand { font-size: 15px; }
  .dock button { min-width: 54px; font-size: 10.5px; }
  .timer { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition: none !important; } }

/* ---------- Candle ritual ---------- */
.candle-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8, 5, 3, 0); transition: background .4s ease; }
.candle-overlay.open { background: rgba(8, 5, 3, 0.72); }
.candle-card { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; border-radius: 22px; background: rgba(24, 16, 10, 0.94); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .4s ease, transform .4s ease; }
.candle-overlay.open .candle-card { opacity: 1; transform: none; }
.candle-head { display: flex; align-items: center; justify-content: space-between; }
.candle-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .05em; color: #fff3d9; }
.candle-canvas { width: 100%; height: min(56vh, 440px); border-radius: 16px; touch-action: none; display: block; }
.candle-hint { margin: 0; text-align: center; font-family: var(--serif); color: var(--ink); font-size: 15.5px; min-height: 1.6em; }
.candle-after { display: flex; flex-direction: column; gap: 10px; }
.candle-after textarea { width: 100%; resize: none; padding: 10px 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); line-height: 1.6; }
.candle-quick { align-self: center; color: var(--ink-3); }

/* ---------- Bible reader ---------- */
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.seg button.active { background: linear-gradient(180deg, #f0d08f, #c99a4b); color: #2a1a08; font-weight: 600; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.book-btn { padding: 8px 6px; border-radius: 10px; border: 1px solid transparent; background: var(--glass-2); cursor: pointer; font-size: 13px; color: var(--ink); line-height: 1.3; }
.book-btn:hover, .ch-btn:hover { border-color: var(--line); }
.book-btn.active { border-color: var(--gold-2); color: var(--gold); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.ch-btn { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--glass-2); cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; }
.bible-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bible-nav h3 { margin: 0 !important; }
.bible-pager { display: flex; justify-content: space-between; margin: 16px 0 8px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.name-row { display: flex; gap: 8px; margin-bottom: 6px; }
.name-row input { flex: 1; min-width: 0; }

/* ---------- Fellowship / chat / communion ---------- */
.dock button { position: relative; }
.dot-badge { position: absolute; top: 4px; right: 10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e0574f; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(30, 21, 13, .9); }
.dot-badge.static { position: static; box-shadow: none; }
.dock button.glow { color: var(--gold); }
.dock button.glow::after { content: ""; position: absolute; top: 6px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.food-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 14px; border: 1px solid transparent; background: var(--glass-2); cursor: pointer; font-size: 13px; color: var(--ink); transition: transform .15s, border-color .2s; }
.food-card:hover { border-color: var(--line); transform: translateY(-2px); }
.food-card.active { border-color: var(--gold-2); background: rgba(232, 196, 126, .12); }
.food-icon { font-size: 30px; line-height: 1; }
.holding-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 14px; background: rgba(232, 196, 126, .12); border: 1px solid var(--gold-2); color: var(--ink); flex-wrap: wrap; }
.holding-icon { font-size: 28px; }
.list-item.clickable { cursor: pointer; }
.avatar-dot { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 196, 126, .2); color: var(--gold); font-weight: 700; }
.center-text { text-align: center; }
.chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.chat-name { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { display: flex; flex-direction: column; gap: 8px; height: min(42vh, 360px); overflow-y: auto; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.msg { max-width: 80%; display: flex; flex-direction: column; gap: 2px; }
.msg span { padding: 8px 12px; border-radius: 16px; line-height: 1.5; word-break: break-word; }
.msg time { font-size: 10.5px; color: var(--ink-3); padding: 0 6px; }
.msg.them { align-self: flex-start; }
.msg.them span { background: rgba(255, 244, 224, .12); color: var(--ink); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me span { background: linear-gradient(180deg, #f0d08f, #c99a4b); color: #2a1a08; border-bottom-right-radius: 5px; }
.msg.big span { background: none !important; font-size: 40px; padding: 0 4px; line-height: 1.1; }
.sticker-row { display: flex; gap: 2px; margin: 8px 0 6px; overflow-x: auto; scrollbar-width: none; }
.sticker-row button, .emoji-grid button { border: 0; background: transparent; font-size: 24px; padding: 4px 6px; border-radius: 10px; cursor: pointer; flex: none; }
.sticker-row button:hover, .emoji-grid button:hover { background: var(--glass-2); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); margin-bottom: 6px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.emoji-grid button { font-size: 22px; }
.chat-form { display: flex; gap: 6px; align-items: center; }
.chat-form input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.stepper li { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); padding-top: 26px; position: relative; counter-increment: s; }
.stepper li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); font-size: 12px; }
.stepper li.cur { color: var(--gold); }
.stepper li.cur::before { background: linear-gradient(180deg, #f0d08f, #c99a4b); color: #2a1a08; border-color: transparent; }
.stepper li.done::before { content: "✓"; color: var(--gold); }
@media (max-width: 640px) { .food-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .food-icon { font-size: 26px; } }
@media (max-width: 640px) { .chat-log { height: 26vh; } .sticker-row button { font-size: 21px; } }
.msg-from { font-size: 11.5px; font-weight: 600; color: var(--gold); padding: 0 6px; }

/* ---------- Accounts / look editor ---------- */
.intro { overflow-y: auto; }
.intro-card { padding: 16px 0; }
.auth-box { margin: 0 auto 16px; max-width: 360px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 16px; border-radius: 18px; background: rgba(28, 20, 12, .72); border: 1px solid var(--line); }
.auth-title { margin: 0 0 2px; text-align: center; font-family: var(--serif); color: var(--ink); font-size: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.auth-form input { padding: 10px 12px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line); font-size: 15px; }
.auth-form .btn-lg { width: 100%; margin-top: 4px; }
.auth-error { min-height: 1.2em; margin: 0; color: #f0a39a; font-size: 13px; }
.auth-privacy { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.auth-welcome { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.auth-sub { font-size: 13px; color: var(--ink-3); margin: 0; }
.link-btn { background: none; border: 0; padding: 2px 0; color: var(--gold); cursor: pointer; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.muted { color: var(--ink-3); }
.gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender-btn { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); cursor: pointer; font-size: 15px; }
.gender-btn.active { border-color: var(--gold-2); background: rgba(232, 196, 126, .16); color: var(--gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.swatch.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 196, 126, .35); }
.look-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.look-actions .btn-primary { margin-left: auto; }
/* real QR codes: large enough to scan from another phone */
.qr-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.qr-card img { max-width: 260px; }
.qr-card img.pixelated { image-rendering: pixelated; }
.qr-card small { display: block; margin-top: 4px; font-size: 12.5px; color: #6a5534; line-height: 1.5; }
.qr-save { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: #3a2a14; color: #fff3d9; font-size: 12.5px; text-decoration: none; }
.qr-card > span { display: block; }

/* ---------- About our church ---------- */
.about-welcome { font-family: var(--serif); color: var(--ink); font-size: 16px; }
.about-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.about-links a { text-decoration: none; }
.panel-body a { color: var(--gold); }
.panel-body a.btn-primary { color: #2a1a08; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 8px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; font-size: 17px; font-weight: 600; background: radial-gradient(circle at 50% 45%, rgba(232, 60, 60, .9) 0 34px, transparent 35px), linear-gradient(160deg, #2a1d12, #0c0805); padding-top: 110px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.panel-body ul { padding-left: 18px; }
.panel-body .contact-list { padding-left: 0; }
