/**
 * Fallback layout when html.site-shell--android-phone is set (see android-phone-viewport.js).
 * Only applies on Android phones; does not change iPhone, tablet, or desktop rules.
 */

html.site-shell--android-phone {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Word / Number Search — override fixed 831px desktop shell */
html.site-shell--android-phone main.main-content:has(.word-search-page) {
  min-height: 0;
}

html.site-shell--android-phone .word-search-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.5rem clamp(0.45rem, 2.2vw, 0.85rem);
  overflow-x: hidden;
}

html.site-shell--android-phone .word-search-scale-outer {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

html.site-shell--android-phone .word-search-game-shell {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: min(586px, var(--ws-shell-fit-height, 586px), calc(100dvh - 10.5rem - env(safe-area-inset-top, 0px)));
  flex: 1 1 auto;
  margin-inline: auto;
}

html.site-shell--android-phone .word-search-game-shell__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-rows: none;
}

html.site-shell--android-phone .word-search-game-shell__expand-btn {
  display: inline-flex;
}

/* Fill-Ins */
html.site-shell--android-phone .word-search-game-shell.word-search-game-shell--fill-ins {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
}

/* Zip */
html.site-shell--android-phone .zip-shell {
  width: 100%;
  max-width: 100%;
}

html.site-shell--android-phone .zip-timer-top {
  width: 100%;
  min-width: 0;
}

/* Queens */
html.site-shell--android-phone .qg-shell {
  width: 100%;
  max-width: 100%;
}

/* Color Rush */
html.site-shell--android-phone .color-rush-shell-wrap {
  width: 100%;
  max-width: 100%;
}

html.site-shell--android-phone .color-rush-shell {
  width: 100%;
  max-width: 100%;
}
