/* BlackVeil party UI shares the existing dark-metal HUD palette. */
.bv-party-toggle[hidden],.bv-party-panel[hidden]{display:none!important}
.bv-party-toggle,.bv-party-panel{font-family:Pretendard,Arial,sans-serif;color:#e9d9b9;box-sizing:border-box}
.bv-party-toggle{position:absolute;left:calc(183px + env(safe-area-inset-left));bottom:env(safe-area-inset-bottom);z-index:22;
 border:1px solid #776249;border-bottom:0;border-radius:6px 6px 0 0;background:rgba(27,26,23,.90);padding:7px 13px;min-height:36px;font-size:12px;font-weight:700;cursor:pointer}
.bv-party-panel{position:absolute;left:calc(188px + env(safe-area-inset-left));bottom:calc(46px + env(safe-area-inset-bottom));z-index:34;
 width:min(380px,calc(100vw - 18px));height:min(440px,65dvh);min-height:265px;display:flex;flex-direction:column;
 background:linear-gradient(145deg,#30281ff9,#141514fa);border:1px solid #846e4a;border-radius:5px;box-shadow:0 9px 28px #000c}
.bv-party-panel *{box-sizing:border-box}
.bv-party-head{padding:9px 12px;background:#342b20;border-bottom:1px solid #6d5838;display:flex;align-items:center;gap:9px;font-size:13px}
.bv-party-head small{margin-left:auto;color:#cdb88b;font-size:11px}
.bv-party-head button{border:0;background:none;color:#f1d9b1;cursor:pointer;font-size:21px}
.bv-party-body{overflow:auto;flex:1;min-height:0;padding:8px 12px}
.bv-party-body h4{color:#e1c492;font-size:12px;margin:8px 0}
.bv-party-empty{color:#c5b69c;font-size:12px;line-height:1.7}
.bv-party-member{display:flex;gap:5px;align-items:center;border-bottom:1px solid #78644847;padding:8px 0}
.bv-party-member-info{display:flex;flex:1;flex-direction:column;gap:3px;font-size:12px;min-width:0}
.bv-party-member-info strong{color:#f1d5a9}.bv-party-member-info small{font-size:10px;color:#b8a992;overflow-wrap:anywhere}
.bv-party-meter{display:flex;gap:7px;align-items:center;font-size:10px;color:#d8c2a1}.bv-party-meter>span{width:82px;white-space:nowrap}
.bv-party-meter-track{height:5px;background:#0c0c0b;flex:1;border-radius:4px;overflow:hidden}
.bv-party-meter-fill{height:100%;background:#a43836}.bv-party-meter-fill.mp{background:#4269a6}
.bv-party-member-actions{display:flex;flex-direction:column;gap:3px}
.bv-party-body button{border:1px solid #816748;background:#423528;border-radius:3px;padding:6px 8px;font-size:11px;color:#ead5b1;cursor:pointer}
.bv-party-invite{display:flex;gap:5px;align-items:center;border:1px solid #6b583c;padding:8px;font-size:11px}
.bv-party-invite span{flex:1}.bv-party-footer{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
@media(max-width:600px){.bv-party-toggle{left:calc(171px + env(safe-area-inset-left))}.bv-party-panel{left:8px;bottom:calc(88px + env(safe-area-inset-bottom));height:min(400px,55dvh)}}

/* Recruitment controls: bounded layout, touch-friendly actions, no forced scrolling of the game. */
.bv-party-create{display:flex;flex-direction:column;gap:7px;border-bottom:1px solid #68553b;padding:2px 0 12px}
.bv-party-create h4{margin:2px 0 1px}
.bv-party-create input,.bv-party-create select,.bv-party-listing input{min-width:0;width:100%;background:#131513;color:#ebdebf;border:1px solid #8b7150;border-radius:3px;padding:7px;font-size:12px}
.bv-party-create input::placeholder,.bv-party-listing input::placeholder{color:#a79a85}
.bv-party-create button{background:#514029;font-weight:700}
.bv-party-options{display:flex;flex-direction:column;gap:7px}
.bv-party-directory-head{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:6px}
.bv-party-hint{font-size:10px;color:#a9a08f;line-height:1.5;margin:0 0 6px}
.bv-party-listing{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px 4px;border-bottom:1px solid #78644847}
.bv-party-listing-info{flex:1 1 145px;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.bv-party-listing-info strong{font-size:12px;color:#c2e9f4}.bv-party-listing-info small{color:#baa988;font-size:10px}
.bv-party-listing input{flex:0 1 116px;width:116px}
.bv-party-body button:focus-visible,.bv-party-body input:focus-visible,.bv-party-body select:focus-visible{outline:2px solid #94d9e8;outline-offset:1px}

/* 0.2.70.26: menu-only social window, centered at open; movable by header only. */
.bv-party-toggle{display:none!important}
.bv-party-panel{position:fixed;left:50%;top:50%;right:auto;bottom:auto;
 transform:translate(-50%, -50%);width:min(382px,calc(100vw - 18px));
 height:min(440px,calc(100dvh - 18px));min-height:0;resize:none;max-width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}
.bv-party-head{touch-action:none;cursor:move;user-select:none;-webkit-user-select:none}
.bv-party-head button{touch-action:manipulation;cursor:pointer}
@media(max-width:600px){.bv-party-panel{left:50%;top:50%;right:auto;bottom:auto;
 height:min(440px,calc(100dvh - 18px));transform:translate(-50%, -50%)}}

.bv-party-head, .bv-party-head:active {cursor:url('../assets/cursors/ui_move.png') 16 16, move!important;}
