/* ========== MOBILE NAV (< 993px) ========== */
@media (max-width: 993px) {
  .topPanel {
    height: 55px;
    padding: 0 15px;
    justify-content: space-between !important;
  }

  .topPanel-wrapper {
    justify-content: space-between !important;
    padding: 0 !important;
  }

  .topPanel .topPanel-left {
    transition: 0.3s;
    width: 280px;
    height: 100vh;
    left: -280px;
    top: 0;
    position: fixed;
    background: #0d0b09;
    z-index: 1001;
    display: block;
    padding-top: 70px;
    overflow-y: auto;
    border-right: 1px solid rgba(184,134,11,0.1);
  }

  .topPanel .topPanel-left.active { left: 0; }

  .topPanel .logo-mini {
    position: fixed;
    top: 12px;
    left: 15px;
    z-index: 1002;
    margin: 0;
    height: auto !important;
  }

  .topPanel .logo-mini img {
    height: 28px !important;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap;
    height: auto !important;
    justify-content: flex-start !important;
  }

  .nav-menu li { display: block !important; }

  .nav-menu li a {
    padding: 14px 24px !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 12px !important;
    border-bottom: 1px solid rgba(184,134,11,0.06);
    display: block !important;
  }

  .nav-menu li ul {
    position: relative !important;
    left: auto !important; top: auto !important;
    opacity: 1 !important; visibility: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .nav-menu li ul li a {
    font-size: 11px !important;
    padding: 12px 24px 12px 40px !important;
  }

  .nav-menu .hstack {
    margin-left: 0 !important;
    padding: 16px 24px;
    display: flex !important;
    flex-direction: row;
    gap: 10px !important;
    height: auto !important;
  }

  .sign-in {
    font-size: 9px !important;
    padding: 8px 16px !important;
  }

  /* Hamburger button */
  .btn.btn-drop {
    width: 40px; height: 36px;
    display: flex !important; align-items: center; justify-content: center;
    border: 1px solid rgba(184,134,11,0.15);
    background: transparent;
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 1002;
    border-radius: 4px;
    padding: 0;
  }

  .btn.btn-drop .btn-wrap {
    width: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .btn.btn-drop .btn-wrap span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--cor-id-3);
    border-radius: 1px;
  }

  .btn.btn-drop.active {
    position: fixed;
    right: auto;
    left: 240px;
  }

  /* Hero mobile */
  header {
    padding-left: 5% !important;
    padding-right: 5% !important;
    min-height: 380px !important;
    align-items: center !important;
  }

  .logo { text-align: center !important; }
  .logo img { max-width: 220px !important; }

  .mdk-hero-cta {
    text-align: center !important;
  }
  .mdk-hero-cta .hero-text { font-size: 22px !important; }
  .mdk-hero-cta .btn-play { padding: 10px 30px !important; font-size: 11px !important; }

  .mdk-server-status {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px auto !important;
  }
}

/* ========== TABLET (< 992px) ========== */
@media (max-width: 992px) {
  .mdk-panels {
    grid-template-columns: 1fr;
  }

  .ghallfame .bottom-block {
    grid-template-columns: 1fr;
  }

  .footerMenu {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .mdk-slide-cs-row {
    grid-template-columns: 1fr;
    height: auto !important;
  }

  .mdk-slide-box,
  .mdk-cs-box,
  .mdk-cs-box .castle-siege-section {
    height: 280px !important;
  }

  .mdk-slide-box .swiper-container,
  .mdk-slide-box .swiper,
  .mdk-slide-box > div,
  .mdk-slide-box .swiper-slide,
  .mdk-slide-box .swiper-slide img,
  .mdk-slide-box img {
    height: 280px !important;
  }

  .mdk-quicklinks {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== MOBILE (< 768px) ========== */
@media (max-width: 768px) {
  .wrapper { padding: 0 12px; }

  .mdk-quicklinks {
    grid-template-columns: repeat(2, 1fr);
  }

  .mdk-quicklink-item {
    padding: 14px 8px;
  }

  .mdk-panels { grid-template-columns: 1fr; gap: 10px; }

  .ghallfame .bottom-block { grid-template-columns: 1fr; padding: 10px; }

  .footerMenu { grid-template-columns: 1fr; gap: 20px; }
  .footerInfo-block { flex-direction: column; gap: 6px; text-align: center; }
  .footerInfo-block .copy { text-align: center !important; }

  .market-home-wrap .slider-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .page {
    padding: 20px 16px !important;
    width: calc(100% - 20px) !important;
    margin: 10px auto !important;
  }

  .plugin-container,
  .regBlock,
  .main {
    width: calc(100% - 20px) !important;
    padding: 20px 16px !important;
  }
}

/* ========== SMALL (< 480px) ========== */
@media (max-width: 480px) {
  .logo img { max-width: 180px !important; }
  .mdk-hero-cta .hero-text { font-size: 18px !important; }
  .mdk-hero-cta .btn-play { padding: 8px 22px !important; font-size: 10px !important; }

  .mdk-quicklinks { grid-template-columns: 1fr; }

  .footer-social a { width: 32px; height: 32px; font-size: 14px; }

  .market-home-wrap .slider-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* ========== HIDE TOGGLE ON DESKTOP ========== */
@media (min-width: 994px) {
  .toggle-panel-btn { display: none; }
  .btn.btn-drop { display: none !important; }
}

/* ========== TABLET LANDSCAPE (768-1200px) ========== */
@media (min-width: 768px) and (max-width: 1200px) {
  .mdk-panels { grid-template-columns: 1fr 1fr; }
  .mdk-panels .mdk-panel:last-child { grid-column: 1 / -1; }
}
