/* fish-tank fullscreen: paired with fullscreen-fit.js, which sizes #tank-wrap and the canvas to the
   free space (the game redraws its world at that size, so nothing is scaled or blurry). Applies only
   while the shell's Full screen is on (html.pip-immersive: native Fullscreen API and iPhone modes). */
html.pip-immersive .game-wrap { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
html.pip-immersive .game-wrap .howto,
html.pip-immersive .game-wrap .facts,
html.pip-immersive .game-wrap .hd-about,
html.pip-immersive .game-wrap #ft-planner,
html.pip-immersive .game-wrap .ft-planner,
html.pip-immersive .ad-well, html.pip-immersive .playyard-ad, html.pip-immersive .below-content { display: none !important; }
html.pip-immersive .game-wrap #tank-wrap { flex: 0 0 auto; max-width: none; margin: 0 auto; }
html.pip-immersive .game-wrap #game-canvas { max-width: none !important; display: block; }
html.pip-immersive .game-wrap .hud { margin-bottom: .2rem; width: 100%; max-width: 400px; justify-content: center; flex-wrap: wrap; gap: .4rem; }
html.pip-immersive .game-wrap .hud .btn { min-height: 44px; min-width: 44px; }
html.pip-immersive .game-wrap .water-row { width: 100%; max-width: 400px; margin-bottom: .2rem; }
html.pip-immersive .game-wrap #status { width: 100%; max-width: 400px; height: 1.4em; min-height: 0; margin-bottom: .2rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.pip-immersive .game-wrap .game-title { display: none; }

/* Wide screens and phones on their side: tank left, HUD, water and status on the right. */
html.pip-immersive .game-wrap.fs-wide {
  display: grid; grid-template-columns: auto 300px; column-gap: 16px; align-content: center; justify-content: center; align-items: center;
}
html.pip-immersive .game-wrap.fs-wide > * { grid-column: 2; min-width: 0; max-width: none; width: auto; }
html.pip-immersive .game-wrap.fs-wide > #tank-wrap { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
html.pip-immersive .game-wrap.fs-wide .hud, html.pip-immersive .game-wrap.fs-wide .water-row, html.pip-immersive .game-wrap.fs-wide #status { max-width: 300px; width: 100%; }
