/* DearThen — 시안: 역사 현장 그림을 어둡게 깐 위에 글자가 바로 꽂힌다(말풍선 없음). 해설은 흰 세리프, 상대 이름은 금색 작은 대문자, 나는 오른쪽 푸른 글자.
   모든 화면이 어두운 바탕 — 시트(고르기 · 확인)만 양피지색. 휴대폰 한 칸 너비. */
:root {
  --ink: #0d0b09; --ink2: #16130f; --ink3: #211c16; --line: rgba(236,227,212,.13);
  --text: #ece3d4; --muted: rgba(236,227,212,.62); --faint: rgba(236,227,212,.42);
  --amber: #d6a35c; --amber2: #b8864a; --you: #a9c2e2; --cream: #efe2cb; --paper: #f7f0e4; --paper2: #ece2d1; --text-l: #221c15; --muted-l: #6f6455; --line-l: #e2d6c3;
  --verified: #c9a56a; --fiction: #8fb3a1; --alternate: #c894b6;
  --serif: 'EB Garamond', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 16px; --tab: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font: 16px/1.5 var(--sans); background: #050403; color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.stage { position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--ink); box-shadow: 0 0 80px rgba(0,0,0,.7); }
.app { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tab) + var(--safe-b) + 12px); }
body.notab .app { padding-bottom: 0; }
body.notab .tabbar { display: none; }

/* 아래 탭 */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: rgba(13,11,9,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 30; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--faint); }
.tabbar a.on { color: var(--amber); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 머리 줄 */
.bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 56px; padding: 0 4px; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; background: rgba(13,11,9,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar.float { position: absolute; left: 0; right: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar h1 { margin: 0; text-align: center; font: 500 18px/1.2 var(--serif); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar.float .ic { background: rgba(0,0,0,.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* 글꼴 */
.logo { font: 500 27px/1 var(--serif); letter-spacing: .01em; }
.logo b { font-weight: 500; color: var(--amber); }
.display { font: 500 42px/1.04 var(--serif); letter-spacing: -.005em; margin: 0; }
.h2 { font: 500 22px/1.25 var(--serif); margin: 28px 0 12px; }
.kicker { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.serif { font-family: var(--serif); }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-cream, .btn-dark { background: var(--cream); color: #1f1912; }
.btn-ghost { background: rgba(236,227,212,.08); color: inherit; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: #3a1a14; color: #ffb7a6; }
.link { color: var(--amber); font-weight: 500; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; background: rgba(236,227,212,.04); text-align: left; }

/* 분류 표 */
.kind { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; }
.kind::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.kind-verified { color: var(--verified); }
.kind-fiction { color: var(--fiction); }
.kind-alternate { color: var(--alternate); }

/* 얼굴 */
.face { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, #3a2f24, #1b1611); display: grid; place-items: center; font: 500 19px/1 var(--serif); color: var(--amber); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.sm { width: 38px; height: 38px; font-size: 15px; }
.face.md { width: 64px; height: 64px; font-size: 24px; }
.face.lg { width: 108px; height: 108px; font-size: 40px; }
.face.plain { background: rgba(0,0,0,.35); color: var(--text); }
.face.plain svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ── 홈 ── */
.hero { position: relative; height: 78vh; min-height: 560px; max-height: 760px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 22px 26px; overflow: hidden; }
.hero .bgimg { position: absolute; inset: 0; background: #1b1611 center 30%/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,9,.75) 0%, rgba(13,11,9,.15) 26%, rgba(13,11,9,.2) 50%, rgba(13,11,9,.88) 78%, var(--ink) 100%); }
.hero > *:not(.bgimg):not(.home-top) { position: relative; z-index: 1; }
.home-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 16px) 22px 0; }
.home-top .face { width: 40px; height: 40px; box-shadow: 0 0 0 1.5px rgba(236,227,212,.6); }
.tagline { position: absolute !important; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 22px; margin: 0; font: italic 17px/1.4 var(--serif); color: rgba(236,227,212,.82); }
.lead { display: block; }
.lead .kicker { display: block; margin-bottom: 10px; color: rgba(236,227,212,.8); }
.lead-go { display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 999px; background: var(--cream); color: #1f1912; font-weight: 600; font-size: 15px; }
.sec { padding: 24px 20px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font: 500 23px/1.2 var(--serif); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.tile { display: block; min-width: 0; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 6px; margin: 0 -20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .tile { flex: none; width: 160px; scroll-snap-align: start; }
.tile .poster { position: relative; aspect-ratio: 3/4.2; border-radius: 12px; overflow: hidden; background: #221c16 center/cover; }
.tile .poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 45%, rgba(0,0,0,.82)); }
.tile .yr { position: absolute; top: 10px; left: 12px; z-index: 1; font: 600 10.5px/1 var(--sans); letter-spacing: .16em; color: rgba(236,227,212,.85); }
.tile .t { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; font: 500 19px/1.1 var(--serif); }
.tile .meta { margin-top: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.create-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r); background: linear-gradient(120deg, rgba(214,163,92,.14), rgba(214,163,92,.04)); border: 1px solid rgba(214,163,92,.3); }
.create-card .plus { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(214,163,92,.6); display: grid; place-items: center; color: var(--amber); }
.create-card .plus svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.create-card b { display: block; font: 500 20px/1.2 var(--serif); }
.create-card span span { font-size: 14px; color: var(--muted); }
.foot { padding: 26px 20px 8px; font-size: 12.5px; color: var(--faint); text-align: center; }
.foot button { text-decoration: underline; }
.list { padding: 4px 16px; }
.lcard { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 8px 0; border-radius: 14px; background: rgba(236,227,212,.05); }
.lcard .thumb { flex: none; width: 52px; height: 64px; border-radius: 9px; background: #221c16 center/cover; }
.lcard .who { flex: 1; min-width: 0; }
.lcard .who b { display: block; font: 500 18px/1.2 var(--serif); }
.lcard .sub { font-size: 12.5px; color: var(--muted); }
.sec .lcard { margin: 8px 0; }

/* ── 순간 ── */
.m-top { position: relative; height: 470px; overflow: hidden; }
.m-top .bgimg { position: absolute; inset: 0; background: #1b1611 center 30%/cover no-repeat; }
.m-top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,9,.45) 0%, transparent 22%, rgba(13,11,9,.35) 55%, var(--ink) 100%); }
.m-head { position: absolute; left: 22px; right: 22px; bottom: 8px; z-index: 1; }
.m-head .display { margin-top: 12px; }
.m-where { margin: 8px 0 0; font: italic 17px/1.3 var(--serif); color: rgba(236,227,212,.85); }
.m-body { padding: 8px 22px 30px; }
.summary { font: 19px/1.5 var(--serif); margin: 10px 0 10px; }
.m-acts { display: flex; align-items: center; gap: 20px; margin: 14px 0 6px; color: var(--muted); font-size: 14px; }
.act { display: inline-flex; align-items: center; gap: 6px; }
.act svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.act.on svg { fill: #d0715f; stroke: #d0715f; }
.byline { font-size: 13px; color: var(--muted); }
.pers { display: grid; gap: 10px; }
.per { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: var(--r); background: rgba(236,227,212,.05); border: 1px solid var(--line); transition: background .2s; }
.per:active { background: rgba(214,163,92,.12); }
.per:disabled { opacity: .5; }
.per-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.per-t b { font: 500 20px/1.2 var(--serif); }
.per .role { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin-top: 2px; }
.per .role i { font-style: normal; color: var(--verified); text-transform: none; letter-spacing: 0; }
.per .desc { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.per .go { font-size: 24px; color: var(--faint); }
.per.sm { margin: 8px 0; padding: 10px; }
.per.sm b { font-size: 18px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.people span { padding: 6px 12px; border-radius: 999px; background: rgba(236,227,212,.06); font: 16px/1.2 var(--serif); }
.people i { margin-left: 6px; font: 600 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--verified); }
.owner-tools { display: flex; gap: 8px; margin-top: 22px; }
.note { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(214,163,92,.1); font-size: 14px; }

/* ── 체험 (시안) ── */
body[data-view=run] .stage { background: #000; }
.play { position: relative; min-height: 100vh; min-height: 100dvh; }
.play-bg { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #1b1611 center/cover no-repeat; z-index: 0; }
.play-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,4,.78) 0%, rgba(8,6,4,.55) 30%, rgba(8,6,4,.62) 70%, rgba(8,6,4,.92) 100%); }
.play-top { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 16px 6px; background: linear-gradient(180deg, rgba(8,6,4,.97) 72%, rgba(8,6,4,0)); padding-bottom: 26px; }
.pt-l { display: flex; align-items: flex-start; gap: 2px; }
.pt-l .ic { margin-top: -8px; color: var(--muted); }
.pt-l .brand { display: block; font: 500 13px/1 var(--serif); letter-spacing: .32em; color: rgba(236,227,212,.88); margin-bottom: 7px; }
.pt-l .where { display: block; font: 15px/1.35 var(--serif); color: var(--muted); }
.pt-r { text-align: right; }
.timer { display: block; font: 400 40px/1 var(--serif); letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.timer.low { color: #e9a06a; }
.tbar { display: block; width: 128px; height: 3px; margin-top: 9px; margin-left: auto; border-radius: 3px; background: rgba(236,227,212,.22); overflow: hidden; }
.tbar i { display: block; height: 100%; width: 100%; background: var(--amber); transition: width .5s linear; }
.log { position: relative; z-index: 1; padding: 6px 22px 150px; }
.b { margin: 0 0 18px; opacity: 0; animation: rise .7s ease forwards; animation-delay: calc(var(--i, 0) * .45s); }
.log.still .b { animation: none; opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.b p { margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.b.nar p { font: 19px/1.45 var(--serif); color: rgba(236,227,212,.9); }
.log > .b.nar:first-child p { font-size: 22px; }
.b.say { padding-left: 26px; }
.b .nm { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 7px; }
.b.say .nm { color: var(--amber); }
.b.say p { font: 21px/1.4 var(--serif); color: #f4ede2; }
.b.you { text-align: right; padding-left: 60px; }
.b.you .nm { color: var(--you); opacity: .9; }
.b.you p { font: 21px/1.4 var(--serif); color: var(--you); }
.b.wait { animation: none; opacity: 1; }
.b.wait i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1.2s infinite; }
.b.wait i:nth-child(2) { animation-delay: .2s; }
.b.wait i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.say-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 4; padding: 22px 18px calc(16px + var(--safe-b)); background: linear-gradient(180deg, rgba(8,6,4,0), rgba(8,6,4,.92) 40%); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chip-wait { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: rgba(0,0,0,.3); }
.say-in { position: relative; width: 100%; }
.say-in textarea { display: block; width: 100%; min-height: 58px; max-height: 120px; padding: 17px 66px 17px 22px; border-radius: 16px; border: 1px solid rgba(236,227,212,.3); background: rgba(10,8,6,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 18px/1.35 var(--serif); color: var(--text); outline: none; resize: none; }
.say-in textarea::placeholder { color: rgba(236,227,212,.5); }
.say-in textarea:focus { border-color: rgba(214,163,92,.6); }
.send { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; background: rgba(236,227,212,.16); display: grid; place-items: center; }
.send svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.say-bar.busy .send, .say-bar.busy .chip-wait { opacity: .35; pointer-events: none; }
.after { margin: 34px 0 0; padding: 22px 20px 24px; border-radius: 18px; background: rgba(13,11,9,.82); border: 1px solid rgba(214,163,92,.28); animation: rise .8s ease forwards; }
.after .kicker { color: var(--amber); }
.after > p:first-of-type { font: 18px/1.55 var(--serif); margin: 12px 0 14px; }
.after h3 { font: 500 19px/1.2 var(--serif); margin: 22px 0 6px; }
.after .btn { width: 100%; margin-top: 16px; }

/* ── 만들기 · 고치기 ── */
.form { padding: 4px 20px 120px; }
.form h2 { font: 500 22px/1.3 var(--serif); margin: 22px 0 6px; }
.lbl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.field { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(236,227,212,.05); padding: 13px 15px; font-size: 16px; color: var(--text); outline: none; resize: vertical; }
.field:focus { border-color: rgba(214,163,92,.6); }
textarea.field { line-height: 1.5; }
#crIdea { font: 19px/1.45 var(--serif); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.form > .btn { width: 100%; margin-top: 16px; }
.form .radio { background: rgba(236,227,212,.04); border-color: var(--line); }
.form .radio span { color: var(--muted); }
.form .radio.on { border-color: rgba(214,163,92,.7); }
.form .radio.on i { border-color: var(--amber); }
.form .radio i { border-color: var(--faint); }
.ed-poster { height: 180px; border-radius: 14px; background: #221c16 center 30%/cover; display: flex; align-items: flex-end; padding: 12px; margin-top: 8px; }
.ed-poster span .kind { background: rgba(0,0,0,.5); }
.ed-per { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.form .err { color: #ffb7a6; font-size: 14px; }
.writing { padding: 60px 26px; text-align: center; }
.writing h2 { font: 500 26px/1.2 var(--serif); margin: 22px 0 6px; }
.steps { list-style: none; padding: 0; margin: 26px auto 0; max-width: 300px; text-align: left; }
.steps li { padding: 8px 0 8px 28px; position: relative; color: var(--faint); font: 17px/1.3 var(--serif); }
.steps li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.steps li.done { color: var(--muted); }
.steps li.done::before { background: var(--amber); border-color: var(--amber); }
.steps li.now { color: var(--text); }
.steps li.now::before { border-color: var(--amber); animation: pulse 1.2s infinite; }

/* ── 프로필 ── */
.ptop { text-align: center; padding: 8px 20px 0; }
.ptop .face { margin: 0 auto 12px; }
.ptop h1 { margin: 0; font: 500 28px/1.2 var(--serif); }
.stats { display: flex; margin: 18px 16px 8px; }
.stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border: 0; }
.stats b { display: block; font: 500 26px/1.1 var(--serif); }
.stats span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tabs2 { display: flex; border-bottom: 1px solid var(--line); margin: 0 16px; }
.tabs2 button { flex: 1; height: 46px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs2 button.on { color: var(--text); border-bottom-color: var(--amber); }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--text); font: 500 23px/1.3 var(--serif); }
.empty .btn { margin-top: 14px; }

/* ── 시트 (양피지) ── */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,4,3,.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 26px 20px calc(22px + var(--safe-b)); border-radius: 22px 22px 0 0; background: var(--paper); color: var(--text-l); }
.sheet h2 { margin: 0 0 6px; font: 500 25px/1.25 var(--serif); }
.sheet p { margin: 0 0 14px; }
.sheet .muted { color: var(--muted-l); }
.sheet .btn { width: 100%; margin-top: 10px; }
.sheet .btn-cream, .sheet .btn-dark { background: #221c15; color: var(--paper); }
.sheet .btn-ghost { background: var(--paper2); }
.sheet .btn-danger { background: #f6ddd5; color: #9b2c17; }
.sheet .field { background: #fff; color: var(--text-l); border-color: var(--line-l); }
.sheet-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; font-size: 26px; line-height: 1; color: var(--muted-l); }
.sheet .warn, .sheet .err { color: #9b2c17; font-size: 14px; }
.sheet .link { color: #84561f; }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0; }
.avgrid button { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px transparent; background: var(--paper2); }
.avgrid button.on { box-shadow: 0 0 0 3px #b8864a; }
.avgrid img { width: 100%; height: 100%; object-fit: cover; }
.nickrow { display: flex; gap: 8px; align-items: center; }
.nickrow .field { flex: 1; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-l); border-radius: 14px; margin: 8px 0; background: #fff; width: 100%; text-align: left; }
.radio.on { border-color: #b8864a; box-shadow: 0 0 0 2px rgba(184,134,74,.22); }
.radio b { display: block; }
.radio span { font-size: 13.5px; color: var(--muted-l); }
.radio i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9b8a4; margin-top: 3px; }
.radio.on i { border: 5px solid #84561f; }
.fb-stars { display: flex; gap: 6px; margin: 10px 0; }
.fb-stars button { font-size: 28px; color: #d8cbbb; }
.fb-stars button.on { color: #c58a3e; }

/* 입장 · 18세 */
.dw-gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 80% at 50% 20%, #2a2017, #080605); color: var(--text); }
.gate-card { width: 100%; max-width: 360px; text-align: center; }
.gate-card .logo { font-size: 40px; margin-bottom: 6px; }
.gate-card .slogan { font: italic 19px var(--serif); color: var(--amber); margin: 0 0 22px; }
.gate-card p { color: var(--muted); }
.gate-card input { width: 100%; height: 52px; margin: 12px 0 8px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(236,227,212,.05); color: var(--text); font-size: 16px; outline: none; text-align: center; }
.gate-card .btn { width: 100%; margin-top: 8px; }
.gate-card .err { color: #ffb7a6; font-size: 14px; }
.dw-gate .btn-ghost { background: rgba(236,227,212,.08); color: var(--text); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + var(--safe-b) + 16px); transform: translate(-50%, 20px); max-width: min(440px, 92vw); padding: 12px 18px; border-radius: 14px; background: #2b241c; color: var(--text); font-size: 14.5px; box-shadow: 0 8px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: all .25s; z-index: 70; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.notab .toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translate(-50%, -20px); }
body.notab .toast.show { transform: translate(-50%, 0); }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(236,227,212,.2); border-top-color: var(--amber); animation: spin .8s linear infinite; }
.spinner.big { width: 40px; height: 40px; border-width: 3px; }
.sheet .spinner { border-color: rgba(0,0,0,.1); border-top-color: #84561f; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 60vh; }

/* 자매품 줄 (시리즈 공통) */
.sister { padding: 22px 20px 0; }
.sister-title { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sister-home { text-decoration: underline; }
.sister-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.sister-row::-webkit-scrollbar { display: none; }
.sister-card { flex: none; width: 124px; padding: 12px; border-radius: 14px; background: rgba(236,227,212,.05); }
.sister-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 8px; }
.sister-name { display: block; font-weight: 600; font-size: 14px; }
.sister-tag { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .b { opacity: 1; } }
