/* Shared by the regular, skill and directly linked classic lobby. */
body[data-presentation] .player-top.menu-open #top-controls {
  position: fixed; inset: auto max(12px,env(safe-area-inset-right)) auto auto;
  bottom: calc(var(--cabinet-console, 70px) + 12px + env(safe-area-inset-bottom));
  width: min(270px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  display: grid; align-content: start; align-items: center; gap: 4px;
  padding: 13px 22px 20px; isolation: isolate;
  border: 0; border-radius: 0; background: transparent;
  box-shadow: none; filter: none; overflow: visible; animation: none;
}
body[data-presentation] .player-top.menu-open #top-controls::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 28px solid transparent;
  border-image: url('/assets/atlas-profile-dialog-frame-v1.webp') 128 fill / 1 / 0 stretch;
}
body[data-lobby-mode=skill][data-presentation] .player-top.menu-open #top-controls::before {
  border-image-source: url('/assets/skill-panel-blue.png');
}
body[data-presentation=portrait] .player-top.menu-open #top-controls {
  top: max(12px, env(safe-area-inset-top)); bottom: auto;
}
body[data-presentation] .player-top #top-controls .drawer-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0; margin: 0; border: 0;
  color: #edd29b; font: 700 14px/1.2 Georgia,serif;
}
body[data-presentation] .player-top #top-controls #drawer-close {
  width: 44px; height: 44px; min-height: 44px; padding: 0; margin-right: -9px;
  background: transparent; border: 0; border-radius: 0; color: #f4dca1;
  font: 24px/1 Arial,sans-serif;
}
body[data-presentation] .player-top #top-controls #lobby-history {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; width: 100%; padding: 6px 10px;
  border: 1px solid #bd9455; border-radius: 10px;
  background: #331344; color: #ffdfa1; font-weight: 700;
}
body[data-lobby-mode=skill][data-presentation] .player-top #top-controls #lobby-history {
  background: #12264f;
}
#lobby-history svg { width: 20px; height: 20px; }
body[data-presentation] .player-top #top-controls #logout {
  --logout-art: url('/assets/lobby-logout-purple-v1.webp');
  display: block; width: 100%; height: 68px; min-height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: var(--logout-art) center / contain no-repeat;
  box-shadow: none; filter: none; text-shadow: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, opacity .12s ease;
}
body[data-lobby-mode=skill][data-presentation] .player-top #top-controls #logout {
  --logout-art: url('/assets/lobby-logout-blue-v1.webp');
}
body[data-presentation] .player-top #top-controls #logout::before,
body[data-presentation] .player-top #top-controls #logout::after { display: none; }
body[data-presentation] .player-top #top-controls #logout:active { transform: scale(.97); opacity: .85; }
body[data-presentation] .player-top #top-controls :is(#logout,#drawer-close,#lobby-history):focus-visible {
  outline: 2px solid #ffe4a0; outline-offset: 2px;
}
@media (hover:hover) {
  body[data-presentation] .player-top #top-controls #logout:hover { opacity: .9; }
}
