/* Mobile Rules dock button: positioned next to the match menu toggle in phone landscape. */
body#top[data-page='play'] #phone-reference-toggle { display: none; }
html[data-phone-device='true'] body#top[data-page='play'] :is(#left-sidebar, #rb-sidebar, .rb-hover-btn, #rb-hover-overlay, [id^='left-img-'], [id^='rb-img-'], #btn-close-reference) {
  display: none !important;
  pointer-events: none !important;
}

@media (orientation: landscape) and (max-width: 1100px) and (max-height: 599px) {
  body#top[data-page='play'].phone-match-active #phone-reference-toggle:not([hidden]) {
    display: flex;
    position: fixed;
    right: var(--phone-reference-right, calc(var(--phone-controls-end, 8px) + var(--phone-reserve-width, 140px) + 8px));
    bottom: var(--phone-reference-bottom, var(--phone-footer-inset, 6px));
    width: var(--phone-reference-width, 76px);
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    padding: 6px 10px;
    box-sizing: border-box;
    border: 1px solid var(--phone-line, #6d4f7b);
    border-radius: 9px;
    background: var(--phone-surface, #20112d);
    color: var(--phone-ink, #f6f0ff);
    font: 700 11px/1.2 Orbitron, sans-serif;
    letter-spacing: 0;
    z-index: 58;
    cursor: pointer;
  }
}
