:root {
  --red9-primary: #535813;
  --red9-primary-rgb: 83, 88, 19;
  --red9-accent: #9531b9;
  --red9-accent-rgb: 149, 49, 185;
  --red9-bg: #111116;
  --red9-surface: #1c1c24;
  --red9-text: #e0e0e0;
  --red9-text-mut: #a0a0aa;
  --red9-font-hd: 'Poppins', sans-serif;
  --red9-font-bd: 'Nunito', sans-serif;
  --red9-rad: 12px;
  --red9-rad-mixed: 24px 8px 24px 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.red9-body {
  margin: 0;
  padding: 0;
  background-color: var(--red9-bg);
  color: var(--red9-text);
  font-family: var(--red9-font-bd);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--red9-font-hd);
  color: #fff;
  margin-top: 0;
  line-height: 1.3;
}

a {
  color: var(--red9-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--red9-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.red9-header {
  background: rgba(17, 17, 22, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.red9-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.red9-logo {
  font-family: var(--red9-font-hd);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--red9-primary), var(--red9-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.red9-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.red9-nav-list::-webkit-scrollbar { display: none; }
.red9-nav-list li a {
  color: var(--red9-text);
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
  padding: 5px 0;
}

/* Ticker */
.red9-ticker-wrapper {
  background: var(--red9-primary);
  color: #fff;
  overflow: hidden;
  padding: 8px 0;
  display: flex;
}
.red9-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: red9-scroll 25s linear infinite;
  gap: 30px;
  padding-left: 100%;
}
.red9-ticker-item {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.red9-ticker-item::before {
  content: "✦";
  color: rgba(255,255,255,0.5);
}
@keyframes red9-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Hero */
.red9-hero {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: red9-fade-in 0.8s ease-out;
}
.red9-hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(149, 49, 185, 0.4);
}
.red9-hero-sub {
  font-size: 1.1rem;
  color: var(--red9-text-mut);
  margin-bottom: 30px;
}
.red9-hero-img-wrap {
  border-radius: var(--red9-rad-mixed);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid rgba(83, 88, 19, 0.3);
}
.red9-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats */
.red9-stats {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.red9-stat-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--red9-rad);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}
.red9-stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--red9-primary);
}
.red9-stat-val {
  font-family: var(--red9-font-hd);
  font-size: 2rem;
  color: var(--red9-accent);
  font-weight: 800;
}
.red9-stat-lbl {
  font-size: 14px;
  color: var(--red9-text-mut);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Components Common */
.red9-section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.red9-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20%;
  width: 60%;
  height: 3px;
  background: var(--red9-primary);
  border-radius: 2px;
}

/* Providers / Chips */
.red9-providers {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
  text-align: center;
}
.red9-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.red9-chip {
  background: var(--red9-surface);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.red9-chip:hover, .red9-chip.red9-active {
  background: var(--red9-accent);
  border-color: var(--red9-accent);
  color: #fff;
  box-shadow: 0 0 15px rgba(149, 49, 185, 0.4);
}

/* Gallery Wall */
.red9-gallery {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.red9-gallery-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
}
.red9-gallery-wall > *:nth-child(3n+1) {
  grid-column: span 1;
  grid-row: span 2;
}
.red9-gallery-wall > *:nth-child(4n) {
  grid-column: span 2;
}

.red9-glass-card {
  background: rgba(28, 28, 36, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--red9-rad-mixed);
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.red9-game-card {
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: var(--red9-text);
}
.red9-game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(83, 88, 19, 0.3);
  border-color: rgba(83, 88, 19, 0.5);
}
.red9-game-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--red9-rad);
  margin-bottom: 15px;
}
.red9-game-card:nth-child(3n+1) .red9-game-img {
  height: 280px;
}
.red9-game-title {
  font-family: var(--red9-font-hd);
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff;
}
.red9-game-sub {
  font-size: 13px;
  color: var(--red9-text-mut);
  margin-bottom: 12px;
}
.red9-game-badge {
  display: inline-block;
  background: var(--red9-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Benefits */
.red9-benefits {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.red9-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.red9-benefit-card {
  padding: 30px;
  text-align: center;
}
.red9-benefit-card h3 {
  color: var(--red9-accent);
  margin-bottom: 15px;
}
.red9-benefit-card p {
  font-size: 15px;
  margin: 0;
  color: var(--red9-text-mut);
}

/* Steps */
.red9-steps {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.red9-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.red9-step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--red9-surface);
  padding: 20px;
  border-radius: var(--red9-rad);
  border-left: 4px solid var(--red9-primary);
}
.red9-step-num {
  font-family: var(--red9-font-hd);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red9-accent);
  opacity: 0.8;
}
.red9-step-text {
  font-size: 16px;
  font-weight: 600;
}

/* Payments */
.red9-payments {
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: center;
}
.red9-payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.red9-ptag {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

/* Article */
.red9-article-wrap {
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.red9-article {
  background: var(--red9-surface);
  padding: 40px;
  border-radius: var(--red9-rad-mixed);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.red9-article h2, .red9-article h3 {
  color: var(--red9-accent);
  margin-top: 30px;
  margin-bottom: 15px;
}
.red9-article p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--red9-text);
}
.red9-article ul, .red9-article ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
.red9-article li {
  margin-bottom: 10px;
}
.red9-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  overflow-x: auto;
  display: block;
}
.red9-article th, .red9-article td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  text-align: left;
}
.red9-article th {
  background: rgba(255,255,255,0.05);
  color: var(--red9-primary);
}
.red9-article blockquote {
  border-left: 4px solid var(--red9-primary);
  margin: 0 0 20px;
  padding: 15px 20px;
  background: rgba(83, 88, 19, 0.1);
  font-style: italic;
}

/* Page Specific */
.red9-page-main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.red9-breadcrumbs {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--red9-text-mut);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.red9-breadcrumb-item {
  color: var(--red9-accent);
}
.red9-breadcrumb-item::after {
  content: '›';
  margin-left: 8px;
  color: var(--red9-text-mut);
}
.red9-breadcrumb-item:last-child::after {
  content: '';
}
.red9-page-header {
  text-align: center;
  margin-bottom: 40px;
}
.red9-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
}
.red9-page-desc {
  font-size: 1.1rem;
  color: var(--red9-text-mut);
}

/* FAQ */
.red9-faq-section {
  margin: 60px 0;
}
.red9-faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.red9-faq-item {
  background: var(--red9-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--red9-rad);
  overflow: hidden;
}
.red9-faq-summary {
  padding: 20px;
  font-family: var(--red9-font-hd);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.red9-faq-summary::-webkit-details-marker {
  display: none;
}
.red9-faq-summary::after {
  content: '+';
  font-size: 20px;
  color: var(--red9-primary);
  transition: transform 0.3s;
}
.red9-faq-item[open] .red9-faq-summary::after {
  transform: rotate(45deg);
}
.red9-faq-body {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--red9-text-mut);
}

/* Pagination */
.red9-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.red9-pager-link {
  padding: 10px 20px;
  background: var(--red9-surface);
  color: #fff;
  border-radius: var(--red9-rad);
  font-weight: 700;
  font-size: 14px;
}
.red9-pager-link:hover {
  background: var(--red9-primary);
}

/* Footer */
.red9-footer {
  background: #0a0a0d;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 20px 40px;
  text-align: center;
}
.red9-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.red9-footer-logo {
  margin-bottom: 20px;
}
.red9-footer-links {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.red9-footer-links a {
  color: var(--red9-text-mut);
  font-size: 14px;
}
.red9-footer-links a:hover {
  color: var(--red9-accent);
}
.red9-footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  line-height: 1.6;
}
.red9-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

@keyframes red9-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .red9-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .red9-gallery-wall > *:nth-child(3n+1),
  .red9-gallery-wall > *:nth-child(4n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .red9-game-card:nth-child(3n+1) .red9-game-img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .red9-header-inner {
    flex-direction: column;
    justify-content: center;
  }
  .red9-article {
    padding: 20px;
  }
  .red9-article p, .red9-article li {
    font-size: 15px;
  }
  .red9-stat-item {
    padding: 15px;
  }
}
