/* Keep an active match open while a small device returns to landscape. */
html[data-play-device]:not([data-play-device='supported']) body#top[data-page='play'] :is(#setup-screen, #game-screen, .modal, #log-panel, #left-sidebar, #rb-sidebar, #tutorial-overlay, #game-site-audio, #game-site-mode) { display: none !important; }
html[data-play-device]:not([data-play-device='supported']) body#top[data-page='play'] #mobile-blocker {
  display: flex !important; position: fixed; inset: var(--site-header-height) 0 0;
  height: auto; padding: 24px; align-items: center; justify-content: center; z-index: 1000;
  background: #17151f; color: #eeeae3;
}
html[data-theme='light'][data-play-device]:not([data-play-device='supported']) body#top[data-page='play'] #mobile-blocker { background: #e6ebe5; color: #1b2923; }
.device-notice-inner { width: min(100%, 480px); text-align: center; }
#device-notice-title { margin: 0 0 20px; font: 700 clamp(23px, 4vw, 30px)/1.3 Orbitron, sans-serif; }
#device-notice-copy { margin: 0 auto 28px; max-width: 390px; font: 400 16px/1.65 Inter, sans-serif; }
.device-notice-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; background: #c9ff39; color: #19220f; text-decoration: none; font: 700 11px/1.4 Orbitron, sans-serif; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.device-notice-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-height: 400px) {
  #device-notice-title { margin-bottom: 12px; font-size: 24px; }
  #device-notice-copy { margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
}
