@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--background:#171c28;--surface:rgba(29,32,43,.88);--surface-solid:#242733;--foreground:#f7efdf;--muted:#bab4b3;--primary:#e9c294;--primary-foreground:#292326;--border:rgba(239,221,196,.16);--success:#acd8b4;--destructive:#efa7a3;--radius:20px;--safe-bottom:env(safe-area-inset-bottom,0px);font-family:'Noto Sans KR',sans-serif;color:var(--foreground);background:var(--background);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,input{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;cursor:pointer;color:var(--foreground);background:transparent;border:1px solid var(--border);border-radius:12px;padding:10px 14px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}button[aria-pressed=true]{border-color:var(--primary);background:rgba(233,194,148,.12);color:var(--primary)}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}h2,h3{margin:0;font-weight:600;letter-spacing:-.7px}h2{font-size:24px}h3{font-size:13px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--primary)}.glass{background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 32px #0003;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.app-shell{position:fixed;left:0;top:var(--vv-top,0px);width:100%;height:var(--vv-height,100dvh);overflow:hidden}#room,#scene,#labels,.scene-shade{position:absolute;inset:0}#room{background:radial-gradient(ellipse at 50% 47%,#42404a 0%,#292d3b 44%,#171c28 80%)}#scene{touch-action:none}#scene canvas{display:block;width:100%;height:100%}#labels{pointer-events:none;overflow:hidden}.scene-shade{pointer-events:none;background:linear-gradient(#10172250,transparent 23%,transparent 70%,#12182455)}.topbar{position:absolute;top:calc(env(safe-area-inset-top,0px) + 18px);left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:14px;pointer-events:none}.topbar>*{pointer-events:auto}.brand-group{display:flex;flex-direction:column;gap:6px}.brand{font-size:19px;letter-spacing:-.7px;font-weight:800;color:var(--primary);text-shadow:0 2px 12px #0008}.brand-star{margin-left:6px;font-size:18px}.live-status{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);text-shadow:0 2px 5px #000}.live-status i,.live-dot,.place-chip i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--success);flex-shrink:0}.icon-button{width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;font-size:24px}.room-context{position:absolute;top:calc(env(safe-area-inset-top,0px) + 95px);left:20px;max-width:calc(100% - 75px);pointer-events:none}.room-context button{pointer-events:auto}.place-chip{border-radius:24px;min-height:40px;font-size:12px;font-weight:600;padding:8px 14px;gap:9px}.place-chip>span:last-child{color:var(--primary);margin-left:3px}.room-context p{font-size:10px;margin:7px 0 0 4px;color:var(--muted);text-shadow:0 2px 8px #000}.scene-tools{position:absolute;right:16px;top:calc(50% - 75px);display:flex;flex-direction:column;gap:8px}.scene-tools button{width:40px;min-width:40px;height:40px;min-height:40px;font-size:21px}.touch-hint{position:absolute;bottom:var(--dock-height,235px);left:0;right:0;text-align:center;font-size:10px;color:#d4c5b5;text-shadow:0 2px 5px #000;pointer-events:none;transition:none}.floating-dock{position:absolute;bottom:calc(12px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:min(100% - 24px,480px);display:flex;flex-direction:column;gap:10px;pointer-events:none}.floating-dock>*{pointer-events:auto}.interaction-row{display:flex;align-items:center;gap:9px;justify-content:center}.reactions{display:flex;align-items:center;border-radius:24px;padding:4px;gap:2px}.reactions button{border:0;width:54px;min-width:44px;min-height:46px;padding:5px 7px;gap:3px;font-size:23px;flex-direction:column;border-radius:18px}.reactions button span{font-size:9px;line-height:1.2;color:var(--muted)}.seat-action{height:64px;min-width:64px;flex-direction:column;gap:2px;border-radius:22px;padding:8px}.seat-action span{font-size:10px}.stand-action{height:52px;border-radius:22px;font-size:11px;color:var(--primary)}.stand-action:disabled{display:none}.chat-panel{border-radius:var(--radius);overflow:hidden}.chat-toggle{border:0;border-radius:0;min-height:43px;width:100%;justify-content:space-between;padding:10px 16px;font-size:11px;color:var(--muted)}.chat-toggle>span:first-child{display:flex;align-items:center;gap:8px}#chat-count{color:var(--primary);font-size:10px}.chat-chevron{font-size:20px;line-height:1;transition:transform .2s}.chat-panel[data-expanded=true] .chat-chevron{transform:rotate(180deg)}#unread{font-size:9px;color:var(--primary)}#feed{height:57px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 14px;touch-action:pan-y;transition:none}#feed:empty{height:0}.chat-panel[data-expanded=true] #feed{height:min(235px,32dvh)}.message{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:8px;margin-bottom:7px;overflow-wrap:anywhere}.message .who{font-size:11px;font-weight:600;color:var(--color,var(--primary));border:0;min-height:30px;max-width:100px;padding:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:5px;justify-content:flex-start}.message p{font-size:12px;color:var(--foreground);line-height:1.6;min-width:0}.message time{display:none}.chat-panel[data-expanded=true] .message{padding:3px 0}.chat-panel[data-expanded=true] .message .who{min-height:44px}.message.mine .who{color:#c9b5f5}.system{font-size:11px;color:var(--muted);line-height:1.7;padding:7px 0 14px}.chat-panel #empty-chat{padding:0 16px 10px;font-size:11px;color:var(--muted)}.chat-panel:has(#feed:not(:empty)) #empty-chat{display:none}#chat-form{display:flex;gap:8px;padding:5px 8px 8px}input{width:100%;min-width:0;min-height:48px;border:1px solid var(--border);background:#ffffff08;color:var(--foreground);border-radius:14px;padding:12px 14px;font-size:16px}input::placeholder{color:#b2acac}#chat-form input{border-color:transparent;background:#ffffff06;font-size:16px}#chat-form button{width:48px;height:48px;min-width:48px;padding:0;border:0;background:var(--primary);color:var(--primary-foreground);border-radius:14px}#toast{position:absolute;bottom:calc(var(--dock-height,235px) + 20px);left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;background:var(--primary);color:var(--primary-foreground);box-shadow:0 8px 30px #0004;padding:12px 18px;border-radius:16px;font-size:12px;display:none;pointer-events:none}.avatar-label{position:absolute;text-align:center;transform:translate(-50%,-100%);white-space:nowrap;font-size:10px;color:var(--foreground);text-shadow:0 2px 6px #000}.avatar-label b{display:inline-block;max-width:125px;overflow:hidden;text-overflow:ellipsis;background:#151b28bb;padding:4px 8px;border-radius:8px;font-weight:500}.bubble{color:#302a2c;background:#fff4df;border-radius:12px 12px 12px 2px;padding:9px 12px;max-width:180px;white-space:normal;text-shadow:none;margin-bottom:7px;font-size:12px;box-shadow:0 8px 20px #0003}.table-label{position:absolute;transform:translate(-50%,-50%);font-size:9px;color:var(--primary);background:#302b30c9;border:1px solid var(--border);padding:4px 8px;border-radius:20px;white-space:nowrap}
dialog{background:var(--surface-solid);color:var(--foreground);border:1px solid var(--border);box-shadow:0 25px 100px #0008;padding:0;max-width:calc(100% - 24px);max-height:calc(var(--vv-height,100dvh) - 24px);overscroll-behavior:contain}dialog::backdrop{background:#080f1b80;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}dialog[open]{animation:none}.sheet{width:min(480px,100%);margin:auto auto 0;border-radius:28px 28px 0 0;padding:10px 22px calc(20px + var(--safe-bottom));max-width:100%;top:var(--vv-top,0px);bottom:auto;max-height:calc(var(--vv-height,100dvh) - 30px)}.sheet[open]{position:fixed;top:auto;bottom:max(0px,calc(100dvh - var(--vv-height,100dvh) - var(--vv-top,0px)));display:flex;flex-direction:column}.sheet-handle{height:4px;min-height:4px;width:34px;background:#9993a566;border-radius:3px;margin:1px auto 15px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-heading h2{margin-top:6px}.sheet-heading .icon-button{border-color:var(--border);font-size:26px}.sheet>p{margin-top:10px;font-size:12px}.menu-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding-bottom:3px}.menu-scroll>section{margin-top:24px}#room-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}#room-nav button{font-size:12px;min-height:50px;background:#ffffff04}#room-nav button[aria-pressed=true]{background:#e9c29416}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-heading>span{font-size:10px;color:var(--success)}#seat-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}#seat-options button{min-height:46px;padding:10px 6px;font-size:11px;color:var(--success);background:#acd8b405}#seat-options button:disabled{color:var(--muted);background:#ffffff04}.event{border:1px solid var(--border);border-radius:16px;padding:12px 14px}.event .icon-button{height:44px}.event p{color:var(--foreground);font-size:12px;margin-top:4px}.menu-settings{display:flex;flex-direction:column;gap:8px}.menu-settings button{justify-content:space-between;min-height:50px;font-size:12px}.menu-settings button span{font-size:10px;color:var(--muted)}.menu-footer{padding:22px 0 4px;color:var(--muted);font-size:11px}.menu-footer p{font-size:10px;margin-top:10px}.entry-dialog{width:380px;border-radius:28px;padding:30px;margin:auto}.entry-brand{font-weight:800;font-size:13px;letter-spacing:.2px;color:var(--primary)}.door-icon{font-size:46px;margin:24px 0}.entry-dialog h2{font-size:30px;margin:10px 0 15px}.entry-dialog p{font-size:13px;margin-bottom:24px}.entry-dialog label{display:block;font-size:11px;color:var(--primary);margin-bottom:9px}.entry-dialog input{margin-bottom:12px}.primary{width:100%;background:var(--primary);color:var(--primary-foreground);border:0;min-height:50px;font-size:13px;font-weight:700}.entry-dialog small{display:block;font-size:9px;color:var(--muted);text-align:center;margin-top:15px;line-height:1.8}.entry-dialog #entry-error{margin:10px 0 0;color:var(--destructive);font-size:12px}.person-sheet{padding-bottom:calc(26px + var(--safe-bottom))}.person-actions{display:flex;flex-direction:column;gap:10px;margin:20px 0}.person-actions button{min-height:50px}.person-sheet small{font-size:10px;color:var(--muted);line-height:1.8}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.keyboard-open .interaction-row,.keyboard-open .touch-hint,.keyboard-open .scene-tools{display:none}.keyboard-open .floating-dock{bottom:8px}.keyboard-open .chat-panel[data-expanded=true] #feed{height:min(100px,20dvh)}@media(hover:hover){button:not(:disabled):hover{background-color:#ffffff0c;border-color:#e9c29466}#chat-form button:hover,.primary:hover{background:#f2d4af}}@media(min-width:700px){.topbar{top:28px;left:32px;right:32px}.brand{font-size:23px}.brand-group{gap:8px}.live-status{font-size:11px}.room-context{top:120px;left:32px}.scene-tools{right:32px}.floating-dock{bottom:22px;width:480px}.sheet{margin:auto;border-radius:26px;max-height:calc(var(--vv-height,100dvh) - 60px)}.sheet[open]{top:var(--vv-top,0px);bottom:0}.sheet-handle{display:none}.sheet{padding:24px}.sheet-heading h2{font-size:26px}.menu-scroll>section{margin-top:20px}.chat-panel[data-expanded=true] #feed{height:210px}}@media(max-width:360px){.topbar{left:14px;right:14px}.room-context{left:14px}.brand{font-size:17px}.reactions button{width:47px}.stand-action{padding:8px;font-size:10px}.floating-dock{width:calc(100% - 20px)}.seat-action{min-width:58px}.interaction-row{gap:6px}.entry-dialog{padding:24px}.sheet{padding-left:18px;padding-right:18px}}@media(max-height:500px){.room-context{top:80px}.room-context p,.touch-hint{display:none}.topbar{top:12px}.floating-dock{width:min(460px,100% - 24px)}.interaction-row{display:none}.chat-panel #feed{height:32px}.chat-toggle{min-height:36px}.sheet{max-height:calc(var(--vv-height,100dvh) - 16px)}.entry-dialog{padding:20px;overflow-y:auto}.door-icon{display:none}.entry-dialog h2{font-size:24px}.entry-dialog p{margin-bottom:14px}}@keyframes sheet-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:699px){.sheet{max-height:min(76dvh,calc(var(--vv-height,100dvh) - 24px))}}
:root{--ease-out:cubic-bezier(.23,1,.32,1);--ease-drawer:cubic-bezier(.32,.72,0,1);--duration-press:160ms;--duration-sheet:220ms}button{transition:transform var(--duration-press) var(--ease-out),background-color 120ms ease}button:not(:disabled):active{transform:scale(.97)}dialog{opacity:0;transform:translateY(8px);transition:opacity 160ms var(--ease-out),transform var(--duration-sheet) var(--ease-drawer),display var(--duration-sheet) allow-discrete,overlay var(--duration-sheet) allow-discrete}dialog[open]{opacity:1;transform:translateY(0)}.sheet{transform:translateY(24px)}dialog::backdrop{opacity:0;transition:opacity 160ms var(--ease-out),display var(--duration-sheet) allow-discrete,overlay var(--duration-sheet) allow-discrete}dialog[open]::backdrop{opacity:1}@starting-style{dialog[open]{opacity:0;transform:translateY(8px)}.sheet[open]{opacity:0;transform:translateY(24px)}dialog[open]::backdrop{opacity:0}}.avatar-label,.table-label{top:0;left:0}.keyboard-navigation dialog,.keyboard-navigation dialog::backdrop{transition:none}.keyboard-navigation button:active{transform:none}@media(prefers-reduced-motion:reduce){dialog,.sheet,dialog[open],.sheet[open]{transform:none;transition:opacity 120ms ease,display 120ms allow-discrete,overlay 120ms allow-discrete}dialog::backdrop{transition:opacity 120ms ease,display 120ms allow-discrete,overlay 120ms allow-discrete}button{transition:background-color 120ms ease}button:not(:disabled):active{transform:none}.chat-chevron{transition:none}@starting-style{dialog[open],.sheet[open]{transform:none;opacity:0}}}@media(max-width:699px){.scene-tools button{min-width:44px;width:44px;min-height:44px;height:44px}.place-chip{min-height:44px}.chat-toggle{min-height:44px}.message .who{min-height:44px}.glass{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.topbar{left:calc(20px + env(safe-area-inset-left,0px));right:calc(20px + env(safe-area-inset-right,0px))}.floating-dock{max-width:calc(100% - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}.sheet{padding-left:calc(22px + env(safe-area-inset-left,0px));padding-right:calc(22px + env(safe-area-inset-right,0px))}}
.floating-dock[data-seated=true] .seat-action{display:none}@media(max-height:500px){.chat-panel[data-expanded=true] #feed{height:min(100px,20dvh)}}
@media(max-height:650px) and (min-height:501px){.scene-tools{top:calc(94px + env(safe-area-inset-top,0px));right:16px;flex-direction:row;gap:4px}}@media(min-width:700px){.topbar{left:calc(32px + env(safe-area-inset-left,0px));right:calc(32px + env(safe-area-inset-right,0px))}.floating-dock{max-width:calc(100% - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}}@media(max-height:500px){.topbar{top:calc(12px + env(safe-area-inset-top,0px))}}
@media(max-width:699px){.message p{font-size:16px;line-height:1.55}.message .who{font-size:12px;max-width:95px}.system,#empty-chat{font-size:12px}#room-nav button{font-size:14px}#seat-options button{font-size:13px}.menu-settings button{font-size:14px}.event p{font-size:14px}}
@media(max-height:500px){.interaction-row{display:flex}.floating-dock:has(#message:focus) .interaction-row{display:none}.floating-dock{bottom:calc(10px + var(--safe-bottom))}}
.entry-dialog{position:fixed;top:var(--vv-top,0px);bottom:max(0px,calc(100dvh - var(--vv-height,100dvh) - var(--vv-top,0px)));height:fit-content;margin:auto}
/* Compact by default; full conversation is an explicit reading state. */
.floating-dock{gap:6px;bottom:calc(8px + var(--safe-bottom))}.interaction-row{gap:8px}.reactions{padding:2px;border-radius:18px;gap:0}.reactions button{width:44px;height:44px;min-height:44px;min-width:44px;padding:5px;font-size:23px;border-radius:14px}.reactions button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.seat-action{height:48px;min-height:44px;min-width:48px;border-radius:17px;padding:8px;flex-direction:row}.seat-action span{display:none}.stand-action{height:46px;min-height:44px;border-radius:16px;padding:8px 12px}.chat-toggle{height:44px;min-height:44px;padding:4px 14px;gap:10px}.chat-toggle-copy{min-width:0;flex:1;overflow:hidden}.chat-label{display:none;align-items:center;gap:7px}#chat-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--foreground);text-align:left;font-weight:400}.chat-panel[data-expanded=true] #chat-preview{display:none}.chat-panel[data-expanded=true] .chat-label{display:flex}.chat-panel[data-expanded=false] #feed,.chat-panel[data-expanded=false] #empty-chat{display:none}.chat-panel[data-expanded=true] #feed{height:min(190px,26dvh)}#chat-form{padding:0 6px 6px;gap:6px}#chat-form input{min-height:44px;height:44px;padding:8px 12px}#chat-form button{height:44px;width:44px;min-width:44px;border-radius:12px}.chat-panel{border-radius:18px}.touch-hint{display:none}.keyboard-open .chat-panel[data-expanded=true] #feed{height:min(90px,18dvh)}@media(max-height:500px){.chat-panel[data-expanded=true] #feed{height:min(90px,18dvh)}}@media(min-width:700px){.floating-dock{bottom:16px}.chat-panel[data-expanded=true] #feed{height:190px}}
#scene{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}#scene.camera-dragging{cursor:grabbing}
.character-picker{border:0;padding:0;margin:0 0 18px;min-width:0}.character-picker legend{font-size:12px;color:var(--primary);margin-bottom:9px}.character-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.entry-dialog .character-option{display:block;margin:0;position:relative;color:var(--foreground);cursor:pointer}.character-option>input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;padding:0}.character-card{display:flex;flex-direction:column;align-items:center;background:radial-gradient(ellipse at 50% 42%,#5d535433,#ffffff04);border:1px solid var(--border);border-radius:17px;padding:6px 4px 8px;min-height:145px}.character-card canvas{display:block;width:140px;max-width:100%;height:112px}.character-caption{width:100%;padding:0 11px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:500;min-height:24px}.choice-check{opacity:0;color:var(--primary);font-size:14px}.character-option input:checked+.character-card{border-color:var(--primary);background-color:#e9c2940c;box-shadow:inset 0 0 0 1px #e9c29440}.character-option input:checked+.character-card .choice-check{opacity:1}.character-option input:focus-visible+.character-card{outline:2px solid var(--primary);outline-offset:3px}.entry-dialog{width:400px;padding:26px;overflow-y:auto}.entry-dialog h2{margin:16px 0 8px;font-size:27px}.entry-dialog p{font-size:12px;margin-bottom:18px}.entry-dialog .primary{position:sticky;bottom:0}.entry-dialog small{margin-top:10px}.preview-fallback .character-caption{padding-top:20px}.preview-fallback .character-card::before{content:'✳';display:block;font-size:50px;color:var(--primary);margin:15px}@media(max-width:360px){.entry-dialog{padding:20px}.character-options{gap:9px}.character-card{min-height:129px}.character-card canvas{height:100px}.entry-dialog h2{font-size:25px;margin-top:10px}.character-picker{margin-bottom:14px}}@media(max-height:600px){.entry-dialog{padding-top:18px;padding-bottom:18px}.entry-dialog h2{margin-top:8px;margin-bottom:5px}.entry-dialog p{margin-bottom:12px}.character-card canvas{height:90px}.character-card{min-height:121px}.character-picker{margin-bottom:12px}}

#room-nav [data-room="private"]{grid-column:1/-1;border-color:#ac8ba86b;color:#dec1d9}.private-room-note{margin-top:10px;font-size:12px;line-height:1.7}#leave-private{width:100%;min-height:44px;margin-top:12px;color:var(--primary)}#leave-private[hidden]{display:none}
