/* === TABLET — max 1024px === */
@media (max-width: 1024px) {
  .section-gap {
    padding-block: var(--section-gap-tablet);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

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

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

  .hero-description {
    margin-inline: auto;
  }

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

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

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

  .gpf-item:nth-child(2) {
    border-right: none;
  }

  .gpf-item:nth-child(3) {
    border-right: 1px solid var(--border-subtle);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-disclaimer {
    grid-column: span 2;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-story-text {
    padding-right: 0;
  }

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

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

  .daily-rewards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .daily-reward-card:nth-child(5),
  .daily-reward-card:nth-child(6),
  .daily-reward-card:nth-child(7) {
    grid-column: auto;
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-actions {
    justify-content: center;
  }

  .lucky-wheel-display {
    flex-direction: column;
    gap: var(--space-8);
  }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 60px 1fr 120px;
  }

  .leaderboard-header span:last-child,
  .lb-streak {
    display: none;
  }

  .section-title {
    font-size: var(--text-3xl);
  }
}

/* === MOBILE — max 768px === */
@media (max-width: 768px) {
  .section-gap {
    padding-block: var(--section-gap-mobile);
  }

  .container {
    padding-inline: var(--space-4);
  }

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

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  /* Hero */
  .hero-headline {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: var(--space-4);
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .game-panel-features {
    grid-template-columns: 1fr;
  }

  .gpf-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .gpf-item:last-child {
    border-bottom: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-disclaimer {
    grid-column: auto;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  /* Games */
  .games-grid {
    grid-template-columns: 1fr;
  }

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

  /* Responsible */
  .responsible-principles {
    grid-template-columns: 1fr;
  }

  .resource-cards {
    grid-template-columns: 1fr;
  }

  .warning-signs-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-info-panel {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-panel {
    padding: var(--space-10);
  }

  .cta-title {
    font-size: var(--text-3xl);
  }

  /* Leaderboard */
  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 50px 1fr 100px;
  }

  /* Lore */
  .lore-world-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lore-panel {
    padding: var(--space-8);
  }

  /* Page hero */
  .page-hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Responsible key message */
  .responsible-key-message {
    flex-direction: column;
    text-align: center;
    padding: var(--space-8);
  }

  /* Section header */
  .section-title {
    font-size: var(--text-2xl);
  }

  /* Streak */
  .streak-tier {
    flex-wrap: wrap;
  }

  /* Wheel */
  .wheel-container {
    width: 220px;
    height: 220px;
  }

  /* About lore cards — stacked */
  .about-story-visual {
    gap: var(--space-3);
  }
}

/* === SMALL MOBILE — max 480px === */
@media (max-width: 480px) {
  .daily-rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat-divider {
    display: none;
  }

  .cta-panel {
    padding: var(--space-8) var(--space-6);
  }

  .contact-form-panel {
    padding: var(--space-6);
  }

  .lore-world-grid {
    grid-template-columns: 1fr;
  }

  .reel-frame {
    width: 280px;
    height: 240px;
  }
}

/* === PREFERS REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }
}