/* Burrow Watch page layout. Chrome (nav, dark toggle, donation block) comes from /experiments.css.
   The game fills the viewport below the nav + sponsor row; the donation block sits below it (scroll).
   Height offsets measured in Chromium 2026-11-20: nav 58px + sponsor row 50px + wrapper padding above and
   below (12px desktop, 8px under 540px) = 132px / 124px, so the whole game frame fits the first screen. */
.bw-main { width: 100%; padding: 12px 16px 0; }
#game {
  position: relative;            /* the game's DUCK button is absolutely positioned inside */
  width: 100%;
  height: calc(100vh - 132px);
  height: calc(100dvh - 132px);
  min-height: 360px;
  max-height: 1200px;
  overflow: hidden;
  border: 3px solid #2a1606;
  border-radius: 14px;
  background: #bfe6ff;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
[data-dark="true"] #game { border-color: #3e3b35; }
#game canvas { display: block; }
@media (max-width: 540px) {
  .bw-main { padding: 8px 10px 0; }
  #game { height: calc(100vh - 124px); height: calc(100dvh - 124px); }
}
/* Full-screen button (added by page.js only where the browser supports it). Same look as the game's DUCK button.
   Left edge, just under the score + combo. The top right belongs to the game's mute / music buttons and their toast,
   the middle to the title, the first-run coach and the end panel, the bottom to DASH / DUCK and the thumb that drags
   the meerkat. Its height follows the game's HUD scale (draw.js layout(): hs = clamp(min(W/960, H/540), 0.62, 3), or
   clamp(W/520, 0.62, 3) when the box is taller than wide), so it stays under the combo (which ends near 118 hs, at its
   x5 pulse) and, on a phone, above the start-screen title. #game is the size container for the cq units. */
#game { container-type: size; }
.bw-fs {
  --bw-hs: clamp(0.62px, min(100cqw / 960, 100cqh / 540), 3px);
  position: absolute; left: 12px; top: calc(122 * var(--bw-hs)); z-index: 2;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 4px solid #2a1606; border-radius: 50%;
  background: #ffd23a; color: #2a1606; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
@container (aspect-ratio < 1) { .bw-fs { --bw-hs: clamp(0.62px, 100cqw / 520, 3px); } }
.bw-fs svg { width: 22px; height: 22px; }
.bw-fs:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Two separate rules on purpose: one unknown pseudo-class would drop a combined rule. */
#game:fullscreen { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; }
#game:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; }
.bw-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
