/* Same compact room toolbar as Buraco. Chat remains below the game. */
body.ar-room-menu-active #room{box-sizing:border-box;max-width:1800px;width:calc(100% - 24px);padding:max(12px,env(safe-area-inset-top)) 0 30px;margin:auto}
.ar-game-menu-toolbar{margin:0 0 10px;border:1px solid #b59b6238;border-radius:12px}
.ar-game-menu-toolbar .ar-studio-brand{display:flex;align-items:center;gap:10px;min-width:0;color:#efe4ce;text-decoration:none;font:750 14px/1.3 Arial,sans-serif}
.ar-game-menu-toolbar .ar-studio-brand>span{min-width:0}
.ar-game-menu-toolbar .ar-studio-brand small{display:block;font:600 10px/1.5 Arial,sans-serif;letter-spacing:.07em;color:#c8b68f}
.ar-game-menu-toolbar .ar-studio-brand img{flex:none;width:34px;height:38px}
.ar-game-menu-toolbar #ar-studio-clock .room-turn-clock{font:750 23px/1 Arial,sans-serif;color:#eed6a4;font-variant-numeric:tabular-nums}
.ar-game-menu-toolbar #ar-studio-clock #sync{font:12px/1.4 Arial,sans-serif;color:#c8bea9}
.ar-game-menu-toolbar #ar-board-options{min-height:44px;min-width:64px}
.ar-game-menu-toolbar #ar-board-options[aria-expanded=true]{background:#e0bd8322;border-color:#d3b77b;color:#ffe5b2}
#room #ar-room-options{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;padding:10px 12px;margin:0 0 10px;background:#211e24;border:1px solid #d3b77b45;border-radius:12px;box-sizing:border-box;box-shadow:none}
body[data-ar-surface=buraco].ar-studio-active:not(.ar-studio-options) #room>#ar-room-options{display:none}
#ar-room-options :is(.tools,.room-control-buttons,.room-invite-actions,#test-seats){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;max-width:none}
#ar-room-options :is(.tools,.room-control-buttons) :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 10px;margin:0;border:1px solid #c7aa7359;border-radius:8px;background:#2a252d;color:#f4dfb7;font:650 12px/1.3 Arial,sans-serif;text-decoration:none;box-shadow:none}
#ar-room-options :is(.tools,.room-control-buttons) :is(button,a):hover{background:#3b3139;border-color:#d3b77b}
#ar-room-options :is(.tools,.room-control-buttons) button[aria-pressed=true]{border-color:#d3b77b95;color:#ffe5b2}
#ar-room-options>.room-heading{margin:0;display:contents}
#ar-room-options>.room-heading>div:first-child,
#ar-room-options :is(.room-self,.room-ready-note,.room-turn-status,#sync){display:none}
#ar-room-options .room-controls{display:contents}
#ar-room-options .room-turn-options{order:20;width:100%;margin:4px 0 0;padding:0;border:0;background:transparent;box-shadow:none}
#ar-room-options .room-turn-options summary{display:list-item;min-height:40px;padding:9px 0;color:#e5c992;font:650 12px/1.5 Arial,sans-serif}
#room #ar-room-options :is(#test-panel,#solo-panel){order:30;width:100%;margin:4px 0 0;padding:8px 0 0;border:0;border-top:1px solid #d3b77b30;background:transparent;box-shadow:none;border-radius:0}
#room #ar-room-options :is(#test-panel,#solo-panel) :is(.section-line,.solo-panel-heading,#test-seats,#solo-seats){margin:0 0 5px}
#room #ar-room-options :is(#test-panel,#solo-panel) :is(button,.solo-seat){min-height:40px;padding:6px 9px;font:650 12px/1.4 Arial,sans-serif;border-radius:8px}
#room #ar-room-options :is(#test-panel,#solo-panel) :is(.section-line,.solo-panel-heading){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
#room #ar-room-options :is(#test-panel,#solo-panel) :is(.section-line,.solo-panel-heading) strong{font:700 13px/1.4 Arial,sans-serif}
#room #ar-room-options :is(#test-panel,#solo-panel)>:is(small,p){display:block;margin:0;color:#c9beb0;font:11px/1.4 Arial,sans-serif}
#room #ar-room-options :is(#test-seats,#solo-seats){display:flex;flex-wrap:wrap;gap:6px}
#room #ar-room-options #solo-seats .solo-seat{display:inline-flex;width:auto;gap:6px}
#room #ar-room-options :is(#test-seats,#solo-seats) button{background:#2a252d;color:#eadbc2;border:1px solid #c7aa7359;box-shadow:none}
#room #ar-room-options :is(#test-seats,#solo-seats) button[aria-pressed=true]{background:#e0bf85;color:#241d14;border-color:#efd5a2}
#room #ar-room-options :is(#go-to-turn,#turn-seat){background:#2a252d;color:#eadbc2;border:1px solid #c7aa7359}
#room #ar-room-options :is(#go-to-turn,#turn-seat):disabled{opacity:.55}
#room #ar-room-options .solo-seat :is(.solo-seat-number,.turn-badge),
#room #ar-room-options .solo-panel-heading .eyebrow,
#room #ar-room-options .solo-seat small{display:none}
#ar-room-options :is(#share,#tv-share){margin:8px 0 0;padding:12px}
#ar-room-options [hidden],#ar-room-options .hidden{display:none!important}

/* Lobby actions sit with the player roster, with room status as supporting text. */
body.ar-lounge #lobby .room-lobby-actions,
body.ar-lounge #lobby>.actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:10px 0 0;padding:8px 0 0;border:0;border-top:1px solid #d3b77b30;border-radius:0;background:transparent;box-shadow:none}
body.ar-lounge #lobby .room-lobby-actions :is(#start,#start-game,#room-ready),
body.ar-lounge #lobby>.actions :is(#start,#ready){width:auto;min-height:44px;margin:0;padding:8px 13px;font-size:13px}
body.ar-lounge #lobby :is(#start,#start-game):disabled{background:#332b29;border-color:#c7aa7350;color:#d7c6ad;opacity:1;cursor:default}
body.ar-lounge #lobby .room-lobby-actions .room-ready-note{order:2;margin:0;color:#c9beb0;font-size:12px;line-height:1.45}
body.ar-lounge #lobby .room-lobby-actions .room-turn-options{order:3;margin:0}
body.ar-lounge #lobby .room-lobby-actions .room-turn-options summary{min-height:40px;padding:8px 0}
body.ar-lounge #lobby .room-lobby-actions .room-invite-actions{width:auto}
body.ar-room-menu-active #game>.table-heading{margin:0 0 8px;align-items:center}
body.ar-room-menu-active #game>.table-heading :is(h2,p){margin:0}
body.ar-room-menu-active #game>#players{margin-bottom:10px}
@media(max-width:600px){
  .ar-game-menu-toolbar{padding:9px 10px;gap:8px}
  .ar-game-menu-toolbar .ar-studio-brand{gap:6px;font-size:12px}
  .ar-game-menu-toolbar .ar-studio-brand small{font-size:9px;letter-spacing:.03em}
  .ar-game-menu-toolbar .ar-studio-brand img{width:26px;height:32px}
  .ar-game-menu-toolbar .ar-studio-actions{flex-wrap:nowrap;gap:6px}
  .ar-game-menu-toolbar #ar-studio-clock .room-turn-clock{font-size:18px}
  .ar-game-menu-toolbar #ar-studio-clock #sync{font-size:10px}
  body.ar-room-menu-active:not(.tv-mode)[data-ar-surface=fodinha] #players .life-card{padding:9px;gap:5px}
  body.ar-room-menu-active:not(.tv-mode)[data-ar-surface=fodinha] .life-balance>strong{font-size:26px}
  body.ar-room-menu-active:not(.tv-mode)[data-ar-surface=fodinha] .life-details{padding-top:4px}
  body.ar-room-menu-active:not(.tv-mode)[data-ar-surface=fodinha] .life-details strong{font-size:14px}
}
