.railver{display:block;width:100%;border:0;background:transparent;cursor:pointer;touch-action:manipulation;user-select:none}
#waterpopLayer{position:fixed;inset:0;z-index:98;display:flex;flex-direction:column;background:var(--bg,#eef5f4);color:var(--ink,#243b43)}
#waterpopLayer iframe{width:100%;flex:1;min-height:0;border:0;background:#071d3d}
#waterpopLayer{background:#071d3d;color:#eaf7ff}
#waterpopLayer .waterpop-loading{padding:24px;text-align:center}
#waterpopInvite{position:fixed;right:20px;bottom:24px;z-index:99;max-width:calc(100vw - 40px);display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px;background:var(--card,#fff);color:var(--ink,#243b43);border:1px solid var(--line,#dce8e5);border-radius:14px;box-shadow:0 8px 35px #0002}
#waterpopInvite button{padding:8px 12px;border:1px solid var(--line,#dce8e5);border-radius:8px;background:var(--card,#fff);color:inherit;cursor:pointer}

#waterpopLayer .waterpop-loading-close{position:absolute;right:16px;top:12px;z-index:1;font:inherit;font-size:12px;border:1px solid #285477;border-radius:8px;background:#103456;color:#d6edff;padding:9px 13px;cursor:pointer}
#waterpopLayer .waterpop-loading-close[hidden]{display:none}
#waterpopLayer .waterpop-loading{padding:80px 24px 24px}

/* 게임 위에서도 기존 채팅 창과 입력 보조 UI를 사용한다. */
body.waterpop-open #chatFab{display:grid!important;place-items:center;padding:0;z-index:110}
body.waterpop-open #v-chat.float{z-index:109}
body.waterpop-open #v-chat #chatClose{display:inline-block!important}
body.waterpop-open :is(#emojiPop,#atPop,#viewer,#chMenu,#readsModal,.dmpick,.mmodal,.flpick,.fxmenu){z-index:112}
@media(max-width:680px){body.waterpop-open #v-chat.float{height:calc(100dvh - 72px)!important;top:0!important}body.waterpop-open #chatFab{bottom:16px;right:16px}}
