/* OceanGame V59 — UX/UI polish without changing application logic */
:root{--ux-ocean:#087fb7;--ux-cyan:#16b8d6;--ux-ink:#173b57;--ux-muted:#607b8d;--ux-line:#d9eaf1;--ux-soft:#f3faff}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
button,a,input,select,textarea{touch-action:manipulation}
button,.btn,a.btn{min-height:40px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(22,184,214,.25);outline-offset:2px}
/* readable light surfaces */
input,select,textarea{border:1px solid var(--ux-line)!important;background:rgba(255,255,255,.86)!important;color:var(--ux-ink)!important}
input::placeholder,textarea::placeholder{color:#8aa0ad!important}
/* auth: compact, centered, never glued to the header */
.modal-overlay{padding:24px 16px!important;align-items:center!important;justify-content:center!important}
.glass-modal.login-box{width:min(430px,100%)!important;max-width:430px!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;margin:24px auto!important;border-radius:24px!important}
.login-box form{display:flex;flex-direction:column;gap:12px}
.login-box .form-group{margin:0!important}
.login-box .form-group label{display:block;margin-bottom:6px;font-size:12px;font-weight:800;color:var(--ux-ink)}
.login-box input{width:100%!important;box-sizing:border-box!important;min-height:44px!important}
.login-submit{min-height:46px!important;border-radius:14px!important}
.login-switch{margin-top:14px!important;padding-top:12px!important;border-top:1px solid var(--ux-line)}
@media(max-width:600px){.modal-overlay{padding:18px 12px!important}.glass-modal.login-box{max-height:calc(100dvh - 36px)!important;margin:18px auto!important;border-radius:20px!important;padding:18px!important}.login-logo{margin-bottom:12px!important}.login-logo h2{font-size:20px!important}.login-box input{min-height:42px!important}}
/* Home banner: one predictable responsive rule wins over older overrides */
.home-banners{width:min(1240px,calc(100% - 24px))!important;margin-inline:auto!important;padding:0!important;box-sizing:border-box!important}
.banner-slider{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:21/7!important;overflow:hidden!important}
.banner-slide,.banner-slide img{width:100%!important;height:100%!important}
.banner-slide img{object-fit:cover!important;display:block!important}
@media(max-width:700px){.home-banners{width:calc(100% - 20px)!important;margin-top:12px!important}.banner-slider{aspect-ratio:16/9!important;border-radius:16px!important}.banner-caption{right:14px!important;left:14px!important;bottom:14px!important}.banner-caption span{font-size:clamp(14px,4.7vw,22px)!important}.banner-caption b{font-size:10px!important}.banner-arrow{width:34px!important;height:34px!important;font-size:24px!important}.banner-slide img{object-fit:cover!important}}
@media(max-width:380px){.home-banners{width:calc(100% - 16px)!important}.banner-slider{aspect-ratio:4/3!important}.banner-caption{bottom:10px!important}}
/* cards / forms: stronger hierarchy and easier tapping */
.game-card,.card,.box,.ticket,.support-card,.profile-card,.cart-item,.cart-summary{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.game-card:hover,.ticket:hover,.cart-item:hover{transform:translateY(-2px)}
.form,.form-group{gap:10px}
.form button,.form .btn{width:auto;min-width:140px}
/* Profile: make editing and quick actions scannable */
.profile-top{gap:14px!important}
.quick-grid{gap:10px!important}
.quick-grid a{min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.password-change-box{margin-top:10px!important;padding:16px!important;border:1px solid var(--ux-line)!important;border-radius:18px!important;background:linear-gradient(135deg,#f7fdff,#fff)!important}
.password-change-box small{display:block;margin:5px 0 12px;color:var(--ux-muted);line-height:1.8}
/* Support: make the primary action obvious and tickets easier to scan */
.support-card .btn,.card .btn{font-weight:900!important}
.ticket{padding:15px!important;border:1px solid var(--ux-line)!important;background:rgba(255,255,255,.82)!important}
.ticket-reply{margin-top:10px!important;padding:11px!important;border-radius:12px!important;background:var(--ux-soft)!important}
/* Game detail: sticky purchase/action area on small screens */
.game-details .buy-button,.game-details .btn{min-height:44px!important}
/* Panel: clearer controls without changing structure */
.panel .btn,.admin-item .btn,.nav button,.nav a{min-height:42px!important}
.panel input,.panel select,.panel textarea{min-height:42px!important;border-radius:12px!important}
.admin-item,.game{border-radius:16px!important}
.admin-actions{gap:8px!important}
@media(max-width:800px){.admin-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-actions .btn{min-width:0!important;width:100%!important}.panel .nav{gap:7px!important}}
/* trust/payment: clickable badges should look clickable */
.footer-trust-badge a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;color:inherit!important;text-decoration:none!important;width:100%!important}
.footer-trust-badge.is-link{cursor:pointer!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
.footer-trust-badge.is-link:hover{transform:translateY(-2px)!important;border-color:rgba(8,127,183,.28)!important;box-shadow:0 10px 24px rgba(8,127,183,.10)!important}
/* avoid mobile content hiding behind the bottom nav */
@media(max-width:600px){body{padding-bottom:0}.og-mobile-bottom~*{padding-bottom:0}}


/* OceanGame V63 — safe mobile rendering fallback */
@media (max-width:700px){
  html,body{scroll-behavior:auto!important;overflow-x:hidden!important;}
  body{min-height:100vh!important;height:auto!important;background:#f2fbfe!important;}
  .game-card,.card,.box,.ticket,.modal-card,.glass-modal,.og-mobile-bottom,footer,.footer{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .game-card:hover,.card:hover,.ticket:hover,.modal-card:hover,.btn:hover,.buy-button:hover{transform:none!important;}
  img{content-visibility:visible!important;}
}

/* V64 — hard mobile render recovery: keep the page in normal flow */
@media (max-width:700px){
 html,html body{display:block!important;position:static!important;min-height:100%!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;background:#f2fbfe!important;color:#082536!important;}
 body{isolation:auto!important;contain:none!important;}
 body::before,body::after,.og-ambient,.og-orb{display:none!important;content:none!important;animation:none!important;transform:none!important;filter:none!important;mix-blend-mode:normal!important;}
 main{display:block!important;position:relative!important;z-index:1!important;min-height:0!important;flex:none!important;}
 .page{display:none!important;visibility:hidden!important;opacity:0!important;position:relative!important;}
 .page.active{display:block!important;visibility:visible!important;opacity:1!important;transform:none!important;filter:none!important;}
 .header{position:relative!important;top:auto!important;left:auto!important;right:auto!important;transform:none!important;scale:none!important;zoom:1!important;}
 .header.og-force-fixed{position:relative!important;top:auto!important;left:auto!important;right:auto!important;width:calc(100% - 16px)!important;margin:8px auto 0!important;transform:none!important;}
 .og-header-spacer{display:none!important;height:0!important;}
 .banner-slider,.banner-slide,.game-card,.card,.box,.footer,.footer *{will-change:auto!important;}
 .banner-slider{transform:none!important;}
 footer,.footer{position:relative!important;transform:none!important;}
}
