*{box-sizing:border-box}html,body,#root{margin:0;padding:0;width:100%;height:100%;font-family:Pretendard,Apple SD Gothic Neo,Arial,sans-serif}:root{--header-h: 64px;--footer-h: 28px}.app-shell{position:relative;width:100vw;height:100vh}.app-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);z-index:800;overflow:visible}.app-header .header-bar{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#ffffff4d;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transform:translateY(-100%);transition:transform .25s ease}.app-header.is-open .header-bar{transform:translateY(0)}.header-left,.header-right{display:flex;align-items:center;gap:8px}.header-logo{position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%);display:flex;align-items:center;-webkit-user-select:none;user-select:none}.header-logo img{height:50px;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255,255,255,.85))}.app-footer{position:fixed;left:0;right:0;bottom:0;height:var(--footer-h);z-index:800;display:flex;align-items:center;justify-content:center;background:#0000;color:#8b93a7;font-size:12px;gap:8px;pointer-events:none}.app-container{display:flex;width:100%;height:100%}.left-panel{width:100%;height:100%;background:#eef2f7;position:relative;overflow:hidden}.game-area{width:100%;height:100%;position:relative;overflow:hidden;background:#1f2430}.game-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}.webgl-error{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#e8eaf0;font-size:15px;text-align:center;padding:24px}.label-layer{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:1;isolation:isolate}.char-label{position:absolute;left:0;top:0;visibility:hidden;will-change:transform}.character-overhead{margin-bottom:4px;display:flex;flex-direction:column;align-items:center;gap:8px}.character-nickname{font-size:12px;font-weight:700;background:#0009;color:#fff;padding:2px 6px;border-radius:8px;white-space:nowrap}.character-bubble{position:relative;width:max-content;max-width:200px;padding:6px 10px;border-radius:12px;background:#fff;border:1.5px solid #3a56c4;color:#222;font-size:13px;line-height:1.35;text-align:center;word-break:break-word;box-shadow:0 2px 6px #0003;animation:bubble-pop .15s ease-out}.bubble-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.bubble-image{display:block;max-width:160px;max-height:120px;margin:0 auto 4px;border-radius:8px}.bubble-image:last-child{margin-bottom:0}@keyframes bubble-pop{0%{opacity:0;transform:translateY(4px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.participant-list{width:100%;height:100%;overflow-x:hidden;overflow-y:auto;padding:8px 10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent}.participant-list h3{margin:0 0 6px;font-size:13px;color:#e8eaf0}.participant-list ul{list-style:none;margin:0;padding:0}.participant-list li{padding:4px 8px;border:1px solid rgba(255,255,255,.22);border-radius:6px;background:#ffffff14;color:#f2f4f8;margin-bottom:4px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info-swiper{position:absolute;top:12px;right:12px;transition:top .25s ease;z-index:50;width:220px;display:flex;flex-direction:column;align-items:center;gap:6px}.app-shell.header-open .info-swiper{top:calc(var(--header-h) + 12px)}.info-swiper-view{width:100%;overflow:hidden;border-radius:4px;background:#0f1423c7;box-shadow:0 0 0 2px #ffffffd9,0 4px 12px #0000004d}.info-swiper-track{display:flex;width:100%;transition:transform .25s ease;touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:grab}.info-swiper-track.is-dragging{transition:none;cursor:grabbing}.info-slide{position:relative;flex:0 0 100%;min-width:0}.info-slide-list .participant-list{position:absolute;top:0;right:0;bottom:0;left:0}.info-swiper-dots{display:flex;gap:6px;padding:4px 8px;border-radius:10px;background:#0f142399}.info-dot{width:8px;height:8px;padding:0;border:none;border-radius:50%;background:#fff6;cursor:pointer}.info-dot.active{background:#fff}.chat-box{position:absolute;left:12px;bottom:calc(var(--footer-h) + 12px);z-index:60;width:380px;max-width:calc(100% - 24px);height:300px;max-height:calc(100% - var(--footer-h) - 24px);display:flex;flex-direction:column;min-height:0;overflow:hidden;border-radius:8px;background:#2e2e2ed1;color:#f2f2f2;box-shadow:0 4px 14px #00000059;transition:width .5s ease,height .5s ease}.chat-box-collapsed{width:76px;height:26px}.chat-box-collapsed .chat-header{gap:8px;border-bottom:none}.chat-box-collapsed .chat-messages,.chat-box-collapsed .chat-attachment,.chat-box-collapsed .chat-input-form{visibility:hidden}.chat-header{gap:8px;border-bottom:none}.chat-box-collapsed .chat-messages,.chat-box-collapsed .chat-attachment,.chat-box-collapsed .chat-input-form{display:none}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:4px 10px;font-size:12px;font-weight:700;color:#cfd2da;border-bottom:1px solid rgba(255,255,255,.1)}.chat-toggle{border:none;background:transparent;color:#cfd2da;cursor:pointer;font-size:12px;padding:2px 6px}.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:10px;font-size:13px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin;scrollbar-color:#6b6f7a transparent}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:transparent}.chat-messages::-webkit-scrollbar-thumb{background:#6b6f7a;border-radius:3px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#8a8e99}.chat-message{display:flex;flex-direction:column;max-width:85%;word-break:break-word}.chat-message.mine{align-self:flex-end;align-items:flex-end}.chat-message.others{align-self:flex-start;align-items:flex-start}.chat-nickname{font-weight:700;font-size:12px;color:#ffb347;margin-bottom:2px}.chat-bubble{padding:6px 10px;border-radius:10px;line-height:1.35}.chat-message.mine .chat-bubble{background:#3a56c4;color:#fff;border-bottom-right-radius:3px}.chat-message.others .chat-bubble{background:#4b4f5a;color:#f2f2f2;border-bottom-left-radius:3px}.chat-time{margin-top:2px;font-size:11px;color:#9a9ea8}.chat-input-form{display:flex;border-top:1px solid rgba(255,255,255,.12)}.chat-input-form input[type=text]{flex:1;min-width:0;padding:8px;border:none;outline:none;background:#ffffff14;color:#fff}.chat-input-form input[type=text]::placeholder{color:#9a9ea8}.chat-input-form button{padding:8px 12px;border:none;background:#3a56c4;color:#fff;cursor:pointer}.modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-box{background:#fff;padding:24px;border-radius:12px;width:320px;text-align:center}.modal-box h2{margin-top:0;font-size:18px}.modal-box input{width:100%;padding:10px;margin:12px 0;border:1px solid #ccc;border-radius:6px;font-size:14px}.modal-box button{width:100%;padding:10px;border:none;border-radius:6px;background:#3a56c4;color:#fff;font-weight:700;cursor:pointer}.modal-error{color:#d0342c;font-size:12px;margin:4px 0}.loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:16px;color:#666}.notif-banner{position:fixed;top:64px;left:50%;transform:translate(-50%);z-index:900;display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fffbe6;border:1px solid #f0d675;border-radius:8px;font-size:13px;box-shadow:0 2px 8px #00000026}.notif-banner button{padding:6px 12px;border:none;border-radius:6px;background:#3a56c4;color:#fff;cursor:pointer}.portal-label{position:absolute;left:0;top:0;visibility:hidden;will-change:transform;white-space:nowrap;font-size:13px;font-weight:700;color:#4b2a9a;text-shadow:0 0 4px rgba(255,255,255,.9)}.minimap{position:relative;overflow:hidden;pointer-events:none}.minimap-view{position:absolute;top:0;right:0;bottom:0;left:0}.minimap-viewport{fill:#ffd54a1f;stroke:#ffd54a;stroke-width:1.5}.minimap-portal{position:absolute;box-sizing:border-box;width:12px;height:12px;margin:-6px 0 0 -6px;border:2px solid #ffffff;border-radius:50%;background:#a77bff}.minimap-dot{position:absolute;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#ff8a3d}.minimap-dot-self{width:10px;height:10px;margin:-5px 0 0 -5px;box-sizing:border-box;border:1.5px solid #ffffff;background:#4ade80}.portal-modal-buttons{display:flex;gap:8px;margin-top:12px}.portal-modal-buttons button{flex:1}.modal-box .btn-secondary{background:#e3e6ee;color:#333}.chat-box-dragging:after{content:"이미지를 놓으면 첨부돼요";position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#3a56c426;border:2px dashed #3a56c4;color:#3a56c4;font-weight:700;font-size:14px;pointer-events:none}.chat-image{display:block;max-width:100%;max-height:160px;margin-top:4px;border-radius:6px;cursor:zoom-in}.chat-attachment{padding:6px 10px;border-top:1px solid rgba(255,255,255,.12);background:#0003;font-size:12px}.chat-attachment-info{color:#b5b8c1}.chat-error{display:block;color:#ff7b72}.chat-preview{position:relative;display:inline-block}.chat-preview img{display:block;max-width:120px;max-height:90px;border-radius:6px;border:1px solid #ccc}.chat-preview-remove{position:absolute;top:-8px;right:-8px;width:20px;height:20px;padding:0;border:none;border-radius:50%;background:#555;color:#fff;font-size:14px;line-height:20px;cursor:pointer}.chat-input-form .chat-attach-btn{padding:8px 10px;background:#ffffff24;color:#fff}.image-viewer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;display:flex;align-items:center;justify-content:center;background:#000c;cursor:zoom-out}.image-viewer img{max-width:92vw;max-height:92vh;border-radius:6px}.header-btn{padding:6px 14px;border:1px solid rgba(0,0,0,.2);border-radius:6px;background:#ffffffd9;font-size:13px;cursor:pointer}.header-btn:disabled{opacity:.5;cursor:default}.login-user{display:flex;align-items:center;gap:8px;font-size:13px}.login-user-name{font-weight:600;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal .login-provider{width:100%;margin-bottom:8px}.login-modal .login-provider:disabled{opacity:.5;cursor:default}.modal-box.char-select-box{width:380px;max-width:calc(100vw - 32px)}.char-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 8px}.modal-box .char-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px 12px;background:#f4f6fb;color:#222;border:2px solid transparent;border-radius:10px;font-weight:700}.modal-box .char-card:hover:not(:disabled){background:#e9edf8}.modal-box .char-card.is-current{border-color:#3a56c4;background:#eef2ff}.modal-box .char-card:disabled{opacity:.7;cursor:default}.char-preview{width:120px;height:120px;display:flex;align-items:center;justify-content:center;background:#dfe4f0;border-radius:8px;overflow:hidden}.char-preview-canvas{width:100%;height:100%;display:block}.char-preview-img{width:100%;height:100%;object-fit:contain}.char-preview-sprite{transform:translateY(-5.9%);width:100%;height:100%;background-repeat:no-repeat;background-size:600% 400%;background-position:0 0;image-rendering:auto}.char-preview-fallback3d{position:relative;width:62px;height:92px;border-radius:31px;background:radial-gradient(circle at 35% 30%,#fff,#bcc3d1);box-shadow:0 0 0 3px #aeb5c4}.char-preview-fallback3d .eye{position:absolute;top:28px;width:7px;height:11px;border-radius:50%;background:#1b1f2a}.char-preview-fallback3d .eye:first-child{left:19px}.char-preview-fallback3d .eye:last-child{right:19px}.char-name{font-size:14px}.char-tag{position:absolute;top:8px;right:8px;font-size:11px;padding:1px 6px;border-radius:8px;background:#3a56c4;color:#fff}.char-busy{font-size:11px;color:#3a56c4}.modal-box.char-select-box>.btn-secondary{margin-top:8px}.char-spinner{width:36px;height:36px;border-radius:50%;border:4px solid rgba(124,77,255,.25);border-top-color:#7c4dff;animation:char-spin .8s linear infinite}@keyframes char-spin{to{transform:rotate(360deg)}}.touch-controls{position:absolute;left:0;right:0;bottom:calc(var(--footer-h) + 56px);height:0;z-index:40;pointer-events:none}.touch-pad,.touch-attack{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.touch-pad{position:absolute;left:22px;bottom:0;border-radius:50%;background:#2563eb38;border:3px solid rgba(37,99,235,.55);display:flex;align-items:center;justify-content:center}.touch-knob{width:58px;height:58px;border-radius:50%;background:#2563ebbf;box-shadow:0 2px 8px #0000004d}.touch-attack{position:absolute;right:26px;bottom:6px;width:112px;height:112px;border-radius:50%;border:3px solid rgba(220,38,38,.7);background:#ef444480;color:#fff;font-size:20px;font-weight:700;padding:0}.touch-attack.is-down{background:#dc2626d9;transform:scale(.94)}.touch-attack.is-disabled{opacity:.45}
