:root{
  --hero-deep:#062f31;
  --hero-deeper:#042628;
  --hero-panel:#0b4143;
  --hero-panel-2:#083638;
  --hero-gold:#d8b665;
  --hero-gold-2:#efcf7c;
  --hero-cream:#f4eddc;
  --hero-muted:#b7c7c2;
  --hero-line:rgba(216,182,101,.26);
  --hero-cyan-line:rgba(46,147,147,.42);
}

html{
  background:var(--hero-deeper);
  color-scheme:dark;
}

body{
  margin:0;
  min-height:100vh;
  font-family:Arial,sans-serif;
  background:
    radial-gradient(circle at 18% 34%,rgba(26,104,105,.23),transparent 29%),
    radial-gradient(circle at 78% 13%,rgba(216,182,101,.06),transparent 22%),
    linear-gradient(145deg,var(--hero-deeper),var(--hero-deep) 50%,#07383a)!important;
  color:var(--hero-cream)!important;
}

a{color:inherit}
.wrap{width:min(1180px,calc(100% - 34px))!important;margin-inline:auto!important}

/* Header */
.home-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(4,39,41,.94)!important;
  border-bottom:1px solid rgba(216,182,101,.2)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.14)!important;
  backdrop-filter:blur(14px);
}
.home-header .nav{
  min-height:74px!important;
  display:grid!important;
  grid-template-columns:minmax(210px,1fr) auto minmax(230px,1fr)!important;
  gap:18px!important;
  align-items:center!important;
  direction:rtl;
}
.home-header .brand{
  justify-self:start!important;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--hero-cream)!important;
  font-size:23px!important;
  font-weight:900;
  white-space:nowrap;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(216,182,101,.44);
  border-radius:50%;
  color:var(--hero-gold);
  font-size:23px;
}
.main-nav{
  justify-self:center;
  display:flex;
  align-items:center;
  gap:2px;
  height:74px;
}
.main-nav a{
  position:relative;
  height:100%;
  padding:0 15px;
  display:flex;
  align-items:center;
  color:#ded8c9;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.main-nav a:hover,.main-nav a.active{color:var(--hero-gold)}
.main-nav a.active::after{
  content:"";
  position:absolute;
  right:16px;
  left:16px;
  bottom:0;
  height:4px;
  border-radius:4px 4px 0 0;
  background:var(--hero-gold);
}
.nav-user{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:8px;
  direction:rtl;
}
.nav-account,.nav-logout{
  min-height:44px!important;
  padding:0 14px!important;
  border:1px solid var(--hero-line)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.035)!important;
  color:var(--hero-cream)!important;
  font:800 12px Arial,sans-serif!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap;
}
.nav-account{color:var(--hero-gold)!important}
.nav-account:hover,.nav-logout:hover{background:rgba(216,182,101,.08)!important}
.nav-logout[hidden]{display:none!important}

/* Shared dark controls */
.btn{
  border:1px solid var(--hero-line)!important;
  border-radius:14px!important;
  background:var(--hero-panel)!important;
  color:var(--hero-cream)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}
.btn:hover{transform:translateY(-1px);background:#115154!important}
.btn.gold{
  background:linear-gradient(135deg,var(--hero-gold-2),#d5aa4d)!important;
  border-color:#eed284!important;
  color:#173536!important;
}
input,select{
  background:#082f31!important;
  border:1px solid var(--hero-line)!important;
  color:var(--hero-cream)!important;
}
select option{background:#0b4143;color:var(--hero-cream)}
input::placeholder{color:#8fa19c}

/* Hero copy */
.home-hero{
  position:relative;
  overflow:hidden;
  border:0!important;
  background:transparent!important;
  padding:56px 0 30px!important;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.17;
  background:
    linear-gradient(90deg,transparent 0 12%,rgba(216,182,101,.08) 12.1% 12.2%,transparent 12.3% 100%),
    radial-gradient(circle at 18% 58%,rgba(32,126,125,.2),transparent 35%);
}
.home-hero>.wrap{position:relative;z-index:1}
.home-hero-grid{display:block!important}
.home-hero-copy{min-width:0}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border:1px solid rgba(216,182,101,.3);
  border-radius:999px;
  background:rgba(216,182,101,.08);
  color:#e7d095;
  font-size:11px;
  font-weight:900;
}
.home-hero h1{
  margin:17px 0 9px!important;
  max-width:660px;
  color:var(--hero-cream)!important;
  font-size:clamp(44px,5.2vw,72px)!important;
  line-height:1.13!important;
  letter-spacing:-1.1px;
}
.home-hero h1 span{display:block;color:var(--hero-cream)!important}
.home-hero p{
  margin:0 0 25px!important;
  color:#e7decc!important;
  font-size:clamp(18px,2vw,27px)!important;
}
.hero-live-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0 0 26px;
}
.hero-stat{
  min-height:116px;
  padding:15px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  border:1px solid var(--hero-cyan-line);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(7,52,54,.78),rgba(8,61,63,.62));
  color:var(--hero-cream);
  box-shadow:0 14px 34px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.025);
}
.hero-stat:hover{border-color:rgba(216,182,101,.5);transform:translateY(-1px)}
.hero-stat-icon{color:var(--hero-gold);font-size:27px;line-height:1}
.hero-stat div{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}
.hero-stat strong{color:var(--hero-cream)!important;font-size:30px;font-weight:900}
.hero-stat small{margin-top:7px;color:#e7decc;font-size:12px;white-space:nowrap}
.hero-stat-watch{text-decoration:none}
.hero-stat-watch strong{font-size:22px}
.home-hero .home-board-actions{
  width:100%!important;
  max-width:760px;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
}
.home-hero .home-board-actions>.btn,
.home-hero .home-board-actions>.home-invite-wrap,
.home-hero .home-board-actions>.home-invite-wrap>.btn{width:100%!important;min-width:0!important}
.home-hero .home-board-actions>.btn,
.home-hero .home-board-actions>.home-invite-wrap>.btn{
  height:72px!important;
  min-height:72px!important;
  border-radius:17px!important;
  font-size:20px!important;
  font-weight:900!important;
}
.home-hero .home-board-actions>.btn:only-child{grid-column:1/-1}
.home-hero .hero-play-btn{
  background:linear-gradient(135deg,#efd184,#d6ad55)!important;
  color:#173536!important;
  border:1px solid #efd589!important;
}
.home-hero .home-invite-wrap>.btn{
  background:rgba(7,55,57,.68)!important;
  color:var(--hero-cream)!important;
  border:1px solid rgba(239,209,132,.72)!important;
}
#homeBoardPreview{display:none!important}

/* Ranking panel: left side of the desktop hero, four clean columns. */
#ranking{
  grid-column:2;grid-row:2;
  align-self:start;
  width:100%!important;
  padding:24px 0 12px!important;
  background:transparent!important;
  border:0!important;
  direction:rtl;
}
#ranking>.wrap{width:100%!important;margin:0!important}
#ranking .head{
  margin:0!important;
  min-height:58px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--hero-cyan-line);
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:linear-gradient(145deg,rgba(8,62,64,.86),rgba(7,49,51,.8));
  box-shadow:0 13px 30px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.025);
}
#ranking .head>div:first-child{width:100%;text-align:center}
#rankingTitle{margin:0!important;color:var(--hero-gold)!important;font-size:18px!important;line-height:1.35!important;font-weight:900}
#ranking .filters{display:grid!important}
#ranking .table-card{
  border:1px solid var(--hero-cyan-line)!important;
  border-top:1px solid rgba(216,182,101,.12)!important;
  border-radius:0 0 18px 18px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,rgba(8,62,64,.86),rgba(7,49,51,.8))!important;
  box-shadow:0 13px 30px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
#ranking .table-head{display:none!important}
#ranking .table-wrap{overflow:hidden!important}
#ranking table{width:100%!important;min-width:0!important;table-layout:fixed;direction:rtl;border-collapse:collapse}
#ranking th,#ranking td{
  height:47px;
  padding:7px 12px!important;
  border-bottom:1px solid rgba(216,182,101,.2)!important;
  color:var(--hero-cream)!important;
  background:transparent!important;
  vertical-align:middle;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#ranking th{height:38px;color:#d9c58f!important;font-size:14px!important;font-weight:900}
#ranking td{font-size:15px!important}
#ranking tbody tr:hover{background:rgba(255,255,255,.035)!important}
#ranking tbody tr:last-child td{border-bottom:0!important}
#ranking th:nth-child(1),#ranking td:nth-child(1){width:42%;text-align:right!important}
#ranking th:nth-child(2),#ranking td:nth-child(2){width:24%;text-align:center!important}
#ranking th:nth-child(3),#ranking td:nth-child(3){width:20%;text-align:center!important}
#ranking th:nth-child(4),#ranking td:nth-child(4){width:14%;text-align:left!important}
#ranking .player-name{display:block;color:var(--hero-cream)!important;font-weight:900;overflow:hidden;text-overflow:ellipsis}
#ranking .player-username{display:none!important}
#ranking .rating{color:var(--hero-gold-2)!important;font-size:15px!important;font-weight:900!important}
#ranking #empty{display:none!important}

/* Feature cards */
.home-features{
  padding:22px 0 30px!important;
  background:rgba(4,37,39,.36)!important;
  border-top:1px solid rgba(216,182,101,.08);
  border-bottom:1px solid rgba(216,182,101,.13);
}
.home-feature-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important}
.home-feature-card{
  min-height:164px;
  padding:20px 16px;
  border:1px solid rgba(46,147,147,.38);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(8,62,64,.78),rgba(7,49,51,.7));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--hero-cream)!important;
  box-shadow:0 13px 30px rgba(0,0,0,.12);
}
.home-feature-card:hover{transform:translateY(-3px);border-color:rgba(216,182,101,.5)}
.feature-icon{margin-bottom:12px;color:var(--hero-gold)!important;font-size:34px;line-height:1}
.home-feature-card strong{font-size:20px}
.home-feature-card small{margin-top:9px;color:#d9d0bf!important;font-size:13px}

/* Account and forms stay functional, but use the same visual language. */
#register{
  width:100%!important;
  padding:28px 0!important;
  background:rgba(4,37,39,.22)!important;
  border:0!important;
}
#register>.wrap{width:min(1180px,calc(100% - 34px))!important;margin:auto!important}
#register .form-card{
  background:rgba(8,57,59,.84)!important;
  border:1px solid var(--hero-line)!important;
  border-radius:18px!important;
  color:var(--hero-cream)!important;
  box-shadow:0 15px 34px rgba(0,0,0,.13);
}
.auth-tab{
  border:1px solid var(--hero-line)!important;
  background:rgba(255,255,255,.035)!important;
  color:var(--hero-cream)!important;
}
.auth-tab.active{background:var(--hero-gold)!important;border-color:var(--hero-gold)!important;color:#173536!important}
label,.account-panel,.form-info h2{color:var(--hero-cream)!important}
.form-info p,.auth-note,.username-status,.account-stat small{color:var(--hero-muted)!important}
.account-stat{
  background:rgba(7,48,50,.8)!important;
  border:1px solid var(--hero-line)!important;
  color:var(--hero-cream)!important;
}
.account-stat strong{color:var(--hero-gold)!important}

.home-invite-panel{background:#0b3b3d!important;border-color:rgba(216,182,101,.34)!important}
.home-invite-search,.home-invite-result{background:#082f31!important;color:var(--hero-cream)!important;border-color:rgba(255,255,255,.08)!important}
.home-invite-title,.home-invite-name,.home-invite-result{color:var(--hero-cream)!important}
.home-invite-meta,.home-invite-empty{color:var(--hero-muted)!important}
.home-invite-send{color:var(--hero-gold)!important}

footer{
  padding:20px 0!important;
  background:#05292b!important;
  border-top:1px solid rgba(216,182,101,.16)!important;
  color:var(--hero-cream)!important;
}
footer .wrap{display:flex;justify-content:space-between;align-items:center}
.footer-tagline{color:#d9c58e}
.mobile-play{display:none!important}

/* Desktop composition: copy on the left, top-10 leaderboard on the right. */
@media(min-width:901px){
  body{
    display:grid!important;
    grid-template-columns:minmax(18px,1fr) minmax(500px,710px) minmax(440px,520px) minmax(18px,1fr);
    grid-template-rows:auto auto auto auto auto;
    column-gap:36px;
    align-items:start;
    direction:ltr;
  }
  body>*{direction:rtl}
  .home-header{grid-column:1/-1;grid-row:1}
  .home-hero{grid-column:3;grid-row:2}
  .home-hero>.wrap{width:100%!important;margin:0!important}
  #ranking{grid-column:2;grid-row:2/4}
  .home-features{grid-column:3;grid-row:3}
  .home-features>.wrap{width:100%!important;margin:0!important}
  .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  #register{grid-column:2/4;grid-row:4}
  #register>.wrap{width:100%!important;margin:0!important}
  footer{grid-column:1/-1;grid-row:5}
}

@media(max-width:1120px) and (min-width:901px){
  body{grid-template-columns:12px minmax(430px,1.2fr) minmax(390px,.9fr) 12px;column-gap:22px}
  .home-hero h1{font-size:52px!important}
  .hero-stat{padding:11px 8px;gap:8px}
  .hero-stat strong{font-size:24px}
  #ranking th,#ranking td{padding-inline:6px!important}
  #ranking td:nth-child(2){padding-right:34px!important}
}

/* Mobile/tablet: hero first, leaderboard immediately after it. */
@media(max-width:900px){
  body{display:flex!important;flex-direction:column;direction:rtl}
  .home-header{order:1}
  .home-hero{order:2;padding:26px 0 18px!important}
  #ranking{order:3;padding:8px 10px 20px!important}
  .home-features{order:4}
  #register{order:5}
  footer{order:6}
  .wrap{width:min(100% - 20px,720px)!important}
  .home-header .nav{min-height:62px!important;grid-template-columns:1fr auto!important;gap:8px!important}
  .main-nav{display:none!important}
  .home-header .brand{font-size:17px!important}
  .brand-mark{width:32px;height:32px;font-size:18px}
  .nav-user{justify-self:end}
  .nav-account,.nav-logout{min-height:38px!important;padding:0 9px!important;font-size:11px!important}
  .home-hero-grid{display:block!important;text-align:center}
  .home-hero-copy{display:flex;flex-direction:column;align-items:center}
  .home-hero h1{font-size:clamp(36px,10vw,54px)!important;letter-spacing:-.6px}
  .home-hero p{font-size:18px!important}
  .hero-live-stats{width:100%;gap:8px}
  .hero-stat{min-height:92px;flex-direction:column;gap:6px;padding:9px 5px}
  .hero-stat div{align-items:center}
  .hero-stat strong{font-size:22px}
  .hero-stat small{font-size:10px;margin-top:4px;white-space:normal;line-height:1.15}
  .hero-stat-icon{font-size:22px}
  .home-hero .home-board-actions{width:100%!important;max-width:560px;gap:9px!important}
  .home-hero .home-board-actions>.btn,.home-hero .home-board-actions>.home-invite-wrap>.btn{height:56px!important;min-height:56px!important;font-size:15px!important}
  #ranking>.wrap{width:min(100%,720px)!important}
  #ranking .head{min-height:52px;border-width:1px}
  #ranking .table-card{border-width:1px!important}
  #ranking th,#ranking td{height:42px;padding:6px 5px!important;font-size:10px!important}
  #ranking th:nth-child(2),#ranking td:nth-child(2){width:40%}
  #ranking th:nth-child(3),#ranking td:nth-child(3){width:22%}
  #ranking th:nth-child(4),#ranking td:nth-child(4){width:20%}
  #ranking th:nth-child(6),#ranking td:nth-child(6){width:18%}
      .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1px!important}
  .home-feature-card{min-height:126px;padding:14px 10px}
  .feature-icon{font-size:28px;margin-bottom:8px}
  .home-feature-card strong{font-size:16px}
  .home-feature-card small{font-size:11px}
  #register>.wrap{width:min(100% - 20px,720px)!important}
}

@media(max-width:520px){
  .home-header .brand span:last-child{font-size:14px}
  .nav-account{max-width:128px;overflow:hidden;text-overflow:ellipsis}
  .hero-live-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-hero .home-board-actions{grid-template-columns:1fr 1fr!important}
  #ranking{padding-inline:7px!important}
  #rankingTitle{font-size:16px!important}
  #ranking th,#ranking td{font-size:12px!important;padding-inline:3px!important}
      #register>.wrap{width:min(100% - 18px,720px)!important}
}


/* Compact signed-in member in header 20260904 */
.header-member{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.header-member[hidden]{display:none!important}
.header-member-link{
  height:50px;
  min-width:178px;
  max-width:238px;
  padding:5px 10px 5px 7px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--hero-line);
  border-radius:15px;
  background:rgba(255,255,255,.035);
  color:var(--hero-cream)!important;
  text-decoration:none;
}
.header-member-link:hover{background:rgba(216,182,101,.08)}
.header-member-avatar-wrap{width:38px;height:38px;flex:0 0 38px;position:relative}
.header-member-avatar{
  width:38px;
  height:38px;
  border-radius:9px;
  border:1px solid rgba(216,182,101,.38);
  object-fit:cover;
  background:#0a3a3c;
}
.header-member-fallback{
  display:grid;
  place-items:center;
  color:var(--hero-gold);
  font-size:17px;
  font-weight:900;
}
.header-member-fallback[hidden],.header-member-avatar[hidden]{display:none!important}
.header-member-copy{min-width:0;display:flex;flex-direction:column;line-height:1.15;text-align:right}
.header-member-copy strong{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--hero-cream)}
.header-member-copy small{margin-top:4px;color:#b9c9c4;font-size:10px;white-space:nowrap}
.header-member-copy b{margin-inline-start:3px;color:var(--hero-gold-2);font-size:12px}
.nav-user #siteNotificationHost{display:inline-flex;align-items:center}
.nav-user .site-notification-bell{width:44px;height:44px;border-radius:13px}
.home-signed-in #register{display:none!important}

/* Leaderboard frame uses the same card language as the feature icons. */
#ranking .head{
  border:1px solid var(--hero-cyan-line);
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:linear-gradient(145deg,rgba(8,62,64,.82),rgba(7,49,51,.76));
  box-shadow:0 13px 30px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.025);
}
#ranking .table-card{
  border:1px solid var(--hero-cyan-line)!important;
  border-top:1px solid rgba(216,182,101,.12)!important;
  background:linear-gradient(145deg,rgba(8,62,64,.82),rgba(7,49,51,.76))!important;
  box-shadow:0 13px 30px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.025)!important;
}

/* Desktop no-scroll signed-in composition */
@media(min-width:901px){
  body.home-signed-in{
    height:100vh!important;
    min-height:0!important;
    overflow:hidden!important;
    grid-template-rows:64px minmax(0,1fr) 104px 38px!important;
  }
  body.home-signed-in .home-header{grid-row:1}
  body.home-signed-in .home-header .nav{min-height:64px!important}
  body.home-signed-in .main-nav{height:64px}
  body.home-signed-in .home-hero{grid-row:2;padding:16px 0 10px!important;overflow:hidden}
  body.home-signed-in #ranking{grid-row:2/4;height:100%;padding:16px 0 10px!important;overflow:hidden;align-self:stretch}
  body.home-signed-in #ranking>.wrap{height:100%;display:flex;flex-direction:column;min-height:0}
  body.home-signed-in #ranking .head{min-height:42px;flex:0 0 42px}
  body.home-signed-in #ranking .table-card{flex:1;min-height:0}
  body.home-signed-in #ranking .table-wrap{height:100%;overflow:hidden!important}
  body.home-signed-in #ranking table{height:100%}
  body.home-signed-in #ranking th{height:28px!important;padding:4px 7px!important}
  body.home-signed-in #ranking td{height:32px!important;padding:4px 7px!important}
  body.home-signed-in .home-hero h1{margin:10px 0 6px!important;font-size:clamp(38px,4.2vw,56px)!important}
  body.home-signed-in .home-hero p{margin-bottom:13px!important;font-size:18px!important}
  body.home-signed-in .hero-live-stats{gap:9px;margin-bottom:13px}
  body.home-signed-in .hero-stat{min-height:74px;padding:9px 10px;gap:8px;border-radius:15px}
  body.home-signed-in .hero-stat strong{font-size:22px}
  body.home-signed-in .hero-stat-icon{font-size:22px}
  body.home-signed-in .home-hero .home-board-actions{gap:10px!important}
  body.home-signed-in .home-hero .home-board-actions>.btn,
  body.home-signed-in .home-hero .home-board-actions>.home-invite-wrap>.btn{height:52px!important;min-height:52px!important;font-size:16px!important}
  body.home-signed-in .home-features{grid-row:3;padding:7px 0 9px!important;overflow:hidden}
  body.home-signed-in .home-feature-grid{gap:8px!important;height:88px;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
  body.home-signed-in .home-feature-card{min-height:0;height:auto;padding:4px 8px;border-radius:13px;flex-direction:row;gap:6px}
  body.home-signed-in .feature-icon{margin:0;font-size:19px}
  body.home-signed-in .home-feature-card strong{font-size:12px}
  body.home-signed-in .home-feature-card small{display:none}
  body.home-signed-in footer{grid-row:4;padding:7px 0!important;overflow:hidden}
}

@media(max-width:900px){
  .header-member-link{min-width:0;max-width:178px;height:42px;padding:3px 7px}
  .header-member-avatar-wrap,.header-member-avatar{width:32px;height:32px;flex-basis:32px}
  .header-member-copy strong{max-width:105px;font-size:11px}
  .header-member-copy small{font-size:9px}
  .nav-user .site-notification-bell{width:38px;height:38px}
}


/* Unified header tiles and spacing 20260904 */
@media(min-width:901px){
  .home-header .nav{
    min-height:72px!important;
    grid-template-columns:minmax(220px,1fr) auto minmax(250px,1fr)!important;
    gap:16px!important;
  }
  .main-nav{height:auto!important;gap:7px!important}
  .header-tile{
    height:52px!important;
    min-height:52px!important;
    border:1px solid var(--hero-line)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.035)!important;
    color:var(--hero-cream)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    padding:0 12px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  }
  .main-nav .header-tile{min-width:96px}
  .main-nav .header-tile:hover,.main-nav .header-tile.active{
    color:var(--hero-gold)!important;
    border-color:rgba(216,182,101,.5)!important;
    background:rgba(216,182,101,.07)!important;
  }
  .main-nav .header-tile.active::after{display:none!important}
  .header-tile-icon{display:inline-grid;place-items:center;width:22px;height:22px;color:var(--hero-gold);font-size:16px;line-height:1}
  .header-member{gap:7px!important}
  .header-member-link.header-tile{min-width:180px!important;max-width:220px!important;justify-content:flex-start!important}
  .nav-user{gap:7px!important}
  .nav-user #siteNotificationHost{height:52px;display:inline-flex;align-items:center}
  .nav-user .site-notification-bell{width:52px!important;height:52px!important;border-radius:14px!important;border:1px solid var(--hero-line)!important}
  .nav-logout.header-tile{min-width:68px!important}
  .nav-account.header-tile{min-width:118px!important}
  .home-hero{padding:24px 0 12px!important}
}


/* Compact four-item header + ranking filters 20260904 */
.home-header .compact-member-nav{
  min-height:68px!important;
  display:block!important;
  padding-block:8px;
}
.compact-member-nav .nav-user{
  width:100%;
  min-width:0;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  direction:rtl;
}
.compact-member-nav .header-member{order:1;flex:0 1 auto}
.compact-member-nav .dashboard-link{order:2}
.compact-member-nav .header-notification-host{order:3}
.compact-member-nav .nav-logout{order:4}
.compact-member-nav .nav-account{order:5}
.compact-member-nav .header-member-link.header-tile{
  min-width:188px!important;
  max-width:250px!important;
  height:50px!important;
  justify-content:flex-start!important;
}
.compact-member-nav .dashboard-link,
.compact-member-nav .nav-logout,
.compact-member-nav .nav-account{
  height:50px!important;
  min-height:50px!important;
}
.compact-member-nav .dashboard-link{min-width:132px!important}
.compact-member-nav .nav-logout{min-width:76px!important}
.compact-member-nav .header-notification-host{
  height:50px;
  display:inline-flex;
  align-items:center;
}
.compact-member-nav .site-notification-bell{
  width:50px!important;
  height:50px!important;
  border:1px solid var(--hero-line)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.035)!important;
}

.home-hero .home-board-actions>.btn,
.home-hero .home-board-actions>.home-invite-wrap>.btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
}
.hero-action-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(216,182,101,.48);
  border-radius:9px;
  background:rgba(216,182,101,.08);
  color:var(--hero-gold-2);
  font-size:17px;
  line-height:1;
  font-weight:900;
}
.hero-play-btn .hero-action-icon{
  border-color:rgba(23,53,54,.24);
  background:rgba(23,53,54,.08);
  color:#173536;
}

#ranking .head{
  min-height:76px!important;
  padding:10px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(120px,.7fr) minmax(280px,1.3fr)!important;
  gap:12px!important;
  align-items:center!important;
  justify-content:stretch!important;
}
#ranking .head>div:first-child{
  width:auto!important;
  text-align:right!important;
}
#ranking .ranking-filters{
  width:100%!important;
  max-width:none!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
}
#ranking .ranking-filters select{
  height:38px!important;
  min-width:0;
  padding:0 9px!important;
  border-radius:10px!important;
  font-size:11px!important;
}

@media(min-width:901px){
  body.home-signed-in .home-header .compact-member-nav{min-height:64px!important;padding-block:6px}
  body.home-signed-in #ranking .head{min-height:66px!important;flex:0 0 66px!important}
}

@media(max-width:900px){
  .home-header .compact-member-nav{min-height:60px!important;padding-block:6px}
  .compact-member-nav .nav-user{gap:5px!important;overflow-x:auto;scrollbar-width:none}
  .compact-member-nav .nav-user::-webkit-scrollbar{display:none}
  .compact-member-nav .header-member-link.header-tile{min-width:158px!important;max-width:180px!important;height:44px!important}
  .compact-member-nav .dashboard-link,
  .compact-member-nav .nav-logout,
  .compact-member-nav .nav-account{height:44px!important;min-height:44px!important}
  .compact-member-nav .dashboard-link{min-width:112px!important}
  .compact-member-nav .nav-logout{min-width:64px!important}
  .compact-member-nav .header-notification-host{height:44px}
  .compact-member-nav .site-notification-bell{width:44px!important;height:44px!important}
  #ranking .head{grid-template-columns:1fr!important;gap:8px!important;padding:10px!important}
  #ranking .head>div:first-child{text-align:center!important}
  #ranking .ranking-filters{grid-template-columns:1fr 1fr!important}
}


/* Ranking table + actions final polish 20260904 */
#rankingTitle{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:17px!important;
  line-height:1.2!important;
}
#ranking .head{
  min-height:64px!important;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
#ranking .head>div:first-child{
  flex:1 1 auto;
  min-width:0;
  width:auto!important;
  text-align:center!important;
}
#ranking .ranking-filters{
  width:auto!important;
  max-width:280px!important;
  flex:0 0 280px;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px!important;
}
#ranking .ranking-filters select{
  height:32px!important;
  min-width:0;
  padding:0 7px!important;
  border-radius:9px!important;
  font-size:14px!important;
  text-align:center;
  text-align-last:center;
}
#ranking th,#ranking td{
  text-align:center!important;
}
#ranking th:not(:last-child),#ranking td:not(:last-child){
  border-left:1px solid rgba(216,182,101,.18)!important;
}
#ranking .player-name{
  text-align:center!important;
}
#ranking th:nth-child(1),#ranking td:nth-child(1),
#ranking th:nth-child(2),#ranking td:nth-child(2),
#ranking th:nth-child(3),#ranking td:nth-child(3),
#ranking th:nth-child(4),#ranking td:nth-child(4){
  text-align:center!important;
}

.home-hero .home-board-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
.home-hero .home-board-actions>.btn,
.home-hero .home-board-actions>.home-invite-wrap>.btn{
  height:56px!important;
  min-height:56px!important;
  padding:0 18px!important;
  border-radius:15px!important;
  font-size:17px!important;
  gap:8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.hero-action-icon{
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:8px;
  font-size:15px;
}

@media(max-width:900px){
  #ranking .head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  #ranking .ranking-filters{
    width:100%!important;
    max-width:280px!important;
    margin-inline:auto;
    flex:none;
  }
}

/* Centered hero + tournaments header 20260904 */
.home-header .compact-member-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  direction:rtl;
}
.compact-member-nav .nav-user{
  width:auto!important;
  flex:0 1 auto;
}
.header-tournaments{
  flex:0 0 auto;
  height:50px!important;
  min-height:50px!important;
  min-width:118px;
  padding:0 14px!important;
  border:1px solid var(--hero-line)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.035)!important;
  color:var(--hero-cream)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
}
.header-tournaments:hover{
  color:var(--hero-gold)!important;
  border-color:rgba(216,182,101,.5)!important;
  background:rgba(216,182,101,.07)!important;
}
.home-hero-copy{
  text-align:center!important;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.home-hero-copy>.hero-kicker{
  margin-inline:auto;
}
.home-hero-copy h1{
  margin-inline:auto!important;
}
.home-hero-copy p{
  text-align:center!important;
}
.home-hero-copy .hero-live-stats{
  width:100%;
  margin-inline:auto;
}
.home-hero-copy .hero-stat div{
  align-items:center!important;
  text-align:center;
}
.home-hero-copy .home-board-actions{
  margin-inline:auto!important;
}
@media(min-width:901px){
  body.home-signed-in{
    grid-template-rows:64px minmax(0,1fr) 38px!important;
  }
  body.home-signed-in #ranking{grid-row:2!important}
  body.home-signed-in footer{grid-row:3!important}
}
@media(max-width:900px){
  .home-header .compact-member-nav{gap:7px!important}
  .header-tournaments{
    height:44px!important;
    min-height:44px!important;
    min-width:96px;
    padding:0 10px!important;
    font-size:11px;
  }
}



/* Invite, stats and ranking polish 20260904 */
.hero-stat div{align-items:center!important;text-align:center!important}
.hero-stat div small{order:1!important;margin:0 0 7px!important;font-size:14px!important}
.hero-stat div strong{order:2!important}
.nav-user .header-tournaments{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:50px!important;padding:0 14px!important;white-space:nowrap}
#ranking th:nth-child(1),#ranking td:nth-child(1){width:7%!important;text-align:center!important}
#ranking th:nth-child(2),#ranking td:nth-child(2){width:35%!important;text-align:center!important}
#ranking th:nth-child(3),#ranking td:nth-child(3){width:23%!important;text-align:center!important}
#ranking th:nth-child(4),#ranking td:nth-child(4){width:20%!important;text-align:center!important}
#ranking th:nth-child(5),#ranking td:nth-child(5){width:15%!important;text-align:center!important}
#ranking .rank-number{color:var(--hero-gold)!important;font-weight:900!important;font-size:13px!important}
@media(max-width:900px){
  #ranking th:nth-child(1),#ranking td:nth-child(1){width:8%!important}
  #ranking th:nth-child(2),#ranking td:nth-child(2){width:34%!important}
  #ranking th:nth-child(3),#ranking td:nth-child(3){width:23%!important}
  #ranking th:nth-child(4),#ranking td:nth-child(4){width:20%!important}
  #ranking th:nth-child(5),#ranking td:nth-child(5){width:15%!important}
}


/* Clean home controls + fixed ten-slot ranking 20260904 */
.compact-member-nav .header-tournaments{order:5!important}
.compact-member-nav .nav-account{order:6!important}
#ranking .ranking-placeholder td{
  color:transparent!important;
  background:rgba(255,255,255,.012)!important;
}
#ranking .ranking-placeholder .rank-number{
  color:var(--hero-gold)!important;
}

/* Home header duplicate cleanup + icon sizing 20260905 */
.nav-account[hidden]{display:none!important}
.compact-member-nav .header-tile-icon,
.compact-member-nav .site-notification-bell{
  font-size:16px!important;
}

/* Mobile header icon alignment 20260905 */
@media(max-width:900px){
  .compact-member-nav .nav-user{
    flex-wrap:nowrap!important;
    align-items:center!important;
  }
  .compact-member-nav .header-tile{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-direction:row!important;
    gap:6px!important;
    white-space:nowrap!important;
    line-height:1!important;
    min-height:44px!important;
    padding:0 10px!important;
    border:1px solid var(--hero-line)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.035)!important;
    color:var(--hero-cream)!important;
  }
  .compact-member-nav .header-member-link.header-tile{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
  }
  .compact-member-nav .header-member-copy{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-width:0;
  }
  .compact-member-nav .header-tile-icon{
    width:20px;
    height:20px;
    flex:0 0 20px;
    display:inline-grid!important;
    place-items:center;
    line-height:1!important;
    font-size:16px!important;
  }
  .compact-member-nav .dashboard-link,
  .compact-member-nav .header-tournaments,
  .compact-member-nav .nav-logout,
  .compact-member-nav .nav-account{
    font-size:11px!important;
  }
  .compact-member-nav .dashboard-link{min-width:108px!important}
  .compact-member-nav .header-tournaments{min-width:92px!important}
  .compact-member-nav .site-notification-bell{
    display:inline-grid!important;
    place-items:center!important;
    font-size:16px!important;
    line-height:1!important;
    border-radius:12px!important;
  }
}

/* Mobile header layout v2 20260905 */
@media(max-width:600px){
  .home-header .compact-member-nav{
    width:min(100% - 12px,1180px)!important;
    min-height:56px!important;
    padding-block:6px!important;
    gap:0!important;
  }
  .compact-member-nav .nav-user{
    width:100%!important;
    overflow:visible!important;
    gap:4px!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
  }
  .compact-member-nav .header-member{
    flex:1 1 0!important;
    min-width:0!important;
  }
  .compact-member-nav .header-member-link.header-tile{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:44px!important;
    padding:3px 6px!important;
    gap:6px!important;
  }
  .compact-member-nav .header-member-copy{
    flex:1 1 auto!important;
    min-width:0!important;
  }
  .compact-member-nav .header-member-copy strong{
    max-width:100%!important;
    font-size:11px!important;
  }
  .compact-member-nav .dashboard-link,
  .compact-member-nav .header-tournaments{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    gap:0!important;
    flex:0 0 44px!important;
  }
  .compact-member-nav .dashboard-link>span:not(.header-tile-icon),
  .compact-member-nav .header-tournaments>span:not(.header-tile-icon){display:none!important}
  .compact-member-nav .header-tile-icon{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
    font-size:16px!important;
  }
  .compact-member-nav .header-notification-host{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
  }
  .compact-member-nav .site-notification-bell{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    padding:0!important;
  }
  .compact-member-nav .nav-logout{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    flex:0 0 44px!important;
    font-size:10px!important;
  }
}

/* Mobile header single dashboard entry 20260905 */
@media(max-width:600px){
  .compact-member-nav .dashboard-link{
    display:none!important;
  }
  .compact-member-nav .header-member-link.header-tile{
    height:auto!important;
    min-height:44px!important;
  }
  .compact-member-nav .header-member-copy strong{
    max-width:none!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    line-height:1.2!important;
  }
}


/* Unified header typography v3 20260905 */
.compact-member-nav .dashboard-link,
.compact-member-nav .header-tournaments,
.compact-member-nav .nav-logout,
.compact-member-nav .nav-account{
  font-family:Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
}
.compact-member-nav .header-tile-icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  display:inline-grid!important;
  place-items:center!important;
  font-family:Arial,sans-serif!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1!important;
}
.compact-member-nav .site-notification-bell{
  font-family:Arial,sans-serif!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1!important;
  display:inline-grid!important;
  place-items:center!important;
}
@media(max-width:600px){
  .compact-member-nav .header-tournaments,
  .compact-member-nav .nav-logout,
  .compact-member-nav .nav-account{
    font-size:11px!important;
    font-weight:800!important;
    line-height:1!important;
  }
}


/* Header member name + points layout 20260905 */
.compact-member-nav .header-member-copy{
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  line-height:1.1!important;
}
.compact-member-nav .header-member-copy>strong{
  min-width:0!important;
  margin:0!important;
  align-self:center!important;
}
.compact-member-nav .header-member-points{
  min-width:46px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1!important;
}
.compact-member-nav .header-member-points small{
  margin:0 0 3px!important;
  color:#b9c9c4!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.compact-member-nav .header-member-points b{
  margin:0!important;
  color:var(--hero-gold-2)!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1!important;
}
@media(max-width:600px){
  .compact-member-nav .header-member-copy{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:7px!important;
  }
  .compact-member-nav .header-member-points{min-width:42px}
}

/* Mobile home spacing cleanup 20260905 */
@media(max-width:800px){
  body{padding-bottom:0!important}
}
@media(max-width:600px){
  .home-hero{padding:10px 0 6px!important}
  .home-hero h1{margin:8px 0 4px!important}
  .home-hero p{margin:0 0 10px!important}
  .hero-live-stats{margin:0 0 10px!important}
  #ranking{padding:4px 7px 6px!important}
  .home-features{padding:10px 0 12px!important}
  #register{padding:14px 0!important}
}


/* Header member name size 20260905 */
.compact-member-nav .header-member-copy>strong{font-size:18px!important}

/* Mobile header two-row layout 20260905 */
@media(max-width:600px){
  .home-header .compact-member-nav{
    min-height:0!important;
    padding-block:6px!important;
  }
  .compact-member-nav .nav-user{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    align-items:stretch!important;
    overflow:visible!important;
  }
  .compact-member-nav .header-member{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
  .compact-member-nav .header-member-link.header-tile{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:48px!important;
    min-height:48px!important;
    padding:3px 10px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
  }
  .compact-member-nav .header-member-avatar-wrap,
  .compact-member-nav .header-member-avatar{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .compact-member-nav .header-member-copy{
    width:auto!important;
    flex:1 1 auto!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
  }
  .compact-member-nav .header-member-copy>strong{
    min-width:0!important;
    font-size:18px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  .compact-member-nav .header-member-points{
    min-width:40px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .compact-member-nav .header-member-points small{display:none!important}
  .compact-member-nav .header-member-points b{
    font-size:18px!important;
    line-height:1!important;
  }
  .compact-member-nav .dashboard-link{display:none!important}
  .compact-member-nav .header-notification-host,
  .compact-member-nav .header-tournaments,
  .compact-member-nav .nav-logout{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 7px!important;
    margin:0!important;
    flex:none!important;
  }
  .compact-member-nav .header-notification-host{display:flex!important}
  .compact-member-nav .site-notification-bell{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    padding:0!important;
  }
  .compact-member-nav .header-tournaments{
    display:inline-flex!important;
    font-size:12px!important;
    gap:0!important;
  }
  .compact-member-nav .header-tournaments .header-tile-icon{display:none!important}
  .compact-member-nav .header-tournaments>span:not(.header-tile-icon){display:inline!important}
  .compact-member-nav .nav-logout{
    display:inline-flex!important;
    justify-content:center!important;
    font-size:12px!important;
  }
  .compact-member-nav .nav-logout[hidden]{display:none!important}
  .compact-member-nav .nav-account:not([hidden]){
    grid-column:1/-1!important;
    width:100%!important;
    max-width:none!important;
  }
}

/* Mobile member identity centered 22px 20260905 */
@media(max-width:600px){
  body.home-signed-in .compact-member-nav .nav-user{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    column-gap:6px!important;
    row-gap:6px!important;
  }
  body.home-signed-in .compact-member-nav .header-member{
    grid-column:1/-1!important;
  }
  body.home-signed-in .compact-member-nav .header-member-link.header-tile{
    position:relative!important;
    width:100%!important;
    min-height:50px!important;
    padding-inline:54px!important;
    justify-content:center!important;
  }
  body.home-signed-in .compact-member-nav .header-member-avatar-wrap{
    position:absolute!important;
    right:10px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
  body.home-signed-in .compact-member-nav .header-member-copy{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:baseline!important;
    justify-content:center!important;
    gap:8px!important;
  }
  body.home-signed-in .compact-member-nav .header-member-copy>strong{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:calc(100% - 58px)!important;
    margin:0!important;
    font-size:22px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:center!important;
  }
  body.home-signed-in .compact-member-nav .header-member-points{
    flex:0 0 auto!important;
    min-width:0!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:baseline!important;
    justify-content:center!important;
    line-height:1!important;
  }
  body.home-signed-in .compact-member-nav .header-member-points small{display:none!important}
  body.home-signed-in .compact-member-nav .header-member-points b{
    margin:0!important;
    font-size:22px!important;
    line-height:1!important;
  }
  body.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:1!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .header-tournaments{
    grid-column:2!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .nav-logout{
    grid-column:3!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .header-notification-host,
  body.home-signed-in .compact-member-nav .header-tournaments,
  body.home-signed-in .compact-member-nav .nav-logout{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
  }
}

/* Mobile header avatar identity + four controls 20260905 */
@media(max-width:600px){
  body.home-signed-in .compact-member-nav .nav-user{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    align-items:stretch!important;
    overflow:visible!important;
  }
  body.home-signed-in .compact-member-nav .header-member{
    grid-column:1/-1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
  }
  body.home-signed-in .compact-member-nav .header-member-link.header-tile{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:62px!important;
    padding:6px 10px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    overflow:visible!important;
  }
  body.home-signed-in .compact-member-nav .header-member-avatar-wrap{
    position:static!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
  }
  body.home-signed-in .compact-member-nav .header-member-avatar{
    width:44px!important;
    height:44px!important;
  }
  body.home-signed-in .compact-member-nav .header-member-copy{
    width:auto!important;
    flex:0 1 auto!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    overflow:visible!important;
  }
  body.home-signed-in .compact-member-nav .header-member-copy>strong{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding-block:3px!important;
    font-size:22px!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:center!important;
  }
  body.home-signed-in .compact-member-nav .header-member-points{
    flex:0 0 auto!important;
    min-width:0!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1.3!important;
    overflow:visible!important;
  }
  body.home-signed-in .compact-member-nav .header-member-points small{display:none!important}
  body.home-signed-in .compact-member-nav .header-member-points b{
    margin:0!important;
    padding-block:3px!important;
    font-size:22px!important;
    line-height:1.3!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link{
    display:inline-flex!important;
    grid-column:1!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:2!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .header-tournaments{
    grid-column:3!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .nav-logout{
    grid-column:4!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link,
  body.home-signed-in .compact-member-nav .header-notification-host,
  body.home-signed-in .compact-member-nav .header-tournaments,
  body.home-signed-in .compact-member-nav .nav-logout{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding-inline:4px!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link{
    gap:4px!important;
    font-size:11px!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link>span:not(.header-tile-icon){display:inline!important}
  body.home-signed-in .compact-member-nav .dashboard-link .header-tile-icon{
    width:18px!important;
    height:18px!important;
    flex:0 0 18px!important;
    font-size:14px!important;
  }
  body.home-signed-in .compact-member-nav .site-notification-bell{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
  }
}

/* Mobile header remove dashboard final 20260905 */
@media(max-width:600px){
  body.home-signed-in .compact-member-nav .nav-user{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link{display:none!important}
  body.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:1!important;
    grid-row:2!important;
  }
  body.home-signed-in .compact-member-nav .header-tournaments{
    grid-column:2!important;
    grid-row:2!important;
  }
  body.home-signed-in .compact-member-nav .nav-logout{
    grid-column:3!important;
    grid-row:2!important;
  }
}

/* Mobile dashboard replaces tournaments 20260905 */
@media(max-width:600px){
  .compact-member-nav .header-tournaments{
    display:none!important;
  }
  .compact-member-nav .dashboard-link{
    display:inline-flex!important;
    order:0!important;
    width:auto!important;
    min-width:108px!important;
    max-width:none!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 10px!important;
    gap:6px!important;
    flex:0 0 auto!important;
  }
  .compact-member-nav .dashboard-link>span:not(.header-tile-icon){
    display:inline!important;
  }
}

/* Mobile dashboard right final 20260905 */
@media(max-width:600px){
  body.home-signed-in .compact-member-nav .nav-user{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.home-signed-in .compact-member-nav .header-tournaments{
    display:none!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link{
    display:inline-flex!important;
    grid-column:1!important;
    grid-row:2!important;
    order:0!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding-inline:4px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    font-size:11px!important;
  }
  body.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:2!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .nav-logout{
    grid-column:3!important;
    grid-row:2!important;
    order:0!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link>span:not(.header-tile-icon){
    display:inline!important;
  }
}

/* Dedicated mobile dashboard 20260905 */
.mobile-dashboard-link{display:none!important}
@media(max-width:600px){
  body.home-signed-in .compact-member-nav .nav-user{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    direction:rtl!important;
  }
  body.home-signed-in .compact-member-nav .dashboard-link{
    display:none!important;
  }
  body.home-signed-in .compact-member-nav .header-tournaments{
    display:none!important;
  }
  body.home-signed-in .compact-member-nav .mobile-dashboard-link{
    display:inline-flex!important;
    grid-column:1!important;
    grid-row:2!important;
    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;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  body.home-signed-in .compact-member-nav .mobile-dashboard-link>span:not(.header-tile-icon){
    display:inline!important;
  }
  body.home-signed-in .compact-member-nav .header-notification-host{
    grid-column:2!important;
    grid-row:2!important;
  }
  body.home-signed-in .compact-member-nav .nav-logout{
    grid-column:3!important;
    grid-row:2!important;
  }
}

/* HOME PLAY ACTION GRID 20260906 */
.home-hero .home-board-actions{
  width:100%!important;
  max-width:760px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,88px)!important;
  gap:12px!important;
  align-items:stretch!important;
  direction:rtl!important;
}
.home-hero .home-board-actions>.btn,
.home-hero .home-invite-wrap,
.home-hero .home-invite-wrap>.btn{
  width:100%!important;
  min-width:0!important;
  height:88px!important;
  min-height:88px!important;
}
.home-hero .home-invite-wrap{
  display:flex!important;
  position:relative!important;
}
.home-hero .home-board-actions>.btn,
.home-hero .home-invite-wrap>.btn{
  border-radius:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:8px 12px!important;
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:900!important;
}
.home-hero .home-board-actions>.btn::before,
.home-hero .home-invite-wrap>.btn::before{
  display:block;
  font-size:24px;
  line-height:1;
  font-weight:900;
  color:var(--hero-gold-2);
}
.home-hero .hero-play-btn::before{content:"▶"}
.home-hero .home-invite-wrap>.btn::before{content:"♙＋"}
.home-hero .hero-computer-btn::before{content:"▣"}
.home-hero .hero-tournaments-btn::before{content:"♛"}
.home-hero .hero-play-btn{
  background:linear-gradient(135deg,var(--hero-gold-2),#d5aa4d)!important;
  border-color:#eed284!important;
  color:#173536!important;
  box-shadow:0 12px 26px rgba(0,0,0,.16)!important;
}
.home-hero .hero-play-btn::before{color:#173536}
.home-hero .home-invite-wrap>.btn{
  background:linear-gradient(145deg,rgba(9,68,70,.96),rgba(6,47,49,.96))!important;
  border-color:rgba(216,182,101,.62)!important;
  color:var(--hero-cream)!important;
}
.home-hero .hero-computer-btn{
  background:linear-gradient(145deg,var(--hero-panel),var(--hero-panel-2))!important;
  border-color:var(--hero-cyan-line)!important;
  color:var(--hero-cream)!important;
}
.home-hero .hero-tournaments-btn{
  background:linear-gradient(145deg,rgba(216,182,101,.11),rgba(7,52,54,.92))!important;
  border-color:rgba(216,182,101,.42)!important;
  color:var(--hero-cream)!important;
}
.home-hero .home-board-actions>.btn:hover,
.home-hero .home-invite-wrap>.btn:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(239,207,124,.78)!important;
}
@media(max-width:700px){
  .home-hero .home-board-actions{
    max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,66px)!important;
    gap:8px!important;
  }
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap,
  .home-hero .home-invite-wrap>.btn{
    height:66px!important;
    min-height:66px!important;
  }
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap>.btn{
    border-radius:13px!important;
    gap:4px!important;
    padding:5px 6px!important;
    font-size:12px!important;
  }
  .home-hero .home-board-actions>.btn::before,
  .home-hero .home-invite-wrap>.btn::before{font-size:19px}
}

/* HOME PLAY ACTION TEXT ONLY 20260906 */
.home-hero .home-board-actions>.btn,
.home-hero .home-invite-wrap>.btn{
  font-family:Arial,sans-serif!important;
  font-weight:900!important;
}
.home-hero .home-board-actions>.btn::before,
.home-hero .home-invite-wrap>.btn::before{
  content:none!important;
  display:none!important;
}

/* MOBILE PLAY BOXES 20PX 20260906 */
@media(max-width:700px){
  .home-hero .home-board-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,82px)!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap,
  .home-hero .home-invite-wrap>.btn{
    width:100%!important;
    height:82px!important;
    min-height:82px!important;
    min-width:0!important;
  }
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap>.btn{
    border-radius:14px!important;
    padding:8px 10px!important;
    gap:0!important;
    font-family:Arial,sans-serif!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:900!important;
    text-align:center!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

/* MOBILE PLAY ACTIONS THREE PLUS ONE 20260906 */
@media(max-width:700px){
  .home-hero .home-board-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,82px)!important;
    gap:10px!important;
    align-items:stretch!important;
    direction:rtl!important;
  }
  .home-hero .hero-tournaments-btn{grid-column:1!important;grid-row:1!important}
  .home-hero .hero-play-btn{grid-column:2!important;grid-row:1!important}
  .home-hero .home-invite-wrap{grid-column:3!important;grid-row:1!important}
  .home-hero .hero-computer-btn{grid-column:1/-1!important;grid-row:2!important}
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap,
  .home-hero .home-invite-wrap>.btn{
    width:100%!important;
    min-width:0!important;
    height:82px!important;
    min-height:82px!important;
  }
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap>.btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,rgba(9,68,70,.96),rgba(6,47,49,.96))!important;
    border-color:rgba(216,182,101,.62)!important;
    color:var(--hero-cream)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.12)!important;
    font-family:Arial,sans-serif!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:900!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

/* MOBILE PLAY ACTIONS 60PX 18PX 20260906 */
@media(max-width:700px){
  .home-hero .home-board-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,60px)!important;
    gap:1px!important;
    align-items:stretch!important;
    direction:rtl!important;
  }
  .home-hero .hero-tournaments-btn{grid-column:1!important;grid-row:1!important}
  .home-hero .hero-play-btn{grid-column:2!important;grid-row:1!important}
  .home-hero .home-invite-wrap{grid-column:3!important;grid-row:1!important}
  .home-hero .hero-computer-btn{grid-column:1/-1!important;grid-row:2!important}
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap,
  .home-hero .home-invite-wrap>.btn{
    width:100%!important;
    min-width:0!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    margin:0!important;
  }
  .home-hero .home-board-actions>.btn,
  .home-hero .home-invite-wrap>.btn{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 6px!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,rgba(9,68,70,.96),rgba(6,47,49,.96))!important;
    border:1px solid rgba(216,182,101,.62)!important;
    border-color:rgba(216,182,101,.62)!important;
    color:var(--hero-cream)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.12)!important;
    font-family:Arial,sans-serif!important;
    font-size:18px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

/* MOBILE INVITE BUTTON MATCH 20260906 */
@media(max-width:700px){
  body.home-signed-in .home-hero .home-invite-wrap{display:contents!important}
  body.home-signed-in .home-hero #homeInviteToggle{
    grid-column:3!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    margin:0!important;
    padding:0 6px!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,rgba(9,68,70,.96),rgba(6,47,49,.96))!important;
    border:1px solid rgba(216,182,101,.62)!important;
    color:var(--hero-cream)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.12)!important;
    font:900 18px/1 Arial,sans-serif!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

/* MOBILE ALL INTERFACE SPACING 4PX 20260909 */
@media(max-width:900px){
  .hero-live-stats{column-gap:4px!important;row-gap:4px!important}
  .home-feature-grid{column-gap:4px!important;row-gap:4px!important}
  .quick-icons{column-gap:4px!important;row-gap:4px!important}
  .header-live{column-gap:4px!important;row-gap:4px!important}
  #ranking .ranking-filters{column-gap:4px!important;row-gap:4px!important}
  .auth-tabs,.auth-form,.account-card,.account-actions,.filters{column-gap:4px!important;row-gap:4px!important}
}
@media(max-width:700px){
  .home-hero .home-board-actions{column-gap:4px!important;row-gap:4px!important}
}
@media(max-width:600px){
  .compact-member-nav .nav-user{column-gap:4px!important;row-gap:4px!important}
  body.home-signed-in .compact-member-nav .nav-user{column-gap:4px!important;row-gap:4px!important}
  .home-header .compact-member-nav{padding-block:4px!important}
  .welcome-ticker{margin-block:4px 0!important}
  .home-hero{padding:4px 0 0!important}
  .hero-kicker{margin:0 0 4px!important}
  .home-hero h1{margin:0 0 4px!important}
  .home-hero p{margin:0 0 4px!important}
  .hero-live-stats{margin:0 0 4px!important}
  #ranking{padding:4px 7px 0!important}
  #ranking .head{margin:0 0 4px!important}
  .home-features{padding:4px 0 0!important}
  #register{padding:4px 0!important}
  footer{margin-top:4px!important}
}

/* MOBILE RANKING TITLE + JOINED HEAD 20260909 */
@media(max-width:600px){
  #rankingTitle{overflow:visible!important;text-overflow:clip!important;line-height:1.45!important;padding-block:2px!important}
  #ranking .head{margin:0!important}
  #ranking .table-card{margin-top:0!important}
}

/* MOBILE RANKING ROW HEIGHT 35PX 20260909 */
@media(max-width:600px){
  #ranking th,#ranking td{height:35px!important}
}

