/* 3D 방이 화면 전체를 채운다. 물건 입구는 작은 유리 핀, 친구는 직접 누른다(이름표 없음). */
.maru-scene{position:absolute;inset:0;width:100%;height:100%;background:#17120f;overflow:hidden;--scene-lift:.15;--scene-span-portrait:4.05}
/* 저녁 방: 가장자리를 살짝 어둡게 해 창과 친구들로 시선을 모은다(정지 효과). */
.maru-scene::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(120% 95% at 50% 42%,transparent 58%,rgba(8,9,12,.30) 100%)}
[data-layout=landscape] .maru-scene{--scene-lift:.03;--scene-shift:.15;--scene-span-landscape:8.4}
@media(max-height:500px){[data-layout=landscape] .maru-scene{--scene-shift:.2;--scene-span-landscape:9}}
.maru-scene::after{content:'';position:absolute;inset:auto 0 0;height:46%;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(8,9,12,0) 0%,rgba(8,9,12,.18) 45%,rgba(8,9,12,.52) 100%)}
.living-canvas,.living-targets{position:absolute;inset:0}
.living-canvas canvas{display:block;width:100%;height:100%}
.living-targets{z-index:2;pointer-events:none}
.living-target{position:absolute;display:inline-flex;align-items:center;gap:7px;transform:translate(-50%,-50%);pointer-events:auto;min-height:36px;padding:0 13px 0 5px;border-radius:999px;background:var(--w-glass-strong);color:#FAFAF9;box-shadow:var(--w-glass-edge);-webkit-backdrop-filter:var(--w-blur);backdrop-filter:var(--w-blur);font:var(--wt-strong) 13px/1 var(--w-sans);letter-spacing:-.01em;white-space:nowrap;transition:transform .14s var(--w-ease),background .18s var(--w-ease)}
.living-target .pin-icon{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;border-radius:50%;background:#FAFAF9;color:#08090C}
.living-target .pin-icon svg{width:15px;height:15px}
.living-target:active{transform:translate(-50%,-50%) scale(.95)}
/* 보이는 캡슐은 36px, 누르는 자리는 44px 이상 */
.living-target:not(.living-friend)::before{content:'';position:absolute;inset:-5px -3px}
.living-target:hover{background:rgba(8,9,12,.9)}
/* 액자·사진·옷장은 방의 물건을 직접 누르면 된다. 핀은 키보드로 갔을 때만 보인다(탭 막대·「나」에도 같은 입구). */
.living-target.is-icon:not(:focus-visible){opacity:0;pointer-events:none}
/* 아이콘만 두는 핀: 액자·사진·옷장 */
.living-target.is-icon{width:40px;height:40px;min-height:40px;padding:0;justify-content:center}
.living-target.is-icon .pin-icon{width:30px;height:30px}
.living-target.is-icon .pin-label{position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);padding:6px 10px;border-radius:999px;background:var(--w-ink);color:var(--w-on-ink);font-size:13px;opacity:0;pointer-events:none;transition:opacity .15s var(--w-ease)}
.living-target.is-icon:hover .pin-label,.living-target.is-icon:focus-visible .pin-label{opacity:1}
/* 친구는 몸을 직접 누른다. 보이는 이름표 없이 넉넉한 손가락 자리만 둔다. */
.living-friend{width:72px;height:96px;min-height:0;padding:0;justify-content:center;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:transparent}
.living-friend:hover{background:transparent}
.living-friend .pin-label{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);padding:6px 11px;border-radius:999px;background:var(--w-glass-strong);color:#FAFAF9;box-shadow:var(--w-glass-edge);font-size:13px;opacity:0;transition:opacity .15s var(--w-ease)}
.living-friend:focus-visible{outline:none}
.living-friend:focus-visible .pin-label,.living-friend:hover .pin-label{opacity:1}
.living-friend .pin-icon{display:none}
.living-target:focus-visible{outline:2px solid #FAFAF9;outline-offset:3px}
.living-status{position:absolute;z-index:3;left:50%;top:38%;transform:translate(-50%,-50%);width:min(320px,calc(100% - 48px));padding:18px 20px;border-radius:var(--w-r-lg);text-align:center;color:#FAFAF9;background:var(--w-glass-strong);box-shadow:var(--w-glass-edge);-webkit-backdrop-filter:var(--w-blur);backdrop-filter:var(--w-blur);font-size:15px;line-height:1.55}
.living-status button{margin-top:12px;min-height:44px;padding:0 20px;border-radius:999px;background:#FAFAF9;color:#08090C;font-weight:var(--wt-strong)}
.living-bubble{position:absolute;z-index:4;left:50%;top:27%;transform:translateX(-50%);width:max-content;max-width:min(330px,82%);padding:12px 16px;border-radius:18px;background:#FAFAF9;color:#08090C;box-shadow:0 14px 34px rgba(0,0,0,.24);font-size:15px;line-height:1.5;text-align:center;pointer-events:none;text-wrap:pretty}
.living-bubble::after{content:'';position:absolute;left:50%;bottom:-6px;width:14px;height:14px;background:inherit;border-radius:3px;transform:translateX(-50%) rotate(45deg)}
.living-bubble.is-placed{transform:none}
.living-bubble.is-placed::after{left:var(--tail,50%)}
[hidden]{display:none!important}
.home-entry-status{position:absolute;inset:0;z-index:8;display:grid;place-content:center;justify-items:center;gap:12px;background:radial-gradient(90% 60% at 50% 30%,#17181d,#0c0d10);color:var(--w-ink-2);text-align:center;padding:32px}
.home-entry-status small{display:flex;align-items:center;gap:10px;font-family:var(--w-mono);font-size:var(--t-mono);letter-spacing:var(--track-mono);color:var(--w-ink-3)}
.home-entry-status small::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--w-led-check);box-shadow:0 0 10px rgba(245,196,69,.55)}
.home-entry-status p{font-size:16px;font-weight:var(--wt-label)}
.world-shell[data-entry]:not([data-entry=ready]) .world-topbar,.world-shell[data-entry]:not([data-entry=ready]) .place-heading,.world-shell[data-entry]:not([data-entry=ready]) .lobby-action,.world-shell[data-entry]:not([data-entry=ready]) .world-nav{visibility:hidden}
/* 3D 방에서는 튜터 카드의 흰 알약이 주 행동이다(월드 시그널 「주 행동은 흰 알약 하나」). 그래서 다음 학습 흰 알약은 어디서나 숨기고,
 * 진도 글(N / 22 학습 완료)·바로가기(카페·생활 팩·복습 개수·이야기)는 넓은 화면(PC 가로 틀)에서만 보인다. 10-19 전에는 폭 조건 없이 모두 숨었다. */
.life-next-button{display:none!important}
#life-progress-caption,.life-home-shortcuts{display:none}
@media(min-width:600px) and (min-height:600px) and (pointer:fine){
 [data-layout=landscape] #life-progress-caption{display:block}
 [data-layout=landscape] .life-home-shortcuts{display:grid}
}
.memory-detail{text-align:center;padding:8px 4px 12px}
.memory-detail small{font-family:var(--w-mono);font-size:var(--t-mono);letter-spacing:var(--track-mono);color:var(--w-ink-3)}
.memory-detail h3{font-size:var(--t-title-l);font-weight:var(--wt-display);letter-spacing:var(--track-title);line-height:1.4;margin:10px 0 8px;text-wrap:balance}
.memory-detail p{font-size:15px;line-height:1.7;color:var(--w-ink-2)}
.memory-detail img{display:block;width:100%;max-height:340px;object-fit:contain;margin:18px auto 10px;padding:10px 10px 34px;border-radius:6px;background:#FAFAF9;transform:rotate(-1.5deg);box-shadow:0 18px 40px rgba(0,0,0,.4)}
.memory-detail .memory-photo-label{font-size:13px;color:var(--w-ink-3)}
.memory-detail .panel-actions{margin-top:24px}
@media(min-width:600px) and (min-height:600px){
 .living-bubble{max-width:420px}
}
@media(max-height:500px){[data-layout=landscape] .living-target[data-scene-action=book]:not(:focus-visible){opacity:0;pointer-events:none}}
/* 짧은 세로 화면: 책 핀이 오늘 카드와 겹친다. 같은 곳으로 가는 흰 알약·배우기 탭이 있으니 핀은 키보드 초점에만. */
@media(max-height:720px){:root:not([data-layout=landscape]) .living-target[data-scene-action=book]:not(:focus-visible){opacity:0;pointer-events:none}:root:not([data-layout=landscape]) .maru-scene{--scene-lift:.19}}
@media(max-height:550px) and (orientation:landscape){
 .living-target{min-height:34px;font-size:13px}.living-target .pin-icon{width:24px;height:24px}
 .living-bubble{top:20%;font-size:13.5px;padding:9px 13px}
}
