/* TS Retro Mobile V4.2 — responsive presentation only; no account/payment logic changed. */
@media (max-width: 760px) {
  html { overflow-x: clip; }
  body.dy-theme { width:100%; overflow-x:clip; background-attachment:scroll!important; }

  /* Entire TS Retro logo remains visible at every phone width. */
  .dy-theme .dy-masthead {
    width:100%; height:clamp(116px,37vw,168px); overflow:hidden;
    background:linear-gradient(90deg,rgba(18,6,5,.38),rgba(30,7,8,.30)),url('retro-battlefield.jpg') center 29%/cover no-repeat!important;
  }
  .dy-theme .dy-masthead::before {
    content:""; position:absolute; inset:4px 7px;
    width:auto; height:auto; transform:none;
    background:url('retro-logo-art.jpg?v=4.2') center center/contain no-repeat!important;
    pointer-events:none;z-index:1;
  }
  .dy-theme .dy-masthead::after {background:linear-gradient(90deg,#240a0866,#240a0810,#240a0866)!important;opacity:1!important;z-index:0;}
  .dy-theme .dy-masthead-home{width:100%;height:100%;z-index:2;}

  /* Compact navigation: one toolbar row, optional two-column expandable menu. */
  .dy-theme .navbar, .dy-theme .dy-quicknav {
    width:calc(100% - 16px)!important; margin:7px auto 10px!important;
    min-height:0!important; border-radius:9px!important;
  }
  .dy-theme .navbar-container{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;padding:5px 7px!important;min-height:0;height:auto!important;}
  .dy-theme .nav-user{min-width:0; flex:1 1 auto!important; order:1;justify-content:flex-end!important;gap:5px!important;padding:0!important;white-space:normal;font-size:11px;}
  .dy-theme .nav-user .nav-greeting{min-width:0;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;}
  .dy-theme .nav-user .nav-points{font-size:11px!important;padding:5px 6px!important;white-space:nowrap;}
  .dy-theme .nav-user .btn-logout{font-size:11px!important;padding:6px 7px!important;white-space:nowrap;}
  .dy-theme .nav-user a:not(.btn-logout){padding:5px 7px;font-size:12px!important;}
  .dy-theme .dy-mobile-toggle{
    display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
    flex:0 0 auto;min-height:36px;min-width:91px;
    margin:0;padding:7px 10px!important;
    font-size:13px!important;line-height:1.2!important;
    background:linear-gradient(180deg,#f5d37b,#bf7b2c)!important;
    border:1px solid #f5d488!important;border-radius:6px!important;
    color:#4b1906!important;box-shadow:none!important;text-shadow:none!important;
  }
  .dy-theme .dy-mobile-toggle .dy-hamburger{font-size:18px;line-height:1;}
  .dy-theme .dy-mobile-ready.navbar .nav-links{display:none!important;flex:0 0 100%!important;order:3;}
  .dy-theme .dy-mobile-ready.navbar.dy-mobile-open .nav-links{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
    padding:8px 0 3px;gap:5px!important;white-space:normal!important;
  }
  .dy-theme .navbar.dy-mobile-open .nav-links a{
    display:flex!important;justify-content:flex-start!important;min-width:0;min-height:43px;
    padding:10px!important;border:1px solid #85441f!important;
    border-radius:6px!important;background:#36150e!important;
    white-space:normal!important;font-size:12px!important;
  }
  .dy-theme .navbar.dy-mobile-open .nav-links a.active{background:linear-gradient(#f5c966,#c3802f)!important;color:#391005!important;}
  .dy-theme .dy-quicknav{padding:5px 7px!important;align-items:center;justify-content:flex-start;gap:5px!important;}
  .dy-theme .dy-mobile-ready.dy-quicknav>a{display:none!important;}
  .dy-theme .dy-mobile-ready.dy-quicknav.dy-mobile-open .dy-mobile-toggle{width:100%;justify-content:flex-start;}
  .dy-theme .dy-mobile-ready.dy-quicknav.dy-mobile-open>a{
    display:inline-flex!important;width:calc(50% - 3px);justify-content:flex-start!important;
    border:1px solid #85441f!important;background:#35150c!important;
    border-radius:6px!important;padding:10px!important;min-height:43px;
    font-size:12px!important;white-space:normal!important;
  }
  .dy-theme .dy-mobile-ready.dy-quicknav.dy-mobile-open>a:hover{background:#643119!important;}

  /* If JS is unavailable, keep navigation accessible as a horizontally scrolling strip. */
  .dy-theme .navbar:not(.dy-mobile-ready) .nav-links{flex-wrap:nowrap!important;overflow-x:auto;justify-content:flex-start!important;}
  .dy-theme .navbar:not(.dy-mobile-ready) .nav-links>a{flex:0 0 auto;}
  .dy-theme .dy-quicknav:not(.dy-mobile-ready){overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;}
  .dy-theme .dy-quicknav:not(.dy-mobile-ready)>a{flex:0 0 auto;}

  /* Homescreen: order essential features first; avoid forcing user to scroll past sidebars. */
  .dy-home .dy-shell{width:calc(100% - 20px)!important;margin:10px auto 0;}
  .dy-home .dy-layout{display:flex!important;flex-direction:column;gap:11px!important;}
  .dy-home .dy-sidebar-left,.dy-home .dy-middle,.dy-home .dy-sidebar-right{display:contents!important;}
  .dy-home .dy-layout > * > *{width:100%;min-width:0;}
  .dy-home .dy-account{order:1;}
  .dy-home .dy-status{order:2;}
  .dy-home .dy-large-action{order:3;}
  .dy-home .dy-news{order:4;}
  .dy-home .dy-promo{order:5;}
  .dy-home .dy-side-nav{order:6;}
  .dy-home .dy-ranking{order:7;}
  .dy-home .dy-cities{order:8;}
  .dy-home .dy-events{order:9;}
  .dy-home .dy-get-started{order:10;}
  .dy-home .dy-panel-heading{min-height:42px;padding:8px 12px!important;font-size:16px!important;}
  .dy-home .dy-panel-heading > span:first-child{font-size:20px;}
  .dy-home .dy-panel-body{padding:11px 12px 12px!important;}
  .dy-home .dy-welcome{margin:0 0 5px!important;font-size:12px;}
  .dy-home .dy-point-display{margin:0 0 9px!important;padding:7px 10px!important;}
  .dy-home .dy-account .dy-action-button{padding:8px 10px!important;min-height:40px;font-size:14px!important;}
  /* Logout is already accessible in the top navigation on phones. */
  .dy-home .dy-account .dy-small-link{display:none!important;}
  .dy-home .dy-login-form input{min-height:43px;font-size:16px!important;margin-bottom:7px!important;}
  .dy-home .dy-account-links{margin:10px 0 0!important;}
  .dy-home .dy-large-action{min-height:64px!important;gap:10px!important;}
  .dy-home .dy-large-action > span:first-child{font-size:30px;}
  .dy-home .dy-large-action strong{font-size:20px;}
  .dy-home .dy-side-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px;}
  .dy-home .dy-side-nav a{padding:10px 7px!important;min-height:50px;gap:5px;font-size:12px!important;}
  .dy-home .dy-side-nav a b{font-size:19px;}
  .dy-home .dy-status-content{grid-template-columns:repeat(4,minmax(0,1fr));padding:7px!important;gap:3px;min-height:0;}
  .dy-home .dy-server-name{grid-column:1/-1;min-height:44px;padding:5px 7px!important;}
  .dy-home .dy-server-name strong{font-size:16px;}
  .dy-home .dy-server-name small,.dy-home .dy-server-name span{font-size:11px;}
  .dy-home .dy-stat{min-height:58px!important;padding:6px 0;}
  .dy-home .dy-stat b{font-size:18px!important;}
  .dy-home .dy-stat span{font-size:10px!important;}
  .dy-home .dy-server-flag{font-size:11px;padding:3px 7px;white-space:nowrap;}
  .dy-home .dy-news-list{padding:5px 10px 8px;}
  .dy-home .dy-news-item{min-width:0;gap:7px;}
  .dy-home .dy-news-title{font-size:12px;}
  .dy-home .dy-news-tag{min-width:49px;font-size:10px;}
  .dy-home .dy-promo{min-height:130px!important;}
  .dy-home .dy-promo-text{padding:15px 15px;max-width:85%;}
  .dy-home .dy-promo-text strong{font-size:22px!important;}
  .dy-home .dy-promo-text>span{font-size:10px;}
  .dy-home .dy-heading-link{font-size:11px;}
  .dy-home .dy-rank-item{min-height:37px;}
  .dy-home .dy-footer{padding:17px 8px 34px;}

  /* Inner pages: forms, buttons and tables stay within viewport. */
  .dy-inner .container,.dy-inner .download-wrap,.dy-inner .admin-container,.dy-inner .admin-download,.dy-inner .history-wrap,
  .dy-inner .shop-container,.dy-inner .topup-container,.dy-inner .dashboard-container{
    width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
    margin-top:12px!important;padding:14px!important;
  }
  .dy-inner.dy-auth-page .container{width:calc(100% - 20px)!important;max-width:480px!important;margin-top:14px!important;padding:17px!important;}
  .dy-inner .container h1,.dy-inner .container h2{font-size:clamp(20px,5vw,26px)!important;}
  .dy-inner img,.dy-inner iframe{max-width:100%;}
  .dy-inner input[type="text"],.dy-inner input[type="password"],.dy-inner input[type="email"],.dy-inner input[type="number"],.dy-inner select,.dy-inner textarea{max-width:100%;font-size:16px;}
  .dy-inner .dashboard-content-wrapper,.dy-inner .shop-grid,.dy-inner .download-grid{max-width:100%;min-width:0;}
  .dy-inner table{max-width:100%;}
  .dy-inner .admin-container,.dy-inner .admin-download,.dy-inner .history-wrap{overflow-x:auto;}
}
@media (max-width:360px) {
  .dy-theme .nav-user .nav-greeting{max-width:60px;}
  .dy-theme .nav-user .nav-points{padding:5px 4px!important;}
  .dy-theme .dy-mobile-toggle{min-width:78px;padding:7px 6px!important;}
  .dy-home .dy-side-nav a{font-size:11px!important;}
  .dy-home .dy-panel-heading{font-size:15px!important;}
}
@media (min-width:761px){.dy-theme .dy-mobile-toggle{display:none!important;}}
