/* Desktop player-home geometry only. Existing theme declarations and all
   mobile/tablet rules remain authoritative below the 901px breakpoint. */
@media screen and (min-width: 901px) {
  /* The localized carousel artwork is landscape. Keep the full image visible
     without making the entire first row abnormally tall. */
  html body #root .app-shell.player-shell main .hero.campaign-carousel-v5-live {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 2.28 / 1 !important;
  }

  html body #root .app-shell.player-shell main .hero.campaign-carousel-v5-live
    .campaign-carousel-v5-picture img {
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Keep the desktop account toolbar compact and make every control share the
     same vertical rhythm. */
  html body #root .app-shell.player-shell > .main-area > .topbar {
    min-height: 72px !important;
    height: 72px !important;
    padding: 9px 22px !important;
  }

  html body #root .app-shell.player-shell .topbar .top-actions {
    gap: 9px !important;
    align-items: center !important;
  }

  html body #root .app-shell.player-shell .topbar :is(
    .verified-pill,
    .game-currency-switch,
    .balance-pill,
    .primary.compact,
    .language-select
  ) {
    box-sizing: border-box !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    border-radius: 14px !important;
  }

  html body #root .app-shell.player-shell .topbar .verified-pill {
    min-width: 0 !important;
    padding-inline: 14px !important;
    font-size: 16px !important;
  }

  html body #root .app-shell.player-shell .topbar .game-currency-switch {
    min-width: 94px !important;
    padding: 6px 12px !important;
  }

  html body #root .app-shell.player-shell .topbar .balance-pill {
    min-width: 190px !important;
    padding: 7px 16px !important;
  }

  html body #root .app-shell.player-shell .topbar .primary.compact {
    min-width: 116px !important;
    padding-inline: 17px !important;
    font-size: 17px !important;
  }

  html body #root .app-shell.player-shell .topbar .icon-button.notification-top-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  html body #root .app-shell.player-shell .topbar .language-select {
    width: 122px !important;
    min-width: 122px !important;
    max-width: 122px !important;
    padding-inline: 12px !important;
    gap: 7px !important;
    overflow: hidden !important;
  }

  html body #root .app-shell.player-shell .topbar .language-current {
    min-width: 0 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  html body #root .app-shell.player-shell .topbar .account-menu-wrap,
  html body #root .app-shell.player-shell .topbar .avatar {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  html body #root .app-shell.player-shell .topbar .avatar-menu-badge {
    right: -2px !important;
    bottom: -2px !important;
    width: 20px !important;
    height: 20px !important;
  }

  /* Match the wallet summary to the corrected landscape hero. */
  html body #root .app-shell.player-shell .hero-grid > .wallet-summary {
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 17px 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 1.05fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 16px !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-title {
    width: auto !important;
    margin: 0 !important;
    padding: 0 16px 0 0 !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-title > svg {
    display: none !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-title strong {
    margin: 5px 0 !important;
    font-size: 25px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-actions {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    border: 0 !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-actions button {
    min-width: 0 !important;
    min-height: 72px !important;
    height: 72px !important;
    padding: 7px 3px !important;
    gap: 6px !important;
    border-radius: 11px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-actions .action-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .wallet-actions .action-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  html body #root .app-shell.player-shell .hero-grid > .wallet-summary .quick-transfer {
    display: none !important;
  }

  /* Compact the two desktop growth cards and keep their glyphs centered. */
  html body #root .app-shell.player-shell .home-growth-actions .authenticated-benefit-card {
    min-height: 82px !important;
    height: 82px !important;
    padding: 10px 18px !important;
    grid-template-columns: 48px minmax(0, 1fr) 20px !important;
    gap: 14px !important;
  }

  html body #root .app-shell.player-shell .home-growth-actions .authenticated-benefit-icon {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    overflow: visible !important;
  }

  html body #root .app-shell.player-shell .home-growth-actions .authenticated-agent-card
    .authenticated-benefit-icon {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  html body #root .app-shell.player-shell .home-growth-actions .authenticated-agent-card
    .authenticated-benefit-icon > svg {
    position: static !important;
    inset: auto !important;
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    transform: none !important;
    filter: none !important;
  }

  html body #root .app-shell.player-shell .home-growth-actions .authenticated-benefit-copy strong {
    font-size: 17px !important;
  }

  html body #root .app-shell.player-shell .home-growth-actions .authenticated-benefit-copy small {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
}
