/* ==========================================================================
   MODERN SNAKE GAME - RESPONSIVE STYLES
   Mobile, Tablet, and Touch Optimizations
   ========================================================================== */

/* Media Query: Tablets & Mobile (max-width: 991px) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.75rem !important;
  }
  
  .podium-container {
    gap: 0.75rem;
    padding: 1.5rem 0.5rem;
  }
  
  .podium-step {
    max-width: 140px;
  }

  .podium-step.rank-1 .podium-pillar {
    height: 120px;
  }
  
  .podium-step.rank-2 .podium-pillar {
    height: 95px;
  }
  
  .podium-step.rank-3 .podium-pillar {
    height: 75px;
  }
  
  .podium-avatar {
    width: 52px;
    height: 52px;
  }
  
  .podium-step.rank-1 .podium-avatar {
    width: 66px;
    height: 66px;
  }
}

/* Media Query: Mobile Only (max-width: 767.98px) */
@media (max-width: 767.98px) {
  .navbar-nav {
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .hero-section {
    padding: 2.5rem 0 !important;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-stats-row {
    justify-content: center !important;
  }

  .game-hud {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .canvas-wrapper {
    width: 100%;
    max-width: min(540px, 92vw);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    margin: 0 auto;
  }

  /* Show Virtual D-Pad on Mobile */
  .virtual-dpad {
    display: grid !important;
  }

  .key-hints {
    display: none !important;
  }

  .table-leaderboard td, .table-leaderboard th {
    padding: 0.75rem 0.6rem;
    font-size: 0.85rem;
  }

  .stat-card .stat-value {
    font-size: 1.6rem;
  }

  .podium-score {
    font-size: 0.95rem;
  }
  
  .podium-rank-num {
    font-size: 1.6rem;
  }
}

/* Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .virtual-dpad {
    grid-template-columns: repeat(3, 54px);
    grid-template-rows: repeat(3, 54px);
    gap: 6px;
  }

  .dpad-btn {
    border-radius: 12px;
    font-size: 1.15rem;
  }

  .hud-value {
    font-size: 1.15rem;
  }
  
  .hud-label {
    font-size: 0.65rem;
  }
}

/* Touch Device adjustments */
@media (hover: none) and (pointer: coarse) {
  .virtual-dpad {
    display: grid;
  }
  .key-hints {
    display: none;
  }
}
