/* V106 — Home lobby overlay. Scoped to html.co-home-v106 only. */
html.co-home-v106 #home .lw,
html.co-home-v106 #home .dailyProfitRank,
html.co-home-v106 #home .p5tg-terms,
html.co-home-v106 .pwa-btn,
html.co-home-v106 .btn.pwa-btn,
html.co-home-v106 .p8-home .pwa-btn,
html.co-home-v106 #home .pwa-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
}

.co-home-lobby {
  --co-h-bg: #1e2121;
  --co-h-surface: #323738;
  --co-h-tile: #2c3032;
  --co-h-text: #ffffff;
  --co-h-muted: #888888;
  --co-h-green: #24ee89;
  --co-h-line: rgba(36, 238, 137, 0.16);
  --co-h-pad: 0.32rem;
  --co-h-bleed: calc(100% + 0.64rem);
  --co-col-game: minmax(0, 1.4fr);
  --co-col-player: minmax(0, 1fr);
  --co-col-val: minmax(0, 0.9fr);
  --co-row-h: 0.8rem;
  --co-icon: 0.48rem;
  --co-tab-h: 0.85333rem;
  --co-tile-h: 1.28rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0 var(--co-h-pad) 1.7rem;
  color: var(--co-h-text);
  font-family: inherit;
}

.co-home-bleed {
  box-sizing: border-box;
  width: var(--co-h-bleed);
  max-width: none;
  margin-left: calc(var(--co-h-pad) * -1);
  margin-right: calc(var(--co-h-pad) * -1);
}

/* Full canvas width — match .game cards; tuck tight under Sports. */
.co-home-cta {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: calc(100% + 0.64rem);
  max-width: none;
  margin: -0.28rem -0.32rem 0.32rem;
  padding: 0.24rem 0.26rem 0.22rem;
  min-height: 2.2rem;
  border-radius: 0.28rem;
  background: linear-gradient(120deg, #304c41, #323838 100%);
  overflow: hidden;
}

.co-home-cta__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0 0.04rem;
  flex: 0 0 auto;
}

.co-home-cta__logos img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.co-home-cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.16rem;
  width: 100%;
  margin: 0.22rem 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.co-home-cta__offer {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.36rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--co-h-green);
  white-space: nowrap;
  overflow: visible;
}

.co-home-cta__pct {
  color: var(--co-h-green);
  font-weight: 800;
}

.co-home-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.68rem;
  padding: 0 0.26rem;
  border-radius: 0.14rem;
  background-image: linear-gradient(90deg, #24ee89, #9fe871);
  color: #10231a;
  font-size: 0.26rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0.24rem rgba(35, 238, 136, 0.3), inset 0 -2px #1dca6a;
}

.co-home-race__title {
  margin-top: 0.48rem;
  margin-bottom: 0.16rem;
  padding: 0;
  font-size: 0.42667rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  color: #ffffff;
}

.co-home-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0.32rem;
  padding: 0.05333rem;
  height: var(--co-tab-h);
  border-radius: 0.21333rem;
  background: #272b2c;
  box-sizing: border-box;
  box-shadow: none;
}

.co-home-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--co-h-muted);
  font-size: 0.29333rem;
  font-weight: 500;
  line-height: 1;
  padding: 0 0.08rem;
  border-radius: 0.18667rem;
  cursor: pointer;
  height: 100%;
  box-shadow: none;
}

.co-home-tabs button.is-on {
  background: #3a4142;
  color: #ffffff;
  font-weight: 800;
  box-shadow: none;
}

.co-home-table {
  border-radius: 0.21333rem;
  background: var(--co-h-surface);
  overflow: hidden;
  padding: 0.12rem 0.18rem 0.14rem;
  height: calc(0.26rem + 0.4rem + 8 * var(--co-row-h));
  margin-bottom: 0.36rem;
  border: 0;
  box-shadow: none;
}

.co-home-thead,
.co-home-row {
  display: grid;
  grid-template-columns: var(--co-col-game) var(--co-col-player) var(--co-col-val);
  gap: 0.08rem;
  align-items: center;
  padding: 0 0.08rem;
}

.co-home-thead {
  color: var(--co-h-muted);
  font-size: 0.22rem;
  font-weight: 500;
  letter-spacing: 0;
  height: 0.4rem;
}

.co-home-thead span:nth-child(2),
.co-home-player {
  text-align: center;
}

.co-home-thead span:nth-child(3) {
  text-align: right;
}

.co-home-row {
  border: 0;
  height: var(--co-row-h);
  min-height: var(--co-row-h);
  max-height: var(--co-row-h);
  flex-shrink: 0;
  box-sizing: border-box;
}

.co-home-row.is-in {
  animation: co-home-row-in 0.28s ease;
}

@keyframes co-home-row-in {
  from {
    opacity: 0;
    transform: translateY(-0.14rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.co-home-game {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  min-width: 0;
}

.co-home-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--co-icon);
  height: var(--co-icon);
  border-radius: 0.12rem;
  overflow: hidden;
  background: transparent;
}

.co-home-prefix img,
.co-home-game img,
.co-home-ico {
  width: var(--co-icon);
  height: var(--co-icon);
  border-radius: 0.12rem;
  object-fit: contain;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

.co-home-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.co-home-ico svg {
  width: 0.32rem;
  height: 0.32rem;
  display: block;
}

.co-home-game > span:not(.co-home-prefix):not(.co-home-ico) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.29333rem;
  font-weight: 500;
  color: #ffffff;
}

.co-home-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.29333rem;
  font-weight: 500;
  color: #ffffff;
}

.co-home-val {
  text-align: right;
  font-size: 0.29333rem;
  font-weight: 600;
  color: var(--co-h-green);
  white-space: nowrap;
}

.co-home-val.is-zero {
  color: #ffffff;
  font-weight: 600;
}

.co-home-state {
  padding: 0.4rem 0.16rem;
  text-align: center;
  color: var(--co-h-muted);
  font-size: 0.24rem;
}

.co-home-state button {
  margin-top: 0.12rem;
  border: 0;
  border-radius: 999px;
  background: var(--co-h-green);
  color: #10231a;
  font-weight: 800;
  padding: 0.1rem 0.28rem;
  cursor: pointer;
}

.co-home-providers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.12rem;
  margin-top: 0;
}

.co-home-prov {
  position: relative;
  box-sizing: border-box;
  flex: 0 1 calc((100% - 0.36rem) / 4);
  width: calc((100% - 0.36rem) / 4);
  max-width: calc((100% - 0.36rem) / 4);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.15 / 1;
  height: auto;
  min-height: 0;
  padding: 0.1rem 0.1rem 0.12rem;
  border-radius: 0.16rem;
  background: var(--co-h-tile);
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.co-home-prov.is-new::before {
  content: 'NEW';
  position: absolute;
  top: 0.06rem;
  left: -0.04rem;
  z-index: 1;
  padding: 0.02rem 0.1rem;
  background: #ff5a1f;
  color: #ffffff;
  font-size: 0.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transform: rotate(-18deg);
  pointer-events: none;
}

.co-home-prov span {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.34rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

.co-home-prov.is-t1 span { font-size: 0.4rem; }
.co-home-prov.is-t2 span { font-size: 0.3rem; }
.co-home-prov.is-t3 span { font-size: 0.24rem; }
.co-home-prov.is-t4 span { font-size: 0.2rem; }
.co-home-prov.is-t5 span { font-size: 0.18rem; letter-spacing: -0.02em; }

.co-home-prov.is-green span {
  color: var(--co-h-green);
}
