@media (max-width: 640px) {
  .level-card {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.75rem;
  }

  .level-image-container {
    height: 180px;
  }

  .level-tab-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  .level-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .level-card:hover {
    transform: translateY(-2px);
  }

  .mobile-stack {
    flex-direction: column;
  }

  .mobile-full-width {
    width: 100%;
  }

  .mobile-text-center {
    text-align: center;
  }

  .mobile-p-4 {
    padding: 1rem;
  }

  .mobile-px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .mobile-space-y-3 > * + * {
    margin-top: 0.75rem;
  }

  .mobile-space-y-4 > * + * {
    margin-top: 1rem;
  }

  .mobile-hidden {
    display: none;
  }

  .mobile-block {
    display: block;
  }

  .mobile-flex {
    display: flex;
  }

  .truncate-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .tablet-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tablet-hidden {
    display: none;
  }

  .tablet-text-sm {
    font-size: 0.875rem;
  }

  .tablet-p-3 {
    padding: 0.75rem;
  }

  .tablet-mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .desktop-hidden {
    display: none;
  }

  .desktop-block {
    display: block;
  }
}

@media (min-width: 641px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}
