/* Final signed-in mobile home polish 2026-09-15.
   Loaded after mobile-home-no-scroll.css and intentionally wins the mobile cascade. */
@media(max-width:900px){
  /* Main game actions: text only, no decorative symbols. */
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-play-btn::before,
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-computer-btn::before,
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-tournaments-btn::before,
  html body.v2-route-home.home-signed-in #homeBoardActions .home-invite-wrap>.btn::before,
  html body.v2-route-home.home-signed-in #homeBoardActions #homeInviteToggle::before{
    content:none!important;
    display:none!important;
    width:0!important;
    min-width:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
  }

  html body.v2-route-home.home-signed-in #homeBoardActions .hero-play-btn,
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-computer-btn,
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-tournaments-btn,
  html body.v2-route-home.home-signed-in #homeBoardActions .home-invite-wrap>.btn,
  html body.v2-route-home.home-signed-in #homeBoardActions #homeInviteToggle{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    padding:8px 12px!important;
    font:900 15px/1.15 Arial,sans-serif!important;
    text-align:center!important;
    white-space:normal!important;
  }

  html body.v2-route-home.home-signed-in #homeBoardActions .hero-play-btn>span,
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-computer-btn>span,
  html body.v2-route-home.home-signed-in #homeBoardActions .hero-tournaments-btn>span,
  html body.v2-route-home.home-signed-in #homeBoardActions .home-invite-wrap>.btn>span,
  html body.v2-route-home.home-signed-in #homeBoardActions #homeInviteToggle>span{
    margin:0!important;
    padding:0!important;
    transform:none!important;
    line-height:1.15!important;
  }

  /* Header: member identity above three equal, coordinated controls. */
  html body.v2-route-home.home-signed-in{
    grid-template-rows:126px 26px 26px minmax(0,1fr)!important;
  }

  html body.v2-route-home.home-signed-in .home-header{
    height:126px!important;
    min-height:126px!important;
    max-height:126px!important;
    padding:6px 0!important;
    overflow:visible!important;
    background:linear-gradient(180deg,rgba(69,66,62,0.99),rgba(69,66,62,0.99))!important;
    border:0!important;
    border-bottom:1px solid rgba(165,162,158,0.16)!important;
    box-shadow:none!important;
  }

  html body.v2-route-home.home-signed-in .home-header .compact-member-nav{
    width:min(calc(100% - 16px),680px)!important;
    height:114px!important;
    min-height:114px!important;
    max-height:114px!important;
    margin:0 auto!important;
    padding:7px!important;
    display:block!important;
    overflow:visible!important;
    border:1px solid rgba(165,162,158,0.46)!important;
    border-radius:21px!important;
    background:linear-gradient(145deg,rgba(69,66,62,0.96),rgba(69,66,62,0.96))!important;
    box-shadow:0 8px 22px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .nav-user,
  html body.v2-route-home.home-signed-in.home-admin-enabled .compact-member-nav .nav-user{
    width:100%!important;
    height:100px!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:58px 38px!important;
    gap:4px!important;
    align-items:stretch!important;
    overflow:visible!important;
    direction:rtl!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav #headerMember,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-member{
    display:flex!important;
    grid-column:1/-1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:58px!important;
    margin:0!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav #headerMember .header-member-link.header-tile,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-link.header-tile{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    margin:0!important;
    padding:5px 10px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.025)!important;
    box-shadow:inset 0 0 0 1px rgba(165,162,158,0.18)!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-avatar-wrap,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-avatar{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    border-radius:50%!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-avatar{
    border:1px solid rgba(165,162,158,0.58)!important;
    object-fit:cover!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-copy{
    width:auto!important;
    min-width:0!important;
    flex:1 1 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    overflow:hidden!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-copy>strong{
    min-width:0!important;
    max-width:none!important;
    flex:1 1 auto!important;
    margin:0!important;
    padding:0!important;
    color:#e2dcd3!important;
    font-size:17px!important;
    font-weight:900!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:right!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-points{
    min-width:66px!important;
    height:44px!important;
    margin:0!important;
    padding:3px 8px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    border-inline-start:1px solid rgba(165,162,158,0.24)!important;
    line-height:1!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-points small{
    display:block!important;
    margin:0!important;
    color:#b9c9c4!important;
    font-size:8px!important;
    line-height:1!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-points b{
    margin:0!important;
    padding:0!important;
    color:#e2dcd3!important;
    font-size:18px!important;
    font-weight:900!important;
    line-height:1!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .dashboard-link,
  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-notification-host,
  html body.v2-route-home.home-signed-in .compact-member-nav .nav-logout{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0 7px!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid rgba(165,162,158,0.44)!important;
    border-radius:12px!important;
    background:linear-gradient(145deg,rgba(69,66,62,0.84),rgba(69,66,62,0.84))!important;
    color:#e2dcd3!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
    font:800 11px/1 Arial,sans-serif!important;
    white-space:nowrap!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .dashboard-link,
  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link{
    grid-column:1!important;
    grid-row:2!important;
    display:inline-flex!important;
    gap:7px!important;
  }

  html body.v2-route-home.home-signed-in.home-admin-enabled .compact-member-nav .dashboard-link{
    display:none!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:2!important;
    grid-row:2!important;
    display:flex!important;
    flex:initial!important;
    padding:0!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0 7px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#e2dcd3!important;
    font:800 11px/1 Arial,sans-serif!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .nav-logout{
    grid-column:3!important;
    grid-row:2!important;
    display:inline-flex!important;
    flex:initial!important;
    gap:7px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .mobile-dashboard-link,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-tournaments{
    display:none!important;
  }

  /* Consistent line icons for administration, notifications and logout. */
  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link .header-tile-icon,
  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell .header-tile-icon{
    display:none!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link::before,
  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell::before,
  html body.v2-route-home.home-signed-in .compact-member-nav .nav-logout::before{
    content:""!important;
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    flex:0 0 18px!important;
    display:block!important;
    background:#e2dcd3!important;
    -webkit-mask-repeat:no-repeat!important;
    -webkit-mask-position:center!important;
    -webkit-mask-size:contain!important;
    mask-repeat:no-repeat!important;
    mask-position:center!important;
    mask-size:contain!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.83 2.83-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1.6 1.1L13.36 21H9.64l-.04-.5A1.7 1.7 0 0 0 8 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 0 0 3.6 15a1.7 1.7 0 0 0-1.1-1.6L2 13.36V9.64l.5-.04A1.7 1.7 0 0 0 3.6 8a1.7 1.7 0 0 0-.34-1.88l-.06-.06 2.83-2.83.06.06A1.7 1.7 0 0 0 8 3.6a1.7 1.7 0 0 0 1.6-1.1L9.64 2h3.72l.04.5A1.7 1.7 0 0 0 15 3.6a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.83 2.83-.06.06A1.7 1.7 0 0 0 19.4 8a1.7 1.7 0 0 0 1.1 1.6l.5.04v3.72l-.5.04A1.7 1.7 0 0 0 19.4 15Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.83 2.83-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1.6 1.1L13.36 21H9.64l-.04-.5A1.7 1.7 0 0 0 8 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 0 0 3.6 15a1.7 1.7 0 0 0-1.1-1.6L2 13.36V9.64l.5-.04A1.7 1.7 0 0 0 3.6 8a1.7 1.7 0 0 0-.34-1.88l-.06-.06 2.83-2.83.06.06A1.7 1.7 0 0 0 8 3.6a1.7 1.7 0 0 0 1.6-1.1L9.64 2h3.72l.04.5A1.7 1.7 0 0 0 15 3.6a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.83 2.83-.06.06A1.7 1.7 0 0 0 19.4 8a1.7 1.7 0 0 0 1.1 1.6l.5.04v3.72l-.5.04A1.7 1.7 0 0 0 19.4 15Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 21h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 21h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .nav-logout::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m16 17 5-5-5-5M21 12H9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m16 17 5-5-5-5M21 12H9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  }

  /* Visual label requested for the mobile control row. */
  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell .header-tile-label{
    font-size:0!important;
    line-height:1!important;
  }
  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell .header-tile-label::after{
    content:"التنبيهات"!important;
    font:800 11px/1 Arial,sans-serif!important;
    color:#e2dcd3!important;
  }
}

@media(max-width:430px){
  html body.v2-route-home.home-signed-in{
    grid-template-rows:122px 24px 24px minmax(0,1fr)!important;
  }

  html body.v2-route-home.home-signed-in .home-header{
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
  }

  html body.v2-route-home.home-signed-in .home-header .compact-member-nav{
    height:110px!important;
    min-height:110px!important;
    max-height:110px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .nav-user{
    height:96px!important;
    grid-template-rows:56px 36px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav #headerMember,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-member,
  html body.v2-route-home.home-signed-in .compact-member-nav #headerMember .header-member-link.header-tile{
    height:56px!important;
    min-height:56px!important;
    max-height:56px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-avatar-wrap,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-avatar{
    width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-copy>strong{font-size:15px!important}
  html body.v2-route-home.home-signed-in .compact-member-nav .header-member-points b{font-size:17px!important}

  html body.v2-route-home.home-signed-in .compact-member-nav .dashboard-link,
  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link,
  html body.v2-route-home.home-signed-in .compact-member-nav .header-notification-host,
  html body.v2-route-home.home-signed-in .compact-member-nav .nav-logout{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    font-size:10px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .home-admin-link::before,
  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell::before,
  html body.v2-route-home.home-signed-in .compact-member-nav .nav-logout::before{
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
    flex-basis:17px!important;
  }

  html body.v2-route-home.home-signed-in .compact-member-nav .site-notification-bell .header-tile-label::after{
    font-size:10px!important;
  }
}
