.home {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

#home-stats-status:empty {
  display: none;
}

.home-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  color: var(--text-dim);
  font-size: 13px;
}

.home-status .btn {
  min-height: 36px;
  padding: 6px 14px;
}

.hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-viewport {
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 320px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-half {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px 44px;
  overflow: hidden;
}

.hero-half.left,
.hero-half.right {
  background: var(--panel);
}

.hero-half.chess-bg {
  background: radial-gradient(130% 140% at 75% 40%, var(--panel-3) 0%, var(--panel-2) 55%, var(--panel) 100%);
}

.hero-half.poker-bg {
  background: radial-gradient(130% 140% at 25% 40%, var(--red-deep) 0%, var(--panel-2) 55%, var(--panel) 100%);
}

.hero-half .art {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.95;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 26%, #000 46%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 26%, #000 46%);
}

.hero-half.right .art {
  right: 0;
  width: 70%;
}

:root[data-theme="light"] .hero-half .art {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.hero-half h2 {
  position: relative;
  z-index: 2;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero-half h2 em {
  font-style: normal;
}

.hero-half.left h2 em {
  color: var(--gold-soft);
}

.hero-half.right h2 em {
  color: var(--gold-soft);
}

.hero-half p {
  position: relative;
  z-index: 2;
  margin: 12px 0 24px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 22em;
}

.hero-half .btn {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  height: 46px;
  flex-shrink: 0;
  padding: 0 30px;
}

.hero-half.left .btn {
  background: var(--red);
  border: none;
  color: #fff;
}

.hero-half.left .btn:hover {
  background: var(--red-bright);
}

.hero-half.right .btn {
  background: var(--gold);
  border: none;
  color: #17130a;
  font-weight: 650;
}

.hero-half.right .btn:hover {
  background: var(--gold-soft);
}

.hero-split {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  pointer-events: none;
  z-index: 3;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

.hero-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}

.hero-nav:hover {
  color: var(--text);
  background: var(--raised);
}

.hero-controls button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.hero-dots {
  display: flex;
  gap: 2px;
}

.hero-dots button {
  position: relative;
  width: 32px;
  height: 44px;
  background: none;
  display: grid;
  place-items: center;
}

.hero-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mute);
  transition: width 0.2s, background 0.2s;
}

.hero-dots button.on::after {
  width: 20px;
  border-radius: 2px;
  background: var(--gold);
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 262px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.game-card:hover {
  border-color: rgba(201, 169, 97, 0.3);
  background: var(--panel-2);
}

.game-card .art {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 190px;
  max-width: 64%;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.7));
  mask-image: linear-gradient(105deg, transparent 0%, #000 34%);
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, #000 34%);
  transform-origin: bottom right;
  transition: transform 0.25s ease;
}

.game-card:hover .art {
  transform: scale(1.05);
}

:root[data-theme="light"] .game-card .art {
  filter: drop-shadow(0 4px 8px rgba(16, 18, 27, 0.14));
}

.game-card .head {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}

.game-card .ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}

.ic.red,
.ic.gold,
.ic.purple,
.ic.green {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.game-card:hover .ic,
.feature .ic {
  color: var(--gold);
}

.game-card h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.1px;
}

.game-card .sub {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 1px;
}

.game-card .metric {
  position: relative;
  margin-top: auto;
}

.game-card .metric span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
}

.game-card .metric b {
  display: block;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.metric.red b,
.metric.gold b,
.metric.purple b {
  color: var(--text);
}

.game-card .btn {
  position: relative;
  margin-top: 16px;
  align-self: flex-start;
  min-width: 148px;
}

.game-card .head,
.game-card .metric,
.game-card .btn {
  z-index: 2;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature .ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: none;
}

.feature h4 {
  font-size: 14.5px;
  font-weight: 650;
  margin-bottom: 5px;
}

.feature p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.winners {
  padding: 18px 20px 20px;
}

.winner-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.winner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 228px;
  padding: 12px 16px 12px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s;
}

.winner:hover {
  border-color: rgba(201, 169, 97, 0.28);
}

.winner img.face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #2e2e36;
  flex: none;
}

.winner .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}

.winner .who svg {
  color: var(--gold);
}

.winner .event {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin: 2px 0 3px;
}

.winner .amount {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat .ic {
  color: #55555f;
  flex: none;
}

.stat b {
  display: block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 12.5px;
  color: var(--text-dim);
}

@media (max-width: 1240px) {
  .game-cards {
    grid-template-columns: 1fr;
  }
  .features,
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hero-half .art,
  .hero-half.right .art {
    width: 95%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
    opacity: 0.42;
  }
  .hero-half p {
    margin: 8px 0 14px;
    font-size: 13.5px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-split {
    display: none;
  }
  .hero-half {
    min-height: clamp(190px, 36vw, 240px);
    padding: 20px 24px;
  }
  .hero-half h2 {
    font-size: 30px;
  }
  .features,
  .stat-strip {
    grid-template-columns: 1fr;
  }
}


.btn-card {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.game-card:hover .btn-card {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.game-card .metric span {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.feature h4 {
  font-size: 13.5px;
  font-weight: 600;
}

.feature p {
  font-size: 12.5px;
  color: var(--text-mute);
}

.stat span {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.online-card .count {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.online-card .label {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* ---- Live tables (cards live in table-cards.css) ---- */
.live-tables {
  padding: 20px 22px 16px;
  min-width: 0;
}
.live-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.live-head h2 { font-size: 15px; letter-spacing: 1px; color: var(--text); }
.live-sub { margin-top: 3px; font-size: 12.5px; color: var(--text-dim); }
.live-head-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.live-pulse .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mute);
}
.live-pulse[data-state="live"] .pulse { background: var(--green-bright); animation: pulse 2s infinite; }
.live-pulse[data-state="reconnecting"] .pulse, .live-pulse[data-state="offline"] .pulse { background: var(--st-bad); }
.live-pulse[data-state="reconnecting"], .live-pulse[data-state="offline"] { color: var(--st-bad); }

.live-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.live-tabs::-webkit-scrollbar { height: 0; }
.live-tabs button {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.live-tabs button:hover { color: var(--text); }
.live-tabs button.on { background: var(--red); color: #fff; }
.live-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.live-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-count:empty { display: none; }
.live-tabs button.on .live-count { background: rgba(255, 255, 255, 0.22); }

.live-main { min-width: 0; }
.live-empty { padding: 32px 16px; text-align: center; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.live-empty p:first-child { font-size: 14px; font-weight: 600; color: var(--text); }
.live-hint { font-size: 12.5px; max-width: 34em; }
.live-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.live-foot .link { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.live-foot .link::after { content: " →"; }
.live-foot .link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .live-tables { padding: 16px 12px 12px; }
  .live-tabs { width: 100%; }
}

:root[data-theme="light"] .live-count { background: rgba(16, 18, 27, 0.1); }
