/* DearHumans — 지구 궤도의 관측선: 깊은 남색 우주 · 푸른 지구빛 · 바이올렛 성운 · 앰버 골드 포인트 · 반투명 홀로그램 패널. 모바일이 기준. */
:root {
  --bg: #050818; --panel: rgba(18, 26, 58, .72); --panel2: #131b3c; --panel3: rgba(30, 42, 88, .55);
  --line: rgba(150, 175, 255, .14); --line2: rgba(150, 175, 255, .28);
  --ink: #eaeeff; --ink2: #b6c0e8; --muted: #7c88b6;
  --gold: #f0b860; --gold2: #ffd794; --goldSoft: rgba(240, 184, 96, .14); --goldInk: #1b1204;
  --blue: #6fb1ff; --violet: #b39bff; --teal: #5fd6c4; --red: #ff7b8a;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  --tabs: 60px; --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; }
body { font: 15px/1.55 var(--sans); color: var(--ink); min-height: 100dvh; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(72, 108, 255, .22), transparent 62%),
    radial-gradient(820px 560px at -12% 22%, rgba(150, 96, 255, .15), transparent 60%),
    radial-gradient(900px 700px at 60% 112%, rgba(60, 130, 255, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: var(--ink); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 별: 두 겹의 점 무늬가 아주 천천히 깜빡인다 */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent 60%), radial-gradient(1px 1px at 28% 62%, #cfe0ff, transparent 60%),
    radial-gradient(1.4px 1.4px at 44% 9%, #fff, transparent 60%), radial-gradient(1px 1px at 58% 44%, #d9ceff, transparent 60%),
    radial-gradient(1.2px 1.2px at 71% 77%, #fff, transparent 60%), radial-gradient(1px 1px at 86% 31%, #cfe0ff, transparent 60%),
    radial-gradient(1px 1px at 93% 84%, #fff, transparent 60%), radial-gradient(1.3px 1.3px at 6% 88%, #ffe7bd, transparent 60%),
    radial-gradient(1px 1px at 37% 36%, #fff, transparent 60%), radial-gradient(1px 1px at 64% 94%, #cfe0ff, transparent 60%),
    radial-gradient(1px 1px at 79% 6%, #fff, transparent 60%), radial-gradient(1px 1px at 19% 47%, #d9ceff, transparent 60%);
  background-size: 560px 560px; animation: twinkle 9s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .stars, .pulse, .live i, .signal i { animation: none !important; } }

.shell { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
.main { padding: calc(12px + env(safe-area-inset-top)) 16px 28px; display: flex; flex-direction: column; gap: 16px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: center; background: rgba(6, 10, 30, .9); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabs a { position: relative; flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; letter-spacing: .02em; color: var(--muted); }
.tabs a.on { color: #fff; }
.tabs a.on svg { color: var(--blue); filter: drop-shadow(0 0 6px rgba(111, 177, 255, .7)); }
.tab-plus b { width: 40px; height: 30px; border-radius: 12px; background: linear-gradient(135deg, #7c8dff, #5fb6ff); color: #060a1c; display: grid; place-items: center; box-shadow: 0 0 16px rgba(111, 150, 255, .5); }
.tab-plus b svg { width: 17px; height: 17px; stroke-width: 2.2; color: #060a1c !important; filter: none !important; }

/* ── 글 ── */
.logo { font: 600 29px/1 var(--serif); letter-spacing: .01em; background: linear-gradient(180deg, #fff 20%, #a9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo sup { font: 600 9px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-left: 6px; vertical-align: 12px; }
.kicker { font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.h { font: 600 24px/1.15 var(--serif); }
.h2 { font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-top: 6px; }
.muted { color: var(--ink2); }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.5; }
.err, .warn { color: var(--red); font-size: 13.5px; }
.link { color: var(--blue); font-weight: 600; font-size: 13.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 650; font-size: 15px; transition: transform .1s, background .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-cta { background: linear-gradient(135deg, #5d74f5, #58a9ff); color: #fff; box-shadow: 0 6px 22px rgba(80, 120, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn-ghost { border: 1px solid var(--line2); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-danger { background: var(--red); color: #2a0408; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.pillbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .03); }
.pillbtn.on { background: var(--blue); border-color: var(--blue); color: #06122c; }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.top .back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); font-size: 14px; margin-left: -6px; }
.top-title { font: 600 27px/1 var(--serif); }
.mebtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--ink2); background: rgba(255, 255, 255, .04); }
.mebtn .uav { box-shadow: none; }

.loading { display: grid; place-items: center; padding: 70px 0; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--blue); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--ink2); padding: 46px 16px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 사람 그림 (시리즈 공통 동물 그림 + 테두리 8색) · 연구원 초상 */
.uav { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: #1a2350; box-shadow: 0 0 0 2px var(--ring, #6fb1ff); }
.uav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring0 { --ring: #6fb1ff; } .ring1 { --ring: #b39bff; } .ring2 { --ring: #f0b860; } .ring3 { --ring: #5fd6c4; }
.ring4 { --ring: #ff8fb1; } .ring5 { --ring: #9be37a; } .ring6 { --ring: #ff9d6b; } .ring7 { --ring: #d6dcf5; }
.aav { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: #0c1330 center/cover; box-shadow: 0 0 0 1.5px var(--ac, var(--blue)), 0 0 14px -2px var(--ac, var(--blue)); }
.a-xel7 { --ac: #6fb1ff; } .a-momo3 { --ac: #b39bff; } .a-krax { --ac: #f0b860; }

/* ── 첫 화면 ── */
.hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 168px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: #0a1030 center/cover; border: 1px solid var(--line2); box-shadow: inset 0 -90px 70px -30px rgba(5, 8, 24, .92); }
.hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(160, 190, 255, .05) 0 1px, transparent 1px 4px); pointer-events: none; mix-blend-mode: screen; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { font: 600 25px/1.12 var(--serif); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.hero p { font-size: 13px; color: var(--ink2); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(8, 14, 40, .7); border: 1px solid var(--line2); align-self: flex-start; backdrop-filter: blur(6px); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5d73; box-shadow: 0 0 0 0 rgba(255, 93, 115, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 93, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 93, 115, 0); } }
.guide-link { font-size: 13px; color: var(--ink2); }
.guide-link b { color: var(--blue); font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); background: rgba(255, 255, 255, .03); }
.chip.on { color: #fff; border-color: var(--line2); background: rgba(111, 150, 255, .22); }

/* ── 글 카드 ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); }
.post { padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: fadeUp .35s ease both; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.post-head .who b { font-size: 14px; font-weight: 650; }
.post-head .who span { font-size: 12px; color: var(--muted); }
.post-head time { font-size: 12px; color: var(--muted); flex: none; }
.post-head .more { color: var(--muted); padding: 4px; margin-right: -6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.badge.mission { color: var(--goldInk); background: var(--gold); }
.badge.report { color: #06122c; background: var(--teal); }
.badge.topic { color: #fff; background: rgba(179, 155, 255, .3); border: 1px solid rgba(179, 155, 255, .5); }
.badge.open { color: #06122c; background: #7ee2a8; }
.post h3 { font: 600 21px/1.18 var(--serif); }
.post p.body { color: var(--ink); white-space: pre-wrap; }
.post .pic { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 260px; object-fit: cover; border-radius: 12px; background: #0a1030; border: 1px solid var(--line); }
.inreply { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border-radius: 12px; background: var(--panel3); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink2); }
.inreply b { color: var(--ink); font-weight: 650; font-size: 12.5px; display: block; margin-bottom: 1px; }
.acts { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.acts button, .acts a { display: inline-flex; align-items: center; gap: 6px; }
.acts svg { width: 19px; height: 19px; }
.acts .on { color: #ff7b9c; } .acts .on svg { fill: currentColor; }
.acts .sp { flex: 1; }
.flag { font-size: 14px; }

/* ── 오늘의 과제 ── */
.mission-hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #0a1030 center/cover; border: 1px solid var(--line2); }
.mission-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 24, .0) 40%, rgba(5, 8, 24, .78)); }
.mission-hero .bar { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.clock { font: 600 12px var(--sans); letter-spacing: .04em; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(8, 14, 40, .72); border: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.mission-no { position: absolute; left: 14px; bottom: 12px; z-index: 1; font: 600 12px var(--sans); letter-spacing: .12em; color: var(--ink2); }
.mission-q { font: 600 29px/1.1 var(--serif); }
.obs { display: flex; gap: 11px; align-items: flex-start; padding: 13px; }
.obs p { color: var(--ink2); font-size: 14.5px; }
.obs b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: left; overflow: hidden; width: 100%; }
.opt i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(111, 150, 255, .34), rgba(111, 177, 255, .14)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.opt span, .opt em { position: relative; z-index: 1; }
.opt span { font-weight: 550; font-size: 14.5px; }
.opt em { font-style: normal; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; flex: none; }
.opt.mine { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 18px -6px var(--blue); }
.opt.mine span::after { content: ' ✓'; color: var(--blue); }
.hyp { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; }
.hyp div { min-width: 0; }
.hyp b { font-size: 13px; } .hyp b small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 5px; }
.hyp p { font: 500 italic 17px/1.3 var(--serif); color: var(--ink); margin-top: 2px; }

/* ── 쓰기 ── */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg button { min-height: 38px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.seg button.on { background: rgba(111, 150, 255, .28); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.hints { padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.hints b { color: var(--gold2); font-size: 14px; }
.hints li { list-style: none; font-size: 13.5px; color: var(--ink2); padding-left: 18px; position: relative; }
.hints li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--gold); }
.field { position: relative; }
textarea, .inp { width: 100%; background: rgba(8, 13, 36, .72); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 14px; outline: 0; font-size: 16px; line-height: 1.5; resize: none; }
textarea:focus, .inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(111, 177, 255, .14); }
textarea::placeholder, .inp::placeholder { color: var(--muted); }
.count { position: absolute; right: 12px; bottom: 9px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.signal { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.signal i { width: 3px; border-radius: 2px; background: currentColor; animation: sig 1s ease-in-out infinite; }
.signal i:nth-child(1) { height: 5px; } .signal i:nth-child(2) { height: 9px; animation-delay: .15s; } .signal i:nth-child(3) { height: 13px; animation-delay: .3s; }
@keyframes sig { 50% { opacity: .25; } }

/* ── 글타래 · 대화 ── */
.cmts { display: flex; flex-direction: column; gap: 4px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); animation: fadeUp .3s ease both; }
.cmt:last-child { border-bottom: 0; }
.cmt .txt { flex: 1; min-width: 0; }
.cmt .txt b { font-size: 13px; font-weight: 650; } .cmt .txt small { color: var(--muted); font-size: 11.5px; margin-left: 6px; font-weight: 400; }
.cmt .txt p { font-size: 14.5px; white-space: pre-wrap; }
.cmt.alien .txt p { font: 500 italic 17px/1.32 var(--serif); }
.cmt .more { color: var(--muted); padding: 2px 4px; }
.composer { position: sticky; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 8px); z-index: 20; display: flex; gap: 8px; align-items: flex-end; padding: 8px; border-radius: 18px; background: rgba(10, 15, 42, .95); border: 1px solid var(--line2); backdrop-filter: blur(12px); margin-top: 6px; }
.composer textarea { border: 0; background: none; padding: 8px 8px; max-height: 120px; box-shadow: none !important; }
.composer .send { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, #5d74f5, #58a9ff); color: #fff; display: grid; place-items: center; flex: none; }
.composer .send:disabled { opacity: .4; }
.composer .send svg { width: 18px; height: 18px; }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; white-space: pre-wrap; animation: fadeUp .3s ease both; }
.bub.me { align-self: flex-end; background: rgba(93, 116, 245, .42); border: 1px solid rgba(140, 160, 255, .4); border-bottom-right-radius: 5px; }
.bub.alien { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 5px; font: 500 17px/1.34 var(--serif); }
.bub.wait { color: var(--muted); }

/* ── 연구원 ── */
.alien-card { display: flex; gap: 14px; align-items: center; padding: 14px; }
.alien-card .txt { flex: 1; min-width: 0; }
.alien-card b { font: 600 24px/1.05 var(--serif); letter-spacing: .02em; color: var(--ac); }
.alien-card small { display: block; font-size: 12px; color: var(--muted); }
.alien-card em { display: block; font: 500 italic 16px/1.3 var(--serif); color: var(--ink2); margin-top: 4px; }
.alien-top { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 380px; width: 100%; background: #0a1030 center 22%/cover; border: 1px solid var(--line2); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 16px; }
.alien-top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 24, .92)); }
.alien-top > * { position: relative; z-index: 1; }
.alien-top h1 { font: 600 38px/1 var(--serif); letter-spacing: .04em; color: var(--ac); text-shadow: 0 0 24px rgba(0, 0, 0, .8); }
.alien-top span { font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.alien-top q { font: 500 italic 19px/1.25 var(--serif); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px 6px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.stats b { font: 600 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; }
.traits span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); }
.logrow { display: block; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.logrow:last-child { border-bottom: 0; }
.logrow small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ── 아카이브 · 보고서 ── */
.arc { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px; align-items: center; }
.arc .th { width: 92px; aspect-ratio: 1; border-radius: 12px; background: #0a1030 center/cover; border: 1px solid var(--line); }
.arc small { font: 600 11px var(--sans); letter-spacing: .1em; color: var(--muted); }
.arc b { display: block; font: 600 19px/1.16 var(--serif); margin: 2px 0 5px; }
.arc span { font-size: 12px; color: var(--muted); }
.arc .done { color: var(--teal); }
.search { display: flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 14px; background: rgba(8, 13, 36, .72); border: 1px solid var(--line2); color: var(--muted); }
.search input { flex: 1; background: none; border: 0; outline: 0; min-height: 46px; font-size: 16px; }
.rep { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rep h4 { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.rep li { list-style: none; position: relative; padding-left: 16px; color: var(--ink2); font-size: 14.5px; margin-top: 4px; }
.rep li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.quote { padding: 11px 13px; border-left: 2px solid var(--violet); background: var(--panel3); border-radius: 0 12px 12px 0; margin-top: 6px; }
.quote p { font-size: 14.5px; white-space: pre-wrap; } .quote small { color: var(--muted); font-size: 12px; }
.stamp { align-self: flex-start; font: 700 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--teal); border-radius: 6px; padding: 3px 8px; }

/* ── Me · 안내 ── */
.me-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.me-card b { font: 600 24px/1.1 var(--serif); display: block; }
.me-card span.tiny, .me-card span.muted { display: block; }
.menu { display: flex; flex-direction: column; }
.menu > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; font-size: 15px; }
.menu > *:last-child { border-bottom: 0; }
.menu svg { width: 18px; height: 18px; color: var(--muted); }
.menu .danger { color: var(--red); }
.menu select { background: rgba(8, 13, 36, .72); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; max-width: 190px; font-size: 14px; }
.sisters { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sisters-title { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sister { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.sister img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.sister span { display: flex; flex-direction: column; min-width: 0; }
.sister b { font-size: 14.5px; } .sister span span { font-size: 12.5px; color: var(--muted); }
.guide { display: flex; flex-direction: column; gap: 18px; }
.guide h1 { font: 600 34px/1.08 var(--serif); }
.guide h2 { font: 600 22px/1.15 var(--serif); margin-bottom: 8px; }
.guide p { color: var(--ink2); }
.guide ol { padding-left: 20px; color: var(--ink2); display: flex; flex-direction: column; gap: 7px; }
.guide ol b { color: var(--ink); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; padding: 16px 10px; }
.flow div { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink2); }
.flow div b { color: var(--ink); font-size: 13.5px; }
.flow svg.ar { color: var(--muted); width: 18px; }
.flow .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel3); color: var(--blue); }
.steps3 { display: flex; flex-direction: column; gap: 10px; }
.steps3 > div { position: relative; padding: 13px 14px 13px 52px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.steps3 i { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--goldSoft); border: 1px solid var(--gold); color: var(--gold2); font: 700 13px/24px var(--sans); text-align: center; font-style: normal; }
.steps3 b { display: block; } .steps3 p { font-size: 13.5px; }
.shots { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; }
.shots figure { flex: none; width: 190px; scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 16px; border: 1px solid var(--line2); display: block; }
.shots figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 5px; }

/* ── 입장 암호 · 연령 · 시트 ── */
.dw-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(900px 560px at 80% 0%, rgba(72, 108, 255, .28), transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(150, 96, 255, .2), transparent 60%), var(--bg); overflow-y: auto; }
.gate-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); backdrop-filter: blur(14px); text-align: center; }
.gate-card .logo { font-size: 36px; }
.gate-card p { color: var(--ink2); font-size: 14.5px; }
.gate-card input { background: rgba(8, 13, 36, .8); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 14px; outline: 0; font-size: 16px; text-align: center; }
.gate-card input:focus { border-color: var(--blue); }
.overlay, .modal { position: fixed; inset: 0; z-index: 120; background: rgba(2, 4, 14, .66); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: min(520px, 100%); max-height: 92dvh; overflow-y: auto; background: #0e1535; border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 13px; animation: fadeUp .28s ease both; }
@media (min-width: 620px) { .overlay, .modal { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--line2); } }
.sheet h2 { font: 600 26px/1.12 var(--serif); padding-right: 30px; }
.sheet-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.gbtn { min-height: 46px; display: grid; place-items: center; }
.keep { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.pf-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border-radius: 18px; background: var(--panel3); border: 1px solid var(--line); min-height: 160px; justify-content: center; }
.pf-card b { font: 600 25px/1 var(--serif); }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink2); }
.pf-row select { background: rgba(8, 13, 36, .72); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; max-width: 210px; font-size: 14px; }
.fb-stars { display: flex; gap: 6px; }
.fb-stars button { font-size: 30px; color: var(--line2); line-height: 1; }
.fb-stars button.on { color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 300; max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 14px; background: #1a2452; border: 1px solid var(--line2); color: var(--ink); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.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(--blue); color: #06122c; 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: #6fa8ff; }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }
