
/* Connect PRO overrides */
.hero-dashboard .container{padding-left:24px;padding-right:24px;}
.hero-grid{
  align-items:start !important;
  padding:72px 0 28px !important;
  min-height:640px !important;
}
.hero-market-card,.hero-news-card{
  height:100%;
  display:flex;
  flex-direction:column;
}
.hero-market-card{padding-bottom:14px;}
.hero-news-card{max-height:560px;}
.hero-market-card .market-items{grid-auto-rows:minmax(0,1fr);}
.hero-floating-dot,.arcade-dot{
  background:#00d26a !important;
  box-shadow:0 0 0 0 rgba(0,210,106,.45);
  position:relative;
}
.hero-floating-dot::after,.arcade-dot::after,.online-dot::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:rgba(0,210,106,.55);
  animation:livePulse 2.3s ease-out infinite;
}
@keyframes livePulse{
  0%{transform:scale(1);opacity:.65;}
  70%{transform:scale(2.3);opacity:0;}
  100%{opacity:0;}
}
.news-feed{gap:14px;}
.news-item{align-items:stretch !important;min-height:108px;}
.news-thumb{
  width:108px !important;
  min-width:108px !important;
  height:108px !important;
  border-radius:16px !important;
}
.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover !important;
  object-position:center;
  display:block;
}
.hero-center-stage{align-items:start !important;}
.hero-center-stack{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:18px;
  align-items:start;
}
.arcade-shell{
  width:100% !important;
  min-width:0;
}
#space-game{
  min-height:440px !important;
}
.game-wrap.hidden-game{
  display:none;
}
.online-counter{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  margin-right:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  font-size:12px;
  font-weight:700;
}
.online-dot{
  position:relative;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#00d26a;
  display:inline-block;
}
.live-chat-shell{
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  box-shadow:0 16px 42px rgba(0,0,0,.16);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  background:rgba(8,18,40,.24);
  padding:14px;
  min-height:528px;
  display:flex;
  flex-direction:column;
}
.live-chat-shell.chat-collapsed{
  display:none;
}
.live-chat-topbar,.live-chat-actions,.live-chat-title{
  display:flex;
  align-items:center;
}
.live-chat-topbar{
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.live-chat-title{
  gap:8px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.live-chat-online{
  display:flex;
  align-items:center;
  gap:6px;
  color:#d8e6ff;
  font-size:12px;
}
.live-chat-auth{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:12px;
}
.live-chat-auth p{
  margin:10px 0 0;
  color:#c4d4f2;
  font-size:12px;
  line-height:1.5;
}
.live-chat-messages{
  flex:1;
  max-height:360px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-right:4px;
}
.chat-empty{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  color:#c9d7f2;
  font-size:13px;
  line-height:1.5;
}
.chat-message{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.chat-message.is-hidden{
  border-color:rgba(255,82,82,.24);
}
.chat-message-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.chat-author{
  color:#fff;
  font-weight:700;
  font-size:13px;
}
.chat-meta{
  color:#8aa1c4;
  font-size:11px;
}
.chat-text{
  color:#ebf2ff;
  font-size:13px;
  line-height:1.5;
  word-break:break-word;
}
.chat-message.is-hidden .chat-text{
  color:#ffb9b9;
}
.chat-message-actions{
  margin-top:8px;
}
.chat-report-btn{
  border:0;
  background:transparent;
  color:#91b7ff;
  padding:0;
  font-size:12px;
  cursor:pointer;
}
.live-chat-actions{
  position:relative;
  gap:8px;
  margin-top:12px;
}
.chat-input{
  flex:1;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:0 14px;
}
.chat-input::placeholder{color:#9ab0d3;}
.chat-send-btn,.emoji-btn,.auth-submit,.report-option-btn{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:14px;
  min-height:44px;
  padding:0 14px;
  cursor:pointer;
}
.chat-send-btn:disabled,.emoji-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.emoji-btn{width:44px;padding:0;}
.emoji-picker{
  position:absolute;
  left:0;
  bottom:54px;
  display:none;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  width:188px;
  padding:10px;
  border-radius:16px;
  background:#0c1734;
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 12px 28px rgba(0,0,0,.28);
}
.emoji-picker.open{display:grid;}
.emoji-picker button{
  height:38px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.auth-modal,.report-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
.auth-modal.hidden,.report-modal.hidden{
  display:none;
}
.auth-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,8,20,.76);
}
.auth-modal-card{
  position:relative;
  z-index:1;
  width:min(92vw,430px);
  padding:20px;
  border-radius:24px;
  background:#0c1734;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 54px rgba(0,0,0,.42);
}
.report-card{width:min(92vw,390px);}
.auth-close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.auth-tabs{
  display:flex;
  gap:10px;
  margin-bottom:14px;
}
.auth-tab{
  flex:1;
  height:42px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}
.auth-tab.active,.auth-submit,.report-option-btn:hover,.chat-send-btn:hover,.emoji-btn:hover{
  background:rgba(0,210,106,.15);
  border-color:rgba(0,210,106,.35);
}
.auth-status{
  margin-bottom:14px;
  color:#cfe0ff;
  font-size:13px;
  line-height:1.5;
}
.auth-status.error{color:#ffb3b3;}
.auth-pane{display:none;}
.auth-pane.active{display:block;}
.auth-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.auth-field label{color:#fff;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;}
.auth-field input{
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:0 14px;
}
.auth-submit{
  width:100%;
  font-weight:700;
}
.report-options{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.report-target{
  margin:0;
  color:#c8d6f3;
  font-size:13px;
}
@media (max-width:1439px){
  .hero-grid{
    grid-template-columns:260px minmax(500px,1fr) 320px !important;
  }
  .hero-center-stack{
    grid-template-columns:minmax(0,1fr) 272px;
  }
}
@media (max-width:1199px){
  .hero-grid{
    padding:94px 0 36px !important;
  }
  .hero-center-stack{
    grid-template-columns:1fr;
  }
  .live-chat-shell{
    min-height:440px;
  }
  .hero-news-card{
    max-height:none;
  }
}
@media (max-width:767px){
  .hero-grid{
    padding:88px 0 28px !important;
  }
  .news-item{
    min-height:92px;
  }
  .news-thumb{
    width:86px !important;
    min-width:86px !important;
    height:86px !important;
  }
  .online-counter{
    padding:7px 10px;
    font-size:11px;
  }
  .live-chat-actions{
    flex-wrap:wrap;
  }
  .chat-send-btn{
    width:100%;
  }
}


.hero-grid{
  padding-top:54px !important;
  min-height:600px !important;
}
.hero-news-card{max-height:600px !important;}
.hero-market-card,.hero-news-card,.live-chat-shell,.arcade-shell{backdrop-filter:blur(10px);}
.market-items{grid-auto-rows:auto !important;}
.market-item{min-height:86px;}
.news-item{min-height:124px !important;}
.news-thumb{
  width:124px !important;
  min-width:124px !important;
  height:124px !important;
}
.news-thumb img{object-fit:cover !important;}
.arcade-header-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.arcade-game-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  font-size:18px;
}
.arcade-players{
  display:flex;
  align-items:center;
  gap:6px;
  color:#d8e6ff;
  font-size:12px;
  font-weight:700;
}
.arcade-topbar{align-items:flex-start !important;}
.arcade-actions{justify-content:flex-end;}
.arcade-btn{
  min-height:36px;
  padding:9px 13px !important;
  transition:.2s ease;
}
.arcade-btn:hover{transform:translateY(-1px);}
.game-switcher-panel{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.game-switcher-panel.hidden{display:none;}
.game-option-btn{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:16px;
  min-height:42px;
  padding:10px 12px;
  cursor:pointer;
  text-align:left;
}
.game-option-btn.active{
  background:rgba(0,210,106,.14);
  border-color:rgba(0,210,106,.32);
}
.game-wrap{
  position:relative;
  overflow:hidden;
  border-radius:18px;
}
.game-loading{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(4,8,24,.8);
  z-index:4;
}
.game-loading.hidden{display:none;}
.game-loading-box{
  text-align:center;
  color:#fff;
}
.game-spinner{
  width:48px;
  height:48px;
  border:4px solid rgba(255,255,255,.14);
  border-top-color:#00d26a;
  border-radius:50%;
  margin:0 auto 12px;
  animation:spinLoader 1s linear infinite;
}
@keyframes spinLoader{to{transform:rotate(360deg);}}
.board-screen{
  display:grid;
  align-content:start;
  gap:12px;
  width:100%;
  min-height:440px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(4,8,24,.96),rgba(10,20,44,.98));
  border:1px solid rgba(255,255,255,.08);
}
.board-screen.hidden{display:none;}
.board-screen.paused{filter:grayscale(.3) blur(1px); pointer-events:none;}
.board-status,.board-tip{
  color:#dbe6ff;
  font-size:13px;
}
.puzzle-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.puzzle-tile{
  aspect-ratio:1/1;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:16px;
  font-size:24px;
  font-weight:700;
  cursor:pointer;
}
.puzzle-tile.empty{
  background:rgba(255,255,255,.02);
  border-style:dashed;
}
.mines-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:8px;
}
.mine-cell{
  aspect-ratio:1/1;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:12px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}
.mine-cell.revealed{background:rgba(255,255,255,.16);}
.mine-cell.mine{background:rgba(255,82,82,.26);}
.live-chat-shell{min-height:548px;}
.live-chat-messages{max-height:338px;}
.live-chat-actions{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 96px;
  align-items:center;
}
.chat-input{
  min-width:0;
  width:100%;
}
.chat-send-btn{
  width:96px;
  justify-self:end;
  text-align:center;
}
.emoji-picker{left:0;}
.fullscreen-fallback{
  position:fixed !important;
  inset:12px !important;
  width:auto !important;
  max-width:none !important;
  z-index:9998 !important;
  background:rgba(5,11,28,.98) !important;
}
.mobile-game-focus{overflow:hidden;}
@media (max-width:1199px){
  .hero-grid{padding-top:42px !important;}
  .hero-center-stack{grid-template-columns:1fr !important;}
  .live-chat-shell{min-height:420px;}
}
@media (max-width:767px){
  .hero-grid{padding-top:26px !important;}
  .arcade-actions{
    width:100%;
    justify-content:flex-start;
  }
  .game-switcher-panel{
    grid-template-columns:1fr;
  }
  .news-thumb{
    width:98px !important;
    min-width:98px !important;
    height:98px !important;
  }
  .board-screen,#space-game{
    min-height:320px !important;
  }
  .live-chat-actions{
    grid-template-columns:44px minmax(0,1fr) 84px;
  }
  .chat-send-btn{width:84px;}
}


/* Connect V3 refinements */
.hidden{display:none !important;}
.hero-dashboard{align-items:flex-start !important;}
.hero-grid{
  align-items:start !important;
  padding:18px 0 18px !important;
  min-height:540px !important;
}
.hero-dashboard .container{
  padding-top:0 !important;
}
.hero-market-card,.arcade-shell,.live-chat-shell,.hero-news-card{
  align-self:start !important;
}
.hero-center-stack{
  grid-template-columns:minmax(0,1fr) 260px !important;
  gap:14px !important;
}
.hero-news-card{
  margin-top:0 !important;
  max-height:548px !important;
}
.news-feed{
  max-height:448px !important;
}
.news-item{
  min-height:112px !important;
  align-items:center !important;
}
.news-thumb{
  width:110px !important;
  min-width:110px !important;
  height:110px !important;
}
.news-text{
  -webkit-line-clamp:4 !important;
}
.arcade-actions{
  position:relative;
  align-items:center !important;
  gap:8px !important;
}
.game-switcher-dropdown{
  position:relative;
}
.game-switcher-panel{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:10;
  width:220px;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  padding:10px;
  background:rgba(6,13,34,.96);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow:0 14px 30px rgba(0,0,0,.3);
  margin:0 !important;
}
.game-wrap{
  min-height:440px;
}
#space-game,.board-screen{
  width:100% !important;
  min-height:440px !important;
}
.game-overlay{
  opacity:1 !important;
  pointer-events:auto;
  cursor:pointer;
  z-index:3;
}
.game-overlay.hidden{
  display:none !important;
}
.game-loading{
  border-radius:18px;
  z-index:5;
}
.live-chat-topbar{
  justify-content:flex-start !important;
}
.online-counter{
  min-width:58px;
  justify-content:center;
}
.market-footer,.arcade-help{
  padding-bottom:0 !important;
}
@media (max-width:1199px){
  .hero-grid{
    padding:6px 0 18px !important;
  }
}
@media (max-width:767px){
  .hero-grid{
    padding:0 0 14px !important;
  }
  .hero-center-stack{
    grid-template-columns:1fr !important;
  }
  .game-switcher-panel{
    width:min(240px,88vw);
  }
  .news-thumb{
    width:92px !important;
    min-width:92px !important;
    height:92px !important;
  }
}


/* v4 fixes */
.hero-dashboard{align-items:flex-start !important;}
.hero-grid{padding-top:18px !important; align-items:start !important;}
.hero-market-card,.hero-news-card,.hero-center-stage{align-self:start !important; margin-top:0 !important;}
.hero-news-card{position:relative; top:0 !important;}
.live-chat-online{display:none !important;}
.game-switcher-dropdown{position:relative;}
.game-switcher-panel{position:absolute; top:44px; left:0; min-width:220px; z-index:30; background:rgba(9,17,38,.96); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:8px; box-shadow:0 20px 40px rgba(0,0,0,.35); display:flex; flex-direction:column; gap:8px;}
.game-switcher-panel.hidden{display:none !important;}
.game-option-btn{text-align:left; width:100%;}
#space-game.hidden,.board-screen.hidden{display:none !important;}
.game-wrap{min-height:440px;}
.game-overlay{opacity:1; pointer-events:auto;}
.game-overlay.hidden{display:none !important; opacity:0; pointer-events:none;}
.game-loading{display:flex;}
.game-loading.hidden{display:none !important;}
.news-feed{max-height:560px !important;}
.news-item{min-height:132px !important;}
.news-thumb{width:132px !important; min-width:132px !important; height:132px !important;}
@media (max-width:1439px){ .hero-grid{padding-top:10px !important;} }
@media (max-width:1199px){ .hero-grid{padding-top:0 !important;} }

.hero-grid{
  padding-top:44px !important;
}
.hero-market-card,
.hero-center-stage,
.hero-news-card{
  align-self:start !important;
}
.hero-center-stack{
  align-items:start !important;
}
.hero-news-card{
  margin-top:0 !important;
  position:relative;
  top:0 !important;
}
.news-title{
  margin-bottom:12px !important;
}
.news-feed{
  max-height:640px !important;
}
.arcade-topbar{
  align-items:flex-start !important;
  justify-content:space-between !important;
}
.arcade-header-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.arcade-btn-left{
  margin-left:8px;
}
.arcade-actions{
  margin-left:auto;
}
.restart-hidden{
  display:none !important;
}
.game-picker-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
.game-picker-modal.hidden{
  display:none;
}
.game-picker-backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,8,20,.72);
  backdrop-filter:blur(4px);
}
.game-picker-dialog{
  position:relative;
  z-index:1;
  width:min(420px, calc(100vw - 28px));
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:rgba(8,18,40,.96);
  box-shadow:0 22px 60px rgba(0,0,0,.45);
  padding:18px;
}
.game-picker-title{
  color:#fff;
  font-size:18px;
  font-weight:700;
  margin-bottom:14px;
}
.game-picker-list{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.game-picker-list .game-option-btn{
  width:100%;
  text-align:left;
}
.game-picker-close{
  width:100%;
  justify-content:center;
}
.game-switcher-dropdown,
.game-switcher-panel{
  display:none !important;
}
.live-chat-topbar{
  justify-content:space-between !important;
}
.chat-top-toggle{
  margin-left:auto;
}
.live-chat-actions{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) 88px !important;
  gap:8px;
  align-items:center !important;
}
.chat-input{
  width:100% !important;
  min-width:0 !important;
}
.chat-send-btn{
  width:88px !important;
  min-width:88px !important;
  padding:0 10px !important;
  height:42px !important;
  line-height:42px !important;
  border-radius:14px !important;
  text-align:center !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
}
.emoji-btn{
  width:42px;
  height:42px;
}
@media (max-width:1439px){
  .hero-grid{
    padding-top:34px !important;
  }
}
@media (max-width:1199px){
  .hero-grid{
    padding-top:18px !important;
  }
  .hero-center-stack{
    grid-template-columns:1fr !important;
  }
  .live-chat-shell{
    order:2;
  }
  .hero-news-card{
    margin-top:0 !important;
  }
}
@media (max-width:767px){
  .arcade-topbar{
    gap:10px;
  }
  .arcade-header-wrap{
    width:100%;
    justify-content:space-between;
  }
  .arcade-actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .live-chat-actions{
    grid-template-columns:40px minmax(0,1fr) 78px !important;
  }
  .chat-send-btn{
    width:78px !important;
    min-width:78px !important;
  }
}

/* ===== v6 fixes ===== */
html, body, .page, .swiper-container, .swiper-wrapper, .swiper-slide, .swiper-slide-caption {
 /* background:#020816 !important; */
}
body{
  overflow-x:hidden;
  background:#020816 !important;
}
.hero-dashboard{
  align-items:flex-start !important;
}
.hero-grid{
  align-items:start !important;
  padding-top:42px !important;
  padding-bottom:22px !important;
  min-height:560px !important;
}
.hero-market-card,.hero-news-card,.arcade-shell,.live-chat-shell{
  align-self:start !important;
}
.hero-news-card{
  margin-top:0 !important;
}
.news-feed{
  max-height:520px !important;
}
.news-item{
  min-height:116px !important;
}
.news-thumb{
  width:92px !important;
  min-width:92px !important;
  height:92px !important;
}
.news-thumb img{
  object-fit:cover !important;
}
.hero-center-stack{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:18px;
  align-items:start;
  width:100%;
}
.arcade-shell{
  width:min(100%,740px) !important;
}
.arcade-topbar{
  align-items:center !important;
}
.arcade-header-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.arcade-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.arcade-btn-left{
  margin-left:2px;
}
.volume-range{
  width:92px;
  accent-color:#00d26a;
  background:transparent;
}
.live-chat-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.chat-hide-btn{
  white-space:nowrap;
}
.backend-status{
  color:#b8c9e5;
  font-size:11px;
  margin-top:4px;
}
.backend-status.ok{ color:#51d28c; }
.backend-status.error{ color:#ff7a8c; }
.live-chat-actions{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) 84px;
  gap:8px;
  align-items:center;
}
.chat-input{
  width:100%;
  min-width:0;
  padding-right:10px !important;
}
.chat-send-btn{
  width:84px !important;
  min-width:84px !important;
  justify-self:stretch;
}
.game-picker-modal.hidden{
  display:none !important;
}
.game-picker-modal{
  position:absolute;
  inset:0;
  z-index:12;
}
.game-picker-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,18,.7);
  backdrop-filter:blur(4px);
}
.game-picker-dialog{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(92%,340px);
  background:rgba(7,16,38,.96);
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  padding:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.34);
}
.game-picker-title{
  color:#fff;
  font-size:18px;
  font-weight:700;
  margin-bottom:14px;
}
.game-picker-list{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}
.game-option-btn{
  width:100%;
  text-align:left;
  min-height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:10px 12px;
}
.game-option-btn.active{
  border-color:rgba(0,210,106,.34);
  background:rgba(0,210,106,.12);
}
.game-loading{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(4,8,24,.84);
  z-index:8;
}
.game-loading.hidden{
  display:none !important;
}
.game-wrap{
  position:relative;
  overflow:hidden;
  border-radius:18px;
}
.board-screen{
  width:100%;
  min-height:420px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(4,8,24,.96),rgba(10,20,44,.98));
  border:1px solid rgba(255,255,255,.08);
  padding:16px;
}
.board-screen.hidden,
#space-game.hidden,
.hidden-game{
  display:none !important;
}
.game-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(4,8,24,.4);
  border-radius:18px;
  pointer-events:auto;
  cursor:pointer;
}
.game-overlay.hidden{
  display:none !important;
}
.restart-hidden{
  display:none !important;
}
.puzzle-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.puzzle-tile{
  aspect-ratio:1/1;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:700;
  font-size:24px;
}
.puzzle-tile.empty{
  background:rgba(255,255,255,.02);
  border-style:dashed;
}
.mines-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:8px;
}
.mine-cell{
  aspect-ratio:1/1;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:700;
}
.mine-cell.revealed{ background:rgba(255,255,255,.16); }
.mine-cell.mine{ background:rgba(255,88,88,.28); }
.compact-footer{
  padding:14px 0 18px !important;
  background:rgba(1,7,22,.94) !important;
}
.compact-footer .row{
  display:none !important;
}
.compact-footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-mail-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#dbe8ff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  padding:10px 14px;
  border-radius:999px;
}
.footer-mail-chip:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
}
.rights{
  margin:0 !important;
}
.section.section-lg,
#whatswidget-pre-wrapper,
.whatswidget-widget-wrapper,
.whatswidget-button-wrapper{
  display:none !important;
}
@media (max-width: 1199px){
  .hero-grid{
    grid-template-columns:1fr !important;
    padding-top:24px !important;
    gap:14px !important;
  }
  .hero-center-stack{
    grid-template-columns:1fr !important;
  }
  .live-chat-shell{
    order:2;
  }
  .hero-news-card{
    order:3;
  }
}
@media (max-width: 767px){
  html,body{
    background:#020816 !important;
  }
  .page-header{
    background:rgba(1,6,18,.95) !important;
  }
  .hero-dashboard .container{
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .hero-grid{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }
  .hero-market-card,.hero-news-card,.arcade-shell,.live-chat-shell{
    border-radius:18px !important;
  }
  .arcade-topbar,.arcade-actions,.arcade-header-wrap{
    width:100%;
  }
  .arcade-actions{
    justify-content:flex-start;
  }
  .volume-range{
    width:74px;
  }
  #space-game{
    min-height:260px !important;
  }
  .board-screen{
    min-height:260px !important;
    padding:12px;
  }
  .live-chat-actions{
    grid-template-columns:38px minmax(0,1fr) 76px;
  }
  .chat-send-btn{
    width:76px !important;
    min-width:76px !important;
  }
  .news-thumb{
    width:82px !important;
    min-width:82px !important;
    height:82px !important;
  }
  .swiper-slide{
    transform:translateZ(0);
    backface-visibility:hidden;
  }
  .compact-footer-inner{
    justify-content:center;
    text-align:center;
  }
  .footer-mail-chip{
    width:100%;
    justify-content:center;
  }
}

/* ===== v7 footer + loading fixes ===== */
.compact-footer{
  padding:10px 0 12px !important;
  background:rgba(7,12,22,.82) !important;
}
.compact-footer .container{
  max-width:1000px;
}
.compact-footer-inner{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  text-align:center !important;
}
.footer-mail-chip{
  margin:0 auto !important;
}
.rights{
  text-align:center !important;
}
.game-loading-box{
  background:rgba(7,16,38,.72);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:16px 18px;
}
.backend-status{
  min-height:16px;
}
@media (max-width:767px){
  .compact-footer{
    padding:8px 0 10px !important;
  }
}

/* v8 hard footer + whatsapp override */
.compact-footer{
  display:block !important;
  padding:10px 0 12px !important;
  background:rgba(7,12,22,.82) !important;
  min-height:auto !important;
}
.compact-footer-inner{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:10px !important;
}
.compact-footer .rights{
  text-align:center !important;
  margin:0 !important;
}
.compact-footer .footer-mail-chip{
  margin:0 auto !important;
}
#whatswidget-pre-wrapper,
.whatswidget-widget-wrapper,
.whatswidget-button-wrapper,
.whatswidget-button,
.whatswidget-chat-button,
.whatsapp-float,
.whatsapp,
a[href*="wa.me"],
a[href*="api.whatsapp.com"]{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* ===== v9 fixes ===== */
body{
  background:#020816 !important;
  -webkit-tap-highlight-color: transparent;
}
.swiper-slide.context-dark{
  background-image:none !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.page-header,
.rd-navbar-main{
  background:transparent !important;
}
.hero-grid{
  align-items:start !important;
  padding-top:34px !important;
  padding-bottom:18px !important;
}
.hero-market-card,
.hero-news-card,
.arcade-shell,
.live-chat-shell{
  align-self:start !important;
}
.arcade-actions{
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.show-chat-btn.hidden{
  display:none !important;
}
.live-chat-shell.chat-collapsed{
  display:none !important;
}
.volume-range{
  width:96px;
  accent-color:#00d26a;
}
.game-wrap{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  min-height:420px;
}
#space-game,
.board-screen{
  width:100% !important;
  min-height:420px;
}
.game-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  background:rgba(4,8,24,.38);
  border-radius:18px;
  cursor:pointer;
}
.game-overlay.hidden{
  display:none !important;
}
.restart-hidden{
  display:none !important;
}
.backend-status{
  min-height:18px;
  font-size:11px;
  color:#b9cadf;
}
.backend-status.ok{ color:#51d28c; }
.backend-status.error{ color:#ff7b8f; }
.news-feed{
  max-height:540px !important;
}
.news-thumb{
  width:96px !important;
  min-width:96px !important;
  height:96px !important;
}
.snake-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.snake-mode-switch{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.snake-mode-btn{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
}
.snake-mode-btn.active{
  background:rgba(0,210,106,.15);
  border-color:rgba(0,210,106,.32);
}
.snake-stage{
  display:grid;
  grid-template-columns:repeat(24,1fr);
  gap:4px;
  background:rgba(255,255,255,.03);
  padding:10px;
  border-radius:16px;
}
.snake-cell{
  aspect-ratio:1/1;
  border-radius:5px;
  background:rgba(255,255,255,.04);
}
.snake-cell.snake-player{
  background:linear-gradient(135deg,#6ce2ff,#00d26a);
}
.snake-cell.snake-ai{
  background:var(--snake-color,#ff92ff);
}
.snake-cell.snake-food{
  background:var(--food-color,#ffd84d);
  box-shadow:0 0 10px var(--food-color,#ffd84d);
}
.compact-footer{
  background:rgba(7,12,22,.86) !important;
  padding:10px 0 12px !important;
}
.compact-footer-inner{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:8px !important;
}
.footer-mail-chip{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  color:#dce8ff !important;
  text-decoration:none !important;
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  margin:0 auto !important;
}
.footer-mail-chip .mdi{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:18px !important;
  line-height:1 !important;
}
.rights{
  margin:0 !important;
  text-align:center !important;
}
#whatswidget-pre-wrapper,
.whatswidget-widget-wrapper,
.whatswidget-button-wrapper,
.whatswidget-button,
.whatswidget-chat-button,
.whatsapp-float,
.whatsapp,
a[href*="wa.me"],
a[href*="api.whatsapp.com"]{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
@media (max-width: 1199px){
  .hero-grid{
    grid-template-columns:1fr !important;
    gap:14px !important;
    padding-top:18px !important;
  }
  .hero-center-stack{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
}
@media (max-width: 767px){
  .hero-dashboard .container{
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .hero-grid{
    padding-top:8px !important;
    padding-bottom:8px !important;
  }
  .arcade-topbar{
    gap:10px !important;
  }
  .arcade-header-wrap,
  .arcade-actions{
    width:100%;
  }
  .arcade-actions{
    justify-content:flex-start !important;
  }
  .volume-range{
    width:76px;
  }
  .game-wrap{
    min-height:280px !important;
  }
  #space-game,
  .board-screen{
    min-height:280px !important;
  }
  .game-overlay .game-panel h4{
    font-size:20px !important;
  }
  .game-overlay .game-panel p{
    font-size:14px !important;
  }
  .news-thumb{
    width:84px !important;
    min-width:84px !important;
    height:84px !important;
  }
  .compact-footer{
    padding:8px 0 10px !important;
  }
}

/* v14 targeted fixes */
#toggle-game-btn{display:none !important;}
.arcade-mobile-controls{display:none !important;}
#news-updated{display:block !important;}
.news-feed{max-height:500px !important;}
.swiper-slide.context-dark{background-image:none !important;}
body{-webkit-tap-highlight-color:transparent;}
.snake-stage{position:relative;background:linear-gradient(180deg, rgba(4,8,24,.96), rgba(10,20,44,.98)) !important;border:1px solid rgba(255,255,255,.08);overflow:hidden;}
.snake-star{position:absolute;width:2px;height:2px;background:rgba(255,255,255,.75);border-radius:50%;pointer-events:none;}
.snake-cell{background:transparent !important;position:relative;z-index:1;display:flex;align-items:center;justify-content:center;}
.snake-seg{border-radius:10px;box-shadow:0 0 10px rgba(255,255,255,.08);}
.snake-player.snake-seg{background:linear-gradient(135deg,#8ef7ff,#00d26a) !important;}
.snake-ai.snake-seg{background:linear-gradient(135deg,var(--snake-color,#ff92ff), rgba(255,255,255,.18)) !important;}
.snake-head::after{content:"";position:absolute;width:30%;height:30%;right:18%;top:18%;border-radius:50%;background:rgba(255,255,255,.45);}
.snake-food{font-size:16px;filter:drop-shadow(0 0 8px var(--food-color,#ffd84d));}
@media (max-width:767px){
  .game-wrap{min-height:260px !important;}
  #space-game,.board-screen{min-height:260px !important;}
  .arcade-mobile-controls{display:none !important;}
  .game-overlay{padding:10px !important;}
}

/* v16 targeted fixes */
#toggle-game-btn{display:none !important;}
.arcade-mobile-controls{display:none !important;}
#news-updated{display:block !important;}
.swiper-slide.context-dark{background-image:none !important;}
.fullscreen-fallback{
  position:fixed !important;
  inset:8px !important;
  width:auto !important;
  max-width:none !important;
  max-height:none !important;
  z-index:9998 !important;
  background:rgba(5,11,28,.98) !important;
  display:flex !important;
  flex-direction:column !important;
}
.fullscreen-fallback .game-wrap{flex:1 1 auto !important; min-height:0 !important;}
.snake-stage{
  position:relative;
  background:linear-gradient(180deg, rgba(4,8,24,.96), rgba(10,20,44,.98)) !important;
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.snake-star{position:absolute;width:2px;height:2px;background:rgba(255,255,255,.75);border-radius:50%;pointer-events:none;}
.snake-cell{background:transparent !important;position:relative;z-index:1;display:flex;align-items:center;justify-content:center;}
.snake-seg{border-radius:10px;box-shadow:0 0 10px rgba(255,255,255,.08);background:linear-gradient(135deg,var(--snake-color,#8ef7ff), rgba(255,255,255,.18)) !important;}
.snake-head::after{content:"";position:absolute;width:30%;height:30%;right:18%;top:18%;border-radius:50%;background:rgba(255,255,255,.45);}
.snake-food{font-size:16px;filter:drop-shadow(0 0 8px var(--food-color,#ffd84d));}
@media (max-width:767px){
  .board-screen,#space-game{min-height:340px !important;}
  .arcade-mobile-controls{display:none !important;}
  .fullscreen-fallback{inset:0 !important; border-radius:0 !important;}
}

/* connect-space-upgrade anchor */
.arcade-shell:fullscreen,.fullscreen-fallback{width:100vw !important;height:100vh !important;max-width:none !important;max-height:none !important;border-radius:0 !important;}
.arcade-shell:fullscreen .game-wrap,.fullscreen-fallback .game-wrap{display:flex !important;align-items:center !important;justify-content:center !important;height:calc(100vh - 88px) !important;overflow:hidden !important;}
.arcade-shell:fullscreen #space-game,.fullscreen-fallback #space-game{max-height:calc(100vh - 96px) !important;width:auto !important;}


/* mobile game touch refinements */
#space-game,
.game-wrap,
.arcade-shell {
  touch-action: none !important;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}
.arcade-mobile-controls,
.mobile-game-btn {
  display: none !important;
}


/* mobile/game performance and scroll guard */
#game-wrap, .game-wrap, #space-game, .arcade-shell { overscroll-behavior: contain !important; }
#space-game { touch-action: none !important; }
html.game-playing, body.game-playing { overscroll-behavior: none !important; }


/* v7 picker + keyboard fix */
.game-picker-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:10050 !important;
}
.game-picker-backdrop{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
}
.game-picker-dialog{
  position:absolute !important;
  z-index:1 !important;
  width:min(92vw, 560px) !important;
  max-width:560px !important;
}
.game-picker-list--single{
  display:grid !important;
  grid-template-columns:minmax(240px, 320px) !important;
  justify-content:center !important;
}
.game-picker-list--single .game-option-btn{
  min-height:120px !important;
}


/* v8 picker/key final fix */
html.game-playing, body.game-playing { overscroll-behavior: none !important; }
body.game-playing { overflow-y: auto; }
.game-picker-modal{ position:fixed !important; inset:0 !important; z-index:2147483000 !important; display:flex !important; align-items:center !important; justify-content:center !important; }
.game-picker-modal.hidden{ display:none !important; }
.game-picker-backdrop{ position:absolute !important; inset:0 !important; background:rgba(3,8,20,.82) !important; backdrop-filter:blur(6px) !important; z-index:0 !important; }
.game-picker-dialog{ position:relative !important; z-index:2 !important; transform:none !important; top:auto !important; left:auto !important; width:min(92vw, 560px) !important; max-width:560px !important; margin:0 auto !important; }
.game-picker-list, .game-picker-list--single{ display:grid !important; grid-template-columns:minmax(260px,360px) !important; justify-content:center !important; gap:12px !important; }
.game-picker-list .game-option-btn, .game-picker-list--single .game-option-btn{ width:100% !important; min-height:120px !important; text-align:left !important; }
.arcade-shell, .game-wrap, #space-game{ position:relative; z-index:1; }
