/* BetBattles Demo Director (not the product). Owner: ARCHITECT.
   (fix) It never sits on a real control: bottom-right on desktop (the party chat owns bottom-left, ADDENDUM §8e),
   in the empty right end of the game bar in game mode, and on phones only while it is open. */
.dir { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-director); font: 700 13px/1 var(--f-ui); }
.dir-pill { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(21,17,41,.92); color: var(--ink-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); font: 800 12.5px/1 var(--f-ui); }
.dir-pill:hover { color: var(--ink); }
.dir-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--grape); box-shadow: 0 0 0 3px var(--grape-soft); }
.dir-menu { position: absolute; right: 0; bottom: 42px; width: 250px; padding: 8px; border-radius: 18px; background: rgba(21,17,41,.97); border: 1px solid var(--line-3); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); display: none; }
.dir.open .dir-menu { display: grid; gap: 2px; animation: feedIn .25s var(--out); }
.dir-h { display: flex; justify-content: space-between; align-items: center; margin: 4px 8px 8px; color: var(--ink-3); font: 800 11px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.dir-h span { letter-spacing: 0; text-transform: none; font-weight: 700; }
.dir-h kbd { font: 800 11px/1 var(--f-ui); padding: 2px 5px; border-radius: 5px; background: var(--night-3); color: var(--ink-2); }
.dir-seg { display: flex; gap: 4px; padding: 3px; margin-bottom: 4px; border-radius: 12px; background: var(--night-0); }
.dir-seg button { flex: 1; appearance: none; border: 0; height: 32px; border-radius: 9px; background: transparent; color: var(--ink-3); cursor: pointer; font: 800 13px/1 var(--f-ui); }
.dir-seg button.on { background: var(--grape); color: #fff; }
.dir-item { appearance: none; border: 0; cursor: pointer; display: flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 11px; background: transparent; color: var(--ink-2); font: 700 14px/1.2 var(--f-ui); text-align: left; }
.dir-item:hover:not(:disabled) { background: rgba(255,255,255,.06); color: var(--ink); }
.dir-item:disabled { opacity: .38; cursor: default; }
.dir-item.tone-danger { color: #FF8FA3; }
.dir-foot { margin: 6px 8px 4px; font: 600 11.5px/1.35 var(--f-ui); color: var(--ink-3); }
body[data-screen="game"] .dir { top: calc((var(--bar-h) - 34px) / 2); bottom: auto; }
body[data-screen="game"] .dir-menu { top: 42px; bottom: auto; }
@media (max-width: 700px) {
  .dir { right: 12px; bottom: calc(150px + var(--safe-b)); }
  .dir:not(.open) { display: none; }                 /* long-press the logo / clock (or press `) to bring it back */
  body[data-screen="home"] .dir { bottom: calc(16px + var(--safe-b)); }
  body[data-screen="game"] .dir { top: calc(var(--bar-h) + 8px); bottom: auto; }
}
