/* 호호하하 마을(쉼표마을) 결: 크림 종이 + 따뜻한 잉크색 + 둥근 유리 패널 */
:root {
  --ink: #3b3029; --ink2: #6e5f53; --ink3: #a3948a; --line: rgba(120,90,60,0.13);
  --coral: #d97a5c; --honey: #f4b860; --sage: #6fa38a; --sky: #6fb3d9; --plum: #a98bc9;
  --paper: #fffaf3; --cream: #f6eadb; --grad: linear-gradient(180deg, #b8653f, #a5553a);
  --fs: 17px;
}
html.fs-l { --fs: 19px; } html.fs-xl { --fs: 22px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: var(--fs); }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f3e4cf; color: var(--ink); font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
#app, #app canvas { position: fixed; inset: 0; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
svg.lucide { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

.pnl { background: rgba(255,250,242,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(154,122,95,0.18); box-shadow: 0 10px 30px -14px rgba(60,35,20,0.4); }

/* 첫 화면: 장면 사진이 천천히 흐르는 로딩 -> 타이틀 카드(들어가기·내 모습 꾸미기) */
#loading { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #f3e4cf; overflow: hidden; transition: opacity .7s, transform .7s; }
#loading.off { opacity: 0; transform: scale(1.04); pointer-events: none; }
#loading > div > p { margin: 14px 0 0; color: var(--ink2); font-weight: 600; text-align: center; }
.pawspin { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 6px 20px -8px rgba(80,50,20,.4); animation: breathe 2.4s ease-in-out infinite; color: var(--coral); }
@keyframes breathe { 50% { transform: scale(1.08); } }
/* 도착지 첫 그림: 스크립트를 기다리지 않고 첫 화면부터 깔림(빈 색 화면 없앰) */
/* 큰 그림이 오기 전 먼저 보이는 아주 작은 흐린 장면(크림색 빈 화면 방지) */
:root { --lqa: url(data:image/webp;base64,UklGRs4AAABXRUJQVlA4IMIAAABQBQCdASogABIAPt1irU6opaSiKAqpEBuJYjcAA5Cb4U0QKPSkgvw6MrGCPijBuq2smWAA/N4inWq3y+CJEV4XmJ/v/skofiqlUKFZfO4fW6mhsTbbHfdI8eELi2bgqyyzPqqnt8tuyIq6gb+9rqr1pXaIQY/LJ57YLRSzV48/P9qIvltup5KiNIF3zzvbslr5jlX4opU0xb0LRoiXG52CcHQaJBBh20LVNL4B1mdLnLVLvxu/1UHjGwLMbgfDgwAAAA==); --lqb: url(data:image/webp;base64,UklGRqAAAABXRUJQVlA4IJQAAABwBQCdASogABIAPt1apUyopSOiMAgBEBuJZACdL4FEs7/gN6nrtsHcwU3WSBBnpgPvOnQAAP6YLfAlT6D57SFDNpGoj6XkEq41jex8UZNNn/0hDKdN65ZhPAtRgQ1mTPvIdsaAhOGQEKXFKgZJF90436F7Rb7l6EQdWri2rtyOtwyThjyUHAQoH4Yp1e0oVXjBxQAA); --lqc: url(data:image/webp;base64,UklGRnYAAABXRUJQVlA4IGoAAADwBACdASogABIAPt1epkyopSOiMAgBEBuJYgDDNCHfibuw2pu8d1+zkpv1NpS9khQA/q79MFEkHg6V7vtatonj2Ufr1J0go64/97P+/xbfzn02gm2SdIbr7R8r1h0NIqX4ST6j9eZkMAAA); --lqd: url(data:image/webp;base64,UklGRqIAAABXRUJQVlA4IJYAAAAQBACdASogABIAPt1kqE2opaOiMBgIARAbiUAX5wKolPj8wQ2QSdX3gAD+64Ie+VOLEOpcPaxxmdMpLJacU3M/x7HeY7rtFa4z/HavBwaq69BdtIA0QXsvLgjwTxwhBnwLfIkXqrwsFm5VOey/7Ruy7utLYtFeaXaFElQYfpZhgCjoLEwmJL+J8XkllQSTXgUPinHEAAA=); --lqe: url(data:image/webp;base64,UklGRtQAAABXRUJQVlA4IMgAAACQBQCdASogABIAPt1epkyopSOiMAgBEBuJaACdMtqOACIgQZMLm31thfgZvYoltD9jZ6ujAAD+r4ykooC5J7XAxcIj2OuZTseJSNu/+z3yRelEg6T8yDY5r10k4nsOM2AwhXSkdqPXpgQlZ3UOM32mFHQbK/1xyP3/K0ehB4nIXri+PU2ex8oCsRdelSzYdfGb00+kdZ9prTNY1OZurLm1IweEa6pVMXw9tYCAp6+oaXcMvnMvhn0i4Lg5gSFlFXoY0ffe4wAAAA==); --lqh: url(data:image/webp;base64,UklGRq4AAABXRUJQVlA4IKIAAABQBQCdASogABIAPt1kpk2opaOiMBgIARAbiUAXYAYp87oBrMRO/Io4BL/zAlqnvWCoh8AA/tMxyNJvu2A3HbRquv1KQbwaWU79SWUnTevHLEQbRDs+7CjSueGUcLs0Y97AvSdF7c8PXSeVRtm1CNeEjja2Ut/iz3CJz85Dsj1pZM0cgmbX0E/v8/V0KDtpCgJT1HoCbvkKbyJIGR07jIqcAAA=); }
#loading::before { content: ''; position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; filter: saturate(1.12) contrast(1.04); }
#loading[data-k="a"]::before, #loading[data-bg="a"]::before { background-image: url(../assets/ld2/a1w.webp), var(--lqa); }
#loading[data-k="b"]::before, #loading[data-bg="b"]::before { background-image: url(../assets/ld2/b1w.webp), var(--lqb); }
#loading[data-k="c"]::before, #loading[data-bg="c"]::before { background-image: url(../assets/ld2/c1w.webp), var(--lqc); }
#loading[data-k="d"]::before, #loading[data-bg="d"]::before { background-image: url(../assets/ld2/d1w.webp), var(--lqd); }
#loading[data-k="e"]::before, #loading[data-bg="e"]::before { background-image: url(../assets/ld2/e1w.webp), var(--lqe); }
@media (max-aspect-ratio: 10/11) {
  #loading[data-k="a"]::before, #loading[data-bg="a"]::before { background-image: url(../assets/ld2/a1p.webp), var(--lqa); }
  #loading[data-k="b"]::before, #loading[data-bg="b"]::before { background-image: url(../assets/ld2/b1p.webp), var(--lqb); }
  #loading[data-k="c"]::before, #loading[data-bg="c"]::before { background-image: url(../assets/ld2/c1p.webp), var(--lqc); }
  #loading[data-k="d"]::before, #loading[data-bg="d"]::before { background-image: url(../assets/ld2/d1p.webp), var(--lqd); }
  #loading[data-k="e"]::before, #loading[data-bg="e"]::before { background-image: url(../assets/ld2/e1p.webp), var(--lqe); }
}
html[data-bg="h"] { background-color: #f3e4cf; background-image: url(../assets/ld2/h1w.webp), var(--lqh); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
html[data-bg="h"] body { background: transparent; }
@media (max-aspect-ratio: 10/11) { html[data-bg="h"] { background-image: url(../assets/ld2/h1p.webp), var(--lqh); } }
.ld-bg, .ld-veil { position: absolute; inset: 0; }
.ld-bg i { position: absolute; inset: -2%; image-rendering: auto; will-change: transform, opacity; background: #f3e4cf center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease; filter: saturate(1.12) contrast(1.04); }
.ld-bg i.front { opacity: 1; }
.ld-bg i.on { animation: kb 7.5s linear forwards; }
@keyframes kb { from { transform: scale(1.06) translateX(calc(var(--x, 0) / 2)); } to { transform: scale(1) translateX(0); } }
.ld-veil { background: radial-gradient(120% 70% at 50% 35%, transparent 40%, rgba(70,45,30,.18)), linear-gradient(180deg, rgba(255,246,232,0) 45%, rgba(70,45,30,.32)); }
.ld-tag { position: absolute; top: calc(env(safe-area-inset-top) + 18px); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.05rem; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--ink2); white-space: nowrap; animation: rise .7s .2s both cubic-bezier(.3,1.2,.4,1); }
.ld-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(239,138,111,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(239,138,111,0); } 100% { box-shadow: 0 0 0 0 rgba(239,138,111,0); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 14px); } }
.ld-card { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); transform: translateX(-50%); width: min(400px, calc(100vw - 32px)); padding: 1.35rem 1.4rem 1.15rem; border-radius: 30px; text-align: center; transition: opacity .4s, transform .45s cubic-bezier(.3,1.2,.4,1); animation: card .8s .1s both cubic-bezier(.3,1.2,.4,1); }
@keyframes card { from { opacity: 0; transform: translate(-50%, 30px); } }
.ld-logo { width: 4.2rem; height: 4.2rem; margin: -3.3rem auto .3rem; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 10px 26px -10px rgba(80,50,20,.45), inset 0 0 0 4px #fff; animation: bob 3.2s ease-in-out infinite; }
.ld-logo svg { width: 3rem; height: 3rem; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.ld-card h1 { margin: .2rem 0 .25rem; font-family: 'Nanum Myeongjo', serif; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ld-msg { margin: 0 0 .85rem; min-height: 1.4em; font-size: .95rem; font-weight: 600; color: var(--ink2); transition: opacity .26s, transform .26s; }
.ld-msg.fade { opacity: 0; transform: translateY(4px); }
.ld-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(120,90,60,.1); overflow: hidden; box-shadow: inset 0 1px 2px rgba(80,50,20,.12); transition: height .4s, margin .4s, opacity .4s; }
.ld-bar b { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f3a6b5, #f4cf6a 35%, #8fc3a8 65%, #8fb6d8); transition: width .5s ease; overflow: hidden; }
.ld-bar b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); animation: shine 1.6s infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ld-acts { display: grid; gap: .5rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s cubic-bezier(.3,1,.4,1), opacity .4s .1s; }
.ld-go { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.7rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: 1.12rem; font-weight: 800; box-shadow: 0 12px 26px -10px rgba(233,128,110,.95), inset 0 -3px 0 rgba(0,0,0,.08); transition: transform .15s; }
.ld-go svg { width: 1.35rem; height: 1.35rem; }
.ld-go:active, .ld-dress:active { transform: scale(.97); }
.ld-dress { min-height: 3.1rem; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; color: var(--ink2); }
.ld-note { margin: .7rem 0 0; font-size: .78rem; color: var(--ink3); max-height: 0; overflow: hidden; transition: max-height .4s; }
#loading.ready .ld-bar { height: 0; margin: 0; opacity: 0; }
#loading.ready .ld-acts { max-height: 9rem; opacity: 1; padding: .2rem .1rem .1rem; }
#loading.ready .ld-note { max-height: 2em; }
.ld-dresser { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); width: min(440px, calc(100vw - 24px)); max-height: calc(100% - 90px); overflow-y: auto; padding: 1rem 1.1rem 1.1rem; border-radius: 28px; transform: translate(-50%, 110%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.3,1.1,.4,1), opacity .3s; }
#loading.dressing .ld-card { opacity: 0; transform: translate(-50%, 40px); pointer-events: none; }
#loading.dressing .ld-dresser { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.ld-prev { width: 9.5rem; height: 9.5rem; margin: 0 auto .2rem; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0, #fdf1e2 55%, #f3dfc6 100%); box-shadow: inset 0 -6px 14px rgba(120,80,40,.12); display: grid; place-items: center; }
.ld-prev img { width: 8.6rem; height: 8.6rem; object-fit: contain; }
.ld-opts .lbl { margin: .8rem 0 .4rem; }
.ld-sws { display: flex; flex-wrap: wrap; gap: .5rem; }
.ld-sw { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.1), 0 0 0 1px var(--line); transition: transform .15s; }
.ld-sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--coral); transform: scale(1.06); }
.ld-dacts { position: sticky; bottom: -1.1rem; display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; margin: 1.1rem -1.1rem -1.1rem; padding: .7rem 1.1rem 1.1rem; background: linear-gradient(180deg, rgba(255,250,243,0), var(--paper) 30%); }
@media (prefers-reduced-motion: reduce) { .ld-bg i.on, .ld-logo, .ld-dot { animation: none; } }

/* 위: 장소 이름 · 함께 있는 분 */
#top { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top) + 12px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; transition: opacity .5s; }
#top > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; }
.pill small { font-weight: 600; color: var(--ink2); font-size: .8rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* 아래: 엄지 닿는 메뉴(접기·펴기) */
#dock { position: fixed; z-index: 30; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 24px; max-width: calc(100vw - 20px); transition: transform .35s cubic-bezier(.3,.9,.3,1), opacity .3s; }
#dock.folded { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.dbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-width: 3.8rem; height: 3.9rem; padding: 0 .3rem; border-radius: 18px; font-size: .74rem; font-weight: 700; color: var(--ink2); transition: background .2s, transform .15s; }
.dbtn svg.lucide { width: 1.45rem; height: 1.45rem; }
.dbtn:active { transform: scale(.95); }
.dbtn:hover { background: rgba(255,255,255,.7); }
.dbtn.ritual { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(120,55,30,.75); }
.dbtn.fold { min-width: 2.6rem; color: var(--ink3); }
#fab { position: fixed; z-index: 31; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 16px); width: 3.8rem; height: 3.8rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transform: scale(0); transition: transform .3s cubic-bezier(.3,1.4,.4,1); }
#fab.on { transform: scale(1); }
html.lefty #fab { right: auto; left: 16px; }
html.lefty #dock { left: 10px; transform: none; }
html.lefty #dock.folded { transform: translateY(140%); }
@media (max-width: 520px) { #dock { width: calc(100vw - 20px); } .dbtn { min-width: 0; flex: 1 1 0; padding: 0; font-size: .7rem; } .dbtn.fold { flex: 0 0 2.2rem; } }
/* 좁은 폰: 메뉴 칸이 많아도 화면 밖으로 밀려나지 않게(공원 7칸 포함), 글자는 한 줄로 줄임 */
@media (max-width: 520px) { #dock { overflow: hidden; } #dock .dbtn, .pk-dock .dbtn { min-width: 0; padding: 0; white-space: nowrap; letter-spacing: -.03em; } .pk-dock .dbtn { font-size: .64rem; } }

/* 시트(아래에서 올라오는 창) */
#sheetWrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(46,32,24,0.22); opacity: 0; pointer-events: none; transition: opacity .25s; }
#sheetWrap.on { opacity: 1; pointer-events: auto; }
.sheet { width: min(560px, 100%); max-height: 84vh; max-height: 84dvh; overflow: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; padding: 0 1.1rem calc(env(safe-area-inset-bottom) + 1.2rem); transform: translateY(40px); transition: transform .3s cubic-bezier(.3,.9,.3,1); }
#sheetWrap.on .sheet { transform: none; }
@media (min-width: 900px) { #sheetWrap { justify-content: flex-end; align-items: stretch; padding: 14px; background: rgba(46,32,24,0.1); } .sheet { border-radius: 26px; max-height: none; width: 440px; } }
.grab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: .7rem 0 .5rem; background: linear-gradient(rgba(255,250,243,.98) 70%, rgba(255,250,243,0)); }
.grab::before { content: ''; position: absolute; top: 6px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(120,90,60,.2); }
.grab h2 { margin: .5rem 0 0; font-family: 'Nanum Myeongjo', serif; font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; color: #3d2e25; }
.x { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); background: rgba(120,90,60,.07); margin-top: .4rem; }
.sheet h3 { margin: 1.3rem 0 .55rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(154,122,95,.18); font-size: .92rem; font-weight: 800; color: #8a6a52; }
.sheet p { line-height: 1.6; }
.muted { color: var(--ink3); font-size: .85rem; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3.1rem; padding: .7rem 1.1rem; border-radius: 16px; font-size: 1rem; font-weight: 800; transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(120,55,30,.75); }
.btn.ghost { background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); }
.btn.full { width: 100%; }
.btn.sm { min-height: 2.6rem; font-size: .88rem; padding: .5rem .85rem; border-radius: 13px; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.inp { width: 100%; min-height: 3rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(255,255,255,.85); border: 1px solid var(--line); font: inherit; font-size: 1rem; color: var(--ink); outline: none; }
.inp:focus { border-color: rgba(239,138,111,.6); box-shadow: 0 0 0 4px rgba(239,138,111,.15); }
textarea.inp { resize: none; line-height: 1.55; }
.lbl { display: block; margin: 1rem 0 .4rem; font-size: .85rem; font-weight: 800; color: var(--ink2); }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 15px; background: rgba(120,90,60,.08); }
.seg button { flex: 1; min-height: 2.7rem; border-radius: 12px; font-size: .9rem; font-weight: 700; color: var(--ink2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(80,50,20,.3); }
.chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.6rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 700; color: var(--ink2); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.hscroll { display: flex; flex-wrap: wrap; gap: .45rem; padding: 2px 2px 6px; } /* 줄바꿈: 컴퓨터에서 옆으로 숨어 안 보이는 항목 없게 */
.hscroll::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 4.6rem; padding: .4rem .2rem .5rem; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; font-weight: 700; color: var(--ink2); }
.pick img { width: 3.4rem; height: 3.4rem; object-fit: cover; border-radius: 12px; }
.pick.on { background: #fff; box-shadow: 0 0 0 2.5px var(--coral); color: var(--ink); }
.item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 5.2rem; padding: .6rem .3rem; border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; font-weight: 700; color: var(--ink); }
.item svg.lucide { width: 1.6rem; height: 1.6rem; color: var(--coral); }
.item:active { transform: scale(.97); }
.sw { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--ink); }
.tg { position: relative; width: 3.3rem; height: 2rem; border-radius: 999px; background: rgba(120,90,60,.18); transition: background .2s; flex-shrink: 0; }
.tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: calc(2rem - 6px); height: calc(2rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .2s; }
.tg[aria-pressed="true"] { background: var(--sage); }
.tg[aria-pressed="true"]::after { transform: translateX(1.3rem); }
.line { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 3.3rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.line b { font-weight: 700; } .line small { display: block; color: var(--ink3); font-size: .8rem; font-weight: 500; margin-top: 2px; }
.photo-drop { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 18px; border: 1.5px dashed rgba(120,90,60,.28); background: rgba(255,255,255,.55); cursor: pointer; }
.photo-drop img { width: 4.2rem; height: 4.2rem; border-radius: 14px; object-fit: cover; background: var(--cream); }

/* 추모 카드 */
.hero { display: flex; gap: 1rem; align-items: center; margin-top: .4rem; }
.hero img { width: 6.4rem; height: 6.4rem; border-radius: 22px; object-fit: cover; background: var(--cream); box-shadow: 0 8px 20px -10px rgba(80,50,20,.5); }
.hero h2 { margin: 0; font-size: 1.55rem; font-weight: 800; }
.hero p { margin: .2rem 0 0; color: var(--ink2); font-size: .92rem; line-height: 1.45; }
.quote { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 16px; background: rgba(246,234,219,.7); font-family: 'Nanum Myeongjo', 'Batang', serif; font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: .2rem 0 .9rem 1.2rem; border-left: 2px solid rgba(239,138,111,.3); margin-left: .35rem; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.timeline img { display: block; width: 100%; max-height: 12rem; object-fit: cover; border-radius: 14px; margin-top: .4rem; }
.timeline small { color: var(--ink3); font-size: .78rem; }
.gb { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.gb .who { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--ink3); font-weight: 600; }
.gb .who b { color: var(--ink2); font-weight: 800; }
.gb p { margin: .3rem 0 .4rem; font-size: 1rem; }
.gb .acts { display: flex; gap: .4rem; }
.tap { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.3rem; padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--ink2); background: rgba(120,90,60,.06); }
.tap.on { color: #c2566a; background: rgba(243,134,155,.14); }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(111,163,138,.14); color: #4f826a; }
.help { margin-top: 1rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(111,179,217,.1); font-size: .9rem; line-height: 1.6; }

/* 알림 한 줄 */
#toast { position: fixed; z-index: 70; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 6.2rem); transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: .8rem 1.1rem; border-radius: 16px; font-weight: 700; font-size: .95rem; text-align: center; opacity: 0; pointer-events: none; transition: all .35s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 조용히 머물기 */
#quiet { position: fixed; z-index: 40; inset: auto 0 calc(env(safe-area-inset-bottom) + 22px) 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; opacity: 0; pointer-events: none; transition: opacity 1s; }
#quiet.on { opacity: 1; pointer-events: auto; }
#quiet .breath { font-family: 'Nanum Myeongjo', 'Batang', serif; font-size: 1.15rem; color: #fffaf3; text-shadow: 0 2px 14px rgba(40,25,15,.55); text-align: center; line-height: 1.7; padding: 0 20px; }
html.is-quiet #top, html.is-quiet #dock, html.is-quiet #fab { opacity: 0; pointer-events: none; }

#fps { position: fixed; z-index: 99; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font: 600 11px/1.3 monospace; pointer-events: none; }

/* ---- v2: 사진 넘겨 보기·추모 SNS·인증샷·등록 마법사 ---- */
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: .3rem -1.1rem 0; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; aspect-ratio: 4/3.4; object-fit: cover; scroll-snap-align: center; background: var(--cream); cursor: zoom-in; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: .5rem; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(120,90,60,.2); transition: width .25s, background .25s; }
.dots i.on { width: 18px; background: var(--coral); }
.cname h2 { margin: .8rem 0 .1rem; font-size: 1.6rem; font-weight: 800; }
.cname h2 small { font-size: .9rem; font-weight: 700; color: var(--coral); margin-left: .2rem; }
.cname p { margin: .1rem 0 0; color: var(--ink2); font-size: .9rem; line-height: 1.45; }
.tags { margin-top: .6rem; } .tags span { padding: .25rem .65rem; border-radius: 999px; background: rgba(244,184,96,.18); color: #9a6a1f; font-size: .8rem; font-weight: 700; }
.facts { margin: .7rem 0 0; display: grid; gap: .3rem; }
.facts div { display: flex; gap: .7rem; font-size: .92rem; } .facts dt { flex: 0 0 4.6rem; color: var(--ink3); font-weight: 700; } .facts dd { margin: 0; color: var(--ink); }
.react { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .9rem; }
.react button { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 4.2rem; padding: .5rem .2rem; border-radius: 16px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; font-weight: 700; color: var(--ink2); transition: background .2s, transform .15s; }
.react button b { font-size: .78rem; color: var(--ink3); }
.react button.on { background: rgba(239,138,111,.13); color: #c4573f; box-shadow: inset 0 0 0 1.5px rgba(239,138,111,.5); }
.react button:active { transform: scale(.95); }
#lb { position: fixed; inset: 0; z-index: 80; background: rgba(20,14,10,.92); display: none; flex-direction: column; justify-content: center; }
#lb.on { display: flex; }
.lbimgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lbimgs::-webkit-scrollbar { display: none; }
.lbimgs img { flex: 0 0 100%; max-height: 78vh; object-fit: contain; scroll-snap-align: center; }
.lbcap { color: #f6eadb; text-align: center; font-family: 'Nanum Myeongjo', serif; padding: 0 20px; }
.lbn { position: absolute; top: calc(env(safe-area-inset-top) + 22px); left: 20px; color: #f6eadb; font-weight: 700; font-size: .9rem; }
#lb .x { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; background: rgba(255,255,255,.14); color: #fff; }
.steps { display: flex; gap: 5px; margin: .2rem 0 .3rem; } .steps i { flex: 1; height: 5px; border-radius: 3px; background: rgba(120,90,60,.14); transition: background .3s; } .steps i.on { background: var(--coral); }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--cream); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.photos .ph.main { box-shadow: 0 0 0 2.5px var(--coral); }
.photos .ph > span { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 8px; background: var(--coral); color: #fff; font-size: .68rem; font-weight: 800; }
.photos .ph button { position: absolute; top: 3px; right: 3px; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(40,25,15,.55); color: #fff; display: grid; place-items: center; }
.photos .ph button svg.lucide { width: .9rem; height: .9rem; }
.photos .ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 1.5px dashed rgba(120,90,60,.3); background: rgba(255,255,255,.55); font-size: .72rem; font-weight: 700; color: var(--ink2); cursor: pointer; }
.hello { display: flex; gap: .8rem; align-items: flex-start; margin-top: .6rem; padding: .9rem 1rem; border-radius: 18px; background: rgba(239,138,111,.1); }
.hello > svg.lucide { color: var(--coral); width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.hello small { display: block; color: var(--ink2); font-size: .85rem; line-height: 1.55; margin-top: .2rem; }
.post { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.post header { display: flex; gap: .65rem; align-items: center; }
.post header img, .post header .ph { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; background: var(--cream); display: grid; place-items: center; color: var(--coral); cursor: pointer; }
.post header b { display: block; font-size: .92rem; } .post header small { color: var(--ink3); font-size: .78rem; }
.post p { margin: .5rem 0 .4rem; font-size: 1rem; }
.post .pimg { display: block; width: 100%; max-height: 22rem; object-fit: cover; border-radius: 16px; margin: .3rem 0 .5rem; cursor: zoom-in; }
.post .acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.soon { display: flex; align-items: center; gap: .7rem; width: 100%; margin-top: .6rem; padding: .7rem .8rem; border-radius: 16px; background: rgba(169,139,201,.12); text-align: left; font-size: .9rem; }
.soon img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; }
.soon span { flex: 1; } .soon small { display: block; color: var(--ink3); font-size: .78rem; }
.shotprev { display: block; width: 100%; max-width: 360px; margin: .2rem auto 0; aspect-ratio: 4/5; border-radius: 16px; background: var(--cream); box-shadow: 0 10px 30px -14px rgba(80,50,20,.5); }
.sheet.wide { width: min(600px, 100%); }
@media (min-width: 900px) { .sheet.wide { width: 480px; } }
.gb.sealed { opacity: .75; }
#nowplay { position: fixed; z-index: 29; top: calc(env(safe-area-inset-top) + 64px); left: 50%; display: flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--ink2); transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: all .5s; white-space: nowrap; }
#nowplay.on { opacity: 1; transform: translate(-50%, 0); }
#quiet .breath img { display: block; width: 7.5rem; height: 7.5rem; margin: 0 auto .8rem; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,250,243,.9); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: fadein 1.4s; }
@keyframes fadein { from { opacity: 0; } }
:focus-visible { outline: 3px solid rgba(239,138,111,.7); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 시안 D: 구역 단추(무지개 들판 / 일상 마당) */
#zones { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top) + 66px); left: 50%; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border-radius: 999px; transition: opacity .5s; }
#zones button { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; font-size: .85rem; font-weight: 800; color: var(--ink2); white-space: nowrap; }
#zones button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(80,50,20,.3); }
#zones button[data-z="yard"].on { color: #b8742a; }
#zones ~ #nowplay { top: calc(env(safe-area-inset-top) + 118px); }
html.is-quiet #zones { opacity: 0; pointer-events: none; }
/* 일상: 사진 묶음, 생일, 처음 고르기 */
.bimgs { display: grid; gap: 4px; margin: .3rem 0 .5rem; border-radius: 16px; overflow: hidden; }
.bimgs.n2, .bimgs.n4 { grid-template-columns: 1fr 1fr; } .bimgs.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.bimgs.n3 img:first-child { grid-row: span 2; }
.bimgs img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; display: block; }
.bimgs.n1 img { aspect-ratio: 4/3; max-height: 22rem; }
.soon.bd { background: rgba(244,184,96,.16); } .soon.bd svg.lucide { color: #d08a2e; }
.bdbanner { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; padding: .7rem .9rem; border-radius: 16px; background: linear-gradient(135deg, rgba(244,184,96,.22), rgba(239,138,111,.16)); font-weight: 800; color: #9a5a1e; }
.quote.live { font-family: inherit; background: rgba(244,184,96,.14); }
.startc { display: flex; align-items: center; gap: .9rem; width: 100%; margin-top: .7rem; padding: 1.1rem 1rem; border-radius: 20px; background: rgba(169,139,201,.12); text-align: left; transition: transform .15s; }
.startc.live { background: rgba(244,184,96,.17); }
.startc:active { transform: scale(.98); }
.startc > svg.lucide { width: 2rem; height: 2rem; color: var(--plum); } .startc.live > svg.lucide { color: #d08a2e; }
.startc b { display: block; font-size: 1.05rem; } .startc small { display: block; color: var(--ink2); font-size: .85rem; line-height: 1.5; margin-top: .15rem; }
@media (max-width: 420px) { #zones button { padding: 0 .75rem; font-size: .8rem; } }

/* 내 몸짓 */
#emo { position: fixed; z-index: 29; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 92px); display: grid; justify-items: end; gap: .5rem; }
html.lefty #emo { right: auto; left: 14px; justify-items: start; }
.emo-btn { width: 3.3rem; height: 3.3rem; border-radius: 50%; display: grid; place-items: center; color: var(--coral); transition: transform .2s cubic-bezier(.3,1.4,.4,1); }
.emo-btn:active { transform: scale(.92); }
#emo.open .emo-btn { transform: rotate(-12deg) scale(1.05); }
.emo-list { display: grid; gap: 2px; padding: 6px; border-radius: 22px; transform-origin: 100% 100%; transform: scale(.6) translateY(10px); opacity: 0; pointer-events: none; transition: transform .28s cubic-bezier(.3,1.3,.4,1), opacity .2s; }
#emo.open .emo-list { transform: none; opacity: 1; pointer-events: auto; }
.emo-list button { display: flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: 0 1rem 0 .8rem; border-radius: 16px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.emo-list button:active { background: rgba(239,138,111,.12); }
.emo-list svg { width: 1.2rem; height: 1.2rem; color: var(--coral); }
.emo-list .emo-talk { margin-bottom: 2px; background: rgba(239,138,111,.12); color: var(--ink); max-width: min(78vw, 17rem); }
.emo-list .emo-talk span { overflow: hidden; text-overflow: ellipsis; }
html.is-quiet #emo, #loading ~ #emo { opacity: 0; pointer-events: none; }

/* 추억 공원: 사진과 닮은 아이 비교, 오늘 함께한 시간 */
.pk-dock .dbtn { min-width: 3.25rem; padding: 0 .15rem; font-size: .72rem; }
.pk-cmp { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem; margin-top: 1rem; }
.pk-cmp figure { margin: 0; display: grid; justify-items: center; gap: .3rem; }
.pk-cmp figure > img, .pk-empty { width: min(8.6rem, 36vw); aspect-ratio: 1; border-radius: 24px; object-fit: cover; background: #f6eadb; box-shadow: inset 0 0 0 1px var(--line); }
.pk-me > img, .pk-me .pk-empty { border-radius: 50%; object-fit: contain; background: radial-gradient(circle at 50% 40%, #fff 0, #fdf1e2 55%, #f3dfc6 100%); }
.pk-empty { display: grid; place-items: center; color: var(--ink3); }
.pk-cmp figcaption { font-size: .8rem; font-weight: 700; color: var(--ink2); }
.pk-arrow { width: 1.4rem; height: 1.4rem; color: var(--coral); }
.pk-spin { width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid rgba(239,138,111,.25); border-top-color: var(--coral); animation: pkspin .8s linear infinite; }
@keyframes pkspin { to { transform: rotate(360deg); } }
.pk-go { position: sticky; bottom: calc(-1 * env(safe-area-inset-bottom) - 1.2rem); margin: 1rem -1.1rem 0; padding: .7rem 1.1rem calc(env(safe-area-inset-bottom) + .9rem); background: linear-gradient(180deg, rgba(255,250,243,0), rgba(255,250,243,.96) 30%); }
.pk-shot { width: 100%; border-radius: 18px; margin-top: .3rem; box-shadow: 0 10px 26px -14px rgba(80,50,20,.5); }
.pk-day { display: grid; grid-template-columns: 6.4rem 1fr; gap: .9rem; align-items: start; margin-top: .4rem; padding: .8rem; border-radius: 20px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); }
.pk-day img { width: 6.4rem; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #f6eadb; }
.pk-day b { display: block; font-size: 1.08rem; }
.pk-day small { color: var(--ink3); font-size: .8rem; }
.pk-day ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.6; color: var(--ink2); }

/* ---------- 아이와 이야기(상상 대화): 우리 결로 새로 그린 말풍선, 메신저 상표·색 쓰지 않음 ---------- */
#top .talk { background: var(--grad); color: #fff; }
#emo .emo-talk { display: none; }
#chat { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(60,40,30,.28); opacity: 0; transition: opacity .28s; }
#chat.on { opacity: 1; }
.ch-box { width: min(480px, 100vw); height: min(92dvh, 820px); display: flex; flex-direction: column; border-radius: 26px 26px 0 0; overflow: hidden; background: linear-gradient(180deg, #fdf1e4 0%, #f8ebf0 55%, #eef1f8 100%); box-shadow: 0 -10px 40px rgba(60,35,20,.18); transform: translateY(40px); transition: transform .35s cubic-bezier(.3,1.1,.4,1); }
#chat.on .ch-box { transform: none; }
@media (min-width: 720px) { #chat { align-items: center; } .ch-box { border-radius: 26px; } }
.ch-hd { display: flex; align-items: center; gap: .55rem; padding: .7rem .7rem .6rem; background: rgba(255,250,243,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ch-ic { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink2); }
.ch-ic:active { background: rgba(120,90,60,.08); }
.ch-ava { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 42%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(80,50,30,.15); }
.ch-ava img { width: 100%; height: 100%; object-fit: cover; }
.ch-ava.sm { width: 2.1rem; height: 2.1rem; align-self: flex-start; }
.ch-ava.sm:empty { background: none; box-shadow: none; }
.ch-who { flex: 1; min-width: 0; line-height: 1.2; }
.ch-who b { font-size: 1.02rem; } .ch-who small { display: block; color: var(--ink3); font-size: .74rem; }
.ch-list { flex: 1; overflow-y: auto; padding: .8rem .8rem 1rem; display: flex; flex-direction: column; gap: .35rem; overscroll-behavior: contain; }
.ch-note { display: flex; gap: .4rem; align-items: flex-start; margin: 0 auto .4rem; max-width: 92%; padding: .55rem .75rem; border-radius: 14px; background: rgba(255,255,255,.6); color: var(--ink2); font-size: .74rem; line-height: 1.45; }
.ch-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--sage); }
.ch-day { align-self: center; margin: .5rem 0; padding: .2rem .8rem; border-radius: 999px; background: rgba(110,95,83,.1); color: var(--ink2); font-size: .72rem; font-weight: 700; }
.ch-row { display: flex; align-items: flex-end; gap: .4rem; max-width: 100%; }
.ch-row.grp { margin-top: -.15rem; }
.ch-row.me { flex-direction: row-reverse; }
.ch-col { display: flex; flex-direction: column; gap: .25rem; max-width: 74%; }
.ch-row.me .ch-col { align-items: flex-end; }
.ch-nm { font-size: .72rem; color: var(--ink2); font-weight: 700; margin-left: .2rem; }
.ch-b { padding: .6rem .85rem; border-radius: 6px 18px 18px 18px; background: #fffdf9; color: var(--ink); font-size: .95rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(80,50,30,.08); word-break: keep-all; overflow-wrap: anywhere; }
.ch-row.grp .ch-b { border-radius: 18px; }
.ch-row.me .ch-b { border-radius: 18px 6px 18px 18px; background: linear-gradient(135deg, #f6b27c, #ee8f79); color: #fff; box-shadow: 0 2px 8px rgba(233,128,110,.25); }
.ch-row.me.grp .ch-b { border-radius: 18px; }
.ch-row time { font-size: .64rem; color: var(--ink3); flex: none; margin-bottom: .15rem; }
.ch-row.in { animation: chIn .32s cubic-bezier(.3,1.3,.5,1) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.ch-row.ty .ch-b { display: flex; gap: 4px; padding: .8rem .9rem; }
.ch-row.ty i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); animation: chDot 1s infinite; }
.ch-row.ty i:nth-child(2) { animation-delay: .15s; } .ch-row.ty i:nth-child(3) { animation-delay: .3s; }
@keyframes chDot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ch-act { align-self: center; display: flex; align-items: center; gap: .35rem; max-width: 88%; padding: .3rem .8rem; border-radius: 999px; background: rgba(244,184,96,.16); color: #9a6a2c; font-size: .78rem; font-weight: 600; text-align: center; }
.ch-act svg { width: 14px; height: 14px; flex: none; }
.ch-act.in { animation: chIn .3s both; }
.ch-sys { align-self: stretch; display: flex; gap: .5rem; margin: .3rem .2rem; padding: .75rem .85rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(111,163,138,.45); font-size: .86rem; line-height: 1.5; color: var(--ink); }
.ch-sys svg { flex: none; color: var(--sage); }
.ch-pic { width: min(220px, 60vw); aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 4px 14px rgba(80,50,30,.15); }
.ch-sticker { display: block; width: 88px; height: 88px; }
.ch-sticker svg, .ch-stk svg { width: 100%; height: 100%; }
.ch-paper { width: min(290px, 70vw); padding: .9rem 1rem 1rem; border-radius: 6px 18px 18px 18px; background: #fffaf0 repeating-linear-gradient(180deg, transparent 0 1.75em, rgba(200,160,120,.22) 1.75em calc(1.75em + 1px)); box-shadow: 0 4px 16px rgba(120,80,40,.14); font-family: 'Nanum Myeongjo', serif; color: #4a3a2e; }
.ch-paper small { display: block; margin-bottom: .4rem; font-weight: 800; color: var(--coral); font-size: .76rem; }
.ch-paper p { margin: 0; font-size: .9rem; line-height: 1.75em; }
.ch-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-height: 8.6rem; overflow-y: auto; padding: .45rem .7rem .2rem; scrollbar-width: none; } /* 줄바꿈: 잘려 숨는 단추 없게 */
.ch-quick::-webkit-scrollbar { display: none; }
.ch-quick button { flex: none; padding: .6rem .9rem; min-height: 2.5rem; border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.ch-quick button:active, .ch-acts button:active, .ch-stk button:active { transform: scale(.95); }
.ch-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: .35rem .6rem; }
.ch-acts button { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .4rem 0; border-radius: 14px; color: var(--ink2); font-size: .7rem; font-weight: 700; }
.ch-acts svg { width: 20px; height: 20px; color: var(--coral); }
.ch-stk { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; padding: .3rem .8rem .5rem; }
.ch-stk[hidden] { display: none; }
/* 아이가 아는 나: 이 기기에만 저장되는 주인 정보 보기·고치기 */
.ch-me { max-height: 46vh; overflow: auto; padding: .4rem .8rem .6rem; }
.ch-me[hidden] { display: none; }
.ch-me-note { margin: 0 0 .5rem; padding: .55rem .7rem; border-radius: 14px; background: rgba(239,138,111,.1); font-size: .8rem; line-height: 1.5; color: var(--ink2); }
.ch-me-gr { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.ch-me-gr label { display: grid; gap: .15rem; font-size: .72rem; font-weight: 700; color: var(--ink3); }
.ch-me-gr input { width: 100%; min-height: 2.5rem; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 16px; color: var(--ink); }
.ch-me-ev { margin: .5rem 0 0; font-size: .78rem; color: var(--ink2); }
.ch-me-bt { display: flex; gap: .4rem; margin-top: .6rem; }
.ch-me-bt button { flex: 1; min-height: 2.7rem; border-radius: 14px; background: rgba(255,255,255,.8); font-weight: 800; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.ch-me-bt .ok { background: var(--grad); color: #fff; box-shadow: none; }
.ch-stk button { aspect-ratio: 1; padding: .5rem; border-radius: 18px; background: rgba(255,255,255,.75); }
.ch-in { display: flex; gap: .45rem; padding: .5rem .7rem calc(env(safe-area-inset-bottom) + .6rem); background: rgba(255,250,243,.85); border-top: 1px solid var(--line); }
.ch-in input { flex: 1; min-width: 0; min-height: 2.8rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 1rem; color: var(--ink); outline: none; }
.ch-in input:focus { border-color: rgba(239,138,111,.55); }
.ch-in button { width: 2.8rem; height: 2.8rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; }
.ch-in svg { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .ch-row.in, .ch-act.in, .ch-row.ty i { animation: none; } }
/* 아이 이야기 적기(첫 화면·시트 같이 씀) */
.bf { display: grid; gap: .35rem; }
.bf .lbl { margin-top: .5rem; }
.bf .row { flex-wrap: wrap; gap: .35rem; }
.bf-lead { margin: 0 0 .3rem; }
.bf-top { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; align-items: start; margin-top: .4rem; }
.bf-ph { position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: .2rem; border-radius: 26px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink3); font-size: .74rem; font-weight: 700; cursor: pointer; overflow: hidden; margin-top: 1.4rem; }
.bf-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-safe { display: flex; gap: .3rem; align-items: center; font-size: .76rem; }
.bf-safe svg { width: 14px; height: 14px; }
.bf [data-ok] { margin-top: .5rem; }
.talk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); gap: .5rem; }
.talk-pick .item { display: grid; justify-items: center; gap: .2rem; padding: .7rem .4rem; }
.talk-pick img { width: 3.6rem; height: 3.6rem; border-radius: 40%; object-fit: cover; background: #fff; }
.talk-pick small { color: var(--ink3); font-size: .72rem; }
.talk-pick .item > svg { width: 3.6rem; height: 3.6rem; padding: 1rem; border-radius: 40%; background: rgba(255,255,255,.7); color: var(--coral); }
.ld-talk { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: .5rem; min-height: 2.8rem; border-radius: 999px; color: var(--coral); font-weight: 800; font-size: .92rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .4s .15s; }
.ld-talk svg { width: 18px; height: 18px; }
#loading.ready .ld-talk { max-height: 3.2rem; opacity: 1; }
.ld-buddy { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); width: min(460px, calc(100vw - 24px)); max-height: calc(100% - 70px); display: flex; flex-direction: column; border-radius: 28px; transform: translate(-50%, 110%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.3,1.1,.4,1), opacity .3s; }
.ld-bhd { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem .3rem; font-size: 1.05rem; }
.ld-back { width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--ink2); }
.ld-bbody { overflow-y: auto; padding: 0 1.1rem 1.1rem; }
#loading.buddying .ld-card { opacity: 0; transform: translate(-50%, 40px); pointer-events: none; }
#loading.buddying .ld-buddy { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
/* 다른 기념관 고르기 */
.halls { display: grid; gap: .5rem; }
.hall { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.hall.on { box-shadow: inset 0 0 0 2px var(--coral); }
.hall:active { transform: scale(.98); }
.hall-sw { width: 3.2rem; height: 3.2rem; flex: none; display: grid; place-items: center; border-radius: 16px; color: #fff; }
.hall-sw svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.hall > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.hall small { display: block; color: var(--ink3); font-size: .76rem; }
.hall em { flex: none; font-style: normal; font-size: .72rem; font-weight: 800; color: var(--coral); }
/* 관(방) 고르기: 인원 막대가 차오르는 칸 */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: .45rem; margin-top: .4rem; }
.room { position: relative; overflow: hidden; display: grid; gap: .1rem; padding: .65rem .7rem .8rem; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; color: var(--ink); }
.room small { color: var(--ink3); font-size: .72rem; }
.room i { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--f) * 100%); background: var(--grad); border-radius: 0 4px 4px 0; }
.room.on { box-shadow: inset 0 0 0 2px var(--coral); }
/* 아이 이야기 폼: 무지개 공원 안내·털빛 */
.bf-park{display:flex;gap:.55rem;align-items:flex-start;margin:.1rem 0 .7rem;padding:.65rem .75rem;border-radius:14px;background:linear-gradient(120deg,#fff3e6,#f2f0ff 60%,#e9f7f1);color:#4a3f52;font-size:.86rem;line-height:1.5}
.bf-park svg{flex:none;width:20px;height:20px;color:#c98a5c;margin-top:.1rem}
.bf-fur{display:flex;align-items:center;gap:.25rem;margin-top:.35rem;font-size:.74rem;color:#7a6c64}
.bf-fur i{width:14px;height:14px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px #fff,0 1px 3px rgba(0,0,0,.2)}
.bf-go{gap:.5rem;margin-top:.4rem;flex-wrap:nowrap}.bf-go .btn{flex:1;justify-content:center}
.lbl small{font-weight:400;color:#8a7f78;font-size:.74rem}
/* 함께 머무는 분들과 대화(모두의 대화·1:1) */
#top [data-people] { cursor: pointer; }
.pp-ic { width: 15px; height: 15px; margin-left: .2rem; color: var(--coral); }
.pp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem .7rem .2rem; }
.pp-tabs button { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.6rem; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--ink2); }
.pp-tabs button svg { width: 17px; height: 17px; }
.pp-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(80,50,30,.12); }
.pp-rule { display: flex; gap: .45rem; margin: .3rem .7rem .1rem; padding: .55rem .7rem; border-radius: 14px; background: rgba(111,163,138,.12); color: var(--ink2); font-size: .74rem; line-height: 1.5; }
.pp-rule svg { flex: none; width: 16px; height: 16px; color: var(--sage); margin-top: 1px; }
.pp-ava { display: grid; place-items: center; background: var(--a); color: #5b4a3f; font-weight: 800; font-size: .9rem; }
.pp-who { padding: 0; border-radius: 42%; align-self: flex-start; }
.pp-hid { color: var(--ink3); font-style: italic; background: rgba(255,255,255,.55); }
.pp-sys { font-size: .8rem; align-self: center; max-width: 92%; padding: .45rem .7rem; }
.pp-sys.warn { box-shadow: inset 0 0 0 1.5px rgba(233,128,110,.55); }
.pp-sys.warn svg { color: var(--coral); }
.pp-peer { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem .5rem; border-radius: 16px; text-align: left; }
.pp-peer:active { background: rgba(120,90,60,.06); }
.pp-peer > span:not(.ch-ava) { flex: 1; min-width: 0; } .pp-peer b { display: block; font-size: .95rem; }
.pp-peer small { display: block; color: var(--ink3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-peer > svg { width: 18px; color: var(--ink3); }
.pp-back { margin-left: .3rem; padding: .1rem .55rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .74rem; font-weight: 700; color: var(--ink2); }
.pp-menu { position: absolute; left: .8rem; right: .8rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .2rem; padding: .7rem; border-radius: 20px; background: #fffdf9; box-shadow: 0 10px 34px rgba(60,40,25,.22); animation: chIn .25s both; z-index: 2; }
.pp-menu b { padding: .2rem .4rem .4rem; font-size: .92rem; }
.pp-menu button:not(.btn) { display: flex; align-items: center; gap: .55rem; min-height: 2.8rem; padding: 0 .6rem; border-radius: 12px; font-weight: 700; color: var(--ink2); text-align: left; }
.pp-menu button:not(.btn):active { background: rgba(120,90,60,.06); }
.pp-menu svg { width: 18px; height: 18px; color: var(--coral); }
.pp-err { color: var(--coral); font-size: .76rem; min-height: 1em; padding: 0 .3rem; }
.ch-box { position: relative; }
@media (max-width: 420px) { .pk-top-s #top a.pill > small { display: none; } #top [data-nm] { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.ld-talk span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.ld-talk small { font-size: .7rem; font-weight: 600; color: var(--ink3); }
#loading.ready .ld-talk { max-height: 3.6rem; }
body:has(#sheetWrap.on) #dock { opacity: 0; pointer-events: none; }
/* 휴대폰 조이스틱: 왼쪽 아래(왼손잡이면 오른쪽), 엄지 닿는 높이 */
#joy { position: fixed; z-index: 29; left: max(16px, env(safe-area-inset-left)); bottom: 150px; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,250,243,.32) 0 55%, rgba(255,250,243,.5) 56% 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75), 0 6px 18px -6px rgba(60,40,30,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; opacity: .78; transition: opacity .2s; }
#joy.on { opacity: 1; }
#joy .jk { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,250,243,.96); box-shadow: 0 4px 12px -2px rgba(60,40,30,.4), inset 0 0 0 2px rgba(201,143,122,.55); pointer-events: none; }
#joy:not(.on) .jk { transition: transform .18s cubic-bezier(.3,1.4,.4,1); }
html.lefty #joy { left: auto; right: max(16px, env(safe-area-inset-right)); }
#joy.off { opacity: 0; pointer-events: none; }
.box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.box-grid .bx { display: grid; justify-items: center; gap: .2rem; padding: .7rem .3rem; border-radius: 16px; background: rgba(255,250,243,.9); box-shadow: inset 0 0 0 1px rgba(160,130,100,.15); text-align: center; }
.box-grid .bx i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -4px -5px 0 rgba(0,0,0,.08), 0 3px 8px -3px rgba(60,40,30,.3); }
.box-grid .bx b { font-size: .78rem; } .box-grid .bx small { font-size: .7rem; opacity: .7; }
.box-grid .bx.no { opacity: .55; }
.cart-pick { display: grid; gap: .5rem; }
.cart-pick .item { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; text-align: left; padding: .7rem .9rem; border-radius: 16px; border: 0; background: rgba(255,250,243,.92); box-shadow: inset 0 0 0 1px rgba(160,130,100,.18); cursor: pointer; font: inherit; color: inherit; }
.cart-pick .item i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset -4px -5px 0 rgba(0,0,0,.07); }
.cart-pick .item small { opacity: .7; font-size: .78rem; }
.cart-pick .item.on { box-shadow: inset 0 0 0 2px #e39b7b; }
#top a.pill { white-space: nowrap; }
@media (max-width: 420px) { .pk-top-s #top .pill { padding-left: .6rem; padding-right: .6rem; gap: .3rem; } .pk-top-s #top .row { gap: 6px; } }
.ld-brand { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--ink3); margin-bottom: .1rem; }
/* 가까이 가면 뜨는 행동 버튼(촛불 켜기·방명록 등) */
#near { position: fixed; z-index: 31; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 86px); transform: translate(-50%, 16px) scale(.92); display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 999px; font-weight: 800; font-size: .98rem; color: #fff; background: var(--grad); border: 0; box-shadow: 0 10px 26px -8px rgba(200,90,60,.6); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.3,1.3,.4,1); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
#near.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); animation: nearGlow 2.4s ease-in-out infinite; }
#near svg { width: 1.25rem; height: 1.25rem; }
@keyframes nearGlow { 50% { box-shadow: 0 10px 30px -6px rgba(240,130,90,.85), 0 0 0 6px rgba(244,184,96,.18); } }
body:has(#sheetWrap.on) #near, body:has(#dock.folded) #near { bottom: calc(env(safe-area-inset-bottom) + 20px); }
body:has(#sheetWrap.on) #near { opacity: 0; pointer-events: none; }
/* 위 막대(기념관·마을): 대화는 늘 보이고 나머지는 휴대폰에서 접었다 폄 */
#top .back span { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .tb { display: flex; gap: 6px; align-items: flex-start; position: relative; }
#top .tb-opt { display: flex; gap: 6px; }
#top .tb .pill { white-space: nowrap; }
#top .tb-tg { display: none; padding: .6rem .7rem; }
#top [data-people] small { white-space: nowrap; }
@media (max-width: 760px), (max-height: 520px) {
  #top .tb-tg { display: inline-flex; }
  #top .tb-opt { position: absolute; top: calc(100% + 8px); right: 0; flex-direction: column; align-items: stretch; gap: 6px; opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.3,1.2,.4,1); }
  #top.open .tb-opt { opacity: 1; transform: none; pointer-events: auto; }
  #top .tb-opt .pill { justify-content: flex-start; padding: .7rem 1rem; }
  #top.open .tb-tg { background: var(--ink); color: #fff; }
  #top .tb-l { display: inline; }
}
@media (max-width: 380px) { #top .talk span { display: none; } #top .back span { max-width: 7.5em; } }
.tour { display: grid; gap: .5rem; }
.tour .item { display: grid; grid-template-columns: 1.8rem 1.3rem 1fr; gap: .65rem; align-items: center; padding: .75rem .85rem; border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.tour .item.on { box-shadow: inset 0 0 0 2px var(--coral); }
.tour .n { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--honey); color: #fff; font-weight: 800; font-size: .85rem; }
.tour .n svg { width: 1rem; height: 1rem; }
.tour b { display: block; } .tour small { color: var(--ink3); font-size: .8rem; }
/* 모바일: 사이트 자체가 위아래로 밀리거나 당겨 새로고침되지 않게 고정 */
html, body { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; overscroll-behavior: none; touch-action: manipulation; }
#app canvas { touch-action: none; }
.sheet, .body, .en-scroll { overscroll-behavior: contain; }
/* 가로 화면(낮은 높이): 시트가 화면을 다 덮지 않게 오른쪽으로 */
@media (orientation: landscape) and (max-height: 520px) {
  #top { top: calc(env(safe-area-inset-top) + 6px); }
  #dock { bottom: calc(env(safe-area-inset-bottom) + 6px); padding: 4px; }
  #dock .dbtn { padding-top: .3rem; padding-bottom: .3rem; }
  #near { bottom: calc(env(safe-area-inset-bottom) + 66px); padding: .6rem 1.05rem; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  #sheetWrap { justify-content: flex-end; align-items: stretch; padding: 8px; }
  .sheet { border-radius: 22px; max-height: none; width: min(440px, 58vw); }
}
/* 마음 놓기: 촛불 고르기 = 바로 켜기 */
.off-lead { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; font-size: .86rem; font-weight: 700; color: var(--coral); }
.off-lead svg { width: 1rem; height: 1rem; }
.off-candle { display: flex; align-items: center; gap: .7rem; text-align: left; }
.off-candle small { display: block; font-size: .72rem; color: var(--ink3); font-weight: 600; }
.cdl { position: relative; width: 1.1rem; height: 2.2rem; flex: none; border-radius: 4px 4px 3px 3px; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent 40%, rgba(0,0,0,.08)), var(--cc); box-shadow: inset 0 0 0 1px rgba(120,90,60,.18); margin-top: .7rem; }
.cdl i { position: absolute; left: 50%; top: -.95rem; width: .55rem; height: .85rem; margin-left: -.275rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c8, #ffb347 60%, rgba(255,140,60,0)); opacity: .35; transform-origin: 50% 100%; transition: opacity .2s; }
.off-candle:hover .cdl i, .off-candle:active .cdl i, .off-candle:focus-visible .cdl i { opacity: 1; animation: flick .5s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scaleY(1) rotate(-3deg); } to { transform: scaleY(1.15) rotate(3deg); } }
.shot-up { margin: .2rem 0 .4rem; justify-content: center; } .shot-up input { display: none; }

/* 인증샷: 스크롤 없이 한 화면(미리보기가 남는 높이를 다 씀) */
.sheet.shot { display: flex; flex-direction: column; overflow: hidden; height: min(94vh, 920px); max-height: 94vh; padding-bottom: calc(env(safe-area-inset-bottom) + .7rem); }
.sheet.shot .grab { padding: .5rem 0 .3rem; }
.sheet.shot .body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .45rem; }
.shot-pv { flex: 1; min-height: 0; display: grid; place-items: center; }
.sheet.shot .shotprev { width: auto; height: 100%; max-width: 100%; max-height: 100%; margin: 0; }
.shot-ctl { flex: none; display: grid; gap: .4rem; min-width: 0; }
.shot-ctl .hscroll { padding-bottom: 2px; }
.shot-ctl .pick { width: 3.7rem; padding: .25rem .15rem .3rem; font-size: .72rem; }
.shot-ctl .pick img { width: 2.5rem; height: 2.5rem; }
.shot-ctl .chip { flex: none; min-height: 2.35rem; padding: .3rem .75rem; font-size: .82rem; }
.shot-ctl .sep { flex: none; width: 1px; margin: .35rem .1rem; background: var(--line); }
.shot-act { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .4rem; }
.shot-act .btn { justify-content: center; padding: .7rem .4rem; min-height: 2.9rem; }
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  .sheet.shot { width: min(780px, 96vw); height: auto; }
  .sheet.shot .body { flex-direction: row; }
  .sheet.shot .shot-pv { flex: 0 0 auto; height: 100%; }
  .sheet.shot .shot-ctl { flex: 1; align-content: start; }
}

/* 공원 오늘의 한 장: 스크롤 없이 한 화면(사진이 남는 높이를 채움) */
.sheet.pkshot { display: flex; flex-direction: column; overflow: hidden; max-height: 94vh; }
.sheet.pkshot .pk-shot { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; }
.sheet.pkshot .grid2, .sheet.pkshot p { flex: none; }

/* 360도 둘러보기 첫 안내 */
.hint360 { position: fixed; left: 50%; top: 4.6rem; transform: translateX(-50%); z-index: 30; padding: .55rem .95rem; border-radius: 999px; font-size: .86rem; pointer-events: none; transition: opacity .8s; max-width: calc(100vw - 32px); text-align: center; }
.hint360.off { opacity: 0; }

/* ---------- 무지개 이야기(게임 안 SNS) ---------- */
#sns { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; background: rgba(60,40,25,.28); opacity: 0; pointer-events: none; transition: opacity .3s; }
#sns.on { opacity: 1; pointer-events: auto; }
.sns-in { position: relative; width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff7ee 0%, #fbefe2 100%); box-shadow: 0 0 60px -20px rgba(80,50,20,.5); transform: translateY(24px); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#sns.on .sns-in { transform: none; }
.sns-top { display: flex; align-items: center; gap: .5rem; padding: calc(env(safe-area-inset-top) + .6rem) .8rem .5rem; }
.sns-top > div { flex: 1; min-width: 0; text-align: center; }
.sns-top b { display: block; font-size: 1.12rem; letter-spacing: -.02em; }
.sns-top small { display: block; color: var(--ink3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sns-top > button { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; }
.sns-top > button:hover { background: rgba(120,90,60,.08); }
.sns-pen { color: #fff; background: var(--grad) !important; box-shadow: 0 6px 16px -6px rgba(233,128,110,.8); }
.sns-seg { display: flex; gap: .3rem; margin: 0 1rem .4rem; padding: .25rem; border-radius: 14px; background: rgba(120,90,60,.08); }
.sns-seg button { flex: 1; padding: .55rem 0; border-radius: 11px; font-weight: 700; font-size: .92rem; color: var(--ink2); transition: all .2s; }
.sns-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(80,50,20,.3); }
.sns-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .4rem 1rem calc(env(safe-area-inset-bottom) + 2rem); scrollbar-width: thin; }
.sns-hero { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; margin-bottom: .9rem; border-radius: 20px; background: #fff; box-shadow: 0 6px 22px -14px rgba(80,50,20,.45), inset 0 0 0 1px var(--line); text-align: left; color: var(--ink3); font-size: .93rem; }
.sns-hero span:nth-child(2) { flex: 1; }
.sns-hero svg { color: var(--coral); }
.sp-ava { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #ffe3c9, #f6c7c0); color: #c76a55; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f4c9a8; }
.sp-ava img { width: 100%; height: 100%; object-fit: cover; }
.sp { background: #fff; border-radius: 22px; margin-bottom: 1rem; box-shadow: 0 10px 30px -18px rgba(80,50,20,.5), inset 0 0 0 1px rgba(120,90,60,.07); overflow: hidden; animation: spIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes spIn { from { opacity: 0; transform: translateY(10px); } }
.sp header { display: flex; align-items: center; gap: .65rem; padding: .8rem .8rem .65rem .9rem; }
.sp-who { flex: 1; min-width: 0; }
.sp-who b { display: block; font-size: .98rem; }
.sp-who small { display: block; color: var(--ink3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mood { flex: none; padding: .22rem .6rem; border-radius: 99px; background: #fdf0e3; color: #b8754a; font-size: .74rem; font-weight: 700; }
.sp-more { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink3); }
.sp-imgs { position: relative; background: #f4ebe1; }
.sp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sp-track::-webkit-scrollbar { display: none; }
.sp-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; max-height: 62vh; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; display: block; }
.sp-imgs.n1 .sp-track img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; }
.sp-dots { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.sp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .25s; }
.sp-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.sp-cnt { position: absolute; top: .6rem; right: .6rem; padding: .15rem .5rem; border-radius: 99px; background: rgba(40,28,20,.45); color: #fff; font-size: .72rem; font-weight: 700; }
.sp-text { margin: .75rem .95rem 0; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.62; font-size: .97rem; }
.sp-text.clip { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sp-open { margin: .2rem .95rem 0; color: var(--ink3); font-size: .86rem; font-weight: 700; }
.sp footer { display: flex; gap: .4rem; padding: .7rem .8rem .8rem; }
.sp footer button { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 99px; background: #faf3ea; color: var(--ink2); font-size: .86rem; font-weight: 700; transition: background .2s, color .2s; }
.sp footer b { font-weight: 800; }
.sp-heart.on { background: #fde7e2; color: #d5604a; }
.sp-heart.pop svg { animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 30% { transform: scale(1.45) rotate(-8deg); } }
.sp-cmts { border-top: 1px solid var(--line); padding: .7rem .9rem .9rem; background: #fffaf4; }
.spc { padding: .45rem 0; }
.spc b { font-size: .86rem; } .spc b small { color: var(--ink3); font-weight: 600; }
.spc p { margin: .15rem 0; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.spc > small { color: var(--ink3); font-size: .74rem; } .spc > small button { color: var(--ink3); font-size: .74rem; text-decoration: underline; }
.spc-none { color: var(--ink3); font-size: .88rem; margin: .2rem 0 .5rem; }
.spc-quick { display: flex; flex-wrap: wrap; gap: .35rem; scrollbar-width: none; margin: .5rem 0; }
.spc-quick button { flex: none; padding: .38rem .7rem; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; color: var(--ink2); }
.spc-in { display: flex; gap: .4rem; }
.spc-in input { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; }
.spc-in button { width: 2.9rem; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.sns-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 2.5rem 1rem; color: var(--ink3); }
.sns-empty svg { width: 2.2rem; height: 2.2rem; color: #e3a98a; } .sns-empty b { color: var(--ink); font-size: 1.05rem; }
.sns-end { text-align: center; color: var(--ink3); font-size: .82rem; padding: .6rem 0 1rem; }
.sns-skel { height: 300px; border-radius: 22px; margin-bottom: 1rem; background: linear-gradient(100deg, #f5ebe0 30%, #fbf4ec 50%, #f5ebe0 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
.sns-skel i { display: none; }
@keyframes skel { to { background-position: -150% 0; } }
.sns-menu { position: fixed; inset: 0; z-index: 68; display: flex; align-items: flex-end; justify-content: center; background: rgba(40,28,20,.25); padding: 1rem; }
.sns-menu .pnl { width: 100%; max-width: 420px; border-radius: 22px; padding: .4rem; margin-bottom: env(safe-area-inset-bottom); animation: spIn .25s both; }
.sns-menu button { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .95rem 1rem; border-radius: 16px; font-weight: 700; }
.sns-menu button:hover { background: rgba(120,90,60,.07); } .sns-menu [data-del] { color: #c9503c; } .sns-menu [data-c] { justify-content: center; color: var(--ink3); }
.sns-zoom { position: fixed; inset: 0; z-index: 75; background: rgba(18,12,8,.94); display: flex; flex-direction: column; justify-content: center; }
.sz-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sz-track img { flex: 0 0 100%; width: 100%; max-height: 82vh; object-fit: contain; scroll-snap-align: center; }
.sns-zoom > button { position: absolute; top: calc(env(safe-area-inset-top) + .7rem); right: .7rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.sns-zoom p { color: #f3e6da; text-align: center; padding: 0 1.2rem; font-size: .92rem; line-height: 1.5; }
#snsw { position: fixed; inset: 0; z-index: 65; display: flex; align-items: flex-end; justify-content: center; background: rgba(40,28,20,.3); opacity: 0; transition: opacity .25s; }
#snsw.on { opacity: 1; }
.sw-in { width: 100%; max-width: 560px; max-height: 94vh; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; transform: translateY(30px); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
#snsw.on .sw-in { transform: none; }
.sw-in > header { display: flex; align-items: center; justify-content: space-between; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.sw-in > header > button:first-child { padding: .5rem .6rem; color: var(--ink2); font-weight: 700; }
.sw-in > header .btn { min-height: 2.5rem; padding: .45rem 1rem; }
.sw-in > header .btn:disabled { opacity: .45; box-shadow: none; }
.sw-body { overflow-y: auto; padding: .9rem 1rem calc(env(safe-area-inset-bottom) + 1rem); }
.sw-who { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.sw-who b { display: block; } .sw-who small { color: var(--ink3); font-size: .8rem; }
.sw-who input { border: 0; border-bottom: 1px dashed var(--ink3); background: none; font: inherit; font-size: .8rem; width: 6.5em; color: var(--ink2); padding: 0; }
.sw-imgs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.sw-imgs > span { position: relative; flex: none; width: 5.6rem; height: 5.6rem; border-radius: 16px; overflow: hidden; }
.sw-imgs img { width: 100%; height: 100%; object-fit: cover; }
.sw-imgs [data-rm] { position: absolute; top: 4px; right: 4px; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(40,28,20,.55); color: #fff; display: grid; place-items: center; }
.sw-imgs [data-rm] svg { width: .9rem; height: .9rem; }
.sw-add { flex: none; width: 5.6rem; height: 5.6rem; border-radius: 16px; border: 1.5px dashed #e3b99c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: var(--coral); background: #fff8f1; cursor: pointer; }
.sw-add small { font-size: .72rem; color: var(--ink3); }
.sw-body textarea { width: 100%; margin-top: .8rem; padding: .85rem .95rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 1rem; line-height: 1.6; resize: vertical; min-height: 8.5rem; }
.sw-body textarea:focus, .spc-in input:focus { outline: 2px solid #f4c9a8; outline-offset: 0; }
.sw-prompts, .sw-moods { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; align-items: center; }
.sw-prompts small { width: 100%; color: var(--ink3); font-size: .78rem; }
.sw-prompts button { padding: .38rem .7rem; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; color: var(--ink2); }
.sw-moods button { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .75rem; border-radius: 99px; background: #faf1e7; font-size: .85rem; font-weight: 700; color: var(--ink2); transition: all .2s; }
.sw-moods button svg { width: 1rem; height: 1rem; }
.sw-moods button.on { background: var(--grad); color: #fff; }
.sw-note { display: flex; gap: .45rem; align-items: flex-start; margin: .9rem 0 0; color: var(--ink3); font-size: .78rem; line-height: 1.5; }
.sw-note svg { width: 1rem; height: 1rem; flex: none; margin-top: .1rem; color: var(--sage); }
@media (min-width: 700px) { #snsw { align-items: center; } .sw-in { border-radius: 24px; } }
body.sns-open #dock, body.sns-open #near, body.sns-open #top, body.sns-open #emo { visibility: hidden; pointer-events: none; }
/* 대화 머리: 아이가 써 둔 편지 버튼(무엇인지 글로 보이게) */
.ch-letter { position: relative; flex: none; display: flex; align-items: center; gap: .45rem; max-width: 46%; padding: .4rem .75rem .4rem .55rem; border-radius: 16px; background: linear-gradient(135deg, #fff1e4, #fde6e6); box-shadow: inset 0 0 0 1px rgba(214,140,110,.28); color: #a85d45; text-align: left; transition: transform .2s; }
.ch-letter:active { transform: scale(.96); }
.ch-letter svg { flex: none; width: 1.3rem; height: 1.3rem; }
.ch-letter span { min-width: 0; display: grid; line-height: 1.2; }
.ch-letter b { font-size: .82rem; white-space: nowrap; }
.ch-letter small { font-size: .7rem; color: #b98572; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-letter::after { content: ''; position: absolute; top: .3rem; right: .35rem; width: 7px; height: 7px; border-radius: 50%; background: #e9806e; animation: chDot 2.4s ease-in-out infinite; }
@keyframes chDot { 50% { transform: scale(1.5); opacity: .5; } }

/* 다시 온 분: 타이틀 카드 없이 장소 이름만 잠깐, 준비되면 바로 걷힘 */
#loading.quick { transition: opacity .3s; }
#loading.quick .ld-card { background: none; box-shadow: none; backdrop-filter: none; }
#loading.quick .ld-acts, #loading.quick .ld-talk, #loading.quick .ld-note, #loading.quick .ld-tag, #loading.quick .ld-bar, #loading.quick .ld-msg { display: none; }
#loading.quick .ld-card h1 { text-shadow: 0 2px 12px rgba(255,255,255,.8); }

/* ---------- 아이 이야기 폼: 칩 간격·생김새 묶음·올릴수록 닮아요 ---------- */
.bfbox .row, .ld-bbody .row { gap: .55rem .5rem; }
.bfbox .row .chip, .ld-bbody .row .chip { min-height: 2.5rem; padding: .45rem .95rem; }
.bf-lk { display: grid; gap: .6rem; margin-top: .7rem; padding: .75rem .8rem; border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); }
.bf-lkr { display: grid; grid-template-columns: 2.6rem 1fr; align-items: center; gap: .6rem; }
.bf-lkr > span { font-size: .8rem; font-weight: 800; color: var(--ink2); }
.lk-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(90,70,55,.07); }
.lk-seg .chip { flex: 1; justify-content: center; min-height: 2.35rem; padding: .3rem .4rem; background: transparent; box-shadow: none; font-size: .84rem; transition: background .2s, color .2s, box-shadow .2s; }
.lk-seg .chip.on { background: #fff; color: var(--ink); box-shadow: 0 1px 5px rgba(60,40,30,.16); }
.bf-ai { margin-top: 1.1rem; padding: 1rem .95rem 1.05rem; border-radius: 20px; background: linear-gradient(150deg, #fff6ec 0%, #f6f0ff 55%, #eef8f3 100%); box-shadow: inset 0 0 0 1px rgba(201,160,130,.25); }
.bf-ai .lbl { margin-top: .95rem; }
.bf-ai-h { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .98rem; color: var(--ink); }
.bf-ai-h svg { width: 18px; height: 18px; color: #d48a5e; }
.bf-ai-p { margin-left: auto; padding: .2rem .6rem; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 800; color: #c4704a; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.bf-ai-t { margin: .45rem 0 .7rem; font-size: .83rem; line-height: 1.6; color: #6f625a; }
.bf-meter { height: 8px; border-radius: 99px; background: rgba(90,70,55,.1); overflow: hidden; }
.bf-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f6b38f, #e98aa6, #a99af0); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bf-mtxt { display: block; margin-top: .4rem; font-size: .76rem; line-height: 1.5; color: #8a7a70; }
.bf-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.bf-gal > span, .bf-gadd { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.bf-gal > span img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-gal em { position: absolute; left: 5px; bottom: 5px; padding: .08rem .4rem; border-radius: 99px; background: rgba(40,30,25,.7); color: #fff; font-size: .66rem; font-style: normal; font-weight: 700; }
.bf-gal [data-grm] { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(40,30,25,.6); color: #fff; }
.bf-gal [data-grm] svg { width: 13px; height: 13px; }
.bf-gadd { display: grid; place-items: center; align-content: center; gap: .15rem; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1.5px rgba(201,160,130,.45); color: #b07b5c; cursor: pointer; }
.bf-gadd svg { width: 22px; height: 22px; }
.bf-gadd small { font-size: .7rem; color: #9b8a80; }
.bf-learned:empty { display: none; }
.bf-learned { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.bf-learned p { flex-basis: 100%; margin: 0 0 .1rem; font-size: .78rem; color: #7a6c64; }
.bf-learned span { padding: .3rem .65rem; border-radius: 99px; background: #fff; font-size: .78rem; color: var(--ink2); box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.bf-learned span b { margin-right: .3rem; color: #c4704a; font-weight: 800; }
.bf-lkr { grid-template-columns: 2.6rem minmax(0, 1fr); }
.bf-gal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lk-seg .chip { min-width: 0; white-space: nowrap; }
.bf-ai, .bf-lk { min-width: 0; max-width: 100%; box-sizing: border-box; }
.bfbox form, .ld-bbody form { grid-template-columns: minmax(0, 1fr); }
/* 대화: 말로 하기 단추 */
.ch-in .ch-mic { background: #fff; color: #c4704a; box-shadow: inset 0 0 0 1px var(--line); }
.ch-in .ch-mic.on { background: #f3a6b5; color: #fff; box-shadow: 0 0 0 0 rgba(243,166,181,.6); animation: chMic 1.2s ease-out infinite; }
@keyframes chMic { to { box-shadow: 0 0 0 12px rgba(243,166,181,0); } }
@media (prefers-reduced-motion: reduce) { .ch-in .ch-mic.on { animation: none; } }

/* 사진 그대로 아이: 오려 낸 모습은 둥근 빛 위에 발이 닿게(잘리지 않게 contain) */
.pk-me.pk-cut > img { border-radius: 24px; padding: .5rem; box-sizing: border-box; object-position: 50% 100%; background: radial-gradient(ellipse 60% 14% at 50% 92%, rgba(120,80,40,.18), transparent 70%), radial-gradient(circle at 50% 40%, #fff 0, #fdf1e2 60%, #f3dfc6 100%); filter: drop-shadow(0 0 6px rgba(255,244,220,.9)); }
.pk-mode { margin-top: .5rem; }
.bf-cut { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; align-items: center; margin-top: .7rem; padding: .7rem; border-radius: 22px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); }
.bf-cut[hidden] { display: none; }
.bf-cut figure { margin: 0; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: end center; background: radial-gradient(ellipse 60% 14% at 50% 92%, rgba(120,80,40,.18), transparent 70%), radial-gradient(circle at 50% 40%, #fff 0, #fdf1e2 60%, #f3dfc6 100%); overflow: hidden; }
.bf-cut figure img { max-width: 92%; max-height: 92%; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,244,220,.9)); }
.bf-cut b { display: block; font-size: .92rem; }
.bf-cut small { display: block; color: var(--ink2); font-size: .78rem; margin: .15rem 0 .45rem; line-height: 1.4; }
.bf-cut .seg button { min-height: 2.3rem; font-size: .82rem; }

/* 마음 놓기: 꽃 버튼에 꽃 색 점, 선물 탭 */
.off-fl .fl { position: relative; width: 1.9rem; height: 1.6rem; }
.off-fl .fl i { position: absolute; width: .95rem; height: .95rem; border-radius: 50%; background: var(--fc); box-shadow: inset 0 0 0 1.5px rgba(120,90,60,.18); }
.off-fl .fl i:nth-child(1) { left: .1rem; top: .45rem; } .off-fl .fl i:nth-child(2) { left: .5rem; top: 0; } .off-fl .fl i:nth-child(3) { left: .9rem; top: .45rem; }
.seg[data-tab] button { min-width: 0; }

/* 마을 지도: 오른쪽 둥근 작은 지도 + 큰 지도 시트 */
#wmap { position: fixed; z-index: 29; top: calc(env(safe-area-inset-top) + 66px); right: 12px; width: 64px; height: 64px; padding: 3px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: opacity .5s, transform .2s; }
#wmap:active { transform: scale(.94); }
#wmap .wm-svg { width: 100%; height: 100%; border-radius: 50%; display: block; }
#wmap span { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--ink2); font-size: .7rem; font-weight: 800; white-space: nowrap; line-height: 1.4; box-shadow: 0 2px 6px -2px rgba(80,50,20,.35); }
#zones ~ #wmap { top: calc(env(safe-area-inset-top) + 122px); }
html.is-quiet #wmap { opacity: 0; pointer-events: none; }
.wm-svg .wm-river { fill: none; stroke: #a9d3e6; stroke-width: 9; stroke-linecap: round; opacity: .85; }
.wm-svg .wm-bow { fill: none; stroke-width: 5; stroke-linecap: round; opacity: .55; }
.wm-svg .wm-road path { fill: none; stroke: #fffaf0; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 10; }
.wm-svg .wm-dot { stroke: #fff; stroke-width: 3; }
.wm-svg .wm-ring { fill: none; stroke: #f0905a; stroke-width: 3; stroke-dasharray: 5 5; animation: wmspin 9s linear infinite; }
.wm-svg .wm-t { text-anchor: middle; font-size: 13px; font-weight: 800; fill: #4a3a30; paint-order: stroke; stroke: #fffaf0; stroke-width: 4px; }
.wm-svg .wm-here { text-anchor: middle; font-size: 11px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: #f0905a; stroke-width: 6px; stroke-linejoin: round; }
.wm-big .wm-p { cursor: pointer; }
.wm-big .wm-p:hover .wm-dot, .wm-big .wm-p:focus .wm-dot { stroke: #f0905a; }
.wm-big { max-width: 340px; margin: 0 auto .6rem; }
.wm-big .wm-svg { width: 100%; height: auto; display: block; }
.wm-list { display: grid; gap: .35rem; }
.wm-list .item { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; align-items: center; gap: .7rem; min-height: 3rem; padding: .45rem .75rem; border-radius: 14px; background: rgba(255,255,255,.6); color: inherit; text-decoration: none; }
.wm-list .item i { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff; }
.wm-list .item span { display: grid; } .wm-list .item small { color: var(--ink2); }
.wm-list .item.on { background: #fff3e6; box-shadow: inset 0 0 0 2px #f6c49e; }
@keyframes wmspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wm-svg .wm-ring { animation: none; } }
/* 함께 사는 아이: 사진으로 만든 3D 미리보기 */
.bf-made{display:flex;gap:.7rem;align-items:center;margin:0 0 .7rem;padding:.5rem .7rem;border-radius:16px;background:linear-gradient(120deg,#fff6ea,#eef7f1)}
.bf-made img{flex:none;width:96px;height:96px;object-fit:contain}
.bf-made p{margin:0;display:flex;flex-direction:column;gap:.2rem;color:#4a3f52;font-size:.9rem}
.bf-made small{color:#7a6f80;font-size:.78rem;line-height:1.4}
.bf-toy{margin:.4rem 0 .8rem;padding:.6rem .7rem;border-radius:16px;background:#fff8f0}
.bf-toy .lbl small{display:block;font-weight:400;color:#7a6d80;font-size:.8rem}
.bf-toyrow{display:flex;gap:.6rem;align-items:flex-start;margin-top:.4rem}
.bf-toyrow>div{flex:1;display:flex;flex-direction:column;gap:.4rem;min-width:0}
.bf-tph{flex:none;width:72px;height:72px;border-radius:14px;border:2px dashed #e3cdb8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.72rem;color:#8a7468;cursor:pointer;overflow:hidden;background:#fff}
.bf-tph img{width:100%;height:100%;object-fit:cover}
.bf-tk{margin-top:.5rem}
.bf-tk .row{display:flex;flex-wrap:wrap;gap:.3rem}
.bf-tcol{display:flex;flex-wrap:wrap;gap:.4rem .6rem;align-items:center;margin-top:.5rem;font-size:.82rem;color:#5d5163}
.bf-tcol label{display:flex;align-items:center;gap:.25rem}
.bf-tcol input[type=color]{width:34px;height:28px;border:0;padding:0;background:none}
.bf-tmsg{display:block;margin-top:.35rem;color:#8a6f5a}
.lw-topic{margin:.1rem 0 .6rem;color:#6d5a4c;font-size:.9rem;display:flex;flex-wrap:wrap;gap:.3rem;align-items:center}
.lw-topic small{color:#9a8a7e}
.lw-paper{position:relative;padding:.7rem .8rem;border-radius:16px;background:#fffaf1;border:1px solid #f0e2cc;margin-bottom:.6rem}
.lw-paper small{color:#8a7468}
.lw-paper textarea{width:100%;border:0;background:repeating-linear-gradient(#fffaf1 0 1.75rem,#efe2cf 1.75rem calc(1.75rem + 1px));line-height:1.75rem;font:inherit;font-size:1rem;color:#4a3f52;resize:vertical;outline:0;padding:0}
.lw-read{display:flex;align-items:center;gap:.6rem;margin-top:.5rem;padding:.5rem .6rem;border-radius:12px;background:#fff;color:#5d5163;font-size:.9rem}
.lw-read.wait span{animation:lwBlink 1s ease-in-out infinite}
.lw-read.done .lw-stamp{animation:lwStamp .55s cubic-bezier(.3,1.6,.5,1) both;opacity:.85;transform:rotate(-12deg)}
.lw-read span{display:flex;flex-direction:column;gap:.15rem}
.lw-read small{color:#8a7468}
@keyframes lwStamp{0%{transform:scale(2.2) rotate(-12deg);opacity:0}100%{transform:scale(1) rotate(-12deg);opacity:.85}}
@keyframes lwBlink{50%{opacity:.45}}
.lw-h{margin:1rem 0 .4rem;font-size:.95rem;color:#5d5163}
.lw-item{border-bottom:1px solid #f1e6d8;padding:.45rem 0}
.lw-item summary{display:flex;align-items:center;gap:.5rem;cursor:pointer;list-style:none;font-size:.88rem;color:#4a3f52}
.lw-item summary::-webkit-details-marker{display:none}
.lw-d{flex:none;color:#9a8a7e;font-size:.8rem}
.lw-ex{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lw-ok{flex:none;display:flex;align-items:center;gap:.15rem;color:#8a7468}
.lw-ok .lw-stamp{transform:rotate(-12deg);opacity:.85}
.lw-item p{margin:.4rem 0 0;font-size:.9rem;color:#5d5163;line-height:1.6}
.lw-rep{display:flex;align-items:center;gap:.3rem;color:#7a6658!important}
.lw-rep small{color:#a8998d;margin-left:auto}
@media (prefers-reduced-motion:reduce){.lw-read.done .lw-stamp,.lw-read.wait span{animation:none}}
.sh-fam{display:grid;gap:.45rem;padding:.5rem .55rem;border-radius:14px;background:#fff8ef;max-height:34vh;overflow:auto}
.sh-l{color:#8a7468;font-size:.8rem;margin:0;align-self:center;flex:none}
.sh-m{display:grid;gap:.3rem;padding-bottom:.4rem;border-bottom:1px dashed #eadbc6}
.sh-m:last-of-type{border-bottom:0}

.sh-famlist{display:grid;gap:.45rem}
.sh-th i{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:.3rem;vertical-align:-2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
/* 캐릭터 만들기: 자동/직접 고르기 + 얼굴·귀털·몸 탭 */
.cm-mode .chip { flex: 1; }
.cm-note { margin: .1rem 0 0; font-size: .86rem; line-height: 1.55; color: var(--ink2); }
.cm-note b { color: var(--ink); }
.cm-tabs { display: flex; gap: .35rem; }
.cm-tabs button { flex: 1; min-height: 2.4rem; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: .86rem; font-weight: 800; color: var(--ink2); box-shadow: inset 0 -2px 0 var(--line); }
.cm-tabs button.on { color: var(--ink); box-shadow: inset 0 -3px 0 #e9a46b; }
.cm-rows { display: grid; gap: .65rem; }
.cm-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.cm-row > span { padding-top: .55rem; font-size: .8rem; font-weight: 800; color: var(--ink2); }
.cm-opts { display: flex; flex-wrap: wrap; gap: .35rem; }
.cm-opts .chip { min-height: 2.35rem; padding: .3rem .7rem; font-size: .84rem; }
.cm-sw { display: inline-block; width: .9rem; height: .9rem; margin-right: .3rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); vertical-align: -.12rem; }
.cm-reset { justify-self: start; }
/* 직접 만들기: 탭이 많아 가로로 밀어 보기, 만드는 중인 모습은 위에 붙어 따라옴 */
.cm-tabs { flex-wrap: wrap; row-gap: .3rem; height: auto; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tabs button { flex: 1 0 auto; padding: 0 .7rem; white-space: nowrap; }
.cm-pvbox { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; margin: .1rem 0 .4rem; padding: .35rem .6rem; border-radius: 14px; background: rgba(255,250,243,.94); box-shadow: 0 2px 10px rgba(60,40,30,.1); }
.cm-pvbox img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.cm-pvbox small { font-size: .78rem; color: var(--ink2); }
.cm-cols { align-items: center; }
.cm-sw2 { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cm-sw2.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.cm-pick { position: relative; width: 2rem; height: 2rem; border-radius: 50%; overflow: hidden; background: conic-gradient(#e86b6b, #e9c46a, #7aa04f, #5b8fd0, #a07ad0, #e86b6b); }
.cm-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cm-sl { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 3.2rem; gap: .5rem; align-items: center; min-height: 2.6rem; }
.cm-sl span { font-size: .8rem; font-weight: 800; color: var(--ink2); }
.cm-sl input { width: 100%; height: 2rem; accent-color: #e9a46b; touch-action: pan-y; }
.cm-sl b { font-size: .8rem; text-align: right; color: var(--ink); }
.cm-hint { margin: 0; font-size: .8rem; color: var(--ink2); }
.bf-tmake { margin-top: .4rem; width: 100%; justify-content: center; }
.bf-tk .cm-sl { margin: .3rem 0; }
/* 아이폰 키보드가 올라오면 그만큼 창을 올림(--kb는 ui.js가 넣음) */
#chat, #sheetWrap, #sns, #snsw { bottom: var(--kb, 0px); transition-property: opacity, bottom; }
@media (max-width: 899px) { #sheetWrap .sheet { max-height: calc(84dvh - var(--kb, 0px)); } }
.ch-box { height: min(calc(92dvh - var(--kb, 0px)), 820px); }

/* 처음 화면: 선택 항목은 접어 두기 */
.bf-fold { margin: 1rem 0 .4rem; border-radius: 16px; background: rgba(255,250,243,.7); box-shadow: inset 0 0 0 1px rgba(201,143,122,.25); }
.bf-fold > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; cursor: pointer; }
.bf-fold > summary::-webkit-details-marker { display: none; }
.bf-fold > summary span { flex: 1; display: grid; } .bf-fold > summary small { color: var(--mut, #8a7a70); font-weight: 500; }
.bf-fold > summary svg:last-child { transition: transform .2s; } .bf-fold[open] > summary svg:last-child { transform: rotate(180deg); }
.bf-fold[open] { padding-bottom: .8rem; } .bf-fold > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
/* 화면을 끌어 둘러볼 때 메뉴 글자가 파랗게 선택되지 않게(입력 칸만 선택 허용) */
html, body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }

/* 선물 주기 */
.gift-h { margin: .9rem 0 .45rem; font-size: .9rem; }
.gift-ws { display: grid; gap: .45rem; }
.gift-w { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; border-radius: 14px; background: rgba(255,250,243,.92); box-shadow: inset 0 0 0 1px rgba(160,130,100,.18); }
.gift-w b { display: flex; flex-direction: column; font-size: .9rem; }
.gift-w b small { font-weight: 500; opacity: .65; font-size: .74rem; }
.gift-w span { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.gift-w .sw { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset -3px -4px 0 rgba(0,0,0,.08), 0 0 0 2px #fffaf3; }
.gift-w .sw.on { box-shadow: inset -3px -4px 0 rgba(0,0,0,.08), 0 0 0 2px #fffaf3, 0 0 0 4px #e39b7b; }
/* 복구 코드 */
.vc { display: grid; gap: .45rem; }
.vc-h { display: flex; align-items: center; gap: .4rem; margin: 0; }
.vc-h svg { width: 18px; height: 18px; }
.vc-code { font: 700 1.25rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-align: center; padding: .7rem .5rem; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1.5px dashed #d9b08c; user-select: all; word-break: break-all; }
.vc-t { margin: 0; font-size: .86rem; line-height: 1.55; }
.vc-m { min-height: 1em; }
.vc-in { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
/* hidden 속성은 늘 숨김(칸별 display가 덮어쓰지 않게) */
[hidden] { display: none !important; }
.cm-stance { margin-bottom: 6px; }
.cm-stance .chip { flex: 1; }

/* 아래 메뉴 글자는 한 줄로(예: "나비 날리기"가 두 줄로 깨지지 않게) */
.dbtn { white-space: nowrap; }

/* ---- 전체 메뉴(무리별 그림 단추) ---- */
.hub-h { margin: 1rem 0 .45rem !important; font-size: .82rem !important; color: var(--ink3) !important; letter-spacing: .02em; }
.hub-h:first-child { margin-top: .2rem !important; }
.hub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.hub-b { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 4.7rem; padding: .55rem .2rem; border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(120,90,60,.08); font-size: .76rem; font-weight: 700; color: var(--ink2); line-height: 1.2; text-align: center; word-break: keep-all; }
.hub-b svg.lucide { width: 1.5rem; height: 1.5rem; color: var(--coral); }
.hub-b:active { transform: scale(.96); }
.hub-b:hover { background: #fff; }
.hub-b em { position: absolute; top: 5px; right: 6px; font-style: normal; font-size: .6rem; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 1px 5px; }
.dbtn.hub { display: flex; gap: .2rem; } /* 전체 메뉴 격자(.hub)와 클래스 이름이 겹쳐 격자로 배치되던 것 막음 */
.dbtn.hub svg.lucide { color: var(--coral); }

/* ---- 아이 목소리·아이의 하루·고마워 100 ---- */
.vc-row, .rt-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; margin-bottom: .45rem; border-radius: 16px; background: rgba(255,255,255,.75); }
.vc-row > div { flex: 1; min-width: 0; }
.vc-row b, .rt-row b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-row small { color: var(--ink3); font-size: .74rem; }
.vc-row .x, .rt-row .x { margin: 0; width: 2.4rem; height: 2.4rem; }
.vc-play { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); }
.vc-empty { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; margin-bottom: .6rem; border-radius: 16px; color: var(--ink3); background: rgba(255,255,255,.5); font-size: .88rem; }
.vc-tip { margin: .1rem 0 .7rem; font-size: .76rem; }
.vc-pick { margin-top: .8rem; padding: .8rem; border-radius: 18px; background: rgba(255,255,255,.8); }
.vc-pick .vc-h { display: block; margin-bottom: .5rem; font-size: .88rem; }
.vc-pick video, .vc-pick audio { display: block; width: 100%; max-height: 32dvh; border-radius: 12px; background: #000; }
.vc-pick audio { background: none; }
.rt-row svg.lucide { color: var(--coral); flex: none; }
.rt-row b { flex: 1; }
.rt-row .inp { width: 7.6rem; flex: none; padding: .45rem .5rem; }
.rt-kinds { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.th-top { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.th-top b { font-size: 2rem; font-weight: 800; color: var(--coral); }
.th-top span { color: var(--ink3); font-weight: 700; }
.th-bar { flex-basis: 100%; height: 8px; border-radius: 99px; background: rgba(120,90,60,.12); overflow: hidden; }
.th-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .5s; }
.th-in { display: flex; gap: .4rem; }
.th-in .inp { flex: 1; min-width: 0; }
.th-in .btn { flex: none; }
.th-list { margin: .8rem 0 0; padding-left: 2.1rem; }
.th-list li { padding: .35rem 0; border-bottom: 1px dashed rgba(120,90,60,.15); font-size: .9rem; }
.th-list li::marker { color: var(--coral); font-weight: 800; font-size: .8rem; }
.th-list li small { float: right; color: var(--ink3); font-size: .72rem; margin-left: .4rem; }

/* ---- 휴대폰: 시트는 반 화면으로 열어 위쪽 장면이 보이게, 손잡이를 위로 끌거나 안을 내리면 크게 ---- */
@media (max-width: 899px) and (orientation: portrait) {
  #sheetWrap { background: rgba(46,32,24,.1); }
  #sheetWrap .sheet { max-height: calc(60dvh - var(--kb, 0px)); transition: transform .3s cubic-bezier(.2,.9,.3,1), max-height .3s ease; }
  #sheetWrap .sheet.full, #sheetWrap .sheet:has(input:focus, textarea:focus) { max-height: calc(90dvh - var(--kb, 0px)); }
  .grab { cursor: grab; touch-action: none; }
  .hscroll[data-picker] { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .hscroll[data-picker] .pick { width: 4rem; scroll-snap-align: start; }
  .hscroll[data-picker] .pick img { width: 2.9rem; height: 2.9rem; }
}
/* 시트가 열리면 조이스틱·몸짓·지도·구역 단추는 잠시 숨김(겹쳐 가리지 않게) */
body:has(#sheetWrap.on) #joy, body:has(#sheetWrap.on) #emo, body:has(#sheetWrap.on) #wmap, body:has(#sheetWrap.on) #zones, body:has(#sheetWrap.on) #nowplay, body:has(#sheetWrap.on) #fab { opacity: 0; pointer-events: none; transition: opacity .2s; }
/* 좁은 화면: 긴 하단 단추 이름(예: 나비 날리기)은 낱말 단위로 두 줄, 칸 밖으로 넘치지 않게 */
@media (max-width: 520px) { #dock .dbtn, .pk-dock .dbtn { white-space: normal; word-break: keep-all; line-height: 1.12; text-align: center; overflow: hidden; } }

/* 추모 편지지 톤(11/3): 두 갈래 버튼 글이 한 줄에 들어가게 */
.seg.bf-gone button { white-space: nowrap; font-size: .9rem; letter-spacing: -.03em; }
/* 시점 처음으로 단추(오른쪽 아래, 왼손잡이면 왼쪽) */
#camHome { position: fixed; z-index: 29; right: max(16px, env(safe-area-inset-right)); bottom: 88px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #8a5a48; background: rgba(255,250,243,.86); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8), 0 6px 16px -6px rgba(60,40,30,.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; opacity: .85; transition: opacity .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
#camHome:hover { opacity: 1; }
#camHome:active { transform: scale(.92); }
#camHome:focus-visible { outline: 2px solid #c98f7a; outline-offset: 2px; }
html.lefty #camHome { right: auto; left: max(16px, env(safe-area-inset-left)); }
#camHome.off { opacity: 0; pointer-events: none; }

/* ---------- 오늘의 기억·사진 천천히 보기 ---------- */
.td-se { margin: 0 0 .7rem; padding: .6rem .8rem; border-radius: 12px; background: #fbf0dd; color: var(--ink2); font-size: .9rem; }
.td-se b { display: block; color: var(--ink); }
.td-img { display: block; width: 100%; max-height: 42vh; object-fit: cover; border-radius: 14px; background: #f6e7cf; }
.td-h { margin: .8rem 0 .2rem; font-family: 'Nanum Myeongjo', serif; font-size: 1.25rem; }
.td-m { margin: .15rem 0; }
.td-b { margin-top: .7rem; }
#slides { position: fixed; inset: 0; z-index: 95; background: #17110d; cursor: pointer; }
#slides i { position: absolute; inset: 0; background: center / contain no-repeat; opacity: 0; transition: opacity 1.6s ease; }
#slides i.on { opacity: 1; }
#slides p { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 54px); margin: 0; padding: 0 20px; text-align: center; color: #fff6e8; font: 700 1.15rem 'Nanum Myeongjo', serif; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
#slides small { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 24px); text-align: center; color: rgba(255,246,232,.6); }

/* 우리 아이들 */
.pk-list { display: grid; gap: .5rem; margin-top: .7rem; }
.pk-row { display: grid; grid-template-columns: 3.2rem 1fr; gap: .25rem .7rem; align-items: center; padding: .6rem .7rem; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); }
.pk-row img { width: 3.2rem; height: 3.2rem; border-radius: 40%; object-fit: cover; background: #fff; }
.pk-t { min-width: 0; } .pk-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pk-t small { color: var(--ink3); font-size: .76rem; }
.pk-a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem; }
.bf-err { margin: .5rem 0 0; color: #b5483f; font-size: .86rem; }
