/* ===========================
   RESPONSIVE — TABLET (max-width: 1024px)
   =========================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--padding-tablet);
  }

  .section {
    padding: var(--section-gap-tablet) 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  /* Header */
  .nav-main {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-currency {
    display: none;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-game-frame {
    max-width: 480px;
    margin: 0 auto;
  }

  /* Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Newsletter */
  .newsletter-section {
    padding: 40px 24px;
  }

  /* Page Hero */
  .page-hero h1 {
    font-size: 2.5rem;
  }

  /* Dashboard */
  .dashboard-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Leaderboard */
  .leaderboard-table {
    font-size: 0.85rem;
  }
}

/* ===========================
   RESPONSIVE — MOBILE (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--padding-mobile);
  }

  .section {
    padding: var(--section-gap-mobile) 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-game-frame {
    max-width: 100%;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Dashboard */
  .dashboard-stats-row {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-section {
    padding: 32px 20px;
  }

  /* Page Hero */
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  /* Modal */
  .modal {
    padding: 28px;
    max-width: 100%;
  }

  /* Buttons */
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* Game filters */
  .game-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .game-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  /* Search */
  .search-bar {
    max-width: 100%;
  }

  /* Header adjustments */
  .header-inner {
    padding: 0 var(--padding-mobile);
  }

  /* Content */
  .content-section {
    padding: 0 var(--padding-mobile);
  }

  .content-section h2 {
    font-size: 1.3rem;
  }

  /* Rewards grid */
  .rewards-grid-7 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Leaderboard responsive */
  .leaderboard-table thead {
    display: none;
  }

  .leaderboard-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
  }

  .leaderboard-table tbody td {
    padding: 0;
    border-radius: 0 !important;
  }

  .leaderboard-table tbody td:first-child {
    border-radius: 0;
  }

  .leaderboard-table tbody td:last-child {
    border-radius: 0;
    margin-left: auto;
  }

  .leaderboard-table .player-info {
    flex: 1;
  }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   =========================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-stat-value {
    font-size: 1.35rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .glass-card {
    padding: 24px;
  }

  .feature-card {
    padding: 24px 16px;
  }
}