.game-host-toggle {
  position: fixed; z-index: 110; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  right: calc(var(--social-edge, 22px) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--social-edge, 22px) + var(--social-height, 54px) + var(--social-gap, 12px) + var(--floating-footer-offset, 0px) + env(safe-area-inset-bottom, 0px));
  width: var(--social-width, 156px); min-height: var(--social-height, 54px); padding: 10px 16px;
  border: 1px solid #d9aa4655; border-radius: 999px; background: #141719; color: #f2cd79;
  font: 700 11px var(--font-body); letter-spacing: .06em; cursor: pointer;
  box-shadow: 0 8px 24px #0004; transition: background .18s, border-color .18s;
}
.game-host-toggle svg { width: 21px; height: 21px; flex-shrink: 0; }
.game-host-toggle:hover { background: #24231d; border-color: #d9aa46; }
.game-host-toggle[hidden], .game-host-backdrop[hidden], .game-host-drawer[hidden] { display: none; }
.game-host-backdrop { position: fixed; z-index: 120; inset: 0; background: #05070ab8; }
.has-game-host-open { overflow: hidden; }
html.friends-hub-open .game-host-toggle { visibility: hidden; pointer-events: none; }
.game-host-panel.game-host-drawer {
  position: fixed; z-index: 121; top: 18px; right: 18px; bottom: 18px; width: min(480px, calc(100vw - 36px));
  display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 26px;
  border: 1px solid #ffffff12; border-radius: 24px; background: #141719; color: #eef0f3;
  box-shadow: 0 24px 70px #0006; overflow-y: auto; overscroll-behavior: contain; color-scheme: dark;
  transform: translateX(calc(100% + 36px)); visibility: hidden;
  transition: transform .24s cubic-bezier(.2,.75,.25,1);
}
.game-host-panel.game-host-drawer.is-open { transform: translateX(0); visibility: visible; }
.game-host-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #ffffff12; }
.game-host-header .lobby-chat-eyebrow { color: #ffc23d; font-size: 10px; letter-spacing: .16em; }
.game-host-header h2 { margin: 8px 0 0; font: 800 25px/1.2 var(--font-display); letter-spacing: -.02em; }
.game-host-header .lobby-chat-close { flex-shrink: 0; width: 42px; height: 42px; border: 1px solid #ffffff15; border-radius: 13px; background: #ffffff05; color: #a8adb4; }
.game-host-drawer > p { margin: 0; font-size: 12px; line-height: 1.8; color: #9ea7b3; }
.game-host-drawer .game-host-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.game-host-drawer .game-host-controls + .game-host-controls { padding-top: 22px; border-top: 1px solid #ffffff12; }
.game-host-drawer .game-host-controls label { display: grid; grid-column: 1 / -1; gap: 9px; min-width: 0; width: 100%; font: 600 11px/1.5 var(--font-body); color: #b9c0c9; }
.game-host-drawer :is(input, select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #ffffff18; border-radius: 10px; background: #0e1113; color: #f1f3f6; font: 500 13px var(--font-body); }
.game-host-drawer select option { background: #181c20; color: #eef0f3; }
.game-host-drawer input[type="number"] { appearance: textfield; }
.game-host-drawer input[type="number"]::-webkit-inner-spin-button { appearance: none; }
.game-host-phase { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border-radius: 10px; background: #ffffff04; font-size: 11px; }
.game-host-phase > span { color: #9ea7b3; }.game-host-phase strong { color: #e8c886; text-align: right; }
.game-host-drawer .game-host-selection-hint { margin-top: -10px; font-size: 10px; }
.game-host-help { color: #9ea7b3; font-size: 11px; line-height: 1.8; }.game-host-help summary { cursor: pointer; color: #d4bd8b; }.game-host-help p { margin: 10px 0 0; }
.game-host-drawer .game-host-quarantine-help { margin-top: -12px; font-size: 10px; line-height: 1.7; }
.game-host-drawer .bunker-select-trigger { min-height: 44px; border-color: #ffffff18; border-radius: 10px; background: #0e1113; color: #f1f3f6; font-size: 12px; }
.bunker-select-menu.game-host-select-menu { background: #181d21; border-color: #d2b16b40; box-shadow: 0 12px 30px #0007; font-size: 12px; }
.game-host-drawer .btn { min-width: 0; width: 100%; min-height: 44px; margin: 0; padding: 11px 12px; border-radius: 10px; border: 1px solid #ffffff18; background: #ffffff04; color: #d5dbe3; font: 600 11px/1.5 var(--font-body); letter-spacing: 0; white-space: normal; text-align: center; }
.game-host-drawer .btn:not(:disabled):hover { background: #ffffff0c; border-color: #ffffff30; }
.game-host-drawer [data-host-action="OPEN_CARDS"], .game-host-drawer [data-host-action="CLOSE_VOTE"], .game-host-drawer [data-host-action="EXCLUDE"] { grid-column: 1 / -1; }
.game-host-drawer .btn-primary { background: #ffc23d; border-color: #ffc23d; color: #211800; }
.game-host-drawer .btn-primary:not(:disabled):hover { background: #ffd06a; border-color: #ffd06a; }
.game-host-drawer [data-host-action="EXCLUDE"] { color: #e8aaaa; border-color: #ce757530; background: #ce757508; }
.game-host-drawer .btn:disabled { opacity: .35; cursor: default; }
.game-host-drawer :is(button,input,select):focus-visible, .game-host-toggle:focus-visible { outline: 2px solid #ffd06a; outline-offset: 3px; }
#gameHostFeedback:empty { display: none; }
#gameHostFeedback { padding: 12px; border: 1px solid #e8aaaa30; border-radius: 10px; color: #e8aaaa; background: #ce757508; }
#gameHostFeedback[data-state="pending"] { color: #e8c886; border-color: #e8c88630; background: #e8c88608; }
#gameHostFeedback[data-state="success"] { color: #95cbaa; border-color: #95cbaa30; background: #95cbaa08; }
@media (max-width: 600px) {
  .game-host-panel.game-host-drawer { inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); width: auto; padding: 22px; border-radius: 20px; }
  .game-host-header h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .game-host-panel.game-host-drawer { transition: none; } }
