.house-lobby {
  --hl-gold: #e4c46a;
  --hl-gold-deep: #c8962a;
  --hl-active: linear-gradient(180deg, #f0d27a 0%, #d4a93a 100%);
  --hl-ink: #1a1208;
  --hl-card: #141b2b;
  --hl-tab: #1a2233;
  width: min(500px, 100%);
  max-width: 100%;
  margin: 0.2rem auto 1.4rem;
  padding: 0;
  color: #f4f1ea;
  box-sizing: border-box;
}
.house-lobby *,
.house-lobby *::before,
.house-lobby *::after { box-sizing: border-box; }
.house-lobby.is-loading { opacity: 0.72; }

.house-lobby__providers {
  position: sticky;
  top: 3.35rem;
  z-index: 24;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem 0.65rem 0.6rem;
  margin: 0;
  background: linear-gradient(180deg, rgba(8,14,28,0.98), rgba(8,14,28,0.88));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.house-lobby__providers::-webkit-scrollbar { display: none; }

/* Provider tabs */
.house-lobby__tab {
  position: relative;
  flex: 0 0 auto;
  width: 4.75rem;
  height: 4.05rem;
  border: 1px solid rgba(240,210,122,0.16);
  border-radius: 0.95rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(240,210,122,0.16), transparent 58%),
    #171f31;
  color: #d5deee;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.32rem 0.28rem 0.3rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.house-lobby__tab:active { transform: scale(0.96); }
.house-lobby__tab img {
  max-height: 1.35rem;
  max-width: 3.35rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}
.house-lobby__tab-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  max-width: 4.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.92;
}
.house-lobby__mark {
  font-size: 0.78rem;
  font-weight: 900;
  color: #f0d27a;
  line-height: 1;
}
.house-lobby__flame {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffb15a;
  line-height: 1;
}
.house-lobby__flame svg { display: block; }
.house-lobby__tab.is-active {
  background: linear-gradient(180deg, #fff1bc 0%, #f0d27a 46%, #d7ae3d 100%);
  border-color: rgba(255,236,180,0.7);
  color: var(--hl-ink);
  box-shadow: 0 8px 16px rgba(200,150,42,0.32), inset 0 1px 0 rgba(255,255,255,0.65);
  animation: hlTabGlow 2.4s ease-out infinite;
}
.house-lobby__tab.is-active .house-lobby__flame { color: #9a3d00; }
.house-lobby__tab.is-active .house-lobby__tab-label { opacity: 1; color: #1a1208; }
.house-lobby__tab.is-active img { filter: none; }
@keyframes hlTabGlow {
  0% { box-shadow: 0 8px 16px rgba(200,150,42,0.32), 0 0 0 0 rgba(240,210,122,0.35); }
  100% { box-shadow: 0 8px 16px rgba(200,150,42,0.32), 0 0 0 8px rgba(240,210,122,0); }
}

.house-lobby__sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0.65rem 0.5rem;
  width: 100%;
}

.house-lobby__section { scroll-margin-top: 7.2rem; width: 100%; }
.house-lobby__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}
.house-lobby__section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.house-lobby__section-title img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}
.house-lobby__section-title strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.house-lobby__section-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
}
.house-lobby__section-title .house-lobby__flame { color: #f0d27a; }
.house-lobby__more,
.house-lobby__nav {
  border: 1px solid rgba(240,210,122,0.22);
  border-radius: 999px;
  background: rgba(240,210,122,0.08);
  color: #f6e7b2;
  font-size: 0.68rem;
  font-weight: 800;
  height: 1.7rem;
  padding: 0 0.7rem;
  cursor: pointer;
}
.house-lobby__nav {
  width: 1.7rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  color: #f0d27a;
}

/* Default mobile: 4 columns like Arara */
.house-lobby__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
  width: 100%;
}

/* Popular = one horizontal swipe row */
.house-lobby__section--popular .house-lobby__grid {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.house-lobby__section--popular .house-lobby__grid::-webkit-scrollbar { display: none; }
.house-lobby__section--popular .house-lobby__game {
  flex: 0 0 calc(25% - 0.34rem);
  min-width: 4.4rem;
  max-width: 7.5rem;
  scroll-snap-align: start;
}

.house-lobby__game {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--hl-card);
  color: #fff;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  text-align: left;
  width: 100%;
}
.house-lobby__art,
.house-lobby__art-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.house-lobby__art-fallback {
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(160deg, #2a3a55, #151c2b);
}
.house-lobby__game-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 0.28rem 0.28rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.house-lobby__game-title {
  display: block;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.house-lobby__game-prov {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.48rem;
  opacity: 0.78;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.house-lobby__hot,
.house-lobby__nova {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
  border-radius: 0.22rem;
  padding: 0.08rem 0.24rem;
  z-index: 1;
  transform: skewX(-8deg);
}
.house-lobby__hot { background: #e5243b; }
.house-lobby__nova { background: #1f9d57; left: auto; right: 1.35rem; }
.house-lobby__fav {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.38);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  z-index: 1;
}
.house-lobby__empty {
  grid-column: 1 / -1;
  opacity: 0.75;
  text-align: center;
  padding: 1rem;
  margin: 0;
}

.house-lafs-home-game,
[data-lafs-home-injected] { display: none !important; }

/* Narrow phones */
@media (max-width: 360px) {
  .house-lobby__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .house-lobby__section--popular .house-lobby__game {
    flex-basis: calc(33.333% - 0.3rem);
  }
}

/* Tablet / PC: stay centered in the 500px shell, but breathe a bit */
@media (min-width: 520px) {
  .house-lobby__providers { padding-left: 0.85rem; padding-right: 0.85rem; }
  .house-lobby__sections { padding-left: 0.85rem; padding-right: 0.85rem; }
  .house-lobby__tab { width: 4.9rem; height: 3.7rem; }
  .house-lobby__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
  .house-lobby__section--popular .house-lobby__game {
    flex-basis: calc(25% - 0.42rem);
    max-width: none;
  }
}

/* Desktop keeps the same phone column: 4 cards, nav and header aligned. */
@media (min-width: 900px) {
  .house-lobby__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .house-lobby__section--popular .house-lobby__game {
    flex-basis: calc(25% - 0.42rem);
    max-width: none;
  }
}

/* Rodapé da home */
.site-foot {
  width: min(500px, calc(100% - 1.8rem));
  margin: 1.15rem auto 0.2rem;
  text-align: center;
}
.site-foot__install {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.82rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  color: #1a1208;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff6c2, #f0d27a 42%, #d7b23a);
  box-shadow: 0 10px 22px rgba(200, 150, 42, 0.28);
}
.site-foot__install svg { position: relative; z-index: 1; }
.site-foot__install span { position: relative; z-index: 1; }
.site-foot__install::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,0.55), transparent 72%);
  transform: translateX(-130%);
  animation: siteFootShine 2.8s ease-in-out infinite;
}
.site-foot__grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 0.35rem;
  align-items: center;
}
.site-foot__prov {
  border: 0;
  background: transparent;
  padding: 0.1rem;
  cursor: pointer;
  animation: siteFootIn 0.45s ease both;
  animation-delay: var(--d, 0s);
}
.site-foot__prov img {
  width: 100%;
  height: 1.85rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.28));
  transition: transform 0.15s ease;
}
.site-foot__prov:active img { transform: scale(0.94); }
.site-foot__lead {
  margin: 1.2rem 0 0.75rem;
  color: #9eb0cc;
  font-size: 0.78rem;
  line-height: 1.4;
}
.site-foot__share {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}
.site-foot__share button {
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 0.75rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.28);
}
.site-foot__share button:active { transform: scale(0.95); }
.site-foot__share .is-wa { background: radial-gradient(circle at 32% 28%, #7dffb0, #25d366 48%, #128c7e); }
.site-foot__share .is-tg { background: radial-gradient(circle at 32% 28%, #7ad4ff, #2aabee 46%, #1689c7); }
.site-foot__share .is-share { background: linear-gradient(180deg, #f6e7a8, #e0b44a 55%, #c8962a); color: #1a1208; }
.site-foot__logo {
  display: block;
  width: auto;
  max-width: min(12.5rem, 72%);
  max-height: 3.4rem;
  margin: 1.15rem auto 0.2rem;
  object-fit: contain;
}
.site-foot__domain {
  margin: 0.2rem 0 0.75rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.site-foot__legal,
.site-foot__copy {
  margin: 0.35rem auto 0;
  max-width: 22rem;
  color: #8e9bb0;
  font-size: 0.68rem;
  line-height: 1.45;
}
@keyframes siteFootShine {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@keyframes siteFootIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-foot__install::after,
  .site-foot__prov { animation: none; }
}

.site-install[hidden] { display: none; }
.site-install {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.site-install__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 8, 16, 0.72);
}
.site-install__sheet {
  position: relative;
  width: min(500px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  padding: 0.7rem 1rem 1.2rem;
  border-radius: 1.15rem 1.15rem 0 0;
  background: #12182a;
  border: 1px solid rgba(240,210,122,0.22);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.4);
  animation: siteInstallUp 0.28s ease;
}
.site-install__handle {
  display: block;
  width: 2.4rem;
  height: 0.28rem;
  margin: 0 auto 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}
.site-install__x {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.site-install__kicker {
  margin: 0;
  color: #f0d27a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-install__sheet h3 {
  margin: 0.15rem 0 0.3rem;
  color: #fff;
  font-size: 1.2rem;
}
.site-install__lead {
  margin: 0 0 0.75rem;
  color: #9eb0cc;
  font-size: 0.78rem;
  line-height: 1.4;
}
.site-install__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.site-install__switch button {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #c9d3e5;
  border-radius: 999px;
  padding: 0.48rem 0.4rem;
  font-weight: 800;
  cursor: pointer;
}
.site-install__switch button.is-on {
  color: #1a1208;
  border-color: transparent;
  background: linear-gradient(180deg, #ffe7a8, #e0b44a);
}
.site-install__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-install__steps li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.7rem;
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  animation: siteFootIn 0.35s ease both;
}
.site-install__steps b {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe7a8, #c8962a);
  font-size: 0.78rem;
}
.site-install__steps strong { display: block; color: #fff; font-size: 0.86rem; }
.site-install__steps span { display: block; margin-top: 0.15rem; color: #9eb0cc; font-size: 0.74rem; line-height: 1.35; }
.site-install__now {
  width: 100%;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 900;
  color: #1a1208;
  cursor: pointer;
  background: linear-gradient(180deg, #fff6c2, #e0b44a);
}
@keyframes siteInstallUp {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .house-lobby__tab.is-active { animation: none; }
}
