/* The hosted runtime contains a game only; WebTug owns its page navigation. */
html,body{min-height:0!important;scroll-behavior:auto;background:#f1f7fc}
body{margin:0;padding:clamp(12px,2.2vw,26px);font-family:Arial,'DejaVu Sans',sans-serif}
#game-view{width:100%;max-width:1280px;margin:0 auto;padding:0}
#game-mount{min-width:0}
#standalone-navigation{max-width:1280px;margin:0 auto 22px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:10px 0 20px;border-bottom:1px solid #c4d9e9;font-size:14px;font-weight:700}
#standalone-navigation a{color:#21557f;text-decoration:underline;text-underline-offset:4px}
.embed-error{max-width:680px;padding:24px;margin:0 auto;border:1px solid #c4d9e9;border-radius:14px;background:#f8fcff;line-height:1.7}
.embed-error a{text-decoration:underline;font-weight:700}
.toast{z-index:100000}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Let each illustrated arena run to the edge of the embedded player. */
body:has(.pf-game), body:has(.ll-game) { padding:0; }
body:has(.pf-game) { background:#050a15; }
body:has(.pf-game) #game-view { max-width:1680px; }
body:has(.ll-game) { background:#e3fbed; }
body:has(.pf-game, .ll-game) #standalone-navigation { margin:0 auto; padding:8px 16px; }
body:has(.pf-game) #standalone-navigation { color:#e0eaf9; border-color:#243247; }
body:has(.pf-game) #standalone-navigation a { color:inherit; }

@media (orientation: landscape) and (max-height: 500px) {
  body:has(webtug-player-count) { --pf-presence-space:28px; }
  body:has(#standalone-navigation) { --pf-navigation-space:34px; }
  body:has(webtug-player-count, #standalone-navigation) .pf-stage {
    height:min(calc(100dvh - var(--pf-presence-space, 0px) - var(--pf-navigation-space, 0px)),61cqw);
  }
}
