/* Shared responsive safeguards for every page. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.container,
.hero-grid,
.hero-content,
.hero-offer-card,
.main-content,
.content-section,
.table-scroll-wrap,
.app-card,
.sticky-bar-text {
  min-width: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

body .game-cat-grid .game-cat-card {
  justify-content: flex-end;
  padding: 16px 12px;
  isolation: isolate;
  background: #10151d;
}

.game-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 9, 13, 0.42) 58%, rgba(6, 9, 13, 0.96) 100%);
  pointer-events: none;
}

.game-cat-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-cat-card:hover .game-cat-image {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.05);
}

.game-cat-card .cat-title,
.game-cat-card .cat-sub {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.game-cat-card .cat-title {
  font-size: 0.9rem;
}

.game-cat-card .cat-sub {
  color: #d1d5db;
}

.content-section,
.hero-content,
.hero-offer-card,
.footer-author-card__body {
  overflow-wrap: anywhere;
}

.site-header .header-inner {
  justify-content: flex-start;
  gap: 20px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
}

.site-header .header-controls .mandatory-header-burger-nav {
  flex: 0 0 auto;
  margin-right: 0;
  margin-left: 0;
}

.header-controls .header-actions {
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body .container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-header .header-inner {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding-right: 8px;
    padding-left: 16px;
    flex: 1 1 auto;
  }

  .site-header .brand-logo,
  .site-header .header-actions,
  .mandatory-header-burger-nav {
    flex-shrink: 0;
  }

  .mandatory-header-burger-nav {
    margin-right: 16px;
    margin-left: 0;
  }

  .hero-section {
    padding: 30px 0 26px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.1rem);
  }

  .hero-badge-row {
    align-items: flex-start;
  }

  .hero-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-card,
  .howto-steps {
    padding: 20px 16px;
  }

  .table-scroll-wrap {
    width: 100%;
    max-width: 100%;
  }

  .sticky-bottom-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
  }

  .sticky-bar-text {
    overflow-wrap: anywhere;
  }

  .sticky-actions {
    flex-shrink: 0;
  }

  .sticky-actions .btn {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 600px) {
  .site-header .header-actions {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header .logo-badge {
    width: 36px;
    height: 36px;
  }

  .site-header .logo-text {
    font-size: 1.05rem;
  }

  .hero-offer-card {
    padding: 20px 16px;
  }

  .game-cat-grid {
    gap: 10px;
  }

  .game-cat-card {
    min-height: 150px;
    padding: 12px 8px;
  }

  .sticky-bottom-bar {
    gap: 8px;
    padding: 9px 10px;
  }

  .sticky-bar-text {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .sticky-actions {
    gap: 4px;
  }

  .sticky-actions .btn {
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .sticky-close {
    padding: 2px 4px;
    font-size: 1.2rem;
  }

  .footer-author-card {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  body .container {
    padding-right: 18px;
    padding-left: 18px;
  }
}
