/* Shared square game tiles. The full cover stays visible inside its frame. */
.game-card {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}
.game-card > img,
.game-card > .game-image {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  flex: none;
  padding: 2px;
  background: linear-gradient(145deg, #24242a, #111116);
}
.game-card-info {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 42px;
  padding: 22px 8px 7px;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 10, .94) 58%);
  pointer-events: none;
}
.game-card .play-overlay {
  inset: 0;
  z-index: 3;
}
.game-skeleton { aspect-ratio: 1 / 1; }
.game-card-info strong,
.game-card-info span {
  position: relative;
  z-index: 1;
}

/* 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; }

/* Keep each room's carousel stable while preserving every pixel of campaign art. */
.hero-slides {
  position: relative;
  display: block;
  aspect-ratio: var(--room-banner-ratio, 5 / 1) !important;
  max-height: none !important;
  overflow: hidden;
  background: #11131b;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
}
.hero-slide::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  background: var(--campaign-art, none) center / cover no-repeat;
  filter: blur(22px) saturate(1.15);
  opacity: .42;
  transform: scale(1.08);
  pointer-events: none;
}
.hero-slide::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 13, .36), transparent 26%, transparent 74%, rgba(7, 8, 13, .36));
  pointer-events: none;
}
.hero-slide:not(.active) { display: none; }
.hero-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}
.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 {
  display: grid;
  place-items: center;
  width: 82px;
  height: 48px;
  min-height: 48px;
  max-width: 100%;
  padding: 5px 6px;
  border-radius: 10px;
  overflow: hidden;
}
.provider-tab .provider-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.provider-tab .provider-logo-fallback {
  text-align: center;
  border-color: currentColor;
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025));
}
.provider-tab .provider-logo-identity {
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  text-align: left;
}
.provider-tab .provider-monogram {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.provider-tab .provider-wordmark {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-height: 3.3em;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.provider-tab .provider-logo-identity .provider-wordmark { text-align: left; }
.provider-tab .provider-name {
  display: block;
  min-height: 2.1em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .provider-tab .provider-logo-fallback {
    width: 66px;
    height: 42px;
    min-height: 42px;
    padding: 4px;
  }
  .provider-tab .provider-logo-identity { grid-template-columns: 20px minmax(0, 1fr); gap: 4px; }
  .provider-tab .provider-monogram { width: 20px; height: 20px; border-radius: 7px; font-size: 7px; }
  .provider-tab .provider-wordmark { font-size: 8px; }
}
