:root {
  --gen-primary: #3e2114;
  --gen-primary-hov: #5b321f;
  --gen-primary-soft: #f4ebe6;
  --gen-accent: #31e393;
  --gen-accent-soft: #e3f8ee;
  --gen-hero-from: #4e2918;
  --gen-hero-to: #28140b;
  --gen-bg: #f6f4f4;
  --gen-surface: #ffffff;
  --gen-border: #e0d6d2;
  --gen-text: #241914;
  --gen-text-soft: #806a60;
  --gen-gold: #f1bd22;
  --gen-signal: #eb621e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', system-ui, sans-serif;
  background: var(--gen-bg);
  color: var(--gen-text);
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding: 36px 0 48px;
}

/* Header Component */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f9f7f6;
  border-bottom: 2px solid var(--gen-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 16px;
}

.brand-logo {
  font-weight: 900;
  font-size: 16px;
  color: var(--gen-text);
  border-bottom: 2px solid var(--gen-accent);
  padding-bottom: 1px;
}

/* Hero Section */
.hero-banner {
  background: var(--gen-surface);
  border-bottom: 1px solid var(--gen-border);
  padding: 36px 0;
}

.hero-date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gen-primary);
  margin-bottom: 10px;
}

.hero-banner h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--gen-text);
  margin-bottom: 10px;
}

/* Horizontal Table of Contents */
.table-of-contents {
  background: var(--gen-surface);
  border: 1px solid var(--gen-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox layout tracking */
}

.table-of-contents::-webkit-scrollbar {
  display: none; /* Safari/Chrome tracking removal */
}

.toc-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gen-text-soft);
  white-space: nowrap;
}

.toc-links {
  display: flex;
  gap: 14px;
  list-style: none;
}

.toc-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gen-primary);
  background: var(--gen-primary-soft);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.toc-links a:hover {
  background: var(--gen-primary);
  color: #fff;
}

/* Sections Structure */
.content-section {
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 21px;
  font-weight: 800;
}

/* Ranking Table List Setup */
.ranking-list {
  display: flex;
  flex-direction: column;
}

.casino-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gen-surface);
  border-bottom: 1px solid var(--gen-border);
  border-left: 5px solid var(--gen-border);
  padding: 14px 18px;
  transition: all 0.15s ease-in-out;
}

.casino-card:first-child {
  border-radius: 19px 19px 0 0;
}

.casino-card:last-child {
  border-bottom: none;
  border-radius: 0 0 19px 19px;
}

.casino-card:hover {
  background: #f9f7f6;
  border-left-color: var(--gen-primary);
}

.casino-card--featured {
  border-left-color: var(--gen-gold);
}

.casino-rank {
  min-width: 36px;
  font-size: 22px;
  font-weight: 900;
  color: var(--gen-border);
  text-align: center;
}

.casino-card--featured .casino-rank {
  color: var(--gen-gold);
}

.casino-info {
  flex: 1;
  min-width: 0;
}

.casino-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.casino-bonus {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--gen-text-soft);
}

.casino-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  flex-shrink: 0;
}

.casino-score-value {
  font-size: 17px;
  font-weight: 900;
  color: var(--gen-primary);
  line-height: 1;
}

.casino-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--gen-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}

.casino-btn:hover {
  background: var(--gen-primary-hov);
}

/* Article Copy & Responsive Table Styling */
.article-body h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 26px 0 10px;
}

.article-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.article-body p {
  line-height: 1.75;
  margin-bottom: 14px;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 8px;
  border: 1px solid var(--gen-border);
  -webkit-overflow-scrolling: touch;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px; /* Force scrolling instead of dynamic distortion */
}

.article-body th {
  background: var(--gen-primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}

.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gen-border);
  background: var(--gen-surface);
}

.article-body tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.article-body li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.article-body strong {
  color: var(--gen-text);
}

/* Author Box Branding Component */
.author-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gen-surface);
  border: 1px solid var(--gen-border);
  border-radius: 14px;
  padding: 20px;
  margin: 40px 0;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gen-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.author-details {
  flex: 1;
}

.author-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gen-text-soft);
  letter-spacing: 0.8px;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 4px;
  color: var(--gen-text);
}

.author-bio {
  font-size: 13px;
  color: var(--gen-text-soft);
  line-height: 1.5;
}

/* FAQ Interactive Layout Accordion Style */
.faq-section h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.faq-item {
  background: var(--gen-surface);
  border: 1px solid var(--gen-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 18px;
  color: var(--gen-primary);
  font-weight: 500;
  transition: transform 0.25s ease;
}

.faq-item.active {
  border-color: var(--gen-primary);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--gen-signal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 16px;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Safe runtime deployment boundary box */
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  padding: 0 16px 14px;
}

.faq-answer p {
  font-size: 13px;
  color: var(--gen-text-soft);
  line-height: 1.7;
}

/* Site Footer */
.site-footer {
  background: var(--gen-bg);
  border-top: 1px solid var(--gen-border);
  padding: 24px 0;
  text-align: center;
}

.site-footer p {
  font-size: 11px;
  color: var(--gen-text-soft);
  line-height: 1.7;
}

/* Core System Layout Responsiveness overrides */
@media (max-width: 680px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: center;
  }

  .casino-card {
    gap: 12px;
    padding: 12px;
  }

  .casino-rank {
    min-width: 24px;
    font-size: 18px;
  }

  .casino-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .author-section {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
/* Casino App OS Tags styling additions */
.casino-os-compatibility {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.os-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gen-primary);
  background: var(--gen-primary-soft);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(62, 33, 20, 0.15);
  display: inline-flex;
  align-items: center;
}

/* Enhancing card alignments when adding multi-tier content */
.casino-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* App Store Download Widget Styling */
.app-store-widget {
  margin-top: 24px;
  max-width: 650px;
}

.app-store-card {
  display: flex;
  align-items: center;
  background: var(--gen-bg);
  border: 1px solid var(--gen-border);
  border-radius: 16px;
  padding: 16px 20px;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.app-logo-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gen-hero-from), var(--gen-hero-to));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-logo-emblem {
  color: #fff;
  font-weight: 900;
  font-size: 36px;
  font-family: 'Rubik', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-meta-details {
  flex: 1;
  min-width: 0;
}

.app-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-widget-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gen-text);
  margin: 0 !important;
}

.app-verified-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--gen-accent);
  color: var(--gen-hero-to);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.app-widget-bonus {
  font-size: 14px;
  font-weight: 700;
  color: var(--gen-signal);
  margin-top: 2px;
}

.app-rating-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.app-stars {
  color: var(--gen-gold);
  font-size: 12px;
  letter-spacing: -1px;
}

.app-rating-text {
  font-size: 11px;
  color: var(--gen-text-soft);
  font-weight: 500;
}

.app-action-wrapper {
  flex-shrink: 0;
}

.app-install-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2f80ed;
  color: #fff;
  padding: 8px 24px;
  border-radius: 24px;
  font-weight: 700;
  transition: background 0.15s ease-in-out, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(47, 128, 237, 0.3);
}

.app-install-btn:hover {
  background: #1b66ca;
  transform: translateY(-1px);
}

.btn-primary-text {
  font-size: 14px;
  line-height: 1.2;
}

.btn-sub-text {
  font-size: 9px;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 1px;
}

@media (max-width: 580px) {
  .app-store-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .app-header-row, .app-rating-container {
    justify-content: center;
  }

  .app-action-wrapper, .app-install-btn {
    width: 100%;
  }

  .app-install-btn {
    padding: 12px 24px;
  }
}