#desktop-warning {
  box-sizing:border-box; width:min(480px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px); overflow:auto; padding:24px;
  margin:auto; border:2px solid #4eced5; border-radius:16px;
  background:#09212e; color:#dbffff; font:16px/1.5 Arial,sans-serif;
  box-shadow:0 16px 60px #0008;
}
#desktop-warning::backdrop { background:#000b; }
#desktop-warning h2 { margin:0 0 12px; font-size:24px; color:inherit; }
#desktop-warning p { margin:0 0 20px; color:inherit; }
#desktop-warning form { display:flex; flex-wrap:wrap; gap:12px; margin:0; }
#desktop-warning button { cursor:pointer; padding:10px 14px; border:1px solid #4eced5; border-radius:8px; background:transparent; color:inherit; font:inherit; }
#desktop-warning button[value=dismiss] { background:#a2eeea; color:#07222a; }
#desktop-warning[data-game=tk] { background:#f3dfa6; color:#42120b; border-color:#966638; }
#desktop-warning[data-game=tk] button { border-color:#966638; }
#desktop-warning[data-game=tk] button[value=dismiss] { background:#7c3020; color:#fff1c2; }
/* Keep a wide desktop game from expanding the mobile viewport behind the modal. */
html:has(#desktop-warning[open]),
body:has(#desktop-warning[open]) { overflow:hidden; max-width:100vw; }
