.ds-guest-head-home { display: none; }
/* Mobile Home R3: scoped landing layout and silver counters. Central/desktop protected. */
@media (min-width: 861px) {
  .ds-mobile-home, .ds-mobile-top-actions { display: none !important; }
}
@media (max-width: 860px) {
  .ds-central-shell-behind-mobile-home { display: none; }
  /* Guest header uses one row: menu, DR logo, centered Home, login. */
  .ds-topline:not(.ds-auth-topline) .ds-shell-head-row { grid-template-columns: 44px 52px minmax(44px, 1fr) 78px; gap: 7px; }
  .ds-topline:not(.ds-auth-topline) .ds-shell-head-row > .ds-nav-toggle { grid-column: 1; grid-row: 1; }
  .ds-topline:not(.ds-auth-topline) .ds-logo-row { grid-column: 2; grid-row: 1; }
  .ds-topline:not(.ds-auth-topline) .ds-login-zone { grid-column: 4; grid-row: 1; }
  .ds-guest-head-home { grid-column: 3; grid-row: 1; justify-self: center; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: #e2f4ff; text-decoration: none; }
  .ds-guest-head-home svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ds-guest-head-home:focus-visible { outline: 3px solid #95ddff; outline-offset: 2px; }

  /* Home alone does not reserve an entire screen below its actual content. */
  .ds-platform-frame:has(.ds-mobile-home) { min-height: 0; padding-bottom: 0; }
  main.ds-content-frame.ds-mobile-main-content:has(.ds-mobile-home) {
    min-height: 0;
    grid-template-rows: auto;
    padding-top: 26px;
  }
  main.ds-content-frame.ds-mobile-main-content:has(.ds-mobile-home) > .ds-content-surface {
    min-height: 0;
    background: linear-gradient(135deg, rgba(58,83,100,.42), rgba(17,39,57,.80) 40%, rgba(3,11,21,.98) 100%);
  }
  .ds-page-shell:has(.ds-mobile-home) > .ds-legal-footer {
    margin: 8px auto 0;
    padding: 0 12px 12px;
  }
  .ds-mobile-home { width: 100%; max-width: 100%; padding: 16px 12px 14px; box-sizing: border-box; }
  .ds-mobile-icons-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .ds-mobile-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
  .ds-mobile-home-tile { position: relative; min-width: 0; min-height: 106px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 8px; box-sizing: border-box; border: 1px solid rgba(144,205,242,.38); border-radius: 13px; background: linear-gradient(145deg,rgba(54,107,145,.44),rgba(7,19,34,.94)); color: #e8f7ff; text-decoration: none; box-shadow: inset 0 1px rgba(255,255,255,.16); }
  .ds-mobile-home-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ds-mobile-home-tile:focus-visible, .ds-mobile-head-icon:focus-visible, .ds-mobile-home-about summary:focus-visible { outline: 3px solid #95ddff; outline-offset: 3px; }
  .ds-mobile-home-symbol { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
  .ds-mobile-home-symbol svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ds-mobile-home-label { display: block; width: 100%; overflow-wrap: anywhere; text-align: center; font-size: .88rem; font-weight: 600; }
  .ds-mobile-home-badge { position: absolute; inset-block-start: 8px; inset-inline-end: 9px; width: 32px; height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #f1f5f8; border-radius: 50%; background: radial-gradient(circle at 27% 20%, #fff 0%, #e9eff3 24%, #bdc9d2 48%, #81929e 76%, #596b78 100%); color: #17232d; font: 700 12px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; box-shadow: inset -2px -3px 5px #233b4d33, inset 2px 3px 4px #fff9, 0 2px 6px #0008; }
  .ds-mobile-home-badge[hidden] { display: none; }
  .ds-mobile-home-badge[data-overflow="true"] { font-size: 10px; }
  .ds-mobile-home-about { padding: 12px; border: 1px solid rgba(144,205,242,.38); border-radius: 12px; background: rgba(8,27,44,.9); }
  .ds-mobile-home-about summary { cursor: pointer; font-size: 1rem; font-weight: 700; min-height: 36px; }
  .ds-mobile-home-about-text { font-size: .88rem; line-height: 1.5; }
  .ds-mobile-home-guest-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
  .ds-mobile-home-guest-actions .ds-module-primary-button { width: 100%; min-height: 44px; padding: 5px; box-sizing: border-box; }
  .ds-mobile-home-promo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0 4px; }
  .ds-mobile-home-promo .ds-central-side-box { min-width: 0; margin: 0; }
  .ds-mobile-home-promo .ds-central-gif-box { grid-column: 1 / -1; width: min(100%, 270px); justify-self: center; aspect-ratio: 1 / 1; }
  .ds-mobile-home-promo .ds-central-gif-box img { object-fit: contain; }
  .ds-mobile-home-promo .ds-central-ad-box { aspect-ratio: 1.35 / 1; padding: 7px; text-align: center; }
  .ds-mobile-home-promo .ds-central-ad-box span { font-size: .73rem; letter-spacing: .04em; }

  /* Separate home/profile/create targets from the power button. Keep the menu toggle. */
  .ds-auth-shell-bar { grid-template-columns: 52px minmax(0,1fr); grid-template-rows: 48px auto; column-gap: 5px; }
  .ds-auth-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .ds-auth-shell-bar .ds-nav-toggle { grid-column: 1; grid-row: 2; justify-self: start; }
  .ds-global-search { grid-column: 2; grid-row: 2; }
  .ds-auth-shell-logout { display: none; }
  .ds-mobile-top-actions { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 10px; align-items: center; min-width: 0; }
  .ds-mobile-top-center { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 2vw, 15px); min-width: 0; }
  .ds-mobile-head-icon { appearance: none; border: none; background: transparent; padding: 4px; width: 44px; height: 44px; color: #e2f4ff; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; }
  .ds-mobile-head-icon svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ds-mobile-head-avatar { overflow: hidden; border-radius: 50%; }
  .ds-mobile-head-avatar img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
  .ds-mobile-head-logout { margin: 0; display: flex; align-items: center; justify-content: flex-end; }
  .ds-mobile-quick-create { position: relative; }
  .ds-mobile-quick-create summary { list-style: none; }
  .ds-mobile-quick-create summary::-webkit-details-marker { display: none; }
  .ds-mobile-quick-menu { position: absolute; right: 0; top: 44px; z-index: 120; min-width: 185px; display: grid; gap: 1px; padding: 5px; border: 1px solid #4082ac; border-radius: 10px; background: #091d2d; box-shadow: 0 12px 26px #0009; }
  .ds-mobile-quick-menu a { min-height: 44px; display: flex; align-items: center; color: #fff; padding: 5px 10px; text-decoration: none; }
  .ds-mobile-quick-menu a:focus-visible { outline: 2px solid #a6e2ff; }
}
@media (max-width: 365px) {
  .ds-mobile-home { padding-inline: 8px; }
  .ds-mobile-home-grid, .ds-mobile-home-promo { gap: 8px; }
  .ds-topline:not(.ds-auth-topline) .ds-shell-head-row { grid-template-columns: 40px 48px minmax(40px, 1fr) 76px; gap: 5px; }
  .ds-mobile-home-badge { inset-block-start: 7px; inset-inline-end: 7px; }
  .ds-mobile-head-icon { width: 40px; height: 44px; }
  .ds-mobile-top-actions { grid-template-columns: minmax(0,1fr) 40px; gap: 5px; }
  .ds-mobile-top-center { gap: 3px; }
}
