/* word-chain - fullscreen fit. Paired with fullscreen-fit.js, which sets --fs-zoom (how much
   the whole play column is scaled so it fills the free height) and --fs-base (its natural
   width). Scoped to html.pip-immersive: normal play and leaving fullscreen are untouched.
   The shell lifts the 420px page cap, so without this the column was a thin strip lost in a wide screen. */
html.pip-immersive .game-wrap.pip-stage > .hud,
html.pip-immersive .game-wrap.pip-stage > #status,
html.pip-immersive .game-wrap.pip-stage > #card-grid,
html.pip-immersive .game-wrap.pip-stage > #color-btns {
  zoom: var(--fs-zoom, 1); width: 100%; max-width: var(--fs-base, 460px); margin-left: auto; margin-right: auto; box-sizing: border-box;
}/* word-chain - fullscreen fit. Paired with fullscreen-fit.js, which sets --fs-zoom (how much
   the whole play column is scaled so it fills the free height) and --fs-base (its natural
   width). Scoped to html.pip-native: normal play and leaving fullscreen are untouched.
   The shell lifts the 420px page cap, so without this the column was a thin strip lost in a wide screen. */
html.pip-native .game-wrap.pip-stage > .hud,
html.pip-native .game-wrap.pip-stage > #status,
html.pip-native .game-wrap.pip-stage > #card-grid,
html.pip-native .game-wrap.pip-stage > #color-btns {
  zoom: var(--fs-zoom, 1); width: 100%; max-width: var(--fs-base, 460px); margin-left: auto; margin-right: auto; box-sizing: border-box;
}
html.pip-immersive .game-wrap.pip-stage > .hud { padding-top: .1rem; padding-bottom: .1rem; }
html.pip-native .game-wrap.pip-stage > .hud { padding-top: .1rem; padding-bottom: .1rem; }
html.pip-immersive .game-wrap.pip-stage > #status { min-height: 1.3em; margin: .15rem auto; }
html.pip-native .game-wrap.pip-stage > #status { min-height: 1.3em; margin: .15rem auto; }
html.pip-immersive .game-wrap.pip-stage > #card-grid { margin-top: .25rem; margin-bottom: .25rem; }
html.pip-native .game-wrap.pip-stage > #card-grid { margin-top: .25rem; margin-bottom: .25rem; }
html.pip-immersive .game-wrap.pip-stage > #color-btns { margin: .35rem auto; }
html.pip-native .game-wrap.pip-stage > #color-btns { margin: .35rem auto; }
html.pip-immersive .wc-about { max-width: var(--fs-base, 460px); margin-left: auto; margin-right: auto; }
html.pip-native .wc-about { max-width: var(--fs-base, 460px); margin-left: auto; margin-right: auto; }
html.pip-immersive .game-wrap.pip-stage > .wc-tip { display: none; }
html.pip-native .game-wrap.pip-stage > .wc-tip { display: none; }
html.pip-immersive .game-wrap.pip-stage > .wc-about,
html.pip-immersive .game-wrap.pip-stage > .wc-loop,
html.pip-immersive .game-wrap.pip-stage > .pip-actions { display: none; }
html.pip-native .game-wrap.pip-stage > .wc-about,
html.pip-native .game-wrap.pip-stage > .wc-loop,
html.pip-native .game-wrap.pip-stage > .pip-actions { display: none; }

/* full screen v2: hide chrome, fill the free height, side-by-side board in landscape */
html:is(.pip-immersive,.pip-native) .game-wrap.pip-stage { padding: .4rem .5rem; }
html:is(.pip-immersive,.pip-native) .game-wrap.pip-stage > .game-title,
html:is(.pip-immersive,.pip-native) .game-wrap.pip-stage > .facts { display: none; }
html:is(.pip-immersive,.pip-native) .game-wrap.pip-stage > #card-grid { display: flex; flex-direction: column; min-height: calc(var(--fs-grow, 0px) + 0px); }
html:is(.pip-immersive,.pip-native) #card-grid > .wc { flex: 1 1 auto; grid-template-rows: auto auto minmax(0, 1fr); }
html:is(.pip-immersive,.pip-native) .wc:has(.wc-panel:not([hidden])) { min-height: 0; }
html:is(.pip-immersive,.pip-native) .wc-stage { align-content: center; }
html:is(.pip-immersive,.pip-native) .wc-letter { font-size: 5.5rem; }
html:is(.pip-immersive,.pip-native) .wc-hint-fix, html:is(.pip-immersive,.pip-native) #wc-hint { min-height: 44px; }
@media (orientation: landscape) {
  html:is(.pip-immersive,.pip-native) .wc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
  html:is(.pip-immersive,.pip-native) .wc-stats { grid-column: 1; grid-row: 1; }
  html:is(.pip-immersive,.pip-native) .wc-chain { grid-column: 1; grid-row: 2; align-self: start; }
  html:is(.pip-immersive,.pip-native) .wc-stage { grid-column: 2; grid-row: 1 / span 2; }
  html:is(.pip-immersive,.pip-native) .wc-letter { font-size: 4rem; }
  html:is(.pip-immersive,.pip-native) .game-wrap.pip-stage > .hud,
  html:is(.pip-immersive,.pip-native) .game-wrap.pip-stage > #status { margin-top: .1rem; margin-bottom: .1rem; }
  html:is(.pip-immersive,.pip-native) .wc-panel { gap: 6px; padding: 10px; }
  html:is(.pip-immersive,.pip-native) .wc-panel p { display: none; }
  html:is(.pip-immersive,.pip-native) .wc-panel .wc-big { font-size: 1.8rem; }
}
