/* Shared cover geometry. Explicit height overrides HTML height attributes. */
.game-card > img,
.game-card > .game-image {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  flex: none;
}
.game-card { align-self: start; }

/* Ported from ApostarHub: readable entry, touch targets and unconstrained content. */
.site-header .header-actions { min-width: 0; }
.site-header .profile-button { flex: 0 0 42px; padding: 0; line-height: 1; }
.site-header .login-button, .site-header .register-button { min-height: 44px; font-size: 13px; text-transform: none; }
.site-header .celu-register-button {
  border: 1px solid var(--pink);
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.site-header .celu-register-button:hover { filter: brightness(1.1); }
.new-provider-cards button:last-child { display: flex; }
.new-provider-cards button { min-width: 0; }
.new-provider-cards img { flex: none; }
.game-card:focus-visible, .category-rail button:focus-visible, .category-card:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.modal input, .modal select { min-width: 0; }

/* Use each banner's intrinsic proportions on every viewport, without cropping. */
.hero-slides {
  display: grid;
  aspect-ratio: auto !important;
  max-height: none !important;
}
.hero-slide {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  height: auto;
}
.hero-slide:not(.active) { display: none; }
.hero-slide img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
}
.carousel-dots {
  position: static;
  transform: none;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  background: #11131b;
}
.new-provider-cards button {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.new-provider-cards img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.new-provider-cards strong {
  position: static;
  padding: 10px 12px;
  background: transparent;
  font-size: 12px;
}
@media (max-width: 820px) {
  .new-provider-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-provider-cards button { aspect-ratio: auto; }
  .new-provider-cards strong { padding: 8px; font-size: 11px; }
  .site-header { gap: 6px; }
  .site-header .brand { width: clamp(86px, 27vw, 135px); }
  .site-header .header-actions { gap: 5px; margin-left: auto; }
  .site-header .login-button, .site-header .register-button { min-width: 64px; padding: 0 9px; font-size: 12px; }
  .site-header .profile-button { width: 36px; height: 36px; flex-basis: 36px; }
  .site-header .balance-button { min-width: 68px; padding: 0 8px; }
  .game-row-track { grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; }
  .new-provider-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .new-provider-cards button:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card, .hero-slide { transition: none; }
}

/* Provider identity shared by CeluApuestas, Betados, TioRico and Multisala. */
.provider-tab .provider-logo {
  overflow: hidden;
}
.provider-tab .provider-logo-fallback {
  padding: 4px;
  text-align: center;
}
.provider-tab .provider-wordmark {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.provider-tab .provider-name {
  display: block;
  min-height: 2.1em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
