.subpage-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.subpage-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 12px;
  font-family: var(--academic-serif);
}

.subpage-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

.subpage-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

.subpage-body h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 32px 0 14px;
  font-weight: 400;
}

.subpage-body h3 {
  font-size: 17px;
  color: var(--accent);
  margin: 24px 0 10px;
  font-weight: 400;
}

.subpage-body p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.7;
}

.subpage-body ul {
  margin: 12px 0 16px 24px;
}

.subpage-body li {
  margin-bottom: 8px;
  color: var(--muted);
}

.live-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.live-sidebar {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.live-sidebar h3 {
  font-size: 13px;
  font-family: var(--data-mono);
  color: var(--secondary);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-sidebar li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.live-sidebar li:last-child {
  border-bottom: none;
}

.live-visual {
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border);
}

.live-visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.live-pullquote {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  background: rgba(167, 139, 250, 0.06);
  font-style: italic;
  color: var(--muted);
}

.rtp-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rtp-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rtp-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.rtp-stat-value {
  font-family: var(--data-mono);
  font-size: 28px;
  color: var(--secondary);
  display: block;
  margin-bottom: 8px;
}

.rtp-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.rtp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.rtp-visual {
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rtp-visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.rtp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0;
}

.rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rtp-table th,
.rtp-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.rtp-table th {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-family: var(--data-mono);
}

.slots-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.slots-main {
  min-width: 0;
}

.slots-rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.slots-rail-visual {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.slots-rail-visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.slots-callout {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.slots-callout h3 {
  margin-top: 0;
  font-size: 15px;
}

.poker-layout {
  max-width: 900px;
  margin: 0 auto;
}

.poker-header-band {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(167, 139, 250, 0.08));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.poker-visual {
  max-width: 280px;
  width: 280px;
  max-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.poker-visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.poker-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.poker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.poker-card h3 {
  margin-top: 0;
  font-size: 16px;
}

.poker-equation {
  font-family: var(--data-mono);
  font-size: 13px;
  color: var(--secondary);
  background: rgba(34, 197, 94, 0.08);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 20px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .live-layout,
  .rtp-split,
  .slots-layout,
  .poker-header-band {
    grid-template-columns: 1fr;
  }

  .live-sidebar,
  .slots-rail {
    position: static;
  }

  .rtp-stat-band {
    grid-template-columns: 1fr;
  }

  .poker-cards {
    grid-template-columns: 1fr;
  }

  .live-visual,
  .rtp-visual,
  .slots-rail-visual {
    max-width: 100%;
    overflow: hidden;
  }

  .live-visual img,
  .rtp-visual img,
  .slots-rail-visual img {
    max-width: 100%;
    height: auto;
  }

  .poker-visual {
    max-width: 100%;
    width: 100%;
    max-height: 180px;
  }

  .poker-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}
