/* ============================================================
   Chili Grips Games — Responsive
   Two layouts: Desktop+Tablet (768px+) | Mobile (<768px)
   ============================================================ */

/* Tablet adjustments */
@media (max-width: 1024px) {
  :root {
    --container-pad: 48px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr 200px;
    gap: 32px;
  }

  .about__grid {
    gap: 48px;
  }

  .features__grid {
    gap: 16px;
  }

  .feature-card {
    padding: 32px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --container-pad: 24px;
    --section-pad: 4rem;
  }

  /* Header */
  .header__logo-img {
    height: 48px;
  }

  .footer__logo-img {
    height: 40px;
  }

  .header__nav {
    gap: 24px;
  }

  .header__link {
    font-size: 0.875rem;
  }

  .header__store-btn .btn__icon {
    margin: 0;
  }

  .header__store-btn {
    padding: 10px 14px;
    font-size: 0;
    gap: 0;
  }

  .header__store-btn .btn__icon {
    width: 20px;
    height: 20px;
  }

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

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__artwork {
    aspect-ratio: 16 / 10;
    order: 1;
  }

  .hero__content {
    order: 2;
    gap: 16px;
  }

  .hero__description {
    max-width: none;
  }

  .hero__games {
    order: 3;
    flex-direction: column;
    gap: 4px;
  }

  .hero__games-label {
    padding-left: 0;
    margin-bottom: 4px;
  }

  .hero__game-btn.is-active::before {
    width: 3px;
    height: 100%;
    top: 0;
    bottom: 0;
  }

  /* Stats */
  .stats {
    margin-top: 0;
    padding-top: 32px;
  }

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

  .stats__item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stats__item {
    padding: 32px 24px;
  }

  .stats__value {
    font-size: 1.125rem;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about__avatar {
    width: 200px;
    height: 200px;
    margin-inline: auto;
  }

  .about__content {
    align-items: center;
    padding-top: 0;
  }

  .about__text {
    max-width: none;
  }

  .hero__title {
    line-height: 1.75;
  }

  .hero__game-title {
    white-space: normal;
  }

  .section__header {
    margin-bottom: 40px;
    text-align: center;
  }

  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 32px 28px;
  }

  /* Current project */
  .current__overlay {
    padding: 32px 24px;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer__middle {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Privacy */
  .privacy {
    padding-block: 48px;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .header__nav {
    gap: 16px;
  }
}
