:root {
  --cream: #fbf3e6;
  --cream-a: rgba(251, 243, 230, .93);
  --ink: #3b2416;
  --ink2: #7a5a44;
  --gold: #c8913f;
  --gold-d: #a8742c;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #1a100a; color: var(--ink); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

#backdrop { position: fixed; inset: -40px; background: url(/assets/bg/bg_full.webp) center / cover; filter: blur(28px) brightness(.45); }
#scene { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 1170px; height: 2532px; transform-origin: 0 0; }
#stage img { position: absolute; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
#stage .bg { left: -94px; top: 0; width: 1432px; height: 2532px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 92%, transparent); }
#stage .av { transition: opacity .35s ease; }
#stage .av.enter { opacity: 0; }
#stage .av.mine { filter: drop-shadow(0 0 14px rgba(255, 214, 140, .95)) drop-shadow(0 0 4px rgba(255, 236, 200, .9)); }
#stage .metag { position: absolute; display: none; transform: translateX(-50%); padding: 8px 22px; border-radius: 40px; background: rgba(251, 243, 230, .95); color: #a8742c;
  font: 700 40px/1.2 -apple-system, "Apple SD Gothic Neo", sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.3); pointer-events: none; }
#stage .flame { transition: opacity .4s ease; }
#scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(26, 14, 6, .45), rgba(26, 14, 6, 0) 22%, rgba(26, 14, 6, 0) 70%, rgba(26, 14, 6, .35)); }

#app { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: var(--frame-w, 100vw); pointer-events: none; }
#app > * { pointer-events: auto; }

.top { position: absolute; left: 16px; right: 16px; top: calc(14px + var(--safe-t)); pointer-events: none; }
.top h1 { margin: 0; font-family: "Gowun Batang", serif; font-weight: 700; font-size: 30px; color: #fff7ea; letter-spacing: -.5px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.top .sub { margin: 2px 0 10px; color: #f3e2c8; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--cream-a); font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: auto; max-width: 100%; }
.pill b { color: var(--gold-d); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #e0673c; box-shadow: 0 0 0 4px rgba(224,103,60,.2); flex: none; }
.pill.off .dot { background: #999; box-shadow: none; }

.side { position: absolute; right: 10px; bottom: calc(222px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.sidebtn { position: relative; width: 64px; padding: 9px 2px 7px; border: 0; border-radius: 18px; background: var(--cream-a); box-shadow: 0 4px 14px rgba(0,0,0,.28);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; line-height: 1.2; }
.sidebtn .sic { display: block; width: 32px; height: 32px; }
.sidebtn .sic img { display: block; width: 32px; height: 32px; }
.badge { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: #fff; font-size: 12px; line-height: 22px; font-weight: 700; }

.listen { position: absolute; left: 16px; right: 84px; bottom: calc(222px + var(--safe-b)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: rgba(40, 24, 14, .82); color: #fff3e0; font-size: 13px; line-height: 1.4; }
.listen .lt { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.listen button { flex: none; border: 0; border-radius: 10px; padding: 6px 10px; background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 700; }

.bottom { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; }
.mycard { align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 20px; background: var(--cream-a); box-shadow: 0 4px 14px rgba(0,0,0,.25); max-width: 78%; }
.mycard img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; object-position: 50% 12%; background: #f0dcc0; border: 2px solid var(--gold); }
.mycard b { display: block; font-size: 15px; }
.mycard small { color: var(--ink2); font-size: 12px; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 6px; border-radius: 26px; background: var(--cream-a); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.act { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; }
.act .ic { width: 52px; height: 52px; border-radius: 50%; background: #f2e3cc; display: grid; place-items: center; transition: background .2s, transform .15s; }
.act .ic img { width: 32px; height: 32px; }
.act .lb { font-size: 13px; font-weight: 700; }
.act[aria-pressed="true"] .ic { background: var(--gold); }
.act:active .ic { transform: scale(.94); }

.enter { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; background: rgba(20, 11, 5, .55); padding: 20px; z-index: 20; }
.enterbox { width: min(360px, 100%); padding: 24px 22px 18px; border-radius: 26px; background: var(--cream); text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.enterbox h2 { margin: 0; font-family: "Gowun Batang", serif; font-size: 28px; }
.enterbox .lead { margin: 4px 0 8px; color: var(--ink2); word-break: keep-all; }
.enterbox .now { margin: 0 0 4px; color: var(--gold-d); font-size: 13px; font-weight: 700; min-height: 1em; }
.enterbox .preview { height: 150px; display: block; margin: 0 auto; }
.enterbox .ask { margin: 6px 0 8px; font-size: 14px; font-weight: 600; }
.hairs { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.hairs button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; padding: 3px; background: none; }
.hairs button i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.hairs button[aria-checked="true"] { border-color: var(--gold); }
.go { width: 100%; border: 0; border-radius: 16px; padding: 14px; background: var(--gold); color: #fff; font-size: 17px; font-weight: 700; }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--ink2); }

.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(20, 11, 5, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheetbox { width: min(520px, 100%); max-height: 88vh; overflow: auto; background: var(--cream); border-radius: 24px 24px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); }
.sh { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.x { border: 0; background: #efe0c8; width: 34px; height: 34px; border-radius: 50%; }
.hint { color: var(--ink2); font-size: 12px; margin: 6px 0 10px; }
.hint a { color: var(--gold-d); }
#noteForm textarea { width: 100%; border: 1px solid #e2cfb2; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; resize: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 12px; }
.row button, .row2 button { border: 0; border-radius: 12px; padding: 10px 16px; background: var(--gold); color: #fff; font-weight: 700; }
.err { color: #b4401c; }
#noteList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#noteList li { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid #f0e2cc; }
#noteList p { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
#noteList .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
#noteList .with { border: 1px solid var(--gold); background: #fff8ec; color: var(--gold-d); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; }
#noteList .with[disabled] { background: var(--gold); color: #fff; cursor: default; }
#noteList .rep { border: 0; background: none; color: #a08a78; font-size: 12px; text-decoration: underline; }
#noteList .empty { text-align: center; color: var(--ink2); background: none; border: 0; }
#cardCanvas { width: 100%; max-width: 420px; display: block; margin: 8px auto; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.row2 { display: flex; gap: 8px; justify-content: center; }
.row2 .ghost { background: #efe0c8; color: var(--ink); }

.toast { word-break: keep-all; text-align: center; position: fixed; left: 50%; top: calc(120px + var(--safe-t)); transform: translateX(-50%); z-index: 40; background: rgba(40, 24, 14, .92); color: #fff3e0; padding: 10px 16px; border-radius: 12px; font-size: 14px; width: max-content; max-width: 90vw; box-sizing: border-box; }

/* ---------- 3D 예배당 ---------- */
/* 예배당 안은 3D가 화면 전체(형 10-30): 하단 탭·아래 판 없음. --dock = 화면 아래 안전 여백만 */
body.c3d { --dock: var(--safe-b); }
body.c3d #view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
body.inchapel .tabs { display: none; }
body.c3d #app { width: min(100vw, 560px); }
body.c3d .top { pointer-events: none; }
body.c3d .top > * { pointer-events: auto; }
.back { display: inline-block; margin-bottom: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(40, 24, 14, .55); color: #fff3e0; font-size: 12px; text-decoration: none; }
body.c3d .top h1 { font-size: 22px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.c3d .side { top: calc(118px + var(--safe-t)); bottom: auto; gap: 8px; }
body.c3d .sidebtn { width: 60px; padding: 7px 2px 6px; }
.sidebtn .sic.txt { font-size: 22px; line-height: 32px; text-align: center; color: var(--ink); }
.sidebtn[aria-pressed="true"] { background: var(--gold); color: #fff; }
.sidebtn[aria-pressed="true"] .sic.txt { color: #fff; }
body.c3d .listen { left: 50%; right: auto; transform: translateX(-50%); width: min(336px, calc(100vw - 32px)); box-sizing: border-box; bottom: calc(var(--dock) + 100px); z-index: 2; }
/* 동작 바: 3D 위에 뜬 반투명 둥근 바(디자인봇 action_bar4.svg 336×78, 칸 84) */
.actbar { position: absolute; left: 50%; bottom: calc(var(--dock, 0px) + 14px); transform: translateX(-50%); width: 336px; height: 78px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 39px; background: rgba(20, 16, 14, .42); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: hidden; z-index: 2; }
.actbar button { position: relative; border: 0; background: none; color: rgba(255, 255, 255, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0;
  font: 600 12px/1 "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .15s; }
.actbar button + button::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: rgba(255, 255, 255, .16); }
.actbar img { width: 30px; height: 30px; pointer-events: none; }
.actbar button[aria-pressed="true"] { background: rgba(255, 214, 140, .28); }
.actbar button:disabled { opacity: .45; }
.askcard { position: absolute; left: 50%; bottom: calc(var(--dock, 0px) + 104px); transform: translateX(-50%); width: min(340px, calc(100% - 32px)); z-index: 3; padding: 14px 14px 12px; border-radius: 20px; background: var(--cream); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.askcard p { margin: 0 0 10px; font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; text-align: center; }
.askcard .bar { display: block; height: 3px; border-radius: 2px; background: #eadbc4; overflow: hidden; margin-bottom: 10px; }
.askcard .bar b { display: block; height: 100%; background: var(--gold); transform-origin: left; }
.askcard .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.askcard button { border: 0; border-radius: 14px; padding: 12px; font-weight: 700; font-size: 15px; }
.askcard .no { background: #efe0c8; color: var(--ink); }
.askcard .yes { background: var(--gold); color: #fff; }
.icwho { margin: 8px 0 0; font-size: 16px; font-weight: 700; }
#icSheet .go { margin-top: 6px; }
/* 들어올 때 잠깐 뜨는 안내(옛 «서 있어요» 카드 자리) */
.hint3d { position: absolute; left: 50%; bottom: calc(var(--dock, 0px) + 104px); transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(40, 24, 14, .78); color: #fff3e0; font-size: 13px; line-height: 1.35; word-break: keep-all; pointer-events: none; transition: opacity .4s; }
.hint3d img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #f0dcc0; }
.hint3d.out { opacity: 0; }
@media (min-width: 900px) {
  body.c3d { --dock: 0px; }
  body.c3d #app { width: 100vw; }
  body.c3d .top { left: 24px; right: auto; }
  body.c3d .side { right: 24px; top: 24px; }
  body.c3d .actbar { bottom: 28px; }
  body.c3d .listen, body.c3d .wordpick, body.c3d .hint3d { bottom: 120px; }
  body.c3d .askcard { bottom: 122px; }
}
button.small { padding: 6px 12px; font-size: 12px; border-radius: 10px; border: 0; }
.ghost { background: #efe0c8; color: var(--ink); }
.memform { display: flex; flex-direction: column; gap: 8px; }
.memform input, .field input, .field select { width: 100%; border: 1px solid #e2cfb2; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.memme { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.memme p { margin: 0; font-size: 14px; word-break: keep-all; }
.memme button { white-space: nowrap; flex: none; }
.memset { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0; font-size: 14px; }
.memset b { margin-right: 4px; }
.seg { border: 1px solid var(--gold); background: #fff8ec; color: var(--gold-d); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.seg.on { background: var(--gold); color: #fff; }
#memBody h4 { margin: 14px 0 6px; font-size: 14px; }
.memlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.memlist li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.memlist .nm { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memlist .role { color: var(--ink2); font-size: 12px; }
.memlist .acts { display: flex; gap: 4px; }
.memlist .acts button { border: 0; border-radius: 9px; padding: 6px 9px; font-size: 12px; background: #efe0c8; }
.memlist .acts button.pri { background: var(--gold); color: #fff; }

/* ---------- 로비·운영자 ---------- */
body.lobby, body.op { overflow: auto; height: auto; min-height: 100%; background: #2a1a10; }
.lwrap { width: min(720px, 100%); margin: 0 auto; padding: calc(18px + var(--safe-t)) 16px 40px; }
.lhead h1 { margin: 0; font-family: "Gowun Batang", serif; color: #fff7ea; font-size: 30px; }
.lhead p { margin: 4px 0 14px; color: #f0dcc0; font-size: 14px; }
.lsearch { display: flex; gap: 8px; margin-bottom: 12px; }
.lsearch input { flex: 1; min-width: 0; border: 0; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; background: var(--cream); }
.lsearch button, .lapply { border: 0; border-radius: 14px; padding: 12px 14px; background: var(--gold); color: #fff; font-weight: 700; white-space: nowrap; }
.lapply { width: 100%; margin: 6px 0 16px; background: #fbf3e6; color: var(--gold-d); }
.lsec { color: #f0dcc0; font-size: 13px; margin: 14px 2px 8px; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .clist { grid-template-columns: 1fr 1fr; } }
.ccard { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--cream); color: var(--ink); text-decoration: none; align-items: center; }
.ccard .th { width: 64px; height: 64px; border-radius: 14px; flex: none; background: #d9c2a0 center / cover; display: grid; place-items: center; font-weight: 800; color: var(--gold-d); }
.ccard .th.size-t100 { box-shadow: inset 0 0 0 3px #e7cf9f; } .ccard .th.size-t300 { box-shadow: inset 0 0 0 5px #e1bd76; } .ccard .th.size-t1000 { box-shadow: inset 0 0 0 7px #c8913f; }
.ccard .info { flex: 1; min-width: 0; }
.ccard b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard small { word-break: keep-all; display: block; color: var(--ink2); font-size: 12px; margin-top: 2px; }
.ccard .live { color: #c0502a; font-weight: 700; }
.ccard .go2 { flex: none; padding: 9px 12px; border-radius: 12px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 700; }
.ccard .st { flex: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: #efe0c8; }
.ccard .st.pending { background: #fff0c8; color: #8a6413; } .ccard .st.rejected { background: #f6d8cf; color: #9b3a1e; }
.lempty { color: #f0dcc0; text-align: center; padding: 20px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.field .hint { font-weight: 400; margin: 0; }
.tiers, .designs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.designs { grid-template-columns: repeat(5, 1fr); }
.opt { word-break: keep-all; border: 2px solid #e2cfb2; background: #fff; border-radius: 12px; padding: 8px 4px; font-size: 12px; text-align: center; line-height: 1.3; }
.opt b { display: block; font-size: 14px; }
.opt[aria-pressed="true"] { border-color: var(--gold); background: #fff3dc; }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt .dth { display: block; height: 34px; border-radius: 8px; margin-bottom: 4px; background: #e9dcc6 center / cover; }
.optable { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--cream); border-radius: 14px; overflow: hidden; }
.optable th, .optable td { padding: 8px; border-bottom: 1px solid #ecdcc2; text-align: left; vertical-align: top; }
.optable button { border: 0; border-radius: 9px; padding: 6px 10px; font-size: 12px; margin: 2px; background: #efe0c8; }
.optable button.pri { background: var(--gold); color: #fff; }
.memset.look b { flex-basis: 100%; }
.seg:disabled { opacity: .45; border-style: dashed; }
.loading3d { position: fixed; left: 0; right: 0; top: 0; bottom: var(--dock, 0); display: grid; place-items: center; color: #fbf3e6; font-size: 16px; background: #16203f; z-index: 1; pointer-events: none; }
.loading3d[hidden] { display: none; }
.ldbox { padding: 0 20px; text-align: center; }
.ldslogan { margin: 0; font-family: "Gowun Batang", serif; font-weight: 700; font-size: 20px; line-height: 1.4; color: #fff7ea; word-break: keep-all; }
.ldverse { margin: 10px 0 0; font-family: "Gowun Batang", serif; font-size: 13.5px; line-height: 1.6; color: rgba(251,243,230,.78); word-break: keep-all; }
.ldslogan .nw, .ldverse .nw { white-space: nowrap; }
body:has(#loading3d:not([hidden])) :is(.taglayer, .wordlayer) { visibility: hidden; } /* 그림 전 이름표가 첫 화면 문구 위에 뜸 */
.ldstate { margin: 22px 0 0; font-size: 14px; color: rgba(251,243,230,.6); }

/* ---------- 하단 탭(교회온): 예배당 · 교회소식 · 성경 · 내 정보 ---------- */
:root { --tabh: calc(58px + var(--safe-b)); }
.tabs { position: fixed; z-index: 26; left: 0; right: 0; bottom: 0; height: var(--tabh); padding-bottom: var(--safe-b); background: #fbf3e6; border-top: 1px solid rgba(59, 36, 22, .12); box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.tabsin { width: min(100%, 560px); height: 58px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs button { border: 0; background: none; padding: 6px 0 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  font: 700 12px/1 -apple-system, "Apple SD Gothic Neo", "Pretendard", sans-serif; color: #8d7462; white-space: nowrap; letter-spacing: -.2px; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-selected="true"] { color: var(--gold-d); }
.tabs button[aria-selected="true"] svg { stroke-width: 2.2; }

/* ---------- 교회소식 피드 ---------- */
.feed { position: fixed; inset: 0 0 var(--tabh); z-index: 22; overflow-y: auto; overscroll-behavior: contain; color: var(--ink);
  background: radial-gradient(120% 60% at 50% 0%, #fff8ec 0%, var(--cream) 55%, #f5e7d0 100%); }
.fwrap { width: min(600px, 100%); margin: 0 auto; padding: 0 12px calc(110px + var(--tabh)); }
/* 위 띠: 탭(고정)이 그 위에 얹히고, 스크롤하면 글이 띠 아래로 지나간다 */
.fbar { position: sticky; top: 0; z-index: 2; margin: 0 -12px; padding: calc(12px + var(--safe-t)) 16px 10px; background: rgba(251, 243, 230, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); min-height: calc(64px + var(--safe-t));
  box-shadow: 0 0 0 100vmax rgba(251, 243, 230, .94); clip-path: inset(0 -100vmax); }
.fhead { padding: 0 4px 6px; }
.fback { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #efe0c8; color: var(--ink); font-size: 12px; text-decoration: none; }
.fhead h2 { margin: 4px 0 2px; font-family: "Gowun Batang", serif; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.fhead p { margin: 0; font-size: 13px; color: var(--ink2); word-break: keep-all; }
.fhead p b { color: var(--gold-d); }
.fblocks { margin-top: 6px; border: 0; background: none; padding: 0; color: var(--ink2); font-size: 12px; text-decoration: underline; }
.chips { display: flex; gap: 6px; margin: 12px 0 4px; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; border: 1px solid #e2cfb2; background: #fffaf2; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff7ea; }
.flist { display: flex; flex-direction: column; gap: 10px; }

.post { background: #fffdf8; border: 1px solid #f0e2cc; border-radius: 18px; padding: 12px 14px 8px; box-shadow: 0 2px 8px rgba(80, 50, 20, .06); cursor: pointer; min-width: 0; }
.post.full { cursor: default; border: 0; box-shadow: none; padding: 4px 0 8px; background: none; }
.post.pin { background: #fff6e4; border-color: #ecd3a6; }
.post.k-welcome { background: linear-gradient(160deg, #fff4df, #fdebd3); border-color: #e9c98f; }
.post.hid { opacity: .6; border-style: dashed; }
.ptop { display: flex; align-items: center; gap: 6px; min-height: 26px; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: #f2e3cc; color: var(--ink2); }
.tag.t-news { background: #f6dfb3; color: #8a5a14; } .tag.t-welcome { background: #c8913f; color: #fff; }
.tag.t-prayer { background: #e6e0f2; color: #5a4a7c; } .tag.t-daily { background: #e2eedc; color: #4c6a3e; }
.rep { font-size: 11px; color: #b4401c; font-weight: 700; }
.more { margin-left: auto; border: 0; background: none; width: 34px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--ink2); }
.phead { display: flex; align-items: center; gap: 9px; margin: 6px 0 8px; }
.av { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #f6e6cf; border: 2px solid #f0dcc0; }
.av.admin { border-color: var(--gold); }
/* 동글이 전신 그림에서 얼굴(눈·볼)이 동그라미 가운데 오게 자른다 */
.av img { position: absolute; width: 112%; left: -6%; top: -8%; height: auto; }
.who { min-width: 0; }
.who .nmline { display: flex; align-items: center; gap: 5px; min-width: 0; }
.who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .adm { flex: none; font-size: 10px; font-weight: 800; color: var(--gold-d); border: 1px solid var(--gold); border-radius: 5px; padding: 0 4px; }
.who small { display: block; font-size: 12px; color: #a08a78; }
.txt { margin: 0 0 8px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; }
.txt.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ph { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.ph button { border: 0; padding: 0; background: #efe0c8; display: block; min-width: 0; min-height: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.n1 button { aspect-ratio: 4 / 3; }
.ph.n2 { grid-template-columns: 1fr 1fr; } .ph.n2 button { aspect-ratio: 1; }
.ph.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; } .ph.n3 button:first-child { grid-row: span 2; }
.ph.n4 { grid-template-columns: 1fr 1fr; } .ph.n4 button { aspect-ratio: 4 / 3; }
.joinbtn { width: 100%; border: 0; border-radius: 12px; padding: 12px; margin: 2px 0 8px; background: var(--gold); color: #fff; font-size: 15px; font-weight: 800; }
.pfoot { display: flex; gap: 4px; border-top: 1px solid #f2e6d4; padding-top: 6px; }
.pfoot button { border: 0; background: none; padding: 6px 8px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.pfoot .amen.on { color: var(--gold-d); background: #fff1d8; }
.loadmore { border: 0; border-radius: 14px; padding: 12px; background: #efe0c8; font-weight: 700; color: var(--ink); }
.fempty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; text-align: center; color: var(--ink2); }
.fempty img { width: 110px; opacity: .9; }
.fempty b { color: var(--ink); font-size: 15px; } .fempty small { font-size: 13px; word-break: keep-all; }
.fab { position: fixed; z-index: 23; right: max(16px, calc(50vw - 284px)); bottom: calc(16px + var(--tabh)); border: 0; border-radius: 999px; padding: 14px 20px; background: var(--gold); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(120, 70, 20, .35); }
.fguest { position: fixed; z-index: 23; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--tabh)); width: min(576px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px; border-radius: 18px; background: rgba(59, 36, 22, .94); color: #fff3e0; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.fguest span { flex: 1; word-break: keep-all; }
.fguest button { flex: none; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--gold); color: #fff; font-weight: 800; font-size: 13px; }

/* 글 자세히·댓글 */
.postbox { display: flex; flex-direction: column; max-height: 92vh; }
#postBody { flex: 1; overflow-y: auto; min-height: 0; }
.ch { margin: 4px 0 6px; font-size: 14px; }
.cmts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cmt { display: flex; gap: 8px; }
.cmt .av { width: 32px; height: 32px; }
.cmt.hid { opacity: .55; }
.cbody { flex: 1; min-width: 0; }
.ctop { display: flex; align-items: flex-start; gap: 6px; }
.cbody p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; }
.cempty { color: var(--ink2); font-size: 13px; padding: 8px 0; }
.cmtform { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-top: 10px; border-top: 1px solid #ecdcc2; margin-top: 10px; }
.cmtform textarea { border: 1px solid #e2cfb2; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; resize: none; background: #fff; min-width: 0; }
.cmtform button { border: 0; border-radius: 12px; padding: 0 16px; background: var(--gold); color: #fff; font-weight: 800; }
.cmtform .err { grid-column: 1 / -1; }
.cmtguest { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #f3e4cc; font-size: 13px; }
.cmtguest span { flex: 1; word-break: keep-all; }
.cmtguest button { border: 0; border-radius: 10px; padding: 8px 12px; background: var(--gold); color: #fff; font-weight: 800; white-space: nowrap; }

/* 글쓰기 */
#wText { width: 100%; border: 1px solid #e2cfb2; border-radius: 14px; padding: 12px; font: inherit; font-size: 16px; line-height: 1.55; background: #fff; resize: vertical; min-height: 150px; }
.wrow { text-align: right; font-size: 12px; color: var(--ink2); }
.wphotos { display: flex; gap: 6px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.wadd { flex: none; width: 64px; height: 64px; border: 1px dashed var(--gold); background: #fff8ec; color: var(--gold-d); border-radius: 12px; padding: 0; font-weight: 700; font-size: 12px; line-height: 1.2; }
.wadd::before { content: "📷"; display: block; font-size: 20px; }
.wadd:disabled { opacity: .45; }
.wths { display: contents; }
.wth { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #efe0c8; display: grid; place-items: center; font-size: 11px; color: var(--ink2); }
.wth img { width: 100%; height: 100%; object-fit: cover; }
.wth button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(40, 24, 14, .75); color: #fff; font-size: 11px; line-height: 22px; padding: 0; }
#writeForm .go:disabled { opacity: .5; }

/* ⋯ 메뉴 */
.sheet.menu .sheetbox { padding-top: 10px; }
.menubody { display: flex; flex-direction: column; }
.mi { border: 0; background: none; padding: 15px 8px; font-size: 16px; font-weight: 700; text-align: left; border-bottom: 1px solid #ecdcc2; }
.mi.danger { color: #b4401c; }
.mi.cancel { width: 100%; text-align: center; border: 0; margin-top: 6px; background: #efe0c8; border-radius: 14px; }
.blk { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-bottom: 1px solid #ecdcc2; }

/* 사진 크게 보기 */
.pview { position: fixed; inset: 0; z-index: 35; background: rgba(12, 8, 4, .94); display: grid; place-items: center; }
.pview img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.pvb { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; border-radius: 12px; }
.pvb.l { left: 8px; } .pvb.r { right: 8px; }
#pvCount { position: absolute; bottom: calc(18px + var(--safe-b)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; }

/* 입장 화면: 손님에게 환영 글 먼저 */
.teaser { text-align: left; margin: 2px 0 12px; padding: 10px 12px; border-radius: 14px; background: #fff3dc; border: 1px solid #e9c98f; }
.teaser b { font-size: 12px; color: var(--gold-d); }
.teaser p { margin: 3px 0 4px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmore { border: 0; background: none; padding: 0; color: var(--gold-d); font-size: 12px; font-weight: 800; }
.enterbox:has(.teaser:not([hidden])) .preview { height: 112px; }
body.c3d .back { margin-bottom: 12px; }

/* ---------- 말씀(A안) — 디자인봇 word_ui.css(10-30) ---------- */
.wordlayer { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; } /* #app(제목 줄 header가 손가락을 받음) 위·시트(30) 아래. 화면 틀 자리는 layoutBubbles avoid로 비운다 */
.wordlayer .wb { pointer-events: auto; }


/* ② 말씀 말풍선(펼친 상태) — 머리 위. 색은 «나» 이름표와 같은 크림 */
.wb { position: absolute; left: 0; top: 0; width: 212px; box-sizing: border-box; padding: 9px 12px 8px; border-radius: 14px;
  background: rgba(251, 243, 230, .97); box-shadow: 0 4px 14px rgba(0, 0, 0, .32); color: #3a2a1e; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transform-origin: var(--tx, 50%) 100%; animation: wbIn .28s ease-out both; z-index: 4; }
.wb:active { background: #f3e6d0; }
.wb::after { content: ""; position: absolute; left: calc(var(--tx, 50%) - 7px); bottom: -6px; width: 14px; height: 7px;
  background: rgba(251, 243, 230, .97); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wb .v { margin: 0; font: 400 13.5px/1.42 "Gowun Batang", serif; letter-spacing: -.2px; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wb .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
/* 누를 수 있다는 표시: 장절을 갈색 글자 + › (그대로성경 해당 장으로 이동) */
.wb .ref { font: 700 11.5px/1 "Pretendard", -apple-system, sans-serif; color: #a8742c; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.wb .ref i { font-style: normal; font-size: 14px; line-height: 11px; margin-top: -1px; }
/* ③ 아멘: 다른 사람 말풍선 = 테두리 버튼, 누른 뒤 = 채움. 내 말풍선 = 숫자만(버튼 아님) */
.wb .amen { position: relative; height: 22px; padding: 0 9px; border-radius: 11px; border: 1px solid #d9b98a; background: none; color: #8a5a20;
  font: 700 11.5px/20px "Pretendard", -apple-system, sans-serif; white-space: nowrap; }
.wb .amen::before { content: ""; position: absolute; inset: -9px -8px; }        /* 손가락 닿는 범위 40px */
.wb .amen.on { background: #a8742c; border-color: #a8742c; color: #fff; }
.wb .amen.mine { border-color: transparent; background: #f1e2c8; }
.wb .amen:empty, .wb .amen[data-n="0"].mine { display: none; }
.wb .amen.pop { animation: amenPop .26s ease-out; }                                /* 새 아멘이 오면 한 번만 살짝 */
/* 접힌 말풍선(겹칠 때·화면 먼 사람) — 장절 + 아멘 수만 */
.wb.mini { width: auto; padding: 5px 9px 5px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.wb.mini .v, .wb.mini .ft { display: none; }
.wb .mi { display: none; }
.wb.mini .mi { display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px/1 "Pretendard", -apple-system, sans-serif; color: #a8742c; }
.wb.mini .mi b { color: #8a5a20; font-weight: 600; }
.wb.mini .mi svg { width: 13px; height: 13px; }
@keyframes wbIn { from { opacity: 0; transform: translateY(4px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes amenPop { 50% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .wb, .wb .amen.pop { animation: none; } }
.wb.notail::after { display: none; }
/* 점(자리가 없을 때) — 책 아이콘만. 누르면 펼침(다른 사람 것 하나만 펼치고 나머지는 접힘) */
.wb.dot { width: 30px; height: 25px; padding: 0; justify-content: center; }
.wb.dot .mi { gap: 0; font-size: 0; }
.wb.dot .mi b { display: none; }
.wb.dot .mi svg { width: 15px; height: 15px; }

/* 말씀 C안(10-30): 읽는 동안 절 바꾸기 바 · 그대로성경 로그인 */
.wordpick { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock, 0px) + 100px); width: min(336px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(40, 24, 14, .82); color: #fff3e0; font-size: 13px; box-sizing: border-box; }
.wordpick button { flex: none; border: 0; border-radius: 10px; width: 38px; height: 34px; background: rgba(255, 243, 224, .14); color: #fff3e0; font-size: 20px; line-height: 1; }
.wordpick button:disabled { opacity: .3; }
.wordpick select { flex: 1; min-width: 0; height: 34px; border: 0; border-radius: 10px; padding: 0 28px 0 10px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a5a44' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; background-color: var(--cream); color: var(--ink); font: 600 14px/1 system-ui, sans-serif; }
.wordpick .wptoday { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 2px 6px; text-align: center; }
.wordpick #wpTodayTxt { white-space: pre-line; word-break: keep-all; line-height: 1.35; }
.wordpick .wptoday button { width: auto; height: auto; padding: 6px 10px; font-size: 12px; font-weight: 700; background: var(--cream); color: var(--ink); }
.wordpick .wptoday button[hidden] { display: none; }
.wordpick [hidden] { display: none; }
.wordpick .wprow { display: flex; align-items: center; gap: 6px; }
.wordpick .wptools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wordpick .wptools button { width: auto; height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--cream); color: var(--ink); font: 700 13px/1 system-ui, sans-serif; }
.wordpick .wptools img { width: 20px; height: 20px; }
.biblelogin { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(59, 36, 22, .12); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.biblelogin .in { display: inline-block; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--gold-d); color: var(--ink); font-weight: 700; text-decoration: none; }
.biblelogin small { color: var(--ink2, #7a5a44); }
.biblelogin .who { font-weight: 700; color: var(--ink); }
.biblelogin .out { border: 0; background: none; color: var(--ink2, #7a5a44); text-decoration: underline; font-size: 12px; }
.biblelogin.lobby { border: 0; margin-top: 6px; padding: 0; }

/* ---------- 여러 관 ---------- */
.toprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; }
.toprow .pill { min-width: 0; }
#presenceText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hallchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(40, 24, 14, .62); color: #fff3e0; font: inherit; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.hallchip b { color: #ffd68c; font-weight: 700; }
.hallchip .hmore { color: #f3e2c8; font-size: 12px; opacity: .85; padding-left: 6px; border-left: 1px solid rgba(255, 243, 224, .25); }
.halllist li.here { outline: 2px solid var(--gold); }
.halllist .herebadge { color: var(--gold-d); font-weight: 700; }
#hallBody h4 { margin: 14px 0 6px; font-size: 13px; color: var(--ink2); }
.subform { margin-top: 10px; padding-top: 4px; border-top: 1px solid #ead9bf; }
.subform h4 { margin-bottom: 2px; }
.hallmore { margin-top: 10px; }
.hallq { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.hallopts { display: flex; flex-wrap: nowrap; gap: 5px; }
.hallopts .seg { flex: 1 1 auto; min-width: 0; white-space: nowrap; padding: 7px 8px; }
.hallopts .seg small { font-size: 11px; font-weight: 600; }
.hallprice { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px dashed #e2cfb2; color: var(--ink2); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.hallprice b { color: var(--ink); }
.tiers.halls { grid-template-columns: 1fr 1fr; }

/* ---------- 교회온 위쪽 바: «교회온» + «<교회명> · 지금 N명» ---------- */
.brandrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.brandrow .back { margin: 0; padding: 4px 11px 6px; font-size: 16px; line-height: 1; }
body.c3d .top h1#brand { margin: 0; font-size: 22px; }
#presence { max-width: 100%; min-width: 0; }
#presence .ptxt { display: flex; min-width: 0; white-space: nowrap; }
#presence .cn { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 700; }
#presence .pr { flex: none; margin-left: .3em; } /* flex 칸 앞 공백 글자는 지워진다 — 교회명과 붙어 보이던 것 */
body.c3d .toprow { flex-wrap: wrap; }
body.c3d .toprow .hallchip { flex: none; }
@media (max-width: 420px) { body.c3d .hallchip .hmore { display: none; } }

/* ---------- 닉네임 이름표(머리 위) ---------- */
.taglayer { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; } /* 말씀 말풍선(5) 아래 */
.taglayer .nt { position: absolute; left: 0; top: 0; padding: 2px 7px 3px; border-radius: 9px; background: rgba(251, 243, 230, .9); color: #3b2416; white-space: nowrap;
  font: 700 11px/1.25 -apple-system, "Apple SD Gothic Neo", "Pretendard", sans-serif; letter-spacing: -.2px; box-shadow: 0 1px 4px rgba(0,0,0,.28); will-change: transform; transition: opacity .2s linear; }
.taglayer .nt.me { background: #c8913f; color: #fff; }
.taglayer .nt::after { content: ''; position: absolute; left: var(--tx, 50%); top: 100%; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(251, 243, 230, .9); }
.taglayer .nt::before { content: ''; position: absolute; left: var(--tx, 50%); top: calc(100% + 4px); width: 2px; margin-left: -1px; height: var(--tl, 0px); background: rgba(251, 243, 230, .85); box-shadow: 0 0 2px rgba(0,0,0,.35); transform: rotate(var(--ta, 0deg)); transform-origin: 50% 0; }
.taglayer .nt.me::after { border-top-color: #c8913f; }
.taglayer .nt.me::before { background: #c8913f; }
.taglayer .nt.ghost { opacity: .7; } /* 몸 숨긴 사람 — 몸 페이드(0.2초)와 같이 1↔0.7 */
.taglayer .nt.ghost::after, .taglayer .nt.ghost::before { display: none; }
.taglayer .nt small { font-size: 9.5px; font-weight: 600; opacity: .78; }
.taglayer .nt:not(.me) { pointer-events: auto; cursor: pointer; } /* 눌러서 닉네임 신고 */
.taglayer.picking .nt { pointer-events: none; }
.who .office { flex: none; font-size: 11px; font-weight: 600; color: #8a6a4a; }

/* ---------- 입장: 닉네임 ---------- */
.nickask { text-align: left; margin: 8px 0 4px; }
.nickask label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; text-align: center; }
.nickask input, .nickform input { width: 100%; border: 1px solid #e2cfb2; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.nickask .err { display: block; min-height: 1.2em; font-size: 12px; margin-top: 4px; text-align: center; }
.nickhave { margin: 8px 0 2px; font-size: 14px; line-height: 1.5; }
.nickhave b { color: var(--gold-d); }
.nickhave small { color: var(--ink2); font-size: 12px; }

/* ---------- 성경 탭(그대로성경) ---------- */
.bbar { display: flex; flex-direction: column; gap: 8px; }
.btitle { display: flex; align-items: baseline; gap: 8px; }
.btitle b { font-family: "Gowun Batang", serif; font-size: 22px; }
.btitle small { color: var(--ink2); font-size: 12px; }
.bnav { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
.bnav button { height: 40px; border: 0; border-radius: 12px; background: #efe0c8; color: var(--ink); font-size: 20px; font-weight: 700; }
.bnav button:disabled { opacity: .35; }
.bnav .bpick { font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.bnav .bpick b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnav .bpick i { font-style: normal; font-size: 11px; color: var(--ink2); }
.blogin { margin: 10px 4px 0; padding: 10px 12px; border-radius: 14px; background: #fff3dc; border: 1px solid #e9c98f; display: flex; align-items: center; gap: 10px; font-size: 13px; word-break: keep-all; }
.blogin span { flex: 1; }
.blogin .in { flex: none; padding: 8px 12px; border-radius: 10px; background: var(--gold); color: #fff; font-weight: 700; text-decoration: none; font-size: 13px; }
.bverses { list-style: none; margin: 8px 0 0; padding: 0 4px; font-family: "Gowun Batang", serif; font-size: 17px; line-height: 1.75; }
.bverses li { display: grid; grid-template-columns: 2.1em 1fr; padding: 3px 6px; border-radius: 8px; word-break: keep-all; cursor: pointer; scroll-margin-top: 140px; }
.bverses li .n { font: 700 12px/2.4 -apple-system, sans-serif; color: var(--gold-d); text-align: right; padding-right: .7em; }
.bverses li.on { background: rgba(200, 145, 63, .16); }
.bend { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 0; }
.bend .ghost { border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 700; }
.bend a { font-size: 12px; color: var(--ink2); }
.bookgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin-top: 10px; }
.bookgrid button, .chgrid button { border: 0; border-radius: 10px; padding: 10px 4px; background: #fff; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookgrid button.on, .chgrid button.on { background: var(--gold); color: #fff; font-weight: 700; }
#bookBody h4 { margin: 12px 0 6px; font-size: 13px; color: var(--ink2); }

/* ---------- 처음 한 번 공지 ---------- */
.sheet.notice { align-items: center; padding: 20px; }
.noticebox { width: min(340px, 100%); padding: 22px 20px 16px; border-radius: 22px; background: var(--cream); text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.noticebox .nt { font-family: "Gowun Batang", serif; font-size: 22px; color: var(--gold-d); }
.noticebox p { margin: 10px 0 16px; font-size: 15px; line-height: 1.6; word-break: keep-all; }

/* ---------- 내 정보 ---------- */
.mecard { display: flex; align-items: center; gap: 14px; margin: 6px 4px 4px; padding: 12px 14px; border-radius: 18px; background: #fff; }
.mecard img { width: 64px; height: 64px; object-fit: contain; }
.mewho { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mewho b { font-size: 19px; overflow-wrap: anywhere; }
.mewho small { color: var(--ink2); font-size: 13px; }
.mebox { margin: 14px 4px 0; }
.mebox h3 { margin: 0 0 8px; font-size: 14px; color: var(--ink2); }
.nickform { display: flex; gap: 8px; }
.nickform button { flex: none; border: 0; border-radius: 12px; padding: 0 16px; background: var(--gold); color: #fff; font-weight: 700; font-size: 15px; }
.mebox .err { display: block; min-height: 1em; font-size: 12px; margin-top: 4px; }
.mebox .hint { margin-top: 2px; word-break: keep-all; }
.mehairs { justify-content: flex-start; margin: 0; }
.merow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; margin-bottom: 6px; font-size: 14px; }
.merow span:first-child { min-width: 0; overflow-wrap: anywhere; }
.btnlink { display: inline-block; padding: 6px 12px; border-radius: 10px; font-size: 12px; text-decoration: none; color: var(--ink); flex: none; }
body.c3d .enter { bottom: var(--tabh); overflow-y: auto; place-items: safe center; padding-top: calc(20px + var(--safe-t)); } /* 노치·상태바 밑으로(카드가 길면 위로 붙는다) */

/* ---------- 성경 단독 화면(/b — 아직 들어간 교회가 없을 때) ---------- */
body.bstand .feed { inset: 0 0 var(--tabh); }
.bstandtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bstandtop .brand { font-family: "Gowun Batang", serif; font-weight: 700; font-size: 18px; color: var(--gold-d); text-decoration: none; }
.bstandtop a.fback { font-size: 12px; }

/* ---------- 닉네임: 추천·대체 추천·변경 제한 ---------- */
.nickwhy { margin: -2px 0 8px; font-size: 12px; color: #8a6a4a; text-align: center; line-height: 1.4; }
.nickwhy.warn { color: #a3402a; font-weight: 600; }
.nicksug { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 2px 0 4px; }
.nicksug:empty { display: none; }
.nicksug button { border: 1px solid var(--gold); background: #fff8ec; color: var(--gold-d); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; }
.linkbtn { display: block; margin: 4px auto 0; background: none; border: 0; color: #8a6a4a; font-size: 12px; text-decoration: underline; padding: 4px; }
.nickwait { margin: 6px 0 0; font-size: 13px; color: #8a6a4a; }
#meOffice { border: 1px solid #e2cfb2; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
#meOfficeSt { color: #8a6a4a; }
.memlist .role .off { color: #8a6a4a; }
.mhint { margin: 2px 0 8px; text-align: center; font-weight: 700; color: var(--ink); }
#meNick .office { font-size: 12px; font-weight: 600; color: #8a6a4a; }

/* 교회온 로그인(그대로성경 계정 하나) */
.sheet.authsheet { z-index: 60; }
.authbox .sh b { font-size: 18px; }
.authwhy { margin: 2px 0 10px; font-size: 14px; color: var(--ink); }
.authseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #efe0c8; margin-bottom: 14px; }
.authseg button { border: 0; border-radius: 10px; padding: 9px; background: none; font: inherit; font-weight: 700; color: var(--ink2, #7a5a44); }
.authseg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(59, 36, 22, .15); }
.authform .field[hidden] { display: none; }
.authform .field input { width: 100%; border: 1px solid #e2cfb2; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.autherr { min-height: 1.2em; margin: 0 0 8px; font-size: 13px; }
.authform .go:disabled { opacity: .6; }
.authnote { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
button.in { font: inherit; cursor: pointer; }
.biblelogin button.in { background: none; }
.blogin button.in { border: 0; }
.merow > span:last-child > * { white-space: nowrap; }
/* 교회 목록은 어두운 바탕 — 로그인 줄을 밝게 */
.biblelogin.lobby .in { color: #fbf3e6; border-color: var(--gold); }
.biblelogin.lobby small, .biblelogin.lobby .out { color: #d9c3a5; }
.biblelogin.lobby .who { color: #fbf3e6; }

/* 주변 활동 알림 — 맨 위 가운데 반투명 알약 한 줄(휴대폰은 top을 JS가 제목·접속수 줄 밑으로 맞춘다) */
.nearfeed { position: fixed; z-index: 6; left: 50%; top: calc(24px + var(--safe-t)); transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); box-sizing: border-box; height: 30px; padding: 0 14px;
  display: flex; align-items: center; border-radius: 999px; background: rgba(20, 16, 14, .5); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff7ea; font-size: 13px; line-height: 1; white-space: nowrap; overflow: hidden; pointer-events: none; animation: nfIn .25s ease-out both; }
.nearfeed .nf { display: block; }
.nearfeed b { font-weight: 700; color: #ffe2a8; }
.nearfeed small { font-size: .85em; color: #f3dcb6; }
.nearfeed.out { opacity: 0; transition: opacity .3s; }
.nearfeed.slot { visibility: hidden; width: min(520px, calc(100vw - 32px)); height: 40px; animation: none; } /* 아래 10px은 말풍선과 띄울 틈 */
@keyframes nfIn { from { opacity: 0; transform: translate(-50%, -4px); } }
@media (prefers-reduced-motion: reduce) { .nearfeed { animation: none; } }
body.c3d .toast { top: calc(var(--feed-b, 112px) + 8px); }
/* 오른쪽 버튼 열(60px+여백)과 안 겹치게 — 남은 폭 가운데(QA ④) */
@media (max-width: 899px) { body.c3d.inchapel .toast { left: calc(50% - 36px); max-width: calc(100vw - 88px); } }
#movedNotice { bottom: var(--tabh, 0px); } /* 안내가 떠 있어도 아래 탭은 눌리게 — 어두운 배경을 탭 위에서 멈춤(QA ⑥) */
.mehint { display: block; margin-top: 2px; font-size: 11px; color: var(--ink2); }
.swt { flex: none; position: relative; width: 46px; height: 28px; border: 0; border-radius: 14px; background: #d9c7aa; padding: 0; transition: background .15s; }
.swt i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.swt[aria-checked="true"] { background: var(--gold); }
.swt[aria-checked="true"] i { transform: translateX(18px); }

/* 성경 탭 = 그대로성경 원래 화면(iframe) — 하단 탭 위 칸 전체. 그대로성경 화면 안은 손대지 않는다 */
.bframe { position: fixed; inset: 0 0 var(--tabh); z-index: 22; background: #FAF6EC; padding-top: var(--safe-t); }
.bframe iframe { display: block; width: 100%; height: 100%; border: 0; background: #FAF6EC; }
.bfgate { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.bfbox { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; color: var(--ink); background: var(--cream); border-radius: 20px; padding: 24px 20px; box-shadow: 0 6px 24px rgba(59, 36, 22, .12); }
.bfbox b { word-break: keep-all; font-family: "Gowun Batang", serif; font-size: 20px; color: var(--gold-d); }
.bfbox p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; word-break: keep-all; }
.bfbox .ghost { border: 0; border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 700; }

/* ---------- 교회온 로고(시안A 가로형) — 어두운 바탕엔 _dark, 밝은 바탕엔 _light ---------- */
h1.logo, a.logo { display: flex; align-items: center; line-height: 0; }
.logo img { display: block; height: auto; }
.lhead h1.logo img { width: 119px; }
body.c3d .top h1#brand.logo img { width: 81px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55)); }
.bstandtop a.logo img { width: 65px; }

/* ── 스토어 앱(Capacitor, public/native.js 가 html.app 을 붙임) ── */
/* 안드로이드 웹뷰는 env(safe-area-inset-*) 가 0 일 수 있어 SystemBars 플러그인이 넣어 주는 변수와 큰 쪽을 쓴다 */
html.app-android { --safe-b: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)); --safe-t: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px)); }
html.app, html.app body { -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
html.app input, html.app textarea { -webkit-user-select: text; user-select: text; }
.native-offline { position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(10px + var(--safe-t)); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px 10px 14px; border-radius: 14px; background: #2a1a10; color: #fbf3e6; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.native-offline a { flex: none; color: #2a1a10; background: #e0a243; border-radius: 99px; padding: 7px 12px; font-weight: 700; text-decoration: none; }
.lfoot { margin: 28px 0 calc(8px + var(--safe-b)); text-align: center; font-size: 13px; color: #c9b39a; }
.lfoot a { color: #e8d6bd; text-decoration: none; }
.enterbox .go:disabled { opacity: .55; }
#actbar, #actbar * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } /* 길게 누를 때 아이폰 기본 메뉴(그림 저장 등) 막기 */
#actbar img { pointer-events: none; }
html.app.kb .tabs { display: none; } html.app.kb { --tabh: 0px; }
#actbar button:disabled { opacity: .45; }
button, a, [role=tab], .sidebtn { touch-action: manipulation; } /* 버튼을 빠르게 연달아 누를 때 «두 번 눌러 확대»로 먹히지 않게(아이폰) */

/* 대기 화면(자리 다 참·서버 붐빔) */
.wait { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b)); background: radial-gradient(120% 90% at 50% 20%, #4a2e1c 0%, #2a1a10 70%); color: var(--cream); }
.wait[hidden] { display: none; }
.waitbox { width: min(400px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.waitlogo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 6px; }
.wait h2 { margin: 0; font-family: 'Gowun Batang', serif; font-size: 23px; line-height: 1.4; word-break: keep-all; }
.waitwhy { margin: 0; font-size: 16px; opacity: .9; word-break: keep-all; }
.waitleft { margin: 4px 0 14px; font-size: 14px; opacity: .7; min-height: 1.4em; word-break: keep-all; }
.wait .go { max-width: 320px; }
.waitback { color: var(--cream); opacity: .75; font-size: 15px; padding: 10px; }

/* ---------- 산사 비교 개선(10-31): 소리·기도 손맛·함께 기도·마무리·발자국 ---------- */
.soundbtn { position: absolute; right: 12px; top: calc(10px + var(--safe-t)); z-index: 4; width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--cream-a); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.soundbtn svg, .soundpill svg, .ptchip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soundbtn .son { display: none; }
.soundbtn[aria-pressed="true"] { background: var(--gold); color: #fff; }
.soundbtn[aria-pressed="true"] .son { display: inline; }
.soundbtn[aria-pressed="true"] .soff { display: none; }
.soundpill { position: absolute; left: 44px; top: calc(118px + var(--safe-t)); z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--cream-a); color: var(--ink); font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.25); max-width: calc(100vw - 140px); white-space: nowrap; }
.soundpill svg { width: 18px; height: 18px; }
.soundpill span { color: var(--ink2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.soundbox .sdesc { margin: 2px 0 12px; color: var(--ink2); font-size: 13px; }
.srow { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.srow .stop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srow .stop span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srow .stop b { font-size: 15px; }
.srow .stop small { color: var(--ink2); font-size: 12px; word-break: keep-all; }
.srow input[type=range] { --v: 50%; width: 100%; height: 16px; margin: 10px 0 2px; padding: 0; -webkit-appearance: none; appearance: none; background: none; accent-color: var(--gold); }
.srow input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(var(--gold) 0 0) 0/var(--v) 100% no-repeat, #eadcc6; }
.srow input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); border: 0; }
.srow input[type=range]::-moz-range-track { height: 6px; border-radius: 9px; background: #eadcc6; }
.srow input[type=range]::-moz-range-progress { height: 6px; border-radius: 9px; background: var(--gold); }
.srow input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); border: 0; }
.srow.off input[type=range] { opacity: .4; }
.soundbox .soff { width: 100%; margin-top: 4px; padding: 11px; border: 0; border-radius: 12px; font-size: 14px; }

/* 기도 중 알약·마침 알림(동작 바 위 / 위쪽 버튼 줄 아래) */
.actbar button.on { box-shadow: inset 0 0 0 2.5px #f0c27a; border-radius: 18px; }
.praypill { position: absolute; left: 50%; bottom: calc(var(--dock, 0px) + 100px); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; box-sizing: border-box; border-radius: 999px; background: var(--cream-a); color: var(--ink); font-size: 14px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.28); max-width: calc(100vw - 24px); }
.praypill .pdot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200,145,63,.25); animation: pdot 1.6s ease-in-out infinite; }
@keyframes pdot { 50% { opacity: .45; } }
.praypill .ptime { font-variant-numeric: tabular-nums; color: var(--gold-d); font-weight: 700; }
.praypill small { color: var(--ink2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.praypill.up { bottom: calc(var(--dock, 0px) + 168px); }
/* 알림 카드(기도를 마쳤어요)는 이름표(4)보다 앞 — #app 은 transform 이라 안의 z-index 가 이름표를 못 넘는다. #app 과 같은 틀로 body 바로 아래·이름표 다음, 말씀 말풍선(5)·시트 아래 */
.overtag { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100vw, 560px); z-index: 4; pointer-events: none; }
.overtag > * { pointer-events: auto; }
@media (min-width: 900px) { .overtag { width: 100vw; } }
.praydone { position: absolute; left: 20px; right: 84px; top: calc(var(--feed-b, calc(127px + var(--safe-t))) + 8px); /* «오늘 다녀간 분» 알약 아래 +8 — 알약이 알림 위끝을 덮던 것(디자인봇 10-31 v2 ⑦) */ z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 14px; border-radius: 18px; background: var(--cream-a); color: var(--ink); box-shadow: 0 6px 22px rgba(0,0,0,.32); text-align: center; transition: opacity .35s; }
.praydone b { font-family: "Gowun Batang", serif; font-size: 17px; }
.praydone span { font-size: 13px; color: var(--ink2); word-break: keep-all; }
.praydone span:empty { display: none; }
.praydone.out { opacity: 0; }
.together { position: absolute; left: 16px; right: 16px; bottom: calc(var(--dock, 0px) + 100px); z-index: 3; margin: 0 auto; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--cream-a); color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.together .tgtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.together b { font-size: 15px; }
.together span { font-size: 12px; color: var(--ink2); word-break: keep-all; }
.together button { flex: none; border: 0; border-radius: 12px; padding: 10px 14px; background: var(--gold); color: #fff; font-size: 14px; font-weight: 700; }
.together button:disabled { background: #efe0c8; color: var(--gold-d); opacity: 1; }

/* 교회 첫 화면: 함께 기도 칩(부제 줄 자리에 같은 높이로) */
.ptchip { display: inline-flex; align-items: center; gap: 5px; height: 32px; box-sizing: border-box; margin: 1px 0 5px; padding: 0 6px 0 10px; border: 1px solid #e2c48f; border-radius: 999px; background: #fff3df; color: var(--ink); font-size: 13px; white-space: nowrap; max-width: 100%; }
.ptchip svg { width: 16px; height: 16px; flex: none; color: var(--gold-d); }
.ptchip > b { flex: none; overflow: visible; }
.ptchip > span { flex: none; color: var(--ink2); } /* 넘치면 chapel.js fitEnterPt 가 통째로 숨긴다(«…» 없음) */
.ptchip > span[hidden] { display: none; }
.ptchip button { flex: none; display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--gold-d); font-size: 13px; font-weight: 700; padding: 4px 6px; border-radius: 999px; }
.ptchip button svg { width: 14px; height: 14px; }
.ptchip button[aria-pressed="true"] { background: var(--gold); color: #fff; }
.ptchip button[aria-pressed="true"] svg { color: #fff; }

/* 나갈 때 마무리 카드 */
.sheet.bye { align-items: center; background: rgba(0,0,0,.55); padding: 20px; }
.byebox { width: min(340px, 100%); box-sizing: border-box; padding: 24px 18px 16px; border-radius: 24px; background: var(--cream); text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.byebox h3 { margin: 0; font-family: "Gowun Batang", serif; font-size: 23px; color: var(--ink); }
.byesub { margin: 6px 0 14px; font-size: 13px; color: var(--ink2); word-break: keep-all; }
.byenums { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 16px; padding: 12px 0; }
.byenums div { display: flex; flex-direction: column; gap: 2px; }
.byenums div + div { border-left: 1px solid #efe3cf; }
.byenums b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.byenums b small { font-size: 13px; color: var(--ink2); font-weight: 600; }
.byenums small { font-size: 12px; color: var(--ink2); }
.byenext { margin: 12px 0 0; font-size: 13px; color: var(--ink2); }
.byenext b { color: var(--ink); }
.byebtns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 16px; }
.byebtns button { border: 0; border-radius: 14px; padding: 13px 0; font-size: 15px; font-weight: 700; }
.byebtns .go { margin: 0; width: auto; }

/* 내 정보: 나의 발자국 */
.mesteps { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 4px 4px; padding: 14px 16px; border-radius: 18px; background: #fff; }
.mesteps .msl { min-width: 0; }
.mesteps .msl small { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.msdays { display: flex; gap: 6px; margin-top: 8px; }
.msdays i { width: 26px; height: 26px; border-radius: 50%; background: #f1e6d4; color: #a08670; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.msdays i.on { background: var(--gold); color: #fff; }
.mesteps .msr { flex: none; text-align: right; display: flex; flex-direction: column; }
.mesteps .msr b { font-size: 26px; color: var(--ink); line-height: 1.1; }
.mesteps .msr b small { font-size: 14px; }
.mesteps .msr > small { font-size: 12px; color: var(--ink2); }

@media (min-width: 900px) {
  body.c3d .soundbtn { right: 100px; top: 24px; }
  body.c3d .soundpill { left: 24px; top: 108px; }
  body.c3d .praypill { bottom: 120px; }
  body.c3d .praypill.up { bottom: 188px; }
  body.c3d .praydone { left: 50%; right: auto; width: 340px; transform: translateX(-50%); top: 96px; }
  body.c3d .together { bottom: 120px; }
}
.ptset input[type=time], .ptset select { border: 1px solid #e2cfb2; border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.ptdays .seg { padding: 6px 10px; }

/* ---------- 바이럴(10-31): 공유 카드 시트·초대 링크·새벽 기도 안내·연말 카드 ---------- */
.sheet.bye .byebox { max-height: calc(100dvh - 40px); overflow-y: auto; }
.sharebox { margin-top: 12px; }
.sharetabs { display: inline-flex; padding: 3px; border-radius: 999px; background: #efe0c8; gap: 2px; }
.sharetabs button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.sharetabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sharecv { display: block; margin: 10px auto 0; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.22); width: 100%; height: auto; max-width: 100%; }
/* 시트 안 다른 줄(제목·숫자·탭·버튼 2줄 ≈ 470px)을 뺀 높이만큼만 — 작은 휴대폰에서도 «닫고 나가기»까지 한 화면에 */
.sharecv.story { width: auto; max-height: max(200px, min(calc(100dvh - 500px), 520px)); max-width: 100%; }
.sharecv.square { width: auto; max-height: max(200px, min(calc(100dvh - 500px), 420px)); max-width: 100%; }
#shareSheet .sharecv.story, #shareSheet .sharecv.square { max-height: max(220px, min(calc(100dvh - 330px), 560px)); }
.sharebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sharebtns button { border-radius: 14px; padding: 12px 0; font-size: 15px; font-weight: 700; border: 1px solid #e2d2b8; background: #fff; color: var(--ink); }
.sharebtns button.pri { border: 0; background: var(--gold); color: #fff; }
.sharebtns.one { grid-template-columns: 1fr; }
.sharewait { font-size: 12px; color: var(--ink2); margin: 6px 0 0; }
.byebtns .ghost2 { background: none; color: var(--ink2); }
.byebtns.one { grid-template-columns: 1fr; }
.invitebtn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #e2c48f; border-radius: 14px; background: #fff8ec; color: var(--ink); font-size: 14px; font-weight: 700; }
.invitebtn svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-d); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.invitebtn small { flex-basis: 100%; font-size: 11.5px; font-weight: 500; color: var(--ink2); }
.ptall { margin: -2px 0 6px; font-size: 12.5px; color: var(--ink2); }
.ptall b { color: var(--ink); }
.yearbtn { display: block; width: 100%; margin: 8px 0 0; padding: 12px; border: 1px solid #e2c48f; border-radius: 14px; background: #fff8ec; color: var(--ink); font-size: 14px; font-weight: 700; text-align: left; }
#noteList .share { border: 0; background: none; color: var(--gold-d); font-size: 13px; font-weight: 700; padding: 4px 0; }
.lgroup { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; margin: 12px 0 6px; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--gold); color: #fff; font-weight: 700; font-size: 15px; }
.lgroup small { font-size: 12px; font-weight: 500; opacity: .92; }
.tiers.g2 { grid-template-columns: 1fr 1fr; }
.gdone { margin: 6px 0 4px; font-size: 16px; color: var(--ink); text-align: center; word-break: keep-all; }
.gin { display: block; margin: 12px 0 4px; text-align: center; color: var(--gold-d); font-weight: 700; font-size: 14px; }

/* 가입 없이 바로 입장(L2, 10-31): 환영 카드 · 지금 ○명 기도 중 칩 · 우리 예배당 만들기 알약 · 만들기/초대 시트 · 손님 이름 */
.hint3d.welcome { left: 28px; right: 28px; transform: none; max-width: none; bottom: calc(var(--dock, 0px) + 104px); border-radius: 18px; padding: 10px 14px 10px 10px; gap: 10px; background: rgba(251, 243, 230, .96); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.hint3d.welcome img { width: 40px; height: 40px; }
.hint3d.welcome b { display: block; font-size: 14px; font-weight: 700; }
.hint3d.welcome small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink2); }
.waitchip { position: fixed; z-index: 5; left: 50%; top: calc(24px + var(--safe-t)); transform: translateX(-50%); max-width: min(320px, calc(100vw - 24px)); /* 휴대폰은 칩 줄 아래부터 오른쪽 버튼 열이라 폭을 써도 안 겹침 */ box-sizing: border-box; height: 30px; padding: 0 12px;
  display: flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: rgba(42, 24, 14, .78); color: #fff3e0; font: inherit; font-size: 13px; line-height: 1; white-space: nowrap; overflow: hidden; }
.waitchip img { width: 15px; height: 15px; flex: none; filter: brightness(0) invert(1) sepia(.3); opacity: .9; }
.waitchip .wcclock { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-left: 4px; opacity: .85; }
.waitchip span { overflow: hidden; text-overflow: ellipsis; }
.waitchip #waitChipB { flex: none; }
.waitchip #waitChipA:not(:empty)::after { content: ' ·'; }
.waitchip.on { background: var(--gold); color: #fff; font-weight: 700; }
.waitchip.on .wcclock, .waitchip.on #waitChipB { display: none; }
.waitchip.on #waitChipA::after { content: none; }
.mkpill { position: absolute; z-index: 3; left: 28px; bottom: calc(var(--dock, 0px) + 104px); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 56px); box-sizing: border-box; padding: 7px 14px 7px 7px; border: 0; border-radius: 999px;
  background: rgba(251, 243, 230, .96); color: var(--ink); text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.25); font: inherit; }
.mkpill .mkdot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.mkpill .mkdot svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.mkpill b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkpill small { display: block; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.mkpill span { min-width: 0; }
@media (min-width: 900px) {
  body.c3d .mkpill { left: 24px; bottom: 30px; }
  body.c3d .hint3d.welcome { left: 50%; right: auto; transform: translateX(-50%); width: 420px; bottom: 120px; }
  body.c3d .waitchip { top: 18px; }
}
/* 목적이 있는 로그인(그 버튼을 누를 때만): 뒤 3D는 그대로, 어둡게만 · PC는 가운데 창 440 */
.sheet.authsheet.purpose { background: rgba(30, 16, 8, .55); }
.authbox .sh b.authtitle { font-size: 17px; font-family: 'Gowun Batang', serif; }
.authsub { margin: -4px 0 12px; font-size: 13px; color: var(--ink2); word-break: keep-all; }
.authfoot { margin: 10px 2px 0; font-size: 12px; color: var(--ink2); line-height: 1.5; word-break: keep-all; }
.authsheet.purpose .authnote { display: none; }
@media (min-width: 900px) { .sheet.authsheet.purpose, .sheet.mk, .sheet.inv { align-items: center; } .sheet.authsheet.purpose .sheetbox, .sheet.mk .sheetbox, .sheet.inv .sheetbox { width: 440px; border-radius: 22px; } }
/* 기도제목 — 손님은 쓰기 칸 대신 점선 상자 */
.noteguest { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; padding: 12px; border: 1.5px dashed #d7bf9a; border-radius: 14px; background: #fff8ec; }
.noteguest > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink2); stroke-width: 1.8; }
.noteguest span { flex: 1; min-width: 0; }
.noteguest b { display: block; font-size: 14px; color: var(--ink); }
.noteguest small { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.noteguest button { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; background: var(--gold); color: #fff; font: inherit; font-size: 13px; font-weight: 700; }
/* 만들기 시트 */
.mkname { display: flex; align-items: center; gap: 6px; border: 1px solid #e2cfb2; border-radius: 12px; background: #fff; padding: 0 12px; margin-top: 6px; }
.mkname input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 0; font: inherit; font-size: 16px; background: none; color: var(--ink); }
.mkname small { color: #a88f72; font-size: 12px; }
.mkchips { justify-content: flex-start; margin: 8px 0 12px; }
.mkdesigns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.mkdesigns button { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink2); text-align: center; }
.mkdesigns i { display: block; aspect-ratio: 1; border-radius: 12px; background: #e9d8bd center/cover; border: 2px solid transparent; margin-bottom: 4px; }
.mkdesigns button[aria-pressed="true"] i { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,145,63,.25); }
.mkdesigns button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
/* 초대 시트 */
.sheet.inv .sh { justify-content: space-between; }
.invok { width: 34px; height: 34px; border-radius: 50%; background: #f3e3c6; display: grid; place-items: center; }
.invok svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-d); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet.inv h3 { margin: 8px 0 4px; font-family: 'Gowun Batang', serif; font-size: 19px; color: var(--ink); word-break: keep-all; }
.invprev { margin: 12px 0; border: 1px solid #e6d3b6; border-radius: 14px; overflow: hidden; background: #fff; }
.invog { aspect-ratio: 1200 / 630; background: linear-gradient(rgba(20,10,4,.45), rgba(20,10,4,.45)), url(/assets/bg/bg_full.webp) center/cover; display: grid; place-items: center; }
.invpanel { width: 72%; padding: 10px 12px; border-radius: 10px; background: rgba(251,243,230,.95); text-align: center; }
.invpanel img { display: block; margin: 0 auto 4px; height: 16px; width: auto; }
.invpanel b { display: block; font-family: 'Gowun Batang', serif; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invpanel small { display: block; font-size: 11px; color: var(--ink2); margin-top: 2px; }
.invmeta { padding: 8px 12px; }
.invmeta b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invmeta small { font-size: 11.5px; color: var(--ink2); }
.invurl { display: flex; align-items: center; gap: 8px; border: 1px solid #e2cfb2; border-radius: 12px; background: #fff; padding: 6px 6px 6px 12px; }
.invurl span { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invurl button, .invother { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 10px; background: #f3e6d0; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 10px; }
.invurl svg, .invother svg, .invkakao svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.invkakao svg { fill: currentColor; stroke: none; }
.invkakao { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; border: 0; border-radius: 12px; padding: 13px; background: #FEE500; color: #191600; font: inherit; font-size: 15px; font-weight: 700; }
.invother { display: flex; width: 100%; margin-top: 8px; padding: 12px; font-size: 14px; }
.invlater { display: block; margin: 12px auto 0; font-size: 12.5px; }
/* 내 정보 — 손님 이름 */
.nickguest .nickform input[readonly] { background: #f6ecdc; color: var(--ink); }
.nickguest #nickReroll { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nickguest #nickReroll svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.linkbtn.inl { display: inline; padding: 0; margin: 0; font-size: inherit; text-decoration: underline; }
.meminv { display: block; width: 100%; margin: 0 0 12px; padding: 10px; border-radius: 12px; font-weight: 700; }
.enterbox > a.go { display: block; margin-top: 16px; text-align: center; text-decoration: none; }
.sheet .mynote { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: #fff7e8; border: 1px solid rgba(176, 128, 48, .28); }
.sheet .mynote p { flex: 1; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); word-break: keep-all; }
.sheet .mynote button { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; background: var(--gold-d); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
@media (max-width: 380px) { .sheet .mynote { flex-direction: column; align-items: stretch; } .sheet .mynote button { align-self: flex-start; } }
.sheet .mynote .nw { white-space: nowrap; }

/* ---------- QA 2/3 (10-31): 50~60대 기준 글씨·누르는 영역·상단 나가기/내 정보 (U2 U3 U4 U7 U15) ---------- */
/* U2: 상단 왼쪽 «나가기» 글자 버튼 + 내 얼굴(=내 정보) */
.brandrow .back, body.c3d .brandrow .back { pointer-events: auto; display: inline-flex; align-items: center; height: 44px; margin: 0; padding: 0 16px; box-sizing: border-box; border-radius: 999px; background: rgba(40, 24, 14, .62); color: #fff3e0; font-size: 15px; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.mebtn { pointer-events: auto; flex: none; width: 44px; height: 44px; padding: 0; border: 2px solid rgba(255, 243, 224, .9); border-radius: 50%; overflow: hidden; background: #f0dcc0; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.mebtn img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transform: scale(1.5); transform-origin: 50% 10%; }
.brandrow .logo img { display: block; }
/* U3 휴대폰: 버튼 이름 13~14px, 이름표 13px, 안내 15px */
body.c3d .actbar button span { font-size: 14px; font-weight: 700; }
body.c3d .sidebtn { width: 70px; font-size: 13px; }
body.c3d .sidebtn .lic, .fab .lic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
body.c3d .sidebtn .sic.txt { display: grid; place-items: center; }
.fab .lic { width: 20px; height: 20px; margin: -2px 6px 0 0; }
.taglayer .nt { font-size: 13px; }
.hint3d { font-size: 15px; }
.hint3d.welcome b { font-size: 16px; }
.hint3d.welcome small { font-size: 15px; line-height: 1.4; word-break: keep-all; }
.praypill small { font-size: 13px; }
.together b { font-size: 16px; }
.together span { font-size: 14px; }
.mkpill b { font-size: 15px; }
.mkpill small { font-size: 13px; }
.soundpill span { font-size: 14px; }
.hallchip { font-size: 14px; }
.hallchip .hmore { font-size: 13px; }
.waitchip { font-size: 14px; }
.toast { font-size: 15px; }
.wordpick { font-size: 15px; }
.wordpick .wptools button { font-size: 14px; }
.wordpick .wptoday button { font-size: 14px; }
.praydone span { font-size: 14px; }
.hint, .fine { font-size: 15px; line-height: 1.5; }
.mehint { font-size: 13px; }
.ccard small { font-size: 14px; }
.lgroup small { font-size: 14px; }
.tmore { font-size: 14px; }
.blogin, .blogin .in { font-size: 15px; }
.bend .bsrc { font-size: 13px; color: var(--ink2); }
/* U11: 지금 N명 기도 중 — 빨강 대신 금색 */
.ccard .live { color: var(--gold-d); }
/* U4: 누르는 영역 44×44 이상(보이는 크기는 거의 그대로) */
.x { width: 44px; height: 44px; }
.hallchip { min-height: 44px; box-sizing: border-box; }
.soundbtn { width: 44px; height: 44px; }
.wordpick button { min-width: 44px; height: 44px; }
.wordpick select { height: 44px; }
.wordpick .wptools button, .wordpick .wptoday button { min-height: 44px; }
.listen button { min-height: 44px; min-width: 56px; }
.tmore { min-height: 44px; padding: 0 4px; }
#noteList .with { min-height: 44px; padding: 0 16px; font-size: 14px; }
#noteList .share { min-height: 44px; font-size: 14px; }
#noteList .more { width: 44px; height: 44px; margin: -6px -8px -6px 0; border: 0; background: none; color: var(--ink2); font-size: 22px; line-height: 1; letter-spacing: 1px; }
#noteList .meta { font-size: 13px; }
.linkbtn.inl { position: relative; font-weight: 700; text-decoration: underline; }
.linkbtn.inl::after { content: ""; position: absolute; left: -8px; right: -8px; top: -14px; bottom: -14px; }
.linkbtn { min-height: 44px; font-size: 14px; }
.ptchip { height: 44px; }
.merow .ghost.small, .merow .btnlink { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; font-size: 14px; }
/* U7: «소리 켜기»는 소리 버튼 옆 말풍선 */
@media (max-width: 899px) {
  body.c3d .soundpill { left: auto; right: 10px; top: calc(58px + var(--safe-t)) !important; z-index: 7; height: 40px; max-width: none; overflow: visible; }
  body.c3d .soundpill span { display: none; }
  body.c3d .soundpill::after { content: ""; position: absolute; right: 18px; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--cream); }
}
/* U8: 만들기 고르기 시트 */
.mkpick { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mkpick .opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 1px solid #e2cfb2; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; }
.mkpick .opt b { font-size: 17px; }
.mkpick .opt span { font-size: 15px; color: var(--ink2); line-height: 1.45; word-break: keep-all; }
/* U3 PC(1024px 이상): 동작 바·오른쪽 버튼·칩 1.3배 */
@media (min-width: 1024px) {
  body.c3d .actbar { width: 436px; height: 100px; border-radius: 30px; }
  body.c3d .actbar img { width: 39px; height: 39px; }
  body.c3d .actbar button span { font-size: 17px; }
  body.c3d .side { gap: 13px; }
  body.c3d .sidebtn { width: 90px; padding: 12px 2px 9px; border-radius: 22px; font-size: 16px; }
  body.c3d .sidebtn .sic, body.c3d .sidebtn .sic img { width: 42px; height: 42px; }
  body.c3d .sidebtn .sic.txt { font-size: 28px; line-height: 42px; }
  body.c3d .sidebtn .lic { width: 34px; height: 34px; }
  body.c3d .pill { font-size: 18px; padding: 10px 18px; }
  body.c3d .hallchip { font-size: 18px; min-height: 52px; padding: 8px 16px; }
  body.c3d .hallchip .hmore { font-size: 16px; }
  body.c3d .waitchip { font-size: 17px; height: 40px; max-width: 420px; }
  body.c3d .waitchip img { width: 19px; height: 19px; }
  body.c3d .brandrow .back { height: 52px; padding: 0 20px; font-size: 18px; }
  body.c3d .mebtn { width: 52px; height: 52px; }
  body.c3d .soundbtn { width: 52px; height: 52px; right: 130px; } /* 1.3배 오른쪽 버튼 열(90px)과 안 겹치게 */
  body.c3d .soundbtn svg { width: 28px; height: 28px; }
  body.c3d .mkpill b { font-size: 18px; }
  body.c3d .mkpill small { font-size: 15px; }
  body.c3d .hint3d { font-size: 17px; }
  body.c3d .hint3d.welcome { left: 50%; right: auto; transform: translateX(-50%); width: 520px; bottom: 150px; }
  body.c3d .hint3d.welcome b { font-size: 19px; }
  body.c3d .hint3d.welcome small { font-size: 17px; }
  body.c3d .praypill, body.c3d .together, body.c3d .listen, body.c3d .wordpick, body.c3d .askcard, body.c3d .mkpill { bottom: 146px; }
  body.c3d .taglayer .nt { font-size: 15px; }
}
.memlist .role { font-size: 14px; }
.memlist .acts button, .memlist .acts .herebadge { min-height: 44px; min-width: 56px; font-size: 14px; box-sizing: border-box; }
.memlist .acts .herebadge { display: inline-flex; align-items: center; min-width: 0; }
.waitchip { overflow: visible; }
.waitchip::after { content: ""; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; }
/* QA 2/3: 남은 작은 글씨·누르는 영역 */
.tabs button { font-size: 13px; }
.fback, .bstandtop a.fback { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 14px; font-size: 14px; }
.swt::after { content: ""; position: absolute; left: -4px; right: -4px; top: -8px; bottom: -8px; }
.sharetabs button { min-height: 44px; font-size: 14px; }
.row button, .row2 button { min-height: 44px; }
#bibleLink { display: inline-block; padding: 13px 0; }
#noteGuest button { min-height: 44px; }
.noteguest small { font-size: 13px; }
.bnav button { height: 44px; }
#nickReroll { min-height: 44px; }
.byenums small, .mesteps .msr > small { font-size: 13px; }
.mesteps .msl small, .ptall { font-size: 13px; }
.wb .ref { font-size: 13px; }
.invitebtn small, .invmeta small { font-size: 13px; }
.lfoot a { display: inline-block; padding: 13px 4px; }
#menuSheet { z-index: 31; } /* 쪽지 «⋯» 메뉴가 쪽지 시트 위에(U4) */
/* QA 2/3: 재촬영에서 남은 것 */
.badge { font-size: 13px; }
.biblelogin { font-size: 14px; }
.biblelogin small { font-size: 13px; }
.biblelogin .in, .biblelogin .out, .blogin .in { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
.nickhave small, .teaser b { font-size: 13px; }
.btitle small { font-size: 13px; }
.bverses li .n { font-size: 13px; }
.msdays i { width: 30px; height: 30px; font-size: 13px; }
.nicksug button, .seg { min-height: 44px; font-size: 14px; }
.memme button, button.small { min-height: 44px; font-size: 14px; }
.mkname small { font-size: 13px; }
.mkdesigns button { font-size: 14px; }
.invurl button, .invother { min-height: 44px; }
.lfoot a { padding: 14px 4px; }
/* 360 목록: 긴 예배당 이름은 «…» 대신 두 줄까지 */
.ccard b { white-space: normal; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
/* «소리 켜기» 말풍선이 떠 있는 동안(5초)만 교회 이름 알약을 줄여 겹치지 않게(긴 이름은 …) */
@media (max-width: 899px) { body.c3d:has(#soundPill:not([hidden])) .toprow { max-width: calc(100% - 124px); } }
.invlater, .linkbtn { word-break: keep-all; } /* «…있어 / 요» 한 글자 줄바꿈 막기 */
.pfoot img.ai { width: 18px; height: 18px; vertical-align: -3px; filter: brightness(0) saturate(100%) invert(35%) sepia(40%) saturate(600%) hue-rotate(5deg); } /* 아멘 선 아이콘(U15) — 흰 아이콘을 갈색으로 */
.pfoot button { min-height: 44px; font-size: 14px; }

/* 함께 만든 분들 — 색·글꼴은 --cream·--ink·Gowun Batang 만 */
.mecredit { margin: 18px 0 8px; text-align: center; }
.mecredit .linkbtn { color: var(--ink); font-family: "Gowun Batang", serif; opacity: .75; }
.creditbox { color: var(--ink); }
.creditbox .sh b { font-family: "Gowun Batang", serif; font-weight: 700; }
.crsub { margin: 6px 0 14px; font-size: 14px; line-height: 1.55; word-break: keep-all; opacity: .75; }
.crlist { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-family: "Gowun Batang", serif; font-size: 16px; line-height: 1.5; }
.crlist li { overflow-wrap: anywhere; }
.crempty { margin: 18px 0 22px; text-align: center; font-family: "Gowun Batang", serif; font-size: 15px; opacity: .6; word-break: keep-all; }
