/* Page chrome for game-sims.html only. Viewer rules live in sk-gamesim.css under .skgs.
   Do not put these rules in lab.css. */
.gs-page { margin-bottom: 2.5rem; }
.gs-page .gs-modes { display: flex; gap: 6px; flex-wrap: wrap; margin: .7rem 0 .35rem; }
.gs-page .gs-modes button {
  background: #111; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 8px 16px; font: 800 13px/1 system-ui, sans-serif;
  letter-spacing: .04em; min-height: 38px; cursor: pointer;
}
.gs-page .gs-modes button[aria-selected="true"],
.gs-page .gs-modes button.on { background: #e4002b; border-color: #e4002b; color: #fff; }
.gs-page .gs-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.gs-page .gs-pick label { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.gs-page .gs-pick select {
  background: #111; color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; padding: 8px 10px; font: inherit; min-height: 38px; max-width: 100%;
}
.gs-page .gs-pick[hidden], .gs-page .gs-credit[hidden] { display: none; }
.gs-page .gs-src { color: rgba(255,255,255,.5); font-size: 12px; }
.gs-page .gs-credit { color: rgba(255,255,255,.55); font-size: 12px; margin: .8rem 0 0; }
.gs-page .gs-credit a { color: rgba(255,255,255,.8); }
.gs-page .gs-status { color: rgba(255,255,255,.7); font-size: .9rem; margin: .6rem 0; }
.gs-page .gs-status.gs-error { color: #ffb4b4; }
.gs-page #game-sim { min-height: 12rem; }
.gs-page #game-sim[aria-busy="true"] { opacity: .7; }
@media (max-width: 430px) {
  .gs-page .gs-pick select { width: 100%; }
}

/* The site tab bar (Start/Sit, FA, Home, More) stays visible at the bottom.
   phone-tabs.js forces it to display:grid at every width via an inline style, which
   overrides lab.css hiding it at 820px+ and also drops body padding / #labBotPad.
   Keep the bar; scroll the page in the space above it so the field and controls
   are never covered — including in viewport and full-page screenshots. */
html, body {
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100dvh;
  padding-bottom: 0 !important;
}
nav.top {
  flex: 0 0 auto;
  order: 1;
}
.wrap.gs-page {
  flex: 1 1 auto !important;
  order: 2;
  min-height: 0 !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-bottom: 0 !important;
  padding-bottom: 1.5rem;
  scroll-padding-bottom: 1rem;
}
nav.bot {
  position: relative !important;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  order: 3;
  width: 100%;
}
#labBotPad {
  display: none !important;
  height: 0 !important;
  overflow: hidden;
}
