/* Member dashboard removed from the public home interface. */
#v5-home-dashboard,.v5-home-dashboard{display:none!important}

/* Mobile home final layout 2026-09-14
   Keep desktop untouched. */
@media(max-width:900px){
  /* Keep both tickers directly under the header in the intended order. */
  body .home-header{order:1!important}
  body #welcomeTicker{order:2!important}
  body #tournamentResultsTicker{order:3!important}
  body .home-hero{order:4!important}
  body #ranking{order:5!important}
  body .home-features{order:6!important}
  body #register{order:7!important}
  body footer{order:8!important}

  #tournamentResultsTicker{
    width:100%!important;
    height:30px!important;
    flex:none!important;
    margin:0!important;
    border-top:0!important;
    border-bottom:1px solid rgba(224,181,103,.38)!important;
  }
}

@media(max-width:600px){
  /* Desktop-style header structure on mobile: one compact horizontal row. */
  .home-header .compact-member-nav{
    min-height:60px!important;
    padding:6px 0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
    overflow:hidden!important;
  }

  body.home-signed-in .compact-member-nav .nav-user,
  .compact-member-nav .nav-user{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch;
  }
  .compact-member-nav .nav-user::-webkit-scrollbar{display:none!important}

  body.home-signed-in .compact-member-nav .header-member,
  .compact-member-nav .header-member{
    order:1!important;
    grid-column:auto!important;
    grid-row:auto!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
  }

  body.home-signed-in .compact-member-nav .header-member-link.header-tile,
  .compact-member-nav .header-member-link.header-tile{
    width:144px!important;
    min-width:144px!important;
    max-width:144px!important;
    height:46px!important;
    min-height:46px!important;
    padding:4px 7px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    overflow:hidden!important;
  }

  body.home-signed-in .compact-member-nav .header-member-avatar-wrap,
  .compact-member-nav .header-member-avatar-wrap,
  body.home-signed-in .compact-member-nav .header-member-avatar,
  .compact-member-nav .header-member-avatar{
    position:static!important;
    transform:none!important;
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }

  body.home-signed-in .compact-member-nav .header-member-copy,
  .compact-member-nav .header-member-copy{
    width:auto!important;
    min-width:0!important;
    flex:1 1 auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:5px!important;
    overflow:hidden!important;
  }

  body.home-signed-in .compact-member-nav .header-member-copy>strong,
  .compact-member-nav .header-member-copy>strong{
    min-width:0!important;
    max-width:none!important;
    padding:0!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:right!important;
  }

  body.home-signed-in .compact-member-nav .header-member-points,
  .compact-member-nav .header-member-points{
    min-width:36px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    line-height:1!important;
  }
  body.home-signed-in .compact-member-nav .header-member-points small,
  .compact-member-nav .header-member-points small{
    display:block!important;
    margin:0!important;
    font-size:8px!important;
    line-height:1!important;
  }
  body.home-signed-in .compact-member-nav .header-member-points b,
  .compact-member-nav .header-member-points b{
    margin:0!important;
    padding:0!important;
    font-size:14px!important;
    line-height:1!important;
  }

  /* Use the same dashboard control as desktop; remove the legacy mobile duplicate. */
  body.home-signed-in .compact-member-nav .dashboard-link,
  .compact-member-nav .dashboard-link{
    order:2!important;
    grid-column:auto!important;
    grid-row:auto!important;
    display:inline-flex!important;
    flex:0 0 92px!important;
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 6px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    font-size:10px!important;
  }
  .compact-member-nav .mobile-dashboard-link{display:none!important}

  body.home-signed-in .compact-member-nav .header-notification-host,
  .compact-member-nav .header-notification-host{
    order:3!important;
    grid-column:auto!important;
    grid-row:auto!important;
    flex:0 0 46px!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
  }
  .compact-member-nav .site-notification-bell{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    border-radius:13px!important;
  }

  body.home-signed-in .compact-member-nav .nav-logout,
  .compact-member-nav .nav-logout{
    order:4!important;
    grid-column:auto!important;
    grid-row:auto!important;
    flex:0 0 56px!important;
    width:56px!important;
    min-width:56px!important;
    max-width:56px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 5px!important;
    justify-content:center!important;
    font-size:10px!important;
  }
  .compact-member-nav .nav-logout[hidden]{display:none!important}

  .compact-member-nav .nav-account:not([hidden]){
    order:5!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:104px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
  }

  .compact-member-nav .header-tournaments{display:none!important}
}

@media(max-width:700px){
  /* Four equal play tiles: 2 x 2. */
  body .home-hero .home-board-actions{
    width:100%!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,68px)!important;
    grid-auto-rows:68px!important;
    gap:6px!important;
    direction:rtl!important;
    align-items:stretch!important;
  }

  body .home-hero .hero-play-btn{
    grid-column:1!important;
    grid-row:1!important;
  }
  body.home-signed-in .home-hero .home-invite-wrap,
  body .home-hero .home-invite-wrap{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    height:68px!important;
    min-height:68px!important;
    max-height:68px!important;
    margin:0!important;
  }
  body .home-hero .hero-computer-btn{
    grid-column:1!important;
    grid-row:2!important;
  }
  body .home-hero .hero-tournaments-btn{
    grid-column:2!important;
    grid-row:2!important;
  }

  body .home-hero .home-board-actions>.btn,
  body .home-hero .home-invite-wrap>.btn,
  body.home-signed-in .home-hero #homeInviteToggle{
    width:100%!important;
    min-width:0!important;
    height:68px!important;
    min-height:68px!important;
    max-height:68px!important;
    margin:0!important;
    padding:6px 8px!important;
    border-radius:14px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    font:900 14px/1.1 Arial,sans-serif!important;
    text-align:center!important;
    white-space:normal!important;
  }

  body .home-hero .home-board-actions>.btn::before,
  body .home-hero .home-invite-wrap>.btn::before,
  body.home-signed-in .home-hero #homeInviteToggle::before{
    width:30px!important;
    height:30px!important;
    flex:0 0 30px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    border:1px solid rgba(224,181,103,.42)!important;
    border-radius:9px!important;
    background:rgba(224,181,103,.08)!important;
    color:var(--hero-gold-2,#efcf7c)!important;
    font-size:18px!important;
    line-height:1!important;
  }

  body .home-hero .hero-play-btn{
    background:linear-gradient(135deg,var(--hero-gold-2,#efcf7c),#d5aa4d)!important;
    color:#173536!important;
    border-color:#eed284!important;
  }
  body .home-hero .hero-play-btn::before{
    border-color:rgba(23,53,54,.24)!important;
    background:rgba(23,53,54,.08)!important;
    color:#173536!important;
  }

  body .home-hero .home-invite-wrap>.btn,
  body.home-signed-in .home-hero #homeInviteToggle,
  body .home-hero .hero-computer-btn,
  body .home-hero .hero-tournaments-btn{
    background:linear-gradient(145deg,rgba(9,68,70,.96),rgba(6,47,49,.96))!important;
    border:1px solid rgba(216,182,101,.54)!important;
    color:var(--hero-cream,#f4eddc)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.12)!important;
  }
}

/* Mobile polish approved 2026-09-14: text-only play actions + cleaner header. */
@media(max-width:700px){
  html body .home-hero .home-board-actions>.btn::before,
  html body .home-hero .home-invite-wrap>.btn::before,
  html body.home-signed-in .home-hero #homeInviteToggle::before{
    content:none!important;
    display:none!important;
    width:0!important;
    height:0!important;
    flex:0 0 0!important;
    margin:0!important;
    border:0!important;
    background:none!important;
  }

  html body .home-hero .home-board-actions>.btn,
  html body .home-hero .home-invite-wrap>.btn,
  html body.home-signed-in .home-hero #homeInviteToggle{
    gap:0!important;
    padding:8px 12px!important;
    font-size:15px!important;
    letter-spacing:0!important;
  }
}

@media(max-width:600px){
  html body.home-signed-in .home-header{
    padding:7px 0 8px!important;
    background:linear-gradient(180deg,rgba(3,43,47,.98),rgba(3,38,42,.98))!important;
    border-bottom:1px solid rgba(216,182,101,.16)!important;
  }

  html body.home-signed-in .home-header .compact-member-nav{
    width:calc(100% - 16px)!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:8px!important;
    display:block!important;
    overflow:visible!important;
    border:1px solid rgba(216,182,101,.42)!important;
    border-radius:21px!important;
    background:linear-gradient(145deg,rgba(8,62,64,.94),rgba(5,45,48,.94))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)!important;
  }

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

  html body.home-signed-in.home-admin-enabled .compact-member-nav .nav-user{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  html body.home-signed-in .compact-member-nav #headerMember,
  html body.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;
    margin:0!important;
  }

  html body.home-signed-in .compact-member-nav #headerMember .header-member-link.header-tile,
  html body.home-signed-in .compact-member-nav .header-member-link.header-tile{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:76px!important;
    min-height:76px!important;
    padding:8px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    border:0!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.025)!important;
    box-shadow:inset 0 0 0 1px rgba(216,182,101,.16)!important;
    overflow:hidden!important;
  }

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

  html body.home-signed-in .compact-member-nav .header-member-avatar{
    border:1px solid rgba(239,207,124,.55)!important;
    object-fit:cover!important;
  }

  html body.home-signed-in .compact-member-nav .header-member-copy{
    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.home-signed-in .compact-member-nav .header-member-copy>strong{
    min-width:0!important;
    max-width:none!important;
    flex:1 1 auto!important;
    padding:0!important;
    color:var(--hero-cream,#f4eddc)!important;
    font-size:18px!important;
    font-weight:900!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:right!important;
  }

  html body.home-signed-in .compact-member-nav .header-member-points{
    min-width:74px!important;
    flex:0 0 74px!important;
    padding:5px 8px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    border-right:1px solid rgba(216,182,101,.22)!important;
    line-height:1!important;
  }

  html body.home-signed-in .compact-member-nav .header-member-points small{
    margin:0!important;
    color:#b8c9c5!important;
    font-size:9px!important;
    font-weight:800!important;
  }

  html body.home-signed-in .compact-member-nav .header-member-points b{
    margin:0!important;
    padding:0!important;
    color:var(--hero-gold-2,#efcf7c)!important;
    font-size:20px!important;
    font-weight:900!important;
    line-height:1!important;
  }

  html body.home-signed-in .compact-member-nav .dashboard-link,
  html body.home-signed-in .compact-member-nav .mobile-dashboard-link,
  html body.home-signed-in .compact-member-nav .home-admin-link,
  html body.home-signed-in .compact-member-nav .header-notification-host,
  html body.home-signed-in .compact-member-nav .nav-logout,
  html body.home-signed-in .compact-member-nav .nav-account:not([hidden]){
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 6px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid rgba(216,182,101,.26)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.025)!important;
    box-shadow:none!important;
    color:var(--hero-cream,#f4eddc)!important;
    font:800 12px/1 Arial,sans-serif!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }

  html body.home-signed-in .compact-member-nav .dashboard-link{
    grid-column:1!important;
    grid-row:2!important;
  }
  html body.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:2!important;
    grid-row:2!important;
  }
  html body.home-signed-in .compact-member-nav .nav-logout{
    grid-column:3!important;
    grid-row:2!important;
  }

  html body.home-signed-in.home-admin-enabled .compact-member-nav .home-admin-link{
    grid-column:1!important;
    grid-row:2!important;
    display:flex!important;
  }
  html body.home-signed-in.home-admin-enabled .compact-member-nav .dashboard-link{
    display:none!important;
  }

  html body.home-signed-in .compact-member-nav .mobile-dashboard-link,
  html body.home-signed-in .compact-member-nav .nav-account:not([hidden]){
    display:none!important;
  }

  html body.home-signed-in .compact-member-nav .site-notification-bell{
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0 6px!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:inherit!important;
    font:inherit!important;
  }

  html body.home-signed-in .compact-member-nav .header-tile-icon,
  html body.home-signed-in .compact-member-nav .site-notification-bell::before,
  html body.home-signed-in .compact-member-nav .site-notification-bell::after{
    display:none!important;
    content:none!important;
  }

  html body.home-signed-in .compact-member-nav .header-tile-label{
    display:inline-block!important;
    max-width:100%!important;
    color:inherit!important;
    font:inherit!important;
    white-space:nowrap!important;
  }
}
