/* DearCinema — 심야 독립영화관의 GV: 검정 · 샴페인 골드 · 딥 레드, 스포트라이트와 붉은 막.
 * 화면 글자는 Playfair Display(제목) + Inter(본문), 한국어 질문 · 줄거리는 Noto Serif KR / 시스템 고딕. */

:root {
  --bg: #0a0807;
  --panel: #14110f;
  --panel2: #1c1815;
  --panel3: #26201b;
  --line: rgba(217, 189, 138, .14);
  --line2: rgba(217, 189, 138, .28);
  --gold: #d9bd8a;
  --gold-hi: #f1dfb6;
  --gold-lo: #9c8457;
  --red: #7d1820;
  --red-hi: #c8474c;
  --ink: #f3ece0;
  --ink2: #cfc5b4;
  --muted: #9a8f7f;
  --tabs: 62px;
  --serif: 'Playfair Display', 'Noto Serif KR', 'Didot', Georgia, serif;
  --kserif: 'Noto Serif KR', 'Playfair Display', 'AppleMyungjo', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* 객석: 넓은 화면에서는 양옆에 붉은 막, 가운데 위에서 떨어지는 빛 */
.house { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  background:
    radial-gradient(60% 46% at 50% -8%, rgba(241, 223, 182, .13), transparent 70%),
    linear-gradient(90deg, #2a0a0e 0, #4a1016 3%, #2a0a0e 6%, #47101a 9%, #1a0608 13%, transparent 20%, transparent 80%, #1a0608 87%, #47101a 91%, #2a0a0e 94%, #4a1016 97%, #2a0a0e 100%); }
.shell { position: relative; z-index: 1; width: min(540px, 100%); margin: 0 auto; min-height: 100dvh; background: var(--bg); box-shadow: 0 0 80px 30px rgba(0, 0, 0, .7); padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
.main { min-height: calc(100dvh - var(--tabs)); }

/* ── 아래 탭 ── */
.tabs { position: fixed; z-index: 50; bottom: 0; left: 50%; transform: translateX(-50%); width: min(540px, 100%); height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(12, 10, 9, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; letter-spacing: .02em; }
.tabs a svg { width: 23px; height: 23px; }
.tabs a.on { color: var(--gold-hi); }
.tabs a.on svg { stroke-width: 1.9; }
.tabs a.on::before { content: ''; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); }
.tabs .dot { position: absolute; top: 11px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 2px var(--bg); }

/* ── 머리 ── */
.logo { font: 700 26px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.logo em { font-style: normal; color: var(--gold); }
.logo sup { font: 600 9px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-lo); margin-left: 6px; vertical-align: top; position: relative; top: 4px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 18px 10px; }
.page { font: 600 26px/1.1 var(--serif); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink2); flex: none; }
.icon-btn:active { background: var(--panel2); }
.icon-btn.ghost { visibility: hidden; }
.icon-btn.mark.on { color: var(--gold); }
.icon-btn.mark.on svg { fill: var(--gold); }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; background: rgba(10, 8, 7, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar-title { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.bar-title b { font: 600 17px/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 단추 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-cta { background: linear-gradient(180deg, #ecd7a8, #cfae75); color: #1b1408; box-shadow: 0 6px 22px rgba(217, 189, 138, .16); }
.btn-ghost { border: 1px solid var(--line2); color: var(--ink2); }
.btn-danger { background: rgba(200, 71, 76, .14); border: 1px solid rgba(200, 71, 76, .5); color: #f0a3a6; }
.btn-block, .sheet .btn, .gate-card .btn { width: 100%; }
.btn-big { width: 100%; min-height: 52px; font-size: 16px; }
.pill { display: inline-block; font: 600 10px/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; color: var(--ink2); border: 1px solid var(--line2); vertical-align: 1px; }
.pill.gold { color: var(--gold); border-color: var(--gold-lo); }
.pill.red { color: #f0a3a6; border-color: rgba(200, 71, 76, .55); }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-size: 13.5px; white-space: nowrap; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #1b1408; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* ── Foyer ── */
.hero { position: relative; margin: 4px 14px 6px; padding: 30px 22px 26px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 50% -20%, rgba(241, 223, 182, .22), transparent 62%),
    linear-gradient(90deg, rgba(125, 24, 32, .55) 0, rgba(74, 16, 22, .2) 9%, transparent 22%, transparent 78%, rgba(74, 16, 22, .2) 91%, rgba(125, 24, 32, .55) 100%),
    linear-gradient(180deg, #17120f, #0d0a09); }
.hero::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo), transparent); }
.kicker { font: 600 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero h2, .slogan { font: 500 31px/1.16 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.hero p:not(.kicker) { margin: 12px 0 20px; color: var(--ink2); font-size: 14.5px; max-width: 34ch; }
.slogan { font-style: italic; color: var(--gold-hi); font-size: 24px; }
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 18px 12px; }
.sec-h h3 { font: 600 19px/1.2 var(--serif); }
.sec-h h3 i { font: 500 13px var(--sans); font-style: normal; color: var(--muted); margin-left: 6px; }
.sec-h a { font-size: 13px; color: var(--gold); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.foot { padding: 26px 22px 30px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* 제목 카드 (포스터 대신) */
.tcard { --h: 20; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 118px; aspect-ratio: 2 / 3; padding: 12px 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2);
  background: radial-gradient(120% 60% at 50% -10%, hsla(var(--h), 45%, 62%, .34), transparent 70%), linear-gradient(180deg, hsl(var(--h), 22%, 15%), #0d0b0a 85%); }
.tcard::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(217, 189, 138, .2); border-radius: 6px; pointer-events: none; }
.tcard b { font: 600 14.5px/1.15 var(--serif); color: var(--gold-hi); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: break-word; }
.tcard i { font: 500 10.5px var(--sans); font-style: normal; letter-spacing: .12em; color: var(--muted); }
.tcard.thumb { width: 54px; padding: 7px 6px; border-radius: 7px; flex: none; }
.tcard.thumb::before { inset: 3px; border-radius: 4px; }
.tcard.thumb b { font-size: 8.5px; -webkit-line-clamp: 4; }
.tcard.thumb i { font-size: 7.5px; }
.tcard.mini { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; padding: 8px; }
.tcard.mini::before { display: none; }
.tcard.mini b { font-size: 11px; -webkit-line-clamp: 3; }
.tcard.mini i { display: none; }
.tcard.big { width: 96px; flex: none; }
.tcard.big b { font-size: 12.5px; }
.fposter { display: flex; flex-direction: column; gap: 7px; width: 118px; }
.fp-q { font-size: 11.5px; color: var(--muted); }

/* 질문 카드 */
.qlist { display: flex; flex-direction: column; gap: 10px; padding: 0 14px; }
.qc { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.qc:active { background: var(--panel2); }
.qc-img { width: 92px; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; flex: none; background: #000; }
.qc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; padding: 2px 2px 2px 0; }
.qc-where { font-size: 11.5px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-where .sep { color: var(--gold-lo); margin: 0 2px; }
.qc-text { font: 500 15.5px/1.45 var(--kserif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.qc-meta { margin-top: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.qc-meta .nick { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-meta .cnt { display: inline-flex; align-items: center; gap: 3px; }
.qc-meta svg { width: 14px; height: 14px; }
.qc.wide { width: 272px; }
.qc.wide .qc-img { width: 84px; }
.qc.spoil:not(.shown) .qc-text { filter: blur(7px); user-select: none; }
.qc.spoil:not(.shown) .qc-img img { filter: blur(12px) brightness(.7); transform: scale(1.15); }
.qc.spoil:not(.shown) .qc-body { position: relative; }
.qc.spoil:not(.shown) .qc-body::after { content: 'Tap to reveal'; position: absolute; left: 0; top: 42%; font-size: 11.5px; color: var(--ink2); letter-spacing: .04em; }

/* 프로필 그림 */
.uav { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: var(--panel3); box-shadow: 0 0 0 1.5px var(--ring, var(--gold-lo)); }
.uav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring0 { --ring: #d9bd8a; } .ring1 { --ring: #c8474c; } .ring2 { --ring: #8fb0a0; } .ring3 { --ring: #b79ad6; }
.ring4 { --ring: #e0a070; } .ring5 { --ring: #7fa8d8; } .ring6 { --ring: #d8d0c0; } .ring7 { --ring: #c9a0a8; }
.gav { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; color: var(--gold-hi); border: 1px solid var(--gold-lo); background: radial-gradient(circle at 50% 20%, rgba(241, 223, 182, .26), rgba(125, 24, 32, .28) 70%), #171210; }
.gav svg { width: 52%; height: 52%; stroke-width: 1.5; }

/* ── Search ── */
.searchbar { position: sticky; top: 0; z-index: 20; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: rgba(10, 8, 7, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sbox { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); }
.sbox:focus-within { border-color: var(--gold-lo); }
.sbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font-size: 16px; }
.sbox input::-webkit-search-cancel-button { display: none; }
.sbox button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.sbox button svg { width: 16px; height: 16px; }
.flist { display: flex; flex-direction: column; padding: 0 14px; }
.frow { display: flex; align-items: center; gap: 13px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.frow > svg { width: 18px; height: 18px; }
.frow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.frow-body b { font: 600 17px/1.25 var(--serif); color: var(--ink); }
.frow-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow-note { font-size: 13px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.frow-note:empty { display: none; }
.frow-tag { font-size: 11.5px; color: var(--gold); margin-top: 2px; }

/* ── 영화 ── */
.subtabs { display: flex; gap: 22px; padding: 4px 20px 0; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 0 11px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--gold-hi); border-color: var(--gold); font-weight: 600; }
.subtabs a i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 3px; }
.logline { padding: 18px 20px 0; font: 500 15.5px/1.6 var(--kserif); color: var(--ink2); word-break: keep-all; }
.spoiler-note { margin: 14px 20px 4px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--ink2); background: rgba(125, 24, 32, .22); border: 1px solid rgba(200, 71, 76, .3); }
.smap { position: relative; padding: 10px 14px 0; }
.smap::before { content: ''; position: absolute; left: 39px; top: 34px; bottom: 30px; width: 1px; background: linear-gradient(180deg, var(--gold-lo), rgba(156, 132, 87, .15)); }
.ch { position: relative; border-radius: 14px; border: 1px solid transparent; margin-bottom: 2px; }
.ch-head { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 12px 10px 12px 6px; }
.ch-n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; flex: none; font: 600 13px var(--sans); letter-spacing: .04em; color: var(--gold-hi); background: #17130f; border: 1px solid var(--gold-lo); position: relative; z-index: 1; }
.ch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ch-main b { font: 600 17.5px/1.25 var(--serif); color: var(--ink); }
.ch-sum { font-size: 14px; line-height: 1.62; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.ch-q { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--gold); padding-top: 3px; }
.ch-q svg { width: 14px; height: 14px; }
.ch-acts { display: none; gap: 8px; flex-wrap: wrap; padding: 0 12px 14px 58px; }
.ch.open { background: linear-gradient(180deg, rgba(217, 189, 138, .1), rgba(217, 189, 138, .04)); border-color: var(--line2); }
.ch.open .ch-n { background: var(--gold); color: #1b1408; border-color: var(--gold); }
.ch.open .ch-sum { -webkit-line-clamp: unset; display: block; color: var(--ink); }
.ch.open .ch-acts { display: flex; }
.ch-acts .btn { min-height: 40px; padding: 8px 16px; font-size: 13.5px; }
.whole { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 18px 0; padding: 13px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--ink2); font-size: 13.5px; }
.whole svg { width: 16px; height: 16px; }
.curtain { margin: 22px 16px; padding: 34px 22px; border-radius: 20px; text-align: center; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: radial-gradient(80% 60% at 50% -10%, rgba(241, 223, 182, .16), transparent 70%), linear-gradient(90deg, rgba(125, 24, 32, .4), transparent 18%, transparent 82%, rgba(125, 24, 32, .4)), var(--panel); }
.curtain b { font: 600 21px/1.2 var(--serif); }
.curtain p { color: var(--ink2); font-size: 14px; max-width: 36ch; }
.curtain .btn { margin-top: 6px; }
.lamp { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold-hi); border: 1px solid var(--gold-lo); background: radial-gradient(circle at 50% 20%, rgba(241, 223, 182, .3), transparent 70%); }
.reel { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold-lo); border-top-color: var(--gold-hi); border-right-color: transparent; animation: spin 1.1s linear infinite; position: relative; }
.reel::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 2px dotted var(--gold-lo); }
.about { padding: 18px 18px 0; }
.about h3, .guide h3 { font: 600 18px var(--serif); margin: 26px 0 12px; }
.about-card { display: flex; gap: 14px; align-items: flex-start; }
.about-card > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.about-card b { font: 600 20px/1.2 var(--serif); }
.about-card b .ko, .ko { font: 500 .78em var(--sans); color: var(--muted); margin-left: 4px; }
.about-card span { font-size: 13px; color: var(--muted); }
.about-card p { margin-top: 6px; font: 500 14.5px/1.6 var(--kserif); color: var(--ink2); word-break: keep-all; }
.guests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.guest { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.guest b { font: 600 16px var(--serif); margin-top: 8px; }
.guest .role { font-size: 12px; color: var(--gold); }
.guest .blurb { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.note { font-size: 12.5px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ── Ask the Room ── */
.composer { padding: 10px 16px 30px; display: flex; flex-direction: column; gap: 16px; }
.picked { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); }
.picked > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.picked b { font: 600 17px/1.2 var(--serif); }
.picked span { font-size: 12.5px; color: var(--muted); }
.picked .picked-ch { color: var(--gold-hi); font-weight: 500; margin-top: 4px; font-size: 13px; }
.picked a { color: var(--gold); font-size: 13px; align-self: flex-end; }
.picked-sum { margin: -6px 2px 0; font-size: 13.5px; line-height: 1.62; color: var(--ink2); word-break: keep-all; padding-left: 12px; border-left: 2px solid var(--gold-lo); }
.fld { position: relative; display: flex; flex-direction: column; gap: 8px; }
.fld > span { font: 600 16px var(--serif); }
.fld > span em { font: 400 12.5px var(--sans); font-style: normal; color: var(--muted); }
textarea, .gate-card input { width: 100%; padding: 13px 14px; border-radius: 13px; background: var(--panel2); border: 1px solid var(--line2); outline: 0; font-size: 16px; line-height: 1.55; resize: none; color: var(--ink); }
textarea:focus, .gate-card input:focus { border-color: var(--gold); outline: 0; }
textarea { word-break: keep-all; overflow-wrap: anywhere; }
textarea::placeholder, input::placeholder { color: #7a7063; }
#aqText { font-family: var(--kserif); font-size: 17px; padding-bottom: 28px; }
.count { position: absolute; right: 12px; bottom: 9px; font: 400 11.5px var(--sans); font-style: normal; color: var(--muted); }
.opts { display: flex; gap: 10px; flex-wrap: wrap; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line2); font-size: 13px; color: var(--ink2); }
.opt svg { width: 17px; height: 17px; color: var(--gold); }
.opt input:not([type=checkbox]) { width: 76px; background: none; border: 0; outline: 0; font-size: 16px; color: var(--ink); }
.opt.check input, .keep input { accent-color: var(--gold); width: 17px; height: 17px; margin: 0; }
.err { color: #f0a3a6; font-size: 13.5px; }
.warn { color: #f0c38a; font-size: 13.5px; }
.tiny { font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; }
.muted { color: var(--ink2); font-size: 14px; }
.quiet { padding: 4px 18px 0; color: var(--muted); font-size: 13.5px; }

/* ── 질문 하나 ── */
.scene { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.scene img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .6s ease both; }
.scene figcaption { position: absolute; left: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px); padding: 5px 9px; border-radius: 999px; font-size: 10.5px; line-height: 1.3; color: var(--ink2); background: rgba(10, 8, 7, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scene figcaption svg { width: 12px; height: 12px; color: var(--gold); }
.scene.wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(70% 90% at 50% 0, rgba(241, 223, 182, .12), transparent 70%), #100d0b; }
.scene.wait figcaption { position: static; background: none; font-size: 13px; }
.qhead { padding: 18px 18px 0; }
.qtext { font: 600 22px/1.42 var(--kserif); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
.qdetails { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink2); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; padding-left: 12px; border-left: 2px solid var(--line2); }
.qmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.qmeta .nick { color: var(--ink2); }
.qmeta .t { display: inline-flex; align-items: center; gap: 3px; }
.qmeta .t svg { width: 13px; height: 13px; }
.qacts { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink2); font-size: 13.5px; }
.act svg { width: 20px; height: 20px; }
.act.right { margin-left: auto; color: var(--gold); font-size: 13px; }
.act.right svg { width: 14px; height: 14px; }
.like.on { color: var(--red-hi); }
.like.on svg { fill: var(--red-hi); }
.ans { margin: 0 14px 12px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #19150f, var(--panel)); border: 1px solid var(--line2); animation: rise .5s ease both; }
.ans:nth-child(2) { animation-delay: .08s; } .ans:nth-child(3) { animation-delay: .16s; }
.ans header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ans header div { flex: 1; display: flex; flex-direction: column; }
.ans header b { font: 600 17px/1.2 var(--serif); }
.ans header span { font-size: 12.5px; color: var(--gold); }
.lbl { display: block; font: 600 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ans p { font-size: 15px; line-height: 1.72; word-break: keep-all; overflow-wrap: anywhere; }
.shown { padding: 11px 13px; border-radius: 11px; background: rgba(255, 255, 255, .035); margin-bottom: 13px; }
.shown p { color: var(--ink2); font-size: 14px; line-height: 1.65; }
.reading .lbl { color: var(--gold); }
.sec > .note { padding: 0 18px; margin-top: 4px; }
.seats { margin: 0 14px; padding: 28px 20px; border-radius: 16px; text-align: center; background: var(--panel); border: 1px dashed var(--line2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.seats b { font: 600 18px var(--serif); }
.seats p { color: var(--ink2); font-size: 13.5px; }
.cms { padding: 0 16px; }
.cm { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cm-body { flex: 1; min-width: 0; }
.cm-top { display: flex; align-items: baseline; gap: 8px; }
.cm-top b { font-size: 13.5px; font-weight: 600; }
.cm-top span { font-size: 11.5px; color: var(--muted); }
.cm-body p { margin-top: 3px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.cm-acts { display: flex; gap: 16px; margin-top: 5px; color: var(--muted); }
.cm-acts .act { font-size: 12.5px; color: var(--muted); min-height: 28px; }
.cm-acts .act svg { width: 16px; height: 16px; }
.cm-acts .like.on { color: var(--red-hi); }
.cmform { display: flex; align-items: flex-end; gap: 8px; margin: 14px 14px 0; padding: 6px 6px 6px 4px; border-radius: 22px; background: var(--panel2); border: 1px solid var(--line2); }
.cmform textarea { border: 0; background: none; padding: 8px 10px; min-height: 40px; }
.icon-btn.send { background: var(--gold); color: #1b1408; }
.icon-btn.send svg { width: 18px; height: 18px; }

/* ── Q&A 피드 · Activity · Profile ── */
.seg { display: flex; gap: 6px; margin: 2px 14px 14px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.seg a { flex: 1; text-align: center; padding: 9px; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.seg a.on { background: var(--gold); color: #1b1408; font-weight: 600; }
.more { display: flex; margin: 16px auto 0; }
.notes, .mycms { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.notes a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.notes .fresh a { border-color: var(--gold-lo); background: linear-gradient(180deg, rgba(217, 189, 138, .1), var(--panel)); }
.notes a > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notes b { font-size: 13.5px; font-weight: 600; }
.n-text { font-size: 13.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.n-at { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.n-at svg { width: 12px; height: 12px; }
.mycms a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.mycms .on-q { font-size: 12px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mycms p { font-size: 14.5px; line-height: 1.6; word-break: keep-all; }
.pcard { display: flex; align-items: center; gap: 16px; margin: 6px 14px 0; padding: 20px; border-radius: 18px; border: 1px solid var(--line2); background: radial-gradient(90% 90% at 0 0, rgba(241, 223, 182, .14), transparent 70%), var(--panel); }
.pcard div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcard b { font: 600 21px var(--serif); overflow-wrap: anywhere; }
.pcard span { font-size: 12.5px; color: var(--gold); }
.links { margin: 26px 14px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 16px; font-size: 14.5px; color: var(--ink); text-align: left; border-bottom: 1px solid var(--line); }
.link:last-child { border-bottom: 0; }
.link svg { width: 16px; height: 16px; color: var(--muted); }
.link.danger { color: #f0a3a6; }
.guide { padding: 14px 18px 0; }
.guide .slogan { margin: 6px 0 22px; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 14px; }
.steps b { font: 600 17px var(--serif); }
.steps p { font-size: 14px; color: var(--ink2); margin-top: 2px; }

/* ── 빈 화면 · 기다림 ── */
.empty { margin: 30px 18px 0; padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { font: 600 20px var(--serif); }
.empty p { color: var(--ink2); font-size: 14px; max-width: 34ch; }
.empty .btn { margin-top: 8px; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 0; color: var(--muted); font-size: 13.5px; }
.spinner { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ── 입장 암호 · 연령 · 시트 ── */
.dw-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 22px;
  background: radial-gradient(70% 50% at 50% -5%, rgba(241, 223, 182, .2), transparent 70%), linear-gradient(90deg, #2a0a0e 0, #4a1016 4%, #1a0608 12%, #0a0807 24%, #0a0807 76%, #1a0608 88%, #4a1016 96%, #2a0a0e 100%), var(--bg); }
.gate-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 30px 24px; border-radius: 22px; background: rgba(16, 13, 11, .92); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gate-card .logo { font-size: 32px; margin-bottom: 4px; }
.gate-card p { color: var(--ink2); font-size: 14.5px; }
.gate-card p b { color: var(--ink); }
.gate-card input { text-align: center; }
.overlay, .modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease both; }
.sheet { position: relative; width: min(540px, 100%); max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--panel2); border: 1px solid var(--line2); border-bottom: 0; animation: fadeUp .28s ease both; }
.sheet h2 { font: 600 23px/1.2 var(--serif); padding-right: 30px; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); }
.menu-sheet { gap: 10px; }
.gbtn { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.keep { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.pf-card { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 150px; justify-content: center; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.pf-card b { font: 600 21px var(--serif); }
.fb-stars { display: flex; justify-content: center; gap: 6px; }
.fb-stars button { font-size: 30px; color: #4a4238; }
.fb-stars button.on { color: var(--gold); }
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--tabs) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); max-width: min(440px, calc(100% - 32px)); padding: 11px 17px; border-radius: 14px; background: #2b241c; border: 1px solid var(--line2); color: var(--ink); font-size: 13.5px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 앱 설치 팝업 (install.js, 시리즈 공통) ── */
.dwi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); pointer-events: none; animation: fadeUp .4s ease both; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 12px; }
.dwi-head { display: flex; gap: 12px; align-items: flex-start; }
.dwi-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.dwi-head b { display: block; font-weight: 700; font-size: 16px; }
.dwi-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.dwi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dwi-btn { padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.dwi-main { background: var(--gold); color: #1b1408; font-weight: 650; }
.dwi-ghost { border: 1px solid var(--line2); color: var(--ink2); }
.dwi-more { font-size: 13.5px; color: var(--ink); }
.dwi-steps { margin: 0; padding-left: 20px; line-height: 1.9; list-style: decimal; }
.dwi-ico { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; background: var(--bg); color: var(--gold); }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }

@media (min-width: 560px) {
  .house { display: block; }
  .hero h2 { font-size: 36px; }
  .guests { grid-template-columns: repeat(4, 1fr); }
  .about .guests, .guide .guests { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
