/* Android landscape authority layer. Keep every dashboard region distinct at 16:9. */
html.native-android,
html.native-android body {
  overflow: hidden !important;
}

html.native-android body.main-menu-scaled #mainMenuViewport {
  width: 1280px !important;
  height: 720px !important;
  min-height: 720px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .main-menu-card {
  width: 1280px !important;
  height: 720px !important;
  padding: 13px !important;
  gap: 11px !important;
  grid-template-rows: 70px minmax(0, 1.06fr) minmax(0, .94fr) !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .top-profile-bar {
  min-height: 70px !important;
  padding: 7px 11px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: hidden !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .brand-block {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  column-gap: 12px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .main-logo-wrap {
  width: 118px !important;
  height: 52px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .brand-block .eyebrow {
  font-size: 10px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .brand-subtitle {
  font-size: 13px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-actions {
  position: static !important;
  width: auto !important;
  max-width: 350px !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, auto) !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px !important;
  overflow: hidden !important;
  border: 1px solid rgba(122, 229, 255, .7) !important;
  border-radius: 14px !important;
  background: rgba(2, 28, 96, .58) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22) !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-actions .action-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-actions .action-btn img {
  width: 16px !important;
  height: 16px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .dashboard-grid {
  grid-template-columns: minmax(0, 2fr) 300px !important;
  gap: 11px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .hero-copy {
  width: 45% !important;
  padding: 15px 17px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .hero-copy .quest-label,
html.native-android body.main-menu-scaled #main-menu-screen .profile-summary-card .summary-label {
  min-height: 25px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .hero-copy h2 {
  margin: 5px 0 !important;
  font-size: 32px !important;
  line-height: 1.02 !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .hero-copy p {
  display: none !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .hero-perks {
  margin-top: 6px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-summary-card {
  padding: 12px !important;
  overflow: hidden !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .summary-top,
html.native-android body.main-menu-scaled #main-menu-screen .profile-name-row {
  margin-bottom: 5px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-summary-card #profileNicknameLarge {
  font-size: 27px !important;
  line-height: 1 !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-summary-card .selected-skin-panel {
  margin-top: 7px !important;
  padding: 7px !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  gap: 8px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-summary-card .selected-skin-preview {
  width: 50px !important;
  height: 50px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .profile-summary-card #selectedSkinName {
  font-size: 17px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .mode-grid {
  gap: 11px !important;
  padding: 10px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .mode-card {
  padding: 13px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .mode-card h2 {
  font-size: 30px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .mode-card .mode-action-btn {
  width: 230px !important;
  min-height: 43px !important;
  margin-top: 9px !important;
}

html.native-android body.main-menu-scaled #main-menu-screen .mode-card .mode-action-btn::before {
  font-size: 13px !important;
}

/* Compact Android arena controls: no collisions inside the center card. */
html.native-android body.view-game #board-center {
  min-width: 220px !important;
  width: 220px !important;
  padding: 14px 15px 13px !important;
  border-radius: 20px !important;
}

html.native-android body.view-game #dice-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

html.native-android body.view-game .game-round-label {
  margin: -29px auto 4px !important;
  padding: 6px 12px !important;
  font-size: 9px !important;
}

html.native-android body.view-game #dice {
  width: 66px !important;
  height: 66px !important;
  margin: 0 auto 3px !important;
  padding: 6px !important;
}

html.native-android body.view-game #turnDisplay {
  margin: 2px 0 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

html.native-android body.view-game #turnTimerDisplay {
  margin: 1px 0 !important;
  padding: 4px 9px !important;
  font-size: 10px !important;
}

html.native-android body.view-game #rollBtn {
  min-width: 164px !important;
  min-height: 38px !important;
  margin: 2px 0 0 !important;
  padding: 7px 12px !important;
  font-size: 11px !important;
}

html.native-android body.view-game #rollResult {
  min-height: 17px !important;
  margin: 2px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

/* Question dialogs should complement the board, not cover the whole arena. */
html.native-android body.view-game .swal2-popup:has(.swal-q-header) {
  width: min(760px, 76vw) !important;
  max-width: 76vw !important;
  max-height: 78dvh !important;
  padding: 12px 16px 14px !important;
  overflow: hidden !important;
  border: 3px solid #75dfff !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 0 #173a8e, 0 24px 55px rgba(0,0,0,.42) !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) .swal2-title {
  margin: 0 0 6px !important;
  padding: 3px !important;
  font-size: 25px !important;
  line-height: 1.1 !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) .swal2-html-container {
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) .swal-q-header {
  margin: 0 0 5px !important;
  padding: 6px 10px !important;
  font-size: 15px !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) #timer,
html.native-android body.view-game .swal2-popup:has(.swal-q-header) #readingTimer,
html.native-android body.view-game .swal2-popup:has(.swal-q-header) #listeningTimer {
  margin: 0 0 3px !important;
  padding: 4px 9px !important;
  font-size: 14px !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) #progressBarContainer {
  width: 86% !important;
  height: 7px !important;
  margin: 5px auto !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) .swal-q-text {
  margin: 7px 0 !important;
  padding: 0 4px !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) .answer-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 7px !important;
  padding: 0 !important;
}

html.native-android body.view-game .swal2-popup:has(.swal-q-header) .swal-option-btn {
  min-height: 42px !important;
  padding: 7px 5px !important;
  border-width: 2px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
}

html.native-android body.view-game:has(.swal2-popup .swal-q-header) #chatBox {
  display: none !important;
}

/* Android commerce pages: clear hierarchy and stable one-screen rows. */
html.native-android body:not(.view-game) #shopModal > .shop-card {
  width: min(1180px, 96vw) !important;
  height: min(720px, 94dvh) !important;
  grid-template-rows: 68px 58px 24px 90px 24px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 12px !important;
}

html.native-android body:not(.view-game) #shopModal .shop-header,
html.native-android body:not(.view-game) #topupModal .shop-header {
  min-height: 0 !important;
  height: 68px !important;
  padding: 8px 150px 8px 13px !important;
  overflow: hidden !important;
}

html.native-android body:not(.view-game) #shopModal .shop-header > div,
html.native-android body:not(.view-game) #topupModal .shop-header > div {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html.native-android body:not(.view-game) #shopModal .shop-header::before,
html.native-android body:not(.view-game) #topupModal .shop-header::before,
html.native-android body:not(.view-game) #shopModal .shop-header p,
html.native-android body:not(.view-game) #topupModal .shop-header p {
  display: none !important;
}

html.native-android body:not(.view-game) #shopModal .panel-kicker,
html.native-android body:not(.view-game) #topupModal .panel-kicker {
  flex: 0 0 auto !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

html.native-android body:not(.view-game) #shopModal .shop-header h2,
html.native-android body:not(.view-game) #topupModal .shop-header h2 {
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html.native-android body:not(.view-game) #shopModal a#closeShopBtn,
html.native-android body:not(.view-game) #topupModal a#closeTopUpBtn {
  top: 13px !important;
  right: 13px !important;
  width: 122px !important;
  min-width: 122px !important;
  height: 40px !important;
  min-height: 40px !important;
  font-size: 12px !important;
}

html.native-android body:not(.view-game) #shopModal .shop-balance-row {
  height: 58px !important;
  margin: 0 !important;
  padding: 6px !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
  gap: 8px !important;
  border: 2px solid rgba(112,229,255,.55) !important;
  border-radius: 16px !important;
  background: linear-gradient(90deg,rgba(4,32,102,.82),rgba(46,35,143,.78)) !important;
}

html.native-android body:not(.view-game) #shopModal .coin-line {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  border: 1px solid rgba(255,255,255,.38) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 13px !important;
  background: rgba(255,255,255,.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2) !important;
}

html.native-android body:not(.view-game) #shopModal .coin-line strong {
  margin-left: auto !important;
  color: #ffe65a !important;
  font-size: 20px !important;
}

html.native-android body:not(.view-game) #shopModal .shop-topup-inline {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

html.native-android body:not(.view-game) #shopModal .shop-section-title {
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  font-size: 16px !important;
  letter-spacing: .04em !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid.special-grid {
  height: 90px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid .special-item-card {
  width: auto !important;
  height: 86px !important;
  padding: 8px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 70px !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 3px 8px !important;
  align-items: center !important;
  text-align: left !important;
  border-radius: 15px !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid .special-icon {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid .special-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid .special-copy h4 {
  overflow: hidden !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid .special-copy small {
  font-size: 9px !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid .avatar-price {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
}

html.native-android body:not(.view-game) #shopModal #specialItemGrid button {
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
  width: 70px !important;
  min-height: 32px !important;
  align-self: center !important;
  padding: 3px !important;
  font-size: 10px !important;
}

html.native-android body:not(.view-game) #topupModal > .topup-card {
  width: min(1040px, 96vw) !important;
  height: min(700px, 94dvh) !important;
  grid-template-rows: 68px 62px minmax(0, 1fr) 38px !important;
  gap: 9px !important;
  padding: 12px !important;
}
