/* 러브콜 — 시네마 UI. 화면 = 16:9 무대(#stage), 크기 단위 cqh/cqw */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&display=swap');
:root { --pink:#ff4f86; --pink2:#ff8db0; --gold:#ffd166; --dim:#a9a5b8; --line:#ffffff22; --glass:#0e0c14cc; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#000; color:#fff; font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif; overflow:hidden; -webkit-tap-highlight-color:transparent; user-select:none; }
#stage { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(100vw, calc(100vh * 16 / 9)); aspect-ratio:16/9; overflow:hidden; container-type:size; background:#000; }
.serif { font-family:'Noto Serif KR',serif; }
button { font:inherit; color:inherit; }

/* 배경·사람 사진 층 */
#bg, #her { position:absolute; inset:0; background:#000 center/cover no-repeat; transition:opacity .6s; }
#bg { filter:brightness(.62) saturate(.92); }
#bg.bright { filter:brightness(.9); }
#her { opacity:0; background-position:center 30%; } #her.on { opacity:1; animation:kb 16s ease-out forwards; }
@keyframes kb { from { transform:scale(1.0); } to { transform:scale(1.035); } }
#her video { width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.vig { position:absolute; inset:0; background:radial-gradient(ellipse at 50% 45%, #0000 45%, #000a 100%); pointer-events:none; }

/* 레터박스 띠 */
.lb { position:absolute; left:0; right:0; height:8.5cqh; background:#000; display:flex; align-items:center; padding:0 3cqw; z-index:30; }
.lb.top { top:0; justify-content:space-between; } .lb.bot { bottom:0; justify-content:center; gap:5cqw; }
.day { font-family:'Noto Serif KR',serif; font-size:2.6cqh; letter-spacing:.3cqh; } .day small { color:var(--pink2); font-size:max(1.8cqh, 11px); margin-left:1.2cqw; letter-spacing:.1cqh; }
.stat { display:flex; gap:1.8cqw; align-items:center; font-size:max(1.9cqh, 12px); color:#ddd; } .stat b { color:var(--gold); } .stat .s { color:#b9b5c8; font-size:max(1.8cqh, 11px); }
.menuBtn { cursor:pointer; font-size:2.6cqh; padding:0 .4cqw; }
.lb.bot a { color:#cfcbd8; font-size:max(2.1cqh, 12px); letter-spacing:.5cqh; cursor:pointer; padding:1cqh .6cqw; } .lb.bot a:hover { color:#fff; } .lb.bot a i { font-style:normal; margin-right:.5cqw; }
.lb.bot a.off { opacity:.35; pointer-events:none; }

/* 큰 버튼 */
.go { position:absolute; right:3cqw; bottom:1.7cqh; z-index:31; font-family:'Noto Serif KR',serif; font-size:max(2.4cqh, 13px); padding:1.3cqh 2.2cqw; border:1px solid var(--pink); background:#ff4f8622; border-radius:.6cqh; letter-spacing:.3cqh; cursor:pointer; white-space:nowrap; }
.go:hover { background:#ff4f8644; } .go.ghost { border-color:#ffffff55; background:#0006; color:#ddd; }
.go.left { right:auto; left:3cqw; }

/* 내 방 */
#me { position:absolute; right:25cqw; bottom:19cqh; height:50cqh; z-index:3; pointer-events:none; } #me svg { height:100%; }
.met { position:absolute; left:2.4cqw; top:12cqh; z-index:5; display:flex; flex-direction:column; gap:1.6cqh; }
.met h4 { margin:0; font-family:'Noto Serif KR',serif; font-weight:400; color:#cfcbd8; font-size:max(1.9cqh, 12px); letter-spacing:.2cqh; }
.met .none { color:#8f8b9c; font-size:max(1.7cqh, 11px); }
.mp { display:flex; align-items:center; gap:.9cqw; cursor:pointer; }
.ring { width:6.6cqh; height:6.6cqh; border-radius:50%; padding:.4cqh; background:conic-gradient(var(--pink) calc(var(--v) * 1%), #ffffff22 0); flex:none; }
.ring img, .ring span { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; border:.3cqh solid #000; background:#1a1822; }
.ring span { display:flex; align-items:center; justify-content:center; font-size:max(2.4cqh, 13px); color:#777; }
.mp b { display:block; font-size:max(1.8cqh, 11px); font-weight:400; text-shadow:0 1px 4px #000; } .mp small { color:var(--pink2); font-size:max(1.5cqh, 11px); }
#today { position:absolute; right:3cqw; top:13cqh; width:26cqw; z-index:5; font-size:max(1.85cqh, 11px); line-height:1.9; color:#ddd; text-align:right; text-shadow:0 1px 6px #000; }
#today b { font-family:'Noto Serif KR',serif; font-size:max(2.4cqh, 13px); color:#fff; } #today em { font-style:normal; color:var(--pink2); }
.mono { position:absolute; left:26cqw; right:26cqw; bottom:24cqh; text-align:center; font-family:'Noto Serif KR',serif; font-size:3cqh; line-height:1.5; text-shadow:0 2px 12px #000; z-index:6; }
.mono small { display:block; font-family:'Malgun Gothic'; font-size:max(1.7cqh, 11px); color:#ffb3c9; margin-bottom:.8cqh; letter-spacing:.3cqh; }
.acts { position:absolute; right:3cqw; bottom:23cqh; z-index:6; display:flex; flex-direction:column; gap:1.2cqh; align-items:flex-end; }
.acts button { font-family:'Noto Serif KR',serif; font-size:max(2.1cqh, 12px); padding:1.1cqh 1.8cqw; border:1px solid #ffffff44; background:#0009; border-radius:.6cqh; cursor:pointer; min-width:16cqw; text-align:right; }
.acts button:hover { border-color:var(--pink); } .acts button small { display:block; font-family:'Malgun Gothic'; font-size:max(1.45cqh, 11px); color:var(--dim); }

/* 휴대폰 버튼·층 */
.phoneBtn { position:absolute; right:3.2cqw; bottom:11.5cqh; z-index:32; width:8.6cqh; height:8.6cqh; border-radius:50%; background:#16141ecc; border:1px solid #ffffff44; display:flex; align-items:center; justify-content:center; font-size:3.8cqh; cursor:pointer; box-shadow:0 0 3cqh #ff4f8666; }
.phoneBtn .n { position:absolute; top:-.4cqh; right:-.4cqh; background:var(--pink); border-radius:2cqh; font-size:max(1.5cqh, 11px); padding:.2cqh .8cqh; font-weight:700; }
.phoneBtn.ring2 { animation:ringy .6s infinite; } @keyframes ringy { 50% { transform:rotate(-12deg) scale(1.06); } }

/* 대사 */
.sub { position:absolute; left:12cqw; right:12cqw; bottom:13cqh; text-align:center; z-index:20; font-size:3.1cqh; font-weight:700; line-height:1.5; text-shadow:0 2px 8px #000, 0 0 3px #000; min-height:9cqh; }
.sub small { display:block; font-size:max(1.8cqh, 11px); font-weight:400; color:#ffd2e0; margin-bottom:.4cqh; letter-spacing:.2cqh; }
.sub.me { font-family:'Noto Serif KR',serif; font-weight:400; color:#f3eef8; } .sub.me small { color:#b9b5c8; }
.sub.narr { font-family:'Noto Serif KR',serif; font-weight:400; font-style:italic; color:#d8d4e4; font-size:2.6cqh; }
.tap { position:absolute; right:13cqw; bottom:10.5cqh; z-index:21; color:#ffffff66; font-size:max(1.6cqh, 11px); animation:blink 1.4s infinite; } @keyframes blink { 50% { opacity:.2; } }
.cliptag { position:absolute; left:2cqw; top:10cqh; z-index:21; font-size:max(1.4cqh, 11px); color:#ffffff55; letter-spacing:.1cqh; }

/* 선택지 */
.choices { position:absolute; left:0; right:0; bottom:12cqh; z-index:25; display:flex; flex-direction:column; align-items:center; gap:1.3cqh; }
.choices .bar { width:40cqw; height:.6cqh; background:#ffffff22; border-radius:1cqh; overflow:hidden; margin-bottom:.6cqh; } .choices .bar i { display:block; height:100%; background:var(--pink); width:100%; }
.choices button { width:46cqw; font-size:max(2.3cqh, 13px); padding:1.4cqh 2cqw; background:#0d0b14d9; border:1px solid #ffffff3a; border-radius:.8cqh; cursor:pointer; text-align:center; transition:.12s; }
.choices button:hover { border-color:var(--pink); background:#2a1424e6; transform:scale(1.02); }
.dim { position:absolute; inset:0; background:linear-gradient(to top, #000d 0%, #000b 28%, #0004 52%, transparent 70%); z-index:19; display:none; } .dim.on { display:block; }

/* 카드·알림 */
.card { position:absolute; left:50%; top:46%; transform:translate(-50%,-50%) scale(.92); opacity:0; z-index:40; background:#0d0b14ee; border:1px solid #ffffff33; border-radius:1.2cqh; padding:3cqh 3cqw; text-align:center; min-width:32cqw; transition:.35s; pointer-events:none; }
.card.on { opacity:1; transform:translate(-50%,-50%) scale(1); pointer-events:auto; }
.card .ph { width:12cqh; height:12cqh; border-radius:50%; object-fit:cover; border:.4cqh solid var(--pink); margin-bottom:1.4cqh; }
.card small { display:block; color:var(--pink2); letter-spacing:.4cqh; font-size:max(1.7cqh, 11px); } .card h2 { margin:.6cqh 0; font-family:'Noto Serif KR',serif; font-size:4cqh; } .card p { margin:0; color:#cfcbd8; font-size:max(1.9cqh, 12px); line-height:1.6; }
.card .go { position:static; display:inline-block; margin-top:2cqh; }
.toast { position:absolute; left:50%; top:36%; transform:translate(-50%,-50%); z-index:45; background:#000c; border:1px solid var(--pink); color:var(--pink2); border-radius:1cqh; padding:1cqh 1.6cqw; font-weight:700; font-size:max(2.2cqh, 12px); opacity:0; transition:.3s; pointer-events:none; white-space:nowrap; }
.toast.on { opacity:1; }
.look { position:absolute; left:2cqw; top:11cqh; z-index:22; background:#0d0b14cc; border:1px solid var(--pink); border-radius:1cqh; padding:.8cqh 1cqw; font-size:max(1.7cqh, 11px); }

/* 화면 패널(꾸미기·지도·기록·만들기) */
.panel { position:absolute; left:0; right:0; top:8.5cqh; bottom:8.5cqh; z-index:12; }
.pbg { position:absolute; inset:0; background:#000 center/cover; filter:brightness(.3) blur(.6cqh); transform:scale(1.05); }
h1.t { margin:0; font-family:'Noto Serif KR',serif; font-size:4cqh; } .sub2 { color:#b9b5c8; font-size:max(1.9cqh, 12px); margin:.6cqh 0 2cqh; }

/* 나 만들기 */
.mk-left { position:absolute; left:3cqw; top:0; bottom:0; width:32cqw; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding-bottom:2cqh; }
.mk-left svg { height:66cqh; } .mk-left .who { font-family:'Noto Serif KR',serif; font-size:max(2.5cqh, 13px); margin-top:.6cqh; text-align:center; } .mk-left .who small { display:block; font-family:'Malgun Gothic'; color:var(--pink2); font-size:max(1.7cqh, 11px); }
.mk-right { position:absolute; left:37cqw; right:3cqw; top:3.5cqh; bottom:2cqh; display:flex; flex-direction:column; }
.field { display:flex; align-items:center; gap:1.6cqw; margin:1.6cqh 0; font-size:max(2.2cqh, 12px); } .field label { width:8cqw; color:var(--dim); }
.field input { font:inherit; font-size:2.6cqh; background:#0008; color:#fff; border:1px solid #ffffff44; border-radius:.6cqh; padding:1cqh 1.2cqw; width:22cqw; font-family:'Noto Serif KR',serif; }
.field .num { display:flex; align-items:center; gap:1cqw; } .field .num button { width:5cqh; height:5cqh; border-radius:50%; border:1px solid #ffffff44; background:#0008; cursor:pointer; font-size:max(2.4cqh, 13px); } .field .num b { font-size:3cqh; min-width:5cqw; text-align:center; font-family:'Noto Serif KR',serif; }
.jobs { display:grid; grid-template-columns:repeat(3,1fr); gap:1.4cqh 1cqw; }
.job { border:1px solid #ffffff26; background:#0d0c12b8; border-radius:1cqh; padding:1.6cqh 1.1cqw; cursor:pointer; transition:.15s; }
.job:hover { border-color:#ffffff66; } .job.on { border-color:var(--pink); box-shadow:0 0 0 1px var(--pink), 0 0 3cqh #ff4f8644; background:#1d0f18d0; }
.job .h { display:flex; align-items:center; gap:.6cqw; } .job .ic { font-size:3cqh; } .job b { font-size:max(2cqh, 12px); white-space:nowrap; } .job .st { margin-left:auto; color:var(--gold); font-size:max(1.4cqh, 11px); white-space:nowrap; }
.bars { margin:1.2cqh 0 .8cqh; display:grid; grid-template-columns:3.4cqw 1fr; gap:.6cqh .5cqw; align-items:center; font-size:max(1.5cqh, 11px); color:#b9b5c8; }
.barx { height:.75cqh; background:#ffffff1a; border-radius:1cqh; overflow:hidden; } .barx i { display:block; height:100%; background:linear-gradient(90deg,var(--pink2),var(--pink)); }
.job .tx { font-size:max(1.45cqh, 11px); color:#c9c5d6; line-height:1.6; } .job .tx em { font-style:normal; color:var(--pink2); }
.mk-foot { margin-top:auto; border-top:1px solid #ffffff22; padding-top:1.6cqh; display:flex; align-items:center; gap:1.6cqw; }
.mk-foot .d { flex:1; font-size:max(1.8cqh, 11px); line-height:1.65; color:#ddd; } .mk-foot .d b { font-family:'Noto Serif KR',serif; color:#fff; font-size:max(2.2cqh, 12px); }
.btn { font-family:'Noto Serif KR',serif; font-size:max(2.1cqh, 12px); padding:1.2cqh 1.8cqw; border:1px solid var(--pink); background:#ff4f8622; border-radius:.6cqh; letter-spacing:.2cqh; cursor:pointer; white-space:nowrap; }
.btn.ghost { border-color:#ffffff44; background:none; color:#bbb; }
.secret { margin-top:1cqh; font-size:max(1.55cqh, 11px); color:#8f8b9c; }
.steps { display:flex; gap:2.4cqw; font-size:max(1.9cqh, 12px); color:#77738a; } .steps .on { color:var(--pink2); font-weight:700; } .steps .done { color:#cfcbd8; }

/* 꾸미기 */
.cl-left { position:absolute; left:5cqw; top:0; bottom:0; width:32cqw; display:flex; align-items:center; justify-content:center; } .cl-left svg { height:74cqh; }
.vibe { position:absolute; left:5cqw; bottom:2cqh; width:32cqw; text-align:center; font-size:max(1.7cqh, 11px); color:#ddd; }
.tag { display:inline-block; border:1px solid #ff8db077; color:#ffb3c9; border-radius:2cqh; padding:.3cqh .8cqw; margin:.3cqh .2cqw; font-size:max(1.55cqh, 11px); }
.cl-right { position:absolute; left:42cqw; right:4cqw; top:3.5cqh; bottom:2cqh; display:flex; flex-direction:column; }
.tabs { display:flex; gap:2.4cqw; border-bottom:1px solid #ffffff22; padding-bottom:1.1cqh; font-family:'Noto Serif KR',serif; font-size:max(2.2cqh, 12px); color:#77738a; }
.tabs span { cursor:pointer; } .tabs span.on { color:#fff; border-bottom:.3cqh solid var(--pink); padding-bottom:.9cqh; margin-bottom:-1.25cqh; }
.list { margin-top:1.2cqh; flex:1; overflow:auto; }
.row { display:flex; align-items:center; gap:1.3cqw; padding:1.35cqh .6cqw; border-bottom:1px solid #ffffff12; cursor:pointer; }
.row:hover { background:#ffffff08; } .row.on { background:#ff4f8614; }
.row .sw { width:4cqh; height:4cqh; border-radius:50%; border:1px solid #ffffff44; flex:none; } .row b { font-size:max(2cqh, 12px); min-width:12cqw; } .row .tg { flex:1; font-size:max(1.6cqh, 11px); color:#b9b5c8; }
.row .pr { font-size:max(1.8cqh, 11px); color:var(--gold); min-width:8cqw; text-align:right; } .row .own { color:#7fd8a8; } .row .wear { color:var(--pink2); } .row .no { color:#776; }
.hint { margin-top:1.4cqh; border:1px dashed #ffffff33; border-radius:1cqh; padding:1.2cqh 1.1cqw; font-size:max(1.65cqh, 11px); color:#b9b5c8; line-height:1.7; max-height:16cqh; overflow:auto; } .hint b { color:#fff; }

/* 지도 */
.map { position:absolute; inset:0; background:#1a1d22 center/cover; }
.map::after { content:''; position:absolute; inset:0; background:linear-gradient(#0006,#0000 30%,#0000 70%,#0008); pointer-events:none; }
.pin { position:absolute; transform:translate(-50%,-100%); z-index:3; cursor:pointer; text-align:center; }
.pin i { display:block; width:3.6cqh; height:3.6cqh; margin:0 auto; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:var(--pink); box-shadow:0 .6cqh 1.4cqh #0009; border:.3cqh solid #fff; }
.pin span { display:block; margin-top:.6cqh; font-size:max(1.55cqh, 11px); background:#000b; padding:.2cqh .6cqw; border-radius:.5cqh; white-space:nowrap; }
.pin.closed { opacity:.35; } .pin.closed i { background:#777; }
.pin.sel i { background:var(--gold); transform:rotate(-45deg) scale(1.25); }
.pcard { position:absolute; right:3cqw; top:3cqh; width:28cqw; z-index:5; background:#0d0b14ee; border:1px solid #ffffff33; border-radius:1.2cqh; padding:2.4cqh 1.6cqw; }
.pcard h3 { margin:0 0 .4cqh; font-family:'Noto Serif KR',serif; font-size:3cqh; } .pcard .k { color:var(--pink2); font-size:max(1.7cqh, 11px); } .pcard p { color:#cfcbd8; font-size:max(1.8cqh, 11px); line-height:1.7; margin:1.2cqh 0; }
.pcard .btn { display:inline-block; margin-top:.6cqh; }
.maptip { position:absolute; left:3cqw; top:3cqh; z-index:5; font-family:'Noto Serif KR',serif; font-size:2.6cqh; text-shadow:0 2px 8px #000; } .maptip small { display:block; font-family:'Malgun Gothic'; font-size:max(1.7cqh, 11px); color:#ddd; }

/* 기록 */
.book { position:absolute; left:4cqw; right:4cqw; top:3cqh; bottom:2cqh; display:grid; grid-template-columns:1fr 1fr; gap:3cqw; }
.book section { overflow:auto; } .book h3 { font-family:'Noto Serif KR',serif; font-weight:400; font-size:max(2.4cqh, 13px); margin:0 0 1.2cqh; color:#fff; border-bottom:1px solid #ffffff22; padding-bottom:.8cqh; }
.book .it { display:flex; gap:1cqw; align-items:center; padding:1cqh 0; border-bottom:1px solid #ffffff10; font-size:max(1.8cqh, 11px); color:#ddd; }
.book .it img { width:6cqh; height:6cqh; border-radius:50%; object-fit:cover; } .book .it small { color:var(--dim); display:block; font-size:max(1.5cqh, 11px); }
.book .alb { display:grid; grid-template-columns:repeat(3,1fr); gap:.8cqw; } .book .alb img { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:.6cqh; }
.book .empty { color:#8f8b9c; font-size:max(1.7cqh, 11px); }

/* 하루 끝 */
.dayend { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:15; background:#0d0b14e6; border:1px solid #ffffff2a; border-radius:1.2cqh; padding:3.4cqh 3cqw; min-width:36cqw; }
.dayend h2 { margin:0 0 1.6cqh; font-family:'Noto Serif KR',serif; font-size:3.4cqh; text-align:center; }
.dayend .ln { display:flex; justify-content:space-between; font-size:max(2cqh, 12px); padding:.8cqh 0; border-bottom:1px solid #ffffff12; color:#ddd; } .dayend .ln b { color:#fff; }
.dayend .go { position:static; display:block; text-align:center; margin-top:2.2cqh; }

/* 타이틀 */
#title { position:absolute; inset:0; z-index:60; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding-bottom:13cqh; gap:1.2cqh; background:#000 center/cover; }
#title::before { content:''; position:absolute; inset:0; background:linear-gradient(#0000 25%, #000c 80%); }
#title > * { position:relative; }
#title h1 { margin:0; font-family:'Noto Serif KR',serif; font-size:11cqh; letter-spacing:1.4cqh; text-shadow:0 0 4cqh #ff4f8688; font-weight:700; }
#title p { margin:0; color:#e6e1ee; font-size:max(2.2cqh, 12px); letter-spacing:.6cqh; font-family:'Noto Serif KR',serif; }
#title .tb { display:flex; gap:3cqw; margin-top:3cqh; } #title .tb a { font-family:'Noto Serif KR',serif; font-size:max(2.4cqh, 13px); letter-spacing:.4cqh; cursor:pointer; color:#ddd; padding:.6cqh 1cqw; border-bottom:1px solid transparent; }
#title .tb a:hover { color:#fff; border-color:var(--pink); } #title .tb a.off { opacity:.35; pointer-events:none; }

/* 엔딩 */
.ending { position:absolute; inset:0; z-index:50; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#000d; text-align:center; gap:1.4cqh; }
.ending small { color:var(--pink2); letter-spacing:.8cqh; font-size:max(1.9cqh, 12px); } .ending h2 { margin:0; font-family:'Noto Serif KR',serif; font-size:6cqh; } .ending p { color:#cfcbd8; font-size:max(2cqh, 12px); margin:0; }
.ending .go { position:static; margin-top:3cqh; }

/* 메뉴 */
.menu { position:absolute; inset:0; z-index:70; background:#000b; display:flex; align-items:center; justify-content:center; }
.menu .box { width:30cqw; background:#16141e; border:1px solid #ffffff22; border-radius:1.2cqh; padding:2.4cqh 2cqw; display:flex; flex-direction:column; gap:1.2cqh; }
.menu .box b { text-align:center; font-family:'Noto Serif KR',serif; font-size:2.6cqh; margin-bottom:.6cqh; }
.menu .box button { font-size:max(2cqh, 12px); padding:1.2cqh; background:#24202e; border:1px solid #ffffff22; border-radius:.8cqh; cursor:pointer; } .menu .box button:hover { border-color:var(--pink); }
.menu .box label { display:flex; justify-content:space-between; font-size:max(1.9cqh, 12px); color:#ddd; padding:.6cqh .2cqw; }
.hide { display:none !important; }

/* 장면 재생 중에는 UI를 거의 숨김(시네마) */
body.playing #hub, body.playing .lb.bot a, body.playing #goMain, body.playing #phoneBtn, body.playing #acts { visibility:hidden; }
.go:empty { display:none; }

/* 취미 */
.hb { position:absolute; left:3cqw; right:3cqw; top:3cqh; bottom:2cqh; display:flex; gap:3cqw; }
.hgrid { width:48cqw; display:grid; grid-template-columns:repeat(2,1fr); gap:1.2cqh .8cqw; align-content:start; }
.hcard { display:flex; align-items:center; gap:.8cqw; border:1px solid #ffffff26; background:#0d0c12b8; border-radius:1cqh; padding:1.3cqh 1cqw; cursor:pointer; }
.hcard:hover { border-color:#ffffff66; } .hcard.on { border-color:var(--pink); box-shadow:0 0 0 1px var(--pink); background:#1d0f18d0; }
.hcard i { font-style:normal; font-size:3cqh; } .hcard b { font-size:max(2cqh, 12px); } .hcard span { margin-left:auto; font-size:max(1.5cqh, 11px); color:var(--gold); white-space:nowrap; } .hcard.new span { color:var(--dim); }
.hdet { flex:1; } .hdet h2 { margin:0 0 1.2cqh; font-family:'Noto Serif KR',serif; font-size:3.6cqh; } .hdet h2 small { font-size:max(2cqh, 12px); color:var(--gold); }
.hdet p { font-size:max(1.9cqh, 12px); color:#ddd; line-height:1.7; margin:0 0 1.4cqh; } .hdet .pk { color:#fff; } .hdet .pk em { color:var(--pink2); font-style:normal; }
.hdet .sh { color:var(--pink2); } .hdet .dim { color:#8f8b9c; }
.hplaces { display:flex; flex-wrap:wrap; gap:1cqh .8cqw; } .hdet .btn { display:inline-block; }

/* 실루엣 사진 */
.meimg { height:100%; width:auto; display:block; filter:drop-shadow(0 0 1.2cqh #ff4f8655) drop-shadow(0 2cqh 2cqh #0009); }
#mkSil, #clSil { height:66cqh; } #clSil { height:74cqh; } #mkSil .meimg, #clSil .meimg { height:100%; }

.relmap { width:100%; height:auto; background:#0b0a10aa; border-radius:1cqh; margin-bottom:1cqh; }

/* 지도: 그림 비율(3:2) 그대로, 핀은 그림 위 % 위치 */
.map { display:flex; align-items:center; justify-content:center; background:#0b0a10; }
.mapbox { position:relative; height:100%; aspect-ratio:3/2; background-size:100% 100%; }
.mapbox.night::after { content:''; position:absolute; inset:0; background:linear-gradient(#0b0a3099,#14102acc); pointer-events:none; z-index:2; }
.mapbox .pin { z-index:3; }

/* 밝은 배경에서도 읽히게 */
.met, #today { background:linear-gradient(90deg,#0008,#0004); border-radius:1cqh; padding:1.4cqh 1.2cqw; backdrop-filter:blur(.4cqh); }
.today { background:linear-gradient(270deg,#0008,#0004); }
.mono { background:radial-gradient(ellipse at center,#0007,#0000 70%); padding:1cqh 0; }
/* 타이틀: 글자는 왼쪽(그림 속 휴대폰을 가리지 않게) */
#title { align-items:flex-start; padding:0 0 14cqh 9cqw; }
#title::before { background:linear-gradient(90deg,#000b 0%,#0006 35%,#0000 60%), linear-gradient(#0000 55%,#0009); }
#title .tb { margin-top:4cqh; }

/* 알림 여러 개 */
.toasts { position:absolute; left:50%; top:10.5cqh; transform:translateX(-50%); z-index:45; display:flex; flex-direction:column; align-items:center; gap:.8cqh; pointer-events:none; }
.tst { background:#000c; border:1px solid var(--pink); color:var(--pink2); border-radius:1cqh; padding:.9cqh 1.5cqw; font-weight:700; font-size:max(2.1cqh, 12px); opacity:0; transform:translateY(.8cqh); transition:.3s; white-space:nowrap; }
.tst.on { opacity:1; transform:none; }
/* 장면 버튼: 기록·빨리 넘기기 */
.sceneBtns { position:absolute; right:2cqw; top:10.5cqh; z-index:22; display:flex; gap:.8cqw; }
.sceneBtns span { font-size:max(1.6cqh, 11px); background:#0009; border:1px solid #ffffff33; border-radius:2cqh; padding:.5cqh 1cqw; cursor:pointer; color:#ddd; }
.sceneBtns span:hover { border-color:var(--pink); color:#fff; }
.logBox { position:absolute; left:20cqw; right:20cqw; top:12cqh; bottom:12cqh; z-index:60; background:#0d0b14f2; border:1px solid #ffffff33; border-radius:1.2cqh; padding:2cqh 2cqw; overflow:auto; cursor:default; }
.logBox .lh { font-family:'Noto Serif KR',serif; font-size:max(2.4cqh, 13px); margin-bottom:1.4cqh; display:flex; justify-content:space-between; } .logBox .lh span { cursor:pointer; }
.logBox p { margin:0 0 1.1cqh; font-size:max(1.9cqh, 12px); line-height:1.55; color:#e8e4f0; } .logBox p b { color:var(--pink2); margin-right:1cqw; font-size:max(1.6cqh, 11px); }
/* 휴대폰 닫기 */
.phoneX { position:absolute; top:.6cqh; right:.8cqw; width:3.6cqh; height:3.6cqh; border-radius:50%; background:#000a; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:max(1.8cqh, 11px); z-index:5; }
/* 꾸미기: 입어 보기·구매 */
.clTry { margin-top:1cqh; font-size:max(1.6cqh, 11px); color:var(--pink2); background:#ff4f8614; border-radius:.8cqh; padding:.8cqh 1cqw; }
.row .buy { background:var(--pink); color:#fff; border-radius:.6cqh; padding:.5cqh 1cqw; font-size:max(1.7cqh, 11px); font-weight:700; }
/* 세로 화면 안내 */
.rotate { display:none; }
@media (orientation: portrait) and (max-width: 820px) { .rotate { display:flex; position:fixed; inset:0; z-index:999; background:#000e; color:#fff; align-items:center; justify-content:center; font-size:20px; } }
/* 메뉴 슬라이더 */
.menu .box input[type=range] { width:50%; accent-color:var(--pink); }

/* 지도 핀: 그곳에 자주 오는(이름 아는) 사람 얼굴 */
.pin .pf { display:flex; justify-content:center; gap:.2cqw; margin-bottom:.4cqh; font-style:normal; }
.pin .pf img { width:2.6cqh; height:2.6cqh; border-radius:50%; object-fit:cover; border:.2cqh solid #fff; box-shadow:0 .3cqh .6cqh #0008; }

.pin.spark i { background:var(--gold); box-shadow:0 0 0 .5cqh #ffd16655, 0 0 2.4cqh #ffd166; animation:spk 1.4s infinite; } @keyframes spk { 50% { box-shadow:0 0 0 1cqh #ffd16622, 0 0 3.4cqh #ffd166; } }
.pin.spark span::before { content:'✨ '; }

/* 능력치 잠긴 선택지 */
.choices button em { font-style:normal; font-size:max(1.6cqh, 11px); color:var(--gold); margin-right:.4cqw; }
.choices button.locked { color:#ffffff66; background:#0d0b14f2; border-style:dashed; cursor:not-allowed; } .choices button.locked:hover { transform:none; border-color:#ffffff3a; background:#0d0b14f2; }
/* 선택지가 뜨면 바로 앞 대사를 선택지 위로 옮겨 겹치지 않게 */
#stage.choosing .sub { visibility:hidden; }
.choices .cq { width:56cqw; text-align:center; font-size:max(2.5cqh, 13px); font-weight:700; line-height:1.45; text-shadow:0 2px 8px #000, 0 0 3px #000; margin-bottom:.6cqh; }
.choices .cq small { display:block; font-size:max(1.6cqh, 11px); font-weight:400; color:#ffd2e0; margin-bottom:.3cqh; }
.mystat { margin-top:1cqh; font-size:max(1.6cqh, 11px); color:#cfcbd8; } .mystat b { color:var(--gold); }
/* 미니게임 */
.mini { position:absolute; inset:0; z-index:58; background:#000c; display:flex; align-items:center; justify-content:center; }
.mbox { width:min(60cqw, 92%); background:#16131e; border:1px solid #ff4f8666; border-radius:1.4cqh; padding:3cqh 2.4cqw; text-align:center; }
.mbox h3 { margin:0; font-family:'Noto Serif KR',serif; font-size:max(3.4cqh, 18px); } .msub { color:#b9b5c8; font-size:max(1.8cqh, 12px); margin:.8cqh 0 2cqh; }
.marea { min-height:30cqh; display:flex; flex-direction:column; align-items:center; gap:1.2cqh; }
.mbtn { font:inherit; font-size:max(2cqh, 13px); color:#fff; background:#2a2534; border:1px solid #ffffff33; border-radius:1cqh; padding:1.2cqh 1.6cqw; cursor:pointer; min-width:30cqw; } .mbtn:hover { border-color:var(--pink); } .mbtn:disabled { opacity:.4; }
.gauge { position:relative; width:46cqw; height:3.4cqh; background:#ffffff14; border-radius:2cqh; overflow:hidden; } .gauge .zone { position:absolute; top:0; bottom:0; background:#4fd18b88; } .gauge .needle { position:absolute; top:-.4cqh; bottom:-.4cqh; width:.6cqw; min-width:3px; background:#fff; box-shadow:0 0 1cqh #fff; }
.gauge.t { height:.8cqh; } .gauge .tbar { position:absolute; inset:0; background:var(--pink); width:100%; }
.sp { font-size:max(2.6cqh, 16px); } .qn { color:var(--gold); font-size:max(1.7cqh, 12px); } .qq { font-size:max(2.4cqh, 15px); line-height:1.5; margin:1cqh 0; }
.mem { display:grid; grid-template-columns:repeat(8, 5.6cqw); gap:.6cqw; } .mc { aspect-ratio:1; font-size:max(3cqh, 18px); background:#2a2534; border:1px solid #ffffff33; border-radius:.8cqh; cursor:pointer; color:#fff; } .mc.up { background:#3a2440; border-color:var(--pink); }
.fl { display:grid; grid-template-columns:repeat(4,1fr); gap:.8cqh .6cqw; } .flw { min-width:0; padding:1cqh .5cqw; } .flw small { display:block; color:var(--pink2); font-size:max(1.4cqh, 10px); } .flw.on { border-color:var(--pink); background:#3a2440; }
.sched { text-align:left; font-size:max(2.2cqh, 14px); line-height:2; } .sched b { color:var(--gold); margin-right:1cqw; }
.mres { margin-top:2cqh; font-size:max(2cqh, 13px); } .mres .mgo { display:inline-block; margin-top:1.4cqh; background:var(--pink); padding:1cqh 2cqw; border-radius:1cqh; cursor:pointer; font-weight:700; }
/* 첫 안내 */
.tipcard { position:absolute; left:50%; bottom:14cqh; transform:translateX(-50%); z-index:57; width:min(56cqw, 92%); background:#16131ef2; border:1px solid var(--gold); border-radius:1.2cqh; padding:2cqh 2cqw; font-size:max(1.9cqh, 13px); line-height:1.7; color:#eee; box-shadow:0 2cqh 5cqh #000a; }
.tipcard span { display:inline-block; margin-top:1.2cqh; background:var(--gold); color:#222; font-weight:700; border-radius:1cqh; padding:.7cqh 1.4cqw; cursor:pointer; }
/* 업적·미니게임 연습·저장 칸 */
.achs { display:grid; grid-template-columns:1fr 1fr; gap:.6cqh .6cqw; } .ach { font-size:max(1.6cqh, 11px); background:#ffffff08; border-radius:.8cqh; padding:.7cqh .7cqw; color:#888; } .ach.on { color:var(--gold); background:#ffd16614; } .ach small { display:block; color:#888; font-size:max(1.3cqh, 10px); }
.minis { display:flex; flex-wrap:wrap; gap:.6cqw; } .minis span { cursor:pointer; background:#2a2534; border:1px solid #ffffff33; border-radius:2cqh; padding:.6cqh 1cqw; font-size:max(1.6cqh, 11px); } .minis span:hover { border-color:var(--pink); }
.menu .box button small { display:block; color:#999; font-size:max(1.4cqh, 10px); margin-top:.3cqh; } .slots { display:flex; flex-direction:column; gap:.8cqh; }

.flw.hint { box-shadow:0 0 0 1px var(--gold); }

/* 취미: 닫힌 장소 */
.hplaces .btn.off { opacity:.4; pointer-events:none; }

/* ---------------- 시간제(11-17): 시계·타임라인·행동 시간·지도 카드 ---------------- */
.day .clk { font-size:3.2cqh; color:var(--gold); margin-left:.4cqw; font-weight:700; letter-spacing:.1cqh; }
.day .nx { margin-left:1cqw; padding:.2cqh .8cqw; border:1px solid #ff4f8677; border-radius:2cqh; background:#ff4f8622; color:#ffd2e0; }
.acts button { display:flex; flex-direction:column; align-items:flex-end; position:relative; padding-right:7cqw; }
.acts button .t { position:absolute; right:1.2cqw; top:50%; transform:translateY(-50%); font-family:'Malgun Gothic'; font-size:max(1.7cqh, 11px); color:var(--gold); }
.acts button.off { opacity:.4; cursor:not-allowed; }
.tl { position:absolute; left:3cqw; right:13cqw; bottom:10.2cqh; height:7.4cqh; z-index:6; background:#0e0c14e0; border:1px solid #ffffff22; border-radius:1cqh; padding:1.3cqh 1.2cqw 2.2cqh; }
.tl .bar { position:relative; height:100%; background:#ffffff0d; border-radius:.6cqh; }
.tl .blk { position:absolute; top:0; bottom:0; border-radius:.6cqh; font-size:max(1.25cqh, 9px); padding:.3cqh .4cqw; line-height:1.25; overflow:hidden; white-space:nowrap; color:#fff; }
.tl .blk em { display:block; font-style:normal; font-size:max(1.05cqh, 8px); opacity:.85; }
.tl .blk.work { background:#4a4560; border:1px solid #7a74a0; } .tl .blk.date { background:linear-gradient(90deg,#ff4f86,#ff8db0); font-weight:700; }
.tl .blk.visit { background:#2f6b66; border:1px solid #57a99f; } .tl .blk.hobby { background:#6b5a2f; border:1px solid #b89a4f; }
.tl .blk.move { background:repeating-linear-gradient(45deg,#ffffff1a 0 .5cqh,#0000 .5cqh 1cqh); } .tl .blk.rest { background:#ffffff10; }
.tl .blk.rush { background:#7a2f3a; border:1px solid #ff6b7d; } .tl .blk.ev { background:#ffd1661c; border:1px dashed #ffd16699; color:#ffe39a; top:auto; height:40%; bottom:-1.6cqh; }
.tl .blk.plan { opacity:.6; border-style:dashed; } .tl .blk.done { opacity:.9; }
.tl .now { position:absolute; top:-.9cqh; bottom:-.9cqh; width:.3cqh; background:var(--gold); box-shadow:0 0 1cqh var(--gold); z-index:2; }
.tl .now b { position:absolute; top:-2.2cqh; left:50%; transform:translateX(-50%); font-size:max(1.2cqh, 9px); color:var(--gold); white-space:nowrap; }
.tl .tick { position:absolute; bottom:-1.9cqh; font-size:max(1.1cqh, 8px); color:#999; transform:translateX(-50%); }
.mtl { left:3cqw; right:3cqw; bottom:10cqh; height:3.4cqh; padding:.8cqh 1cqw; z-index:6; }
.mtl .now b { display:none; }
/* 지도: 지금 위치·이동 분·장소 카드 계산 */
.maptip .clk { color:var(--gold); font-size:3.4cqh; margin-right:.6cqw; }
.pin small { display:block; font-size:max(1.2cqh, 9px); color:#ffe39a; text-shadow:0 1px 3px #000; margin-top:.2cqh; }
.pin.home i { background:#7ad1ff; } .pin.home { cursor:default; }
.pin.here i { box-shadow:0 0 0 .6cqh #7ad1ff55, 0 0 2cqh #7ad1ff; }
.pcard { max-height:76cqh; overflow:auto; }
.pcard .calc { background:#1b1824; border-radius:1cqh; padding:1.1cqh 1cqw; margin:1.2cqh 0; font-size:max(1.65cqh, 11px); line-height:2; }
.pcard .calc > div { display:flex; justify-content:space-between; gap:1cqw; } .pcard .calc span { color:#bbb; white-space:nowrap; } .pcard .calc b { font-weight:400; text-align:right; }
.pcard .calc em { font-style:normal; color:var(--gold); font-weight:700; } .pcard .calc u { text-decoration:none; color:#ff9e9e; }
.pcard .stays i { font-style:normal; display:inline-block; padding:0 .6cqw; margin-left:.3cqw; border:1px solid #ffffff33; border-radius:1.4cqh; cursor:pointer; line-height:1.7; }
.pcard .stays i.on { background:var(--pink); border-color:var(--pink); }
.pcard .kn h4 { margin:.4cqh 0 .6cqh; font-size:max(1.6cqh, 11px); color:var(--pink2); }
.pcard .k1 { display:flex; gap:.8cqw; align-items:center; padding:.7cqh .6cqw; border:1px dashed #ffd16666; border-radius:1cqh; margin-bottom:.6cqh; background:#ffd1660a; font-size:max(1.55cqh, 11px); }
.pcard .k1 img { width:4.4cqh; height:4.4cqh; border-radius:50%; object-fit:cover; } .pcard .k1 small { display:block; color:#aaa; font-size:max(1.3cqh, 10px); }
.pcard .k1.hit { border-style:solid; border-color:var(--gold); background:#ffd16622; } .pcard .k1.hit small { color:#ffe39a; }
.pcard .k1.q span { width:4.4cqh; height:4.4cqh; border-radius:50%; background:#2a2733; display:flex; align-items:center; justify-content:center; color:#888; }
.pcard .warn { color:#ff9e9e !important; }
.hplaces .btn small { display:block; font-size:max(1.3cqh, 10px); color:#aaa; }

.mono .mh { display:block; font-family:'Malgun Gothic'; font-style:normal; font-size:max(1.6cqh, 11px); color:#ffe39a; margin-top:.4cqh; }
.pcard .k1.hit > span { width:4.4cqh; height:4.4cqh; display:flex; align-items:center; justify-content:center; font-size:2.4cqh; }

/* 오른쪽 장소를 고르면 카드는 왼쪽(핀을 가리지 않게) */
.pcard.left { right:auto; left:3cqw; top:13cqh; }
.maptip .mh2 { color:#ffe39a; margin-top:.4cqh; max-width:24cqw; line-height:1.5; }

/* ---------------- 외출 2단계(11-17): 도시 지도 지구 핀 · 지구 안 가게 카드 ---------------- */
.dpin { position:absolute; transform:translate(-50%,-100%); z-index:3; cursor:pointer; text-align:center; }
.dpin i { display:flex; align-items:center; justify-content:center; width:6.4cqh; height:6.4cqh; margin:0 auto; border-radius:50%; background:#ff4f86e6; border:.35cqh solid #fff; font-style:normal; font-size:3.2cqh; box-shadow:0 .8cqh 2cqh #000a; transition:.15s; }
.dpin:hover i { transform:scale(1.1); }
.dpin span { display:block; margin-top:.6cqh; font-family:'Noto Serif KR',serif; font-size:max(2.2cqh, 13px); font-weight:700; background:#000c; padding:.3cqh .9cqw; border-radius:.8cqh; white-space:nowrap; text-shadow:0 1px 4px #000; }
.dpin small { display:block; font-size:max(1.35cqh, 10px); color:#ffe39a; text-shadow:0 1px 3px #000; margin-top:.3cqh; white-space:nowrap; }
.dpin.here i { background:#7ad1ffe6; box-shadow:0 0 0 .8cqh #7ad1ff44, 0 0 3cqh #7ad1ff; }
.dpin.spark i { box-shadow:0 0 0 .8cqh #ffd16655, 0 0 3.4cqh #ffd166; animation:spk 1.4s infinite; } .dpin.spark span::before { content:'✨ '; }
.dpin.closed { opacity:.5; }
.dpin .pf { display:flex; justify-content:center; gap:.2cqw; margin-bottom:.4cqh; font-style:normal; } .dpin .pf img { width:3.2cqh; height:3.2cqh; border-radius:50%; object-fit:cover; border:.2cqh solid #fff; }
.dview { position:absolute; inset:0; background:#0b0a10; }
.dhero { position:absolute; left:0; right:0; top:8.5cqh; height:27cqh; background:center 40%/cover no-repeat; }
.dhero::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#0b0a10f2 0%,#0b0a10aa 40%,#0b0a1000 75%),linear-gradient(0deg,#0b0a10 0%,#0b0a1000 50%); }
.dht { position:absolute; left:3cqw; top:12cqh; z-index:2; } .dht .k { font-size:max(1.8cqh, 11px); color:var(--pink2); letter-spacing:.2cqh; }
.dht h1 { margin:.6cqh 0 .8cqh; font-family:'Noto Serif KR',serif; font-size:5.2cqh; } .dht .meta { font-size:max(1.9cqh, 11px); color:#ddd; }
.dht .tags { display:flex; gap:.5cqw; margin-top:1cqh; } .dht .tags span { font-size:max(1.45cqh, 10px); border:1px solid #ffffff44; border-radius:2cqh; padding:.2cqh .8cqw; background:#0006; }
.dgrid { position:absolute; left:3cqw; width:62cqw; top:37cqh; bottom:15cqh; overflow:auto; display:grid; grid-template-columns:repeat(4,1fr); gap:1.4cqh .9cqw; align-content:start; z-index:3; padding-right:.6cqw; }
.dgrid .sp { background:#16141e; border:1px solid #ffffff1f; border-radius:1.2cqh; overflow:hidden; position:relative; cursor:pointer; transition:.12s; }
.dgrid .sp:hover { border-color:var(--pink); transform:translateY(-.3cqh); }
.dgrid .sp .ph { height:9cqh; background-size:cover; background-position:center; }
.dgrid .sp .b { padding:.8cqh .7cqw 1cqh; } .dgrid .sp h3 { margin:0; font-size:max(1.8cqh, 11px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .dgrid .sp .h { font-size:max(1.3cqh, 9px); color:var(--dim); margin-top:.2cqh; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dgrid .sp .w { position:absolute; top:.6cqh; right:.6cqh; background:#000b; border-radius:1.4cqh; padding:.1cqh .7cqw; font-size:max(1.25cqh, 9px); }
.dgrid .sp .fs { display:flex; gap:.3cqw; margin-top:.6cqh; align-items:center; font-size:max(1.2cqh, 9px); color:#ffe39a; white-space:nowrap; overflow:hidden; } .dgrid .sp .fs img { width:2.6cqh; height:2.6cqh; border-radius:50%; object-fit:cover; border:.2cqh solid #fff; }
.dgrid .sp .fs.hit { color:var(--gold); font-weight:700; }
.dgrid .sp.sel { border-color:var(--gold); box-shadow:0 0 0 .2cqh #ffd16688; } .dgrid .sp.spark .w { background:var(--gold); color:#000; font-weight:700; } .dgrid .sp.here .w { background:#7ad1ff; color:#000; }
.dgrid .sp.closed { opacity:.42; }
.pcard.dside { top:37cqh; bottom:15cqh; max-height:none; right:3cqw; width:30cqw; }
.pcard.dhint p { color:#cfcbd8; } .pcard.dhint .dim { color:#8f8b9c; }
.dback { bottom:1.7cqh; }

/* 지구 안: 패널(위아래 띠 안쪽) 기준 자리, 카드 줄은 내용만큼 */
.dhero { top:0; height:24cqh; }
.dht { top:3.5cqh; }
.dgrid { top:25cqh; bottom:14.5cqh; grid-auto-rows:max-content; }
.pcard.dside { top:25cqh; bottom:14.5cqh; }
/* 지구 안: 가기 버튼은 카드 아래에 붙어 있게, 스크롤 막대는 어둡게 */
.pcard.dside #pGo, .pcard.dside .warn { position:sticky; bottom:-2.4cqh; display:block; text-align:center; box-shadow:0 -1.6cqh 2cqh #0d0b14; }
.pcard.dside .warn { background:#0d0b14; padding:1cqh 0; margin:0; }
.dgrid::-webkit-scrollbar, .pcard::-webkit-scrollbar { width:.7cqh; } .dgrid::-webkit-scrollbar-track, .pcard::-webkit-scrollbar-track { background:transparent; }
.dgrid::-webkit-scrollbar-thumb, .pcard::-webkit-scrollbar-thumb { background:#ffffff2e; border-radius:1cqh; }
