.player-audio-dialog{box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;color:#f4f4e8;background:#122a23;border:1px solid #73805c;border-radius:18px;box-shadow:0 24px 90px #0009}
.player-audio-dialog::backdrop{background:#050b0bd9}
.player-audio-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.player-audio-dialog h2{margin:0;font-size:22px}.player-audio-dialog button{border:1px solid #6f795f;border-radius:9px;padding:10px 14px;background:#213d32;color:#f4f4e8;font:inherit;cursor:pointer;min-height:44px}
.player-audio-dialog .audio-toggle,.player-audio-dialog .audio-test{background:#ead77c;color:#152820;font-weight:700}
.player-audio-dialog .audio-close{font-size:24px;padding:2px 12px}
.player-audio-dialog .audio-status,.player-audio-dialog .audio-help{font-size:13px;line-height:1.55;color:#d0d7c9}.player-audio-dialog .audio-help{margin-bottom:0}
.player-audio-dialog .audio-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:22px;font-size:14px}
.player-audio-dialog .audio-row input{grid-column:1/-1;width:100%;margin:0;accent-color:#ead77c;min-height:32px}
.player-audio-dialog .audio-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.shared-menu-heading{margin:6px 0 12px;font-size:14px;font-weight:700;color:var(--ink,#f4f4e8)}
.chat-panel [hidden]{display:none!important}.chat-channel-hint{margin:8px 0;color:var(--muted,#becbbd);font-size:11px;line-height:1.5}
.chat-tabs button{min-height:36px}.chat-tabs button[aria-selected=true]{font-weight:700}
.mobile-menu-action span{white-space:normal;overflow-wrap:anywhere}.mobile-menu-section{min-width:0}
.top-actions>.sc-chip.sc-add{display:inline-flex;align-items:center;justify-content:center;min-height:36px;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.top-actions>.sc-chip.sc-add:hover{background:#183b2be8;border-color:#f1dc8a;color:#ffe9a3}
@media(max-width:760px){.top-actions>.sc-chip.sc-add{padding:7px 9px;font-size:10px;min-height:34px}.top-actions>.sc-chip.sc-add{max-width:130px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:480px){.player-audio-dialog{padding:20px}.mobile-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Action dock UX refresh · politicabr · 2026-10-18
   Keeps the existing DOM/event wiring and improves hierarchy, hit targets and
   touch behavior for every action group. */
body.playing .action-area:has(.grouped-dock){
  left:50%;
  right:auto;
  bottom:max(16px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(980px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  gap:10px;
  z-index:20;
}
body.playing nav.dock.grouped-dock{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:stretch;
  gap:7px;
  width:100%;
  max-width:none;
  padding:9px;
  overflow:visible;
  border:1px solid #a7c69a42;
  border-radius:20px;
  background:linear-gradient(145deg,#0d231af2,#091711ee 72%,#152d21f2);
  box-shadow:0 18px 55px #0009,0 1px 0 #f4f0cf18 inset;
  backdrop-filter:blur(22px) saturate(1.2);
  -webkit-backdrop-filter:blur(22px) saturate(1.2);
}
body.playing nav.grouped-dock>.action-category,
body.playing nav.grouped-dock>.spray-button{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:66px;
  gap:7px;
  padding:9px 7px 8px;
  border:1px solid #c8d7b326;
  border-radius:14px;
  background:linear-gradient(180deg,#18372aab,#11291f96);
  color:#dbe8d6;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:.01em;
  cursor:pointer;
  touch-action:manipulation;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
body.playing nav.grouped-dock>.action-category:hover,
body.playing nav.grouped-dock>.spray-button:hover{
  border-color:#e7d7839c;
  background:linear-gradient(180deg,#244b37dc,#183728d8);
  color:#fff0b1;
  transform:translateY(-1px);
}
body.playing nav.grouped-dock>.action-category[aria-expanded=true],
body.playing nav.grouped-dock>.spray-button[aria-expanded=true],
body.playing nav.grouped-dock>.action-category:focus-visible,
body.playing nav.grouped-dock>.spray-button:focus-visible{
  border-color:#f0d976;
  background:linear-gradient(180deg,#355b35,#1e402e);
  color:#ffe999;
  box-shadow:0 0 0 3px #efd7752e,0 8px 20px #0004;
  outline:none;
}
body.playing nav.grouped-dock>.action-category svg,
body.playing nav.grouped-dock>.spray-button svg{
  width:24px;
  height:24px;
  color:#bad6b3;
  stroke-width:1.75;
}
body.playing nav.grouped-dock>.action-category[aria-expanded=true] svg,
body.playing nav.grouped-dock>.spray-button[aria-expanded=true] svg{color:#ffe58b}
body.playing nav.grouped-dock>.action-category span,
body.playing nav.grouped-dock>.spray-button span{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  line-height:1.25;
}
body.playing nav.grouped-dock>.action-category>b{display:none}
body.playing nav.grouped-dock>.spray-button{position:relative}
body.playing nav.grouped-dock>.spray-button .spray-ink{left:12px;right:12px;bottom:5px;height:3px;border-radius:10px}
body.playing nav.grouped-dock>.action-utilities{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  padding:7px 0 0;
  margin:1px 0 0;
  border:0;
  border-top:1px solid #d1dfcf1f;
}
body.playing nav.grouped-dock>.action-utilities button{
  box-sizing:border-box;
  display:inline-flex;
  flex:1 1 0;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:44px;
  padding:8px 12px;
  border:1px solid #c8d7b32b;
  border-radius:11px;
  background:#ffffff08;
  color:#c9d9c5;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  touch-action:manipulation;
}
body.playing nav.grouped-dock>.action-utilities button:hover,
body.playing nav.grouped-dock>.action-utilities button.active{
  border-color:#e7d7838c;
  background:#e7d78319;
  color:#ffe999;
}
body.playing nav.grouped-dock>.action-utilities button:focus-visible{outline:3px solid #f5df81;outline-offset:2px}
body.playing nav.grouped-dock>.action-utilities button svg{width:20px;height:20px;flex:none}
body.playing nav.grouped-dock>.action-utilities [data-action=shirt]{min-width:0}
body.playing nav.grouped-dock>.action-utilities [data-action=air]{min-width:0}
body.playing nav.grouped-dock>.action-utilities [data-action=horn]{min-width:0}
body.playing nav.grouped-dock kbd{display:none}

/* Popovers read as a focused action sheet while retaining native popover
   focus/escape handling from the game client. */
body.playing nav.dock .action-popover{
  width:min(470px,calc(100vw - 28px));
  max-width:calc(100vw - 28px);
  max-height:min(650px,calc(100dvh - 150px));
  padding:18px;
  border:1px solid #b9cfab66;
  border-radius:20px;
  background:linear-gradient(145deg,#102a20fa,#0c1d17fa);
  color:#edf3df;
  box-shadow:0 24px 80px #000b,0 1px 0 #f4f0cf1c inset;
  backdrop-filter:blur(20px) saturate(1.2);
  -webkit-backdrop-filter:blur(20px) saturate(1.2);
}
body.playing nav.dock .action-popover-head{margin:-4px -4px 0; padding:0 0 10px;border-bottom:1px solid #d3dfd21f}
body.playing nav.dock .action-popover h2{font-size:19px;letter-spacing:-.01em;color:#fff4c2}
body.playing nav.dock .action-popover-note{margin:10px 0 16px;color:#b9cbb9;font-size:12px;line-height:1.5}
body.playing nav.dock .action-popover .action-popover-close{width:42px;min-width:42px;min-height:42px;border:1px solid #cfddc62e;border-radius:11px;background:#ffffff08;color:#edf3df;line-height:1;cursor:pointer}
body.playing nav.dock .action-popover .action-popover-close:hover{background:#e7d7831a;color:#ffe999;border-color:#e7d78388}
body.playing nav.dock .action-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body.playing nav.dock .action-options button{
  min-height:78px;
  padding:10px 7px;
  border:1px solid #c8d7b32d;
  border-radius:13px;
  background:#ffffff08;
  color:#dbe8d6;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
body.playing nav.dock .action-options button:hover{transform:translateY(-1px);background:#e7d78317;border-color:#e7d78388;color:#fff0b1}
body.playing nav.dock .action-options button.active{border-color:#f0d976;background:#e7d78324;color:#ffe999;box-shadow:inset 0 0 0 1px #efd77555}
body.playing nav.dock .action-options button:focus-visible{outline:3px solid #f5df81;outline-offset:2px}
body.playing nav.dock .action-options button svg{width:25px;height:25px;margin-bottom:5px;color:#bad6b3}
body.playing nav.dock .action-options button span{display:block;font-size:11px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body.playing nav.dock .action-options button kbd{display:none}
body.playing nav.dock .action-options button[hidden]{display:none!important}
body.playing nav.dock .action-popover .action-pass{width:100%;min-height:48px;margin-top:14px;border:1px solid #e7d78387;border-radius:12px;background:#e7d78318;color:#ffe999;font-weight:800;cursor:pointer}
body.playing nav.dock .action-popover .action-pass:hover{background:#e7d7832d}
body.playing nav.dock #actions-signs .action-options{grid-template-columns:repeat(2,minmax(0,1fr))}
body.playing nav.dock #actions-pvp .action-options{grid-template-columns:1fr}

/* Touch devices use the same visual language in a bottom sheet. */
@media (max-width:760px),(pointer:coarse){
  body.mobile-hud.playing .mobile-nav{
    height:calc(72px + env(safe-area-inset-bottom));
    padding:7px max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px,env(safe-area-inset-left));
    gap:6px;
    border-top:1px solid #b9cfab3d;
    background:linear-gradient(180deg,#10271ff5,#081611fa);
    box-shadow:0 -14px 45px #0009;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }
  body.mobile-hud.playing .mobile-nav-button{
    min-height:56px;
    padding:6px 3px;
    border:1px solid transparent;
    border-radius:14px;
    color:#d3e3d0;
    font-size:11px;
    font-weight:800;
    line-height:1.1;
    transition:background .16s ease,border-color .16s ease,color .16s ease;
  }
  body.mobile-hud.playing .mobile-nav-button svg{width:24px;height:24px;color:#b9d2b5}
  body.mobile-hud.playing .mobile-nav-button[aria-expanded=true],
  body.mobile-hud.playing .mobile-nav-button.active,
  body.mobile-hud.playing .mobile-nav-button:focus-visible{
    color:#ffe999;
    border-color:#e7d7838c;
    background:#e7d7831d;
    outline:none;
  }
  body.mobile-hud.playing .mobile-nav-button[aria-expanded=true] svg,
  body.mobile-hud.playing .mobile-nav-button.active svg{color:#ffe58b}
  body.mobile-hud .mobile-sheet{
    width:100%;
    max-width:680px;
    max-height:calc(100dvh - max(16px,env(safe-area-inset-top)));
    border:1px solid #b9cfab5c;
    border-bottom:0;
    border-radius:24px 24px 0 0;
    background:linear-gradient(145deg,#102a20,#0b1c16);
    color:#edf3df;
    box-shadow:0 -24px 80px #000b;
  }
  body.mobile-hud .mobile-sheet-head{
    padding:14px 16px;
    background:#10271ff5;
    border-bottom:1px solid #d3dfd225;
  }
  body.mobile-hud .mobile-sheet-head h2{font-size:20px;color:#fff4c2}
  body.mobile-hud .mobile-sheet-close{min-width:44px;min-height:44px;border:1px solid #cfddc63d;border-radius:12px;background:#ffffff0a;color:#f2f3e5}
  body.mobile-hud .mobile-sheet-content{padding:14px 14px calc(22px + env(safe-area-inset-bottom))}
  body.mobile-hud .mobile-menu-section{margin:0 0 18px}
  body.mobile-hud .shared-menu-heading{margin:0 0 9px;color:#ffe999;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
  body.mobile-hud .mobile-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.mobile-hud .mobile-menu-action{
    min-height:64px;
    padding:11px 10px;
    border:1px solid #c8d7b32d;
    border-radius:14px;
    background:#ffffff08;
    color:#e4eddf;
    font-size:13px;
    font-weight:750;
    line-height:1.25;
  }
  body.mobile-hud .mobile-menu-action:hover,
  body.mobile-hud .mobile-menu-action:focus-visible,
  body.mobile-hud .mobile-menu-action.active{border-color:#e7d7839c;background:#e7d7831b;color:#ffe999;outline:none}
  body.mobile-hud .mobile-menu-action svg{width:23px;height:23px;flex:none;color:#bad6b3}
  body.mobile-hud .mobile-menu-note{color:#b9cbb9}
}
@media (min-width:761px) and (max-width:1100px){
  body.playing .action-area:has(.grouped-dock){width:calc(100vw - 32px)}
  body.playing nav.dock.grouped-dock{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.playing nav.dock .action-options{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:480px){
  body.mobile-hud .mobile-menu-grid{grid-template-columns:1fr}
  body.mobile-hud .mobile-menu-action{min-height:58px}
}
@media (prefers-reduced-motion:reduce){
  body.playing nav.grouped-dock>.action-category,
  body.playing nav.grouped-dock>.spray-button,
  body.playing nav.dock .action-options button{transition:none}
}
