/* Narrow fixes for the verified D12 homepage defects; the approved layout remains unchanged. */
body.d12-reference-shell .d12-reference-hero-mask,
body.d12-reference-shell .d12-reference-hero-mask::before {
  display: none !important;
  content: none !important;
}

body.d12-reference-shell .hero .brand {
  top: 13px !important;
}

body.d12-reference-shell .hero .brand h1,
body.d12-reference-shell .hero .brand p {
  display: block !important;
}

body.d12-reference-shell .adsense-frame[data-ad-empty] {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  background: linear-gradient(135deg, #fff9ec, #efdbad) !important;
}

body.d12-reference-shell #view-home .player-level {
  height: auto !important;
  min-height: 46px !important;
  overflow: visible !important;
}

body.d12-reference-shell #view-home .level-heading {
  flex-wrap: wrap !important;
}

body.d12-reference-shell #view-home .level-heading [data-season-name] {
  min-width: 0 !important;
  text-align: end !important;
  overflow-wrap: anywhere !important;
  font-size: 7.5px !important;
}

body.d12-reference-shell #view-home [data-season-message] {
  font: 8px/1.2 Georgia, serif !important;
  overflow-wrap: anywhere !important;
}

body.d12-reference-shell .nav-marketplace-state {
  display: block !important;
  max-width: 100% !important;
  color: #765e3c !important;
  font: 700 7px/1.1 Georgia, serif !important;
  white-space: normal !important;
}

@media (max-width: 430px) {
  body.d12-reference-shell.roman-imperial-page .app {
    height: calc(100dvh - 190px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 190px - env(safe-area-inset-bottom)) !important;
  }
}

@media (max-height: 700px) and (max-width: 430px) {
  body.d12-reference-shell .rise-bottom-nav.roman-nav.d12-home-bottom {
    height: calc(166px + env(safe-area-inset-bottom)) !important;
  }
  body.d12-reference-shell.roman-imperial-page .app {
    height: calc(100dvh - 166px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 166px - env(safe-area-inset-bottom)) !important;
  }
}
