/* ==========================================================================
   1Playable - Global Responsive Polish & Cross-Device Fixes
   Safe area insets, touch targets, fluid type, overflow guard.
   ========================================================================== */

/* === Fluid Image Safety === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Touch Target Minimum Size === */
button, a, [role="button"] {
  min-height: 40px;
  min-width: 40px;
}

/* === Overflow Guard (no horizontal scroll on any device) === */
html, body {
  overflow-x: hidden;
}

/* === Safe Area Insets (iPhone notch / home bar) === */
.industry-footer {
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.modal-close-only-bar {
  right: max(0px, env(safe-area-inset-right));
}

/* === Container Responsive Padding === */
@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
}

/* === Header Logo Scaling === */
@media (max-width: 400px) {
  .site-logo-img {
    height: 100px;
  }
}

/* === Footer Multi-col Responsive === */
@media (max-width: 600px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* === Contact Form Responsive === */
@media (max-width: 480px) {
  .home-contact-card {
    padding: 1.5rem 1.25rem;
  }
}

/* === About Page Feature Grid Responsive === */
@media (max-width: 600px) {
  .about-feature-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .about-headline {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 380px) {
  .about-feature-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sharp);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  min-height: 42px;
}

.btn-primary {
  background-color: var(--accent-black);
  color: var(--text-inverse);
  border-color: var(--accent-black);
}

.btn-primary:hover {
  background-color: #333;
  border-color: #333;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-sharp);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--text-inverse);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  min-height: 36px;
}

/* === Tilted ticker: keep within bounds on small screens === */
@media (max-width: 480px) {
  .tilted-news-banner {
    height: 40px;
  }

  .tilted-ticker-item {
    font-size: 0.75rem;
    padding: 0 1.5rem;
    gap: 1rem;
  }
}

/* === Games / Blog page header text responsive === */
@media (max-width: 600px) {
  .games-header-section h1,
  .blog-hero h1 {
    font-size: 1.6rem !important;
  }
}
