.topic-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  position: relative;
}

.topic-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.topic-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.topic-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.topic-hero .topic-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.topic-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.topic-body h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--accent);
}

.topic-body h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.topic-body p {
  margin-bottom: 14px;
}

.topic-body ul,
.topic-body ol {
  margin: 0 0 16px 20px;
}

.topic-body li {
  margin-bottom: 8px;
  color: var(--muted);
}

.topic-split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin: 28px 0;
}

.topic-rail {
  border: 1px solid var(--border);
  padding: 20px;
  background: var(--surface);
  position: sticky;
  top: 88px;
}

.topic-rail h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.topic-rail ol {
  margin: 0;
  padding-left: 18px;
}

.topic-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.topic-stat {
  border: 1px solid var(--border);
  padding: 18px 14px;
  text-align: center;
  background: rgba(26, 18, 36, 0.55);
  transition: transform 0.2s ease;
}

.topic-stat:hover {
  transform: scale(1.05);
}

.topic-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.topic-stat span {
  font-size: 12px;
  color: var(--muted);
}

.topic-pull {
  border-left: 2px solid var(--secondary);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  font-size: 1.15rem;
  color: var(--accent);
}

.topic-image-band {
  margin: 28px 0;
  overflow: hidden;
  max-width: 100%;
}

.topic-image-band img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.25s ease;
}

.topic-image-band:hover img {
  transform: scale(1.05);
}

.topic-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.topic-mosaic .cell {
  border: 1px solid var(--border);
  padding: 18px;
  background: var(--surface);
}

.topic-mosaic .cell h3 {
  margin-top: 0;
  color: var(--primary);
}

.topic-bg-panel {
  margin: 28px 0;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  position: relative;
}

.topic-bg-panel .overlay-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 10, 19, 0.88);
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}

.bonus-layout .topic-hero {
  background-image: linear-gradient(135deg, var(--surface) 60%, rgba(236, 72, 153, 0.12));
}

.poker-layout .topic-body {
  max-width: 960px;
}

.live-layout .topic-split {
  grid-template-columns: 0.9fr 1.1fr;
}

.roulette-layout .topic-hero-inner {
  max-width: 1000px;
}

.roulette-layout .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.roulette-layout .compare-table th,
.roulette-layout .compare-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.roulette-layout .compare-table th {
  background: var(--surface);
  color: var(--accent);
}

.roulette-layout .compare-table td {
  color: var(--muted);
}

@media (max-width: 767px) {
  .topic-split,
  .topic-stat-band,
  .topic-mosaic,
  .live-layout .topic-split {
    grid-template-columns: 1fr;
  }

  .topic-rail {
    position: static;
  }

  .topic-image-band {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
  }

  .topic-image-band img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }

  .topic-bg-panel {
    min-height: 140px;
    max-height: 200px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-size: cover;
  }
}
