/* KUBET MOBILE LAYOUT FIX - 2026-11-19. Loaded after legacy styles. */
@media (max-width: 760px) {
  html { width:100%; max-width:100%; overflow-x:clip; -webkit-text-size-adjust:100%; }
  body { width:100%; min-width:0; max-width:100%; margin:0; overflow-x:clip; }
  body *, body *::before, body *::after { box-sizing:border-box; }
  .shell, .mast-inner, .ticker-inner, main, .sections, .qh-bottom, .footer, .nav-wrap, .ticker, .announcement, .security-announcement { width:100%; max-width:100%; min-width:0; }
  .shell { margin-inline:auto; padding-inline:12px; }
  .mast { width:100%; }
  .mast .mast-inner { display:flex; align-items:center; flex-wrap:nowrap; justify-content:space-between; height:62px; gap:5px !important; padding-inline:10px; }
  .mast .mast-inner .logo { flex:0 1 102px; width:102px!important; max-width:27vw!important; height:47px!important; min-width:0; object-fit:contain; }
  .mast .mast-inner .account { display:flex!important; flex:0 0 auto; min-width:0; margin-left:auto!important; gap:4px!important; }
  .mast .account .field { display:none!important; }
  .mast .account .pill { display:inline-flex!important; min-width:0!important; min-height:30px; padding:7px 8px!important; font:700 10px/1.1 Arial,sans-serif!important; white-space:nowrap; }
  .mast .mast-inner .menu-btn { display:inline-flex; align-items:center; justify-content:center; flex:none; width:32px; height:32px; padding:0; font-size:18px; }
  .nav-wrap { z-index:45; }
  .mega-nav { width:100%; max-width:100%; max-height:calc(100dvh - 108px); overflow-x:hidden; }
  .mega-nav .nav-item { min-width:0; }
  .mega-nav .mega-panel { width:100%!important; min-width:0; max-width:100%; }
  .mega-grid { width:100%; min-width:0; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mega-grid .game-entry { min-width:0; }
  .mega-grid .game-entry img { max-width:100%; }
  .ticker { width:100%; overflow:hidden; }
  .ticker-inner { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:5px; padding:6px 10px; font-size:11px; min-width:0; }
  .ticker-inner > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ticker-inner .counter { display:none; }
  .ticker-inner .quick { display:flex!important; width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; gap:14px; padding:3px 0 5px; scrollbar-width:none; white-space:nowrap; -webkit-overflow-scrolling:touch; }
  .ticker-inner .quick::-webkit-scrollbar { display:none; }
  .ticker-inner .quick a { display:inline-block; flex:none; font-size:11px; }
  .hero-slider { display:block; position:relative; left:auto; right:auto; margin:0; width:100%; max-width:100%; min-height:0!important; aspect-ratio:1782/564!important; overflow:hidden; }
  .hero-slider .slides, .hero-slider .slide { width:100%; max-width:100%; }
  .hero-slider .slide img { width:100%; height:100%; max-width:100%; object-fit:cover; }
  .hero-slider .slider-dots { bottom:4px; }
  .announcement.security-announcement { width:100%; min-width:0; overflow:hidden; padding:6px 7px; }
  .security-announcement .security-label { flex:none; max-width:105px; min-width:0; font-size:10px; }
  .security-announcement .security-label strong { font-size:10px; }
  .security-announcement .security-window { flex:1 1 0%; width:0; min-width:0; overflow:hidden; }
  .sections { width:100%; max-width:100%; padding:20px 10px; overflow:hidden; }
  .section-heading { width:100%; max-width:100%; height:auto; margin:0 auto 16px; }
  .hot-grid { display:grid; width:100%; max-width:100%; min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .hot-card { min-width:0; width:auto; max-width:100%; padding:10px 6px; overflow:hidden; }
  .hot-card img { display:block; width:100%; height:auto; max-width:100%; aspect-ratio:1; object-fit:contain; }
  .hot-card strong { font-size:13px; overflow-wrap:anywhere; }
  .hot-card small { font-size:11px; margin:5px 0; }
  .qh-bottom, .footer { overflow:hidden; }
  .mobile-bar { max-width:100%; }
  img, video, iframe { max-width:100%; }
}
@media(max-width:360px) {
  .mast .mast-inner { padding-inline:7px; gap:3px!important; }
  .mast .mast-inner .logo { width:88px!important; max-width:24vw!important; }
  .mast .account .pill { padding:6px!important; font-size:9px!important; }
  .mast .mast-inner .menu-btn { width:29px; }
  .mega-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
