/* 고양이와 열두 자리의 밤. */
.night-room{height:900px;max-height:none;min-height:780px;isolation:isolate}
.room-view{z-index:0;inset:145px 390px 80px 0;height:auto}
.room-view canvas{pointer-events:none}
.night-room:after{z-index:0}
.room-header{z-index:4}.room-message{z-index:1;top:85px;left:42px}
.room-message p{font-size:30px;line-height:1.4;margin:6px 0}
.room-message .eyebrow{font-size:12px;color:#c7bea9}
.control-stack{z-index:2;top:160px;right:32px;left:auto;bottom:auto;transform:none;width:320px;grid-template-columns:1fr}
.presence-bar{position:absolute;z-index:2;left:42px;top:205px;display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:#d5c3a1}
#visitor-count{color:#a9b6b3}
.room-bottom{z-index:1;bottom:25px;font-size:13px}.keyboard-tip{display:none}
.entry-wrap{position:absolute;z-index:3;left:0;right:390px;top:245px;bottom:80px;display:grid;place-items:center;pointer-events:none}
.entry-card{pointer-events:auto;text-align:center;width:min(340px,calc(100% - 32px));padding:30px 26px;background:#171d2deb;border:1px solid #b9a27b45;border-radius:24px;backdrop-filter:blur(12px);box-shadow:0 20px 70px #080c2570}
.entry-card .eyebrow{font-size:10px;letter-spacing:.2em;color:#b8a88c}.entry-card h1{font-size:28px;margin:12px 0}.entry-card p{color:#c5c5cd;font-size:15px}.entry-card .entry-note{font-size:12px;color:#969bae;margin:12px 0 22px}
.entry-card .primary{width:100%;padding:12px}
.quiet-button{min-height:44px;min-width:44px;padding:8px 12px;background:transparent;color:#bdb9b0;border-radius:8px;font-size:13px}
.maker{position:fixed;z-index:10;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#1b2031;border:1px solid #766c604d;border-radius:22px;padding:20px 24px;box-shadow:0 0 0 100vmax #080c19b3}
.maker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.maker-heading .eyebrow{font-size:11px;color:#c7ae83}.maker-heading h2{font-size:22px}.cat-identity{display:flex;align-items:center;justify-content:center;gap:12px}.cat-identity strong{display:block;font-size:17px;font-weight:500;color:#ead6af;max-width:160px}#cat-preview{width:175px;height:165px;flex:none}#cat-preview canvas,#cat-preview svg{width:100%;height:100%}
.maker fieldset{border:0;padding:0;margin:10px 0 16px}.maker legend{font-size:12px;color:#c8c1b7;margin-bottom:8px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.choices button{min-height:44px;min-width:0;border:1px solid #41475c;border-radius:9px;background:#252b3e;color:#b9bed0;font-size:13px;white-space:nowrap;padding:5px}
.choices button[aria-pressed=true]{background:#514738;color:#f6dbac;border-color:#bca271}.swatch{width:10px;height:10px;display:inline-block;border-radius:50%;margin-right:7px}
.maker>.primary{width:100%;padding:10px}.maker-note{font-size:11px;text-align:center;color:#a1a5b6;margin-top:8px}
.room-actions{position:absolute;z-index:3;bottom:65px;left:0;right:390px;display:flex;justify-content:center;gap:8px}.room-actions button{background:#252b3ee8;border:1px solid #69657666;color:#e7dcc8;border-radius:24px;min-height:44px;padding:8px 20px;font-size:13px}
.seat-layer{position:absolute;inset:0;z-index:1}
.seat{position:absolute;transform:translate(-50%,-50%);width:105px;min-height:44px;text-align:center;border:0;background:transparent;color:#d8d2c8;padding:0;transition:opacity .5s;opacity:.9}
.seat.empty{width:48px;height:44px;border:1px dashed #bbb29b70;border-radius:50%;background:#34304488;color:#ded3bc;font-size:11px}
.seat.occupied{cursor:default;pointer-events:none;min-height:75px}
.seat.mine .cat-label{border-color:#d5b77a80;color:#f5d59d}
.cat-label{display:block;background:#151b2ddb;border:1px solid #8b84932e;padding:3px 5px;border-radius:8px;line-height:1.4;font-size:10px;white-space:nowrap}
.cat-label small{display:block;color:#abb2c1;font-size:9px}.cat-label .focus-dot{color:#f5cf7b}
.seat-svg{height:65px;width:65px;display:block;margin:auto}.seat-svg svg{height:100%;width:100%}.webgl-ready .seat-svg{visibility:hidden;height:27px}
.bubble{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:160px;background:#e4d7bf;color:#302c2a;border-radius:12px 12px 12px 2px;padding:6px 10px;font-size:11px;box-shadow:0 3px 20px #0003}
.say-menu,.full-card{position:absolute;z-index:5;left:calc((100% - 390px)/2);top:260px;transform:translateX(-50%);width:min(380px,calc(100% - 32px));background:#202638f5;border:1px solid #77717b70;border-radius:18px;padding:18px;box-shadow:0 20px 70px #0006}
.say-menu p,.full-card p{font-size:12px;color:#b6b8c7;margin:8px 0 14px}#message-options{display:grid;grid-template-columns:1fr 1fr;gap:5px}#message-options button{min-height:44px;padding:6px;border-radius:8px;background:#31374a;color:#ddd4c4;font-size:12px}.full-card .primary{width:100%}
.about-room{border-top:1px solid var(--line);padding-top:26px;margin-top:32px;color:var(--muted);font-size:14px}.about-room h2{color:var(--ink);margin-bottom:12px}
.night-room:fullscreen{min-height:900px;height:100%;overflow:auto}.night-room:fullscreen .control-stack{position:absolute;top:160px;right:32px;margin:0;transform:none}.night-room:fullscreen .room-message{visibility:visible}
@media(min-width:1600px){.night-room{height:950px}.room-view{right:440px}.control-stack{right:48px;width:340px}.entry-wrap,.room-actions{right:440px}.room-message{left:70px}.presence-bar{left:70px}.entry-card{width:370px}.seat{width:120px}.cat-label{font-size:12px}.cat-label small{font-size:10px}}
@media(max-width:1023px){
 .night-room{height:auto;max-height:none;min-height:0;padding:690px 24px 30px}
 .room-view{inset:140px 0 auto;height:480px}.control-stack{position:relative;inset:auto;width:100%;max-width:820px;grid-template-columns:1fr 1fr;margin:auto;transform:none}
 .entry-wrap{top:220px;bottom:auto;height:370px;right:0}.room-actions{top:620px;bottom:auto;right:0}.room-message{left:24px;top:80px}.presence-bar{top:175px;left:24px}.room-bottom{display:none}
 .say-menu,.full-card{left:50%;top:220px}
 .night-room:fullscreen{padding-top:690px;min-height:100%;height:auto}.night-room:fullscreen .control-stack{position:relative;inset:auto;margin:auto}
}
@media(max-width:600px){
 .night-room{padding:650px 16px 20px}.room-header{padding-inline:16px}.brand{font-size:14px}.brand .icon{width:20px}
 .room-message{top:78px;left:22px}.room-message p{font-size:27px}.room-message .eyebrow{font-size:10px}.presence-bar{top:170px;left:22px;font-size:11px;gap:7px}
 .room-view{top:200px;height:380px}.entry-wrap{top:205px;height:360px}.entry-card{max-width:300px;padding:24px}
 .room-actions{top:585px}.room-actions button{padding:8px 15px}.control-stack{grid-template-columns:1fr;max-width:420px}.seat{width:86px}.cat-label{font-size:8px;padding:3px 2px}.cat-label small{font-size:8px}.seat-svg{width:48px;height:48px}.seat.empty{width:44px}.bubble{font-size:10px;max-width:130px}.maker{padding:16px 18px}.cat-identity{gap:4px}#cat-preview{width:145px;height:145px}.cat-identity strong{font-size:15px}.maker fieldset{margin-bottom:10px}
 .night-room:fullscreen{padding-top:650px}
}
@media(max-height:500px){
 .night-room{padding:490px 20px 24px}.room-message{display:block;top:65px}.room-message p{font-size:22px}.room-view{top:100px;height:330px;right:0}.presence-bar{top:145px}.entry-wrap{top:100px;height:320px;right:0}.entry-card{padding:16px;max-width:330px}.entry-card h1{font-size:24px;margin:4px}.entry-card .entry-note{margin:5px 0 10px}.room-actions{top:430px;right:0;bottom:auto}.control-stack{position:relative;inset:auto;width:100%;grid-template-columns:1fr 1fr;transform:none}.maker{max-width:630px;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.maker-heading{grid-column:1 / -1}.cat-identity{grid-row:2 / 4;flex-direction:column}#cat-preview{height:100px;width:125px}.maker fieldset{margin:0}.maker>.primary{grid-column:2}.maker-note{grid-column:1 / -1}.say-menu,.full-card{left:50%;top:160px}.say-menu{max-height:300px;overflow:auto}.night-room:fullscreen{padding-top:490px}
}
@media(prefers-reduced-motion:reduce){.seat{transition:none}}

.library-still svg{width:100%;height:100%;display:block}.room-view{border-radius:24px}
.room-view:not(.webgl-ready).zoomed .still-room,.room-view:not(.webgl-ready).zoomed .seat-layer{transform:scale(1.25);transform-origin:var(--seat-x,50%) var(--seat-y,50%)}
.room-view:not(.webgl-ready) .seat.occupied{transform:translate(-50%,-85%)}
.room-view:not(.webgl-ready) .seat.empty{background:#352e4055}

.seat.occupied:disabled{opacity:1}.seat.occupied{width:125px}.cat-label{font-size:12px}.cat-label small{font-size:10px}
@media(max-width:600px){.seat.occupied{width:88px}.cat-label{font-size:9px}.cat-label small{font-size:8px}}
@media(max-width:600px){.room-message p{font-size:24px;line-height:1.3}.presence-bar{top:178px}}

@keyframes cat-arrive{from{opacity:0}to{opacity:1}}.seat.occupied:not(.departing){animation:cat-arrive .5s ease-out}.departing{pointer-events:none}
@media(prefers-reduced-motion:reduce){.seat.occupied{animation:none}}
