/* OceanGame V66 — lightweight mobile presentation. Desktop is untouched. */
@media (max-width:700px){
  html{scroll-behavior:auto!important}
  body{background:#f4fbfd!important}
  body,main,.wrap,.container{background-image:none!important}
  body:before,body:after,.og-ambient,.og-bg-orbs,.og-orb,.og-decor,.og-particles{display:none!important;animation:none!important}
  /* Replace glassmorphism with flat translucent surfaces on phones. */
  header,.header,.site-header,.main-header,.navbar,.nav-wrap,.category-bar,.hero,
  .hero-banner,.game-card,.card,.box,.info-card,.filters,.filter-panel,.search-panel,
  .modal-card,.auth-card,.cart-item,.cart-summary,.support-card,.ticket,.profile-card,
  .profile-header,.game-details,.comments,.comment,.related,.related .card,
  .links,.form,.notification-popover,.home-notif-detail-card,.v24-card,
  .glass-modal,.panel,.enamad-slot,.footer-trust-badge,.cart-info{
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    background:#fff!important;
    box-shadow:0 2px 10px rgba(20,70,90,.07)!important;
  }
  header,.header,.site-header,.main-header,.navbar,.nav-wrap{box-shadow:0 2px 10px rgba(20,70,90,.08)!important}
  .game-card,.card,.box,.ticket,.support-card,.profile-card,.cart-item,.cart-summary{transition:none!important}
  .game-card:hover,.card:hover,.box:hover,.ticket:hover,.btn:hover,.buy-button:hover,.modal-card:hover{transform:none!important;filter:none!important;box-shadow:0 2px 10px rgba(20,70,90,.07)!important}
  .banner-slider,.games-banner-slider,.banner-slide,.games-banner-slide{box-shadow:none!important;filter:none!important}
  .banner-arrow,.games-banner-arrow{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
  footer,.footer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;background:#082b40!important;border-radius:18px 18px 0 0!important}
  footer:before,footer:after,.footer:before,.footer:after{display:none!important;animation:none!important}
  img{filter:none!important;transform:none!important}
  .og-mobile-bottom{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 4px 14px rgba(20,70,90,.12)!important}
  /* Keep cards compact so fewer pixels need compositing/painting. */
  .game-card{border-radius:14px!important}
  .game-card img{border-radius:12px 12px 0 0!important}
  .game-body{padding:11px!important}
  .game-card .game-title{font-size:13px!important}
  .home-banners{margin-top:10px!important;margin-bottom:18px!important}
  .banner-slider{border-radius:14px!important}
  /* Stop decorative motion and expensive transitions on phones. */
  *,*::before,*::after{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important}
}


/* OceanGame V81 — phone performance pass.
   Desktop glass/visual effects remain unchanged. */
@media (max-width:700px){
  /* No glassmorphism/compositing on phones. */
  html,body{overflow-x:hidden!important}
  .glass-modal,.modal-overlay,.og-login-notice,.notification-popover,.home-notif-detail,
  .og-mobile-bottom,.glass-site,.glass,.glass-card{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .modal-overlay{background:rgba(4,25,38,.42)!important}
  .home-notif-detail{background:rgba(4,25,38,.42)!important}
  .og-mobile-bottom{
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    right:8px!important;left:8px!important;
    padding:5px!important;gap:4px!important;
    border-radius:15px!important;
    background:#fff!important;
    border:1px solid #d8e8ef!important;
    box-shadow:0 5px 18px rgba(18,70,92,.12)!important;
  }
  .og-mobile-bottom a{
    min-height:43px!important;
    padding:6px 3px!important;
    border-radius:11px!important;
    font-size:15px!important;
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    line-height:1!important;
  }
  .og-mobile-bottom a span{font-size:9px!important;margin-top:4px!important}
  .og-mobile-bottom a.active,
  .og-mobile-bottom a:first-child{background:#0794d2!important;color:#fff!important}
  body:has(.og-mobile-bottom){padding-bottom:70px!important}

  /* Avoid large blur/shadow paint areas on the game grid and profile. */
  .game-card,.card,.box,.ticket,.support-card,.profile-card,.cart-item,.cart-summary,
  .game-details,.comments,.comment,.related,.related .card,
  .v24-card,.v24-notif,.filters,.filter-panel,.search-panel{
    box-shadow:0 1px 7px rgba(20,70,90,.06)!important;
  }
  .game-card,.card,.box,.ticket,.support-card,.profile-card,.cart-item,.cart-summary,
  .v24-notif{will-change:auto!important;transform:none!important}
  .game-card:hover,.card:hover,.box:hover,.ticket:hover,.support-card:hover,
  .profile-card:hover,.cart-item:hover,.v24-notif:hover{transform:none!important}
  .game-card img,.game-image,.thumb,.cover{transform:none!important;filter:none!important}
  .game-card img{content-visibility:auto}
  .related{content-visibility:auto;contain-intrinsic-size:500px}
  .comments{content-visibility:auto;contain-intrinsic-size:360px}

  /* Keep the mobile header compact; account/profile action belongs in bottom nav. */
  .header-inner{min-height:62px!important}
  .header .header-actions .login-button{display:none!important}
  .header .header-actions{gap:5px!important}
  .search-button,.cart-button{width:38px!important;height:38px!important;min-width:38px!important}
  .mobile-menu{font-size:21px!important}
  .logo{font-size:17px!important}
}

/* Auth switch buttons: consistent, intentional controls on both login/register views. */
.auth-switch-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:0 14px!important;
  margin-right:7px!important;
  border:1px solid rgba(7,148,210,.28)!important;
  border-radius:10px!important;
  background:#f1fbff!important;
  color:#087fb7!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.auth-switch-btn:hover{background:#e3f7fd!important;border-color:#0794d2!important}
@media(max-width:700px){
  .login-switch{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important}
  .auth-switch-btn{min-height:38px!important;margin-right:0!important}
}

/* Profile notification separation. */
@media(max-width:700px){
  body.profile-owner .v24-card,
  body.profile-public .v24-card{
    margin-top:22px!important;
    padding-top:18px!important;
  }
  body.profile-owner .box.extra + .box.extra{margin-top:18px!important}
  body.profile-owner .quick-grid{margin-bottom:18px!important}
  .v24-notif{margin-top:10px!important}
}
