/* Keep intrinsic page dimensions from enlarging the reader's grid tracks. */
body {
  height: 100vh;
  height: 100dvh;
  grid-template-rows: 58px minmax(0, 1fr) 58px;
}
header, main, footer { min-width: 0; }
header {
  grid-template-columns: auto 44px minmax(0, 1fr) 44px;
  gap: 6px;
}
.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d9b45b99;
  border-radius: 8px;
  background: #0b2822;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.home-link:hover { background: #16443a; }
.home-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
main { overflow: hidden; }
.stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
#page {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: transparent;
}
