:root {
  --rummy-gold: #ffd166;
  --rummy-green: #00ff88;
  --rummy-red: #ff5d73;
  --rummy-blue: #54c2ff;
}

.rummy-page body {
  background: linear-gradient(180deg, #0a1017 0%, #101a23 42%, #101720 100%);
}

.rummy-hero {
  padding-top: 9rem;
}

.rummy-visual-card {
  background: linear-gradient(135deg, rgba(0,255,136,0.07), rgba(255,149,0,0.04)),
              linear-gradient(180deg, rgba(18,24,31,0.92), rgba(9,14,19,0.96));
}

.rummy-visual-figure {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(255,149,0,0.04));
  border: 1px solid rgba(0,255,136,0.18);
  overflow: hidden;
}

.rummy-table {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: min(86%, 420px);
  background: rgba(8, 12, 18, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.42);
}

.rummy-card {
  display: grid;
  place-items: center;
  width: 82px;
  height: 112px;
  border-radius: 18px;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 12px 22px rgba(0,0,0,0.2);
}

.rummy-red {
  background: linear-gradient(180deg, #d94d5d, #7d1a2b);
}

.rummy-blue {
  background: linear-gradient(180deg, #4db6ff, #255caa);
}

.rummy-gold {
  background: linear-gradient(180deg, #ffcf5f, #a76d00);
}

.rummy-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.chip-gold {
  right: 8%;
  top: 18%;
  background: linear-gradient(135deg, #ffd166, #ffb703);
  color: #111827;
}

.chip-green {
  left: 8%;
  bottom: 18%;
  background: linear-gradient(135deg, var(--rummy-green), #8ef0b3);
  color: #111827;
}

.rummy-detail-section {
  padding-block: 1rem 4rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: stretch;
}

.detail-panel,
.leaderboard-panel {
  border-radius: 24px;
  border: 1px solid rgba(0,255,136,0.18);
  background: linear-gradient(180deg, rgba(18,24,32,0.92), rgba(10,14,19,0.96));
  padding: 2.4rem;
}

.feature-head {
  margin-bottom: 1.5rem;
}

.stats-list {
  display: grid;
  gap: 1rem;
}

.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--color-grey);
  font-size: 1.4rem;
}

.stat-line strong {
  color: var(--rummy-green);
  font-size: 1.6rem;
}

.leaderboard-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}

.leaderboard-list span {
  color: var(--rummy-gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.leaderboard-list strong {
  color: var(--color-white);
}

.leaderboard-list em {
  font-style: normal;
  color: var(--rummy-green);
  font-weight: 700;
}

.rummy-promo .promo-banner {
  min-height: 260px;
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rummy-visual-figure {
    min-height: 300px;
  }

  .rummy-table {
    width: min(90%, 340px);
    padding: 1.6rem 1.2rem;
    gap: 0.8rem;
  }

  .rummy-card {
    width: 64px;
    height: 90px;
    font-size: 2.4rem;
  }

  .detail-panel,
  .leaderboard-panel {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .rummy-hero {
    padding-top: 8.5rem;
  }

  .rummy-visual-figure {
    min-height: 250px;
  }

  .rummy-card {
    width: 52px;
    height: 76px;
    font-size: 2rem;
    border-radius: 12px;
  }
}
