/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  --color-primary: #1B1F3B;
  --color-accent: #7C3AED;
  --color-accent-gold: #F59E0B;
  --color-bg: #F8F9FC;
  --color-surface: #FFFFFF;
  --color-text: #1B1F3B;
  --color-text-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #059669;
  --color-danger: #DC2626;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --h1-size: clamp(2rem, 4vw, 3.25rem);
  --h2-size: clamp(1.5rem, 3vw, 2.25rem);
  --h3-size: clamp(1.25rem, 2.5vw, 1.75rem);
  --body-size: clamp(1rem, 1.5vw, 1.125rem);
  --caption-size: clamp(0.75rem, 1vw, 0.875rem);
  --blockquote-size: clamp(1.125rem, 2vw, 1.375rem);

  --content-width: 830px;
  --section-gap: clamp(3.5rem, 6vw, 5.5rem);
  --component-radius: 6px;
  --shadow-subtle: 0 1px 3px rgba(27,31,59,0.06), 0 1px 2px rgba(27,31,59,0.04);
  --shadow-medium: 0 4px 12px rgba(27,31,59,0.08), 0 1px 3px rgba(27,31,59,0.06);

  --hero-gradient-start: #1B1F3B;
  --hero-gradient-end: #2D1B69;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #0F1117;
    --color-surface: #1A1D2E;
    --color-text: #E5E7EB;
    --color-text-secondary: #9CA3AF;
    --color-border: #2D3148;
    --color-primary: #E5E7EB;
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.2);
}



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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  opacity: 0.8;
}
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =============================================
   2. General Typography
   ============================================= */
h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: left;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: justify;
  margin-bottom: 1.25em;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
li {
  text-align: justify;
  margin-bottom: 0.4em;
}

strong {
  font-weight: 600;
}

blockquote {
  font-family: var(--font-serif);
  font-size: var(--blockquote-size);
  font-style: italic;
  font-weight: 400;
  text-align: justify;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.925em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
th, td {
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-weight: 600;
  background-color: var(--color-surface);
}
tbody tr:nth-child(even) {
  background-color: color-mix(in srgb, var(--color-surface) 50%, var(--color-bg));
}

figure {
  margin: 1.5em auto;
}
figcaption {
  text-align: center;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  margin-top: 0.5em;
}

/* =============================================
   3. Layout — data-content sections
   ============================================= */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  margin-bottom: var(--section-gap);
}

[data-content] h2 {
  margin-bottom: 1em;
}
[data-content] h3 {
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

/* =============================================
   4. Components
   ============================================= */

/* --- info-box --- */
.info-box {
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-subtle);
}
.info-box p {
  text-align: justify;
  margin-bottom: 0.75em;
  color: var(--color-text);
}
.info-box p:last-child {
  margin-bottom: 0;
}
.info-box table {
  margin: 0.5em 0;
}
.info-box th,
.info-box td {
  color: var(--color-text);
}

/* --- callout (base) --- */
.callout-warning,
.callout-tip {
  border-left: 4px solid;
  padding: 1em 1.25em;
  margin: 1.5em 0;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  box-shadow: var(--shadow-subtle);
}
.callout-warning p,
.callout-tip p {
  text-align: justify;
  margin-bottom: 0.5em;
  color: var(--color-text);
}
.callout-warning p:last-child,
.callout-tip p:last-child {
  margin-bottom: 0;
}

.callout-warning {
  border-left-color: var(--color-accent-gold);
  background-color: color-mix(in srgb, var(--color-accent-gold) 6%, var(--color-surface));
}
.callout-tip {
  border-left-color: var(--color-accent);
  background-color: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1em;
  margin: 2em 0;
}
.key-takeaway p {
  text-align: justify;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5em;
  margin: 1.5em 0;
}
.fun-fact::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.fun-fact p {
  text-align: justify;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}
.glossary-term strong {
  font-family: 'Courier New', monospace;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.glossary-term span {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
}

/* --- stat-card --- */
.stat-card {
  background-color: var(--color-surface);
  border-radius: var(--component-radius);
  padding: 1.5em;
  margin: 1.5em 0;
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
}
.stat-card p {
  text-align: center;
  margin-bottom: 0;
  color: var(--color-text);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 0.25em;
}

/* --- slot-card --- */
.slot-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em 1.5em;
  margin: 1em 0;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.slot-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}
.slot-card p {
  text-align: justify;
  margin-bottom: 0;
  color: var(--color-text);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5em 0;
}
.card-grid > div {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-grid > div:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}
.card-grid p {
  text-align: justify;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
.card-grid p:last-child {
  margin-bottom: 0;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5em 0;
}
.comparison > div {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  padding: 1.25em;
  box-shadow: var(--shadow-subtle);
}
.comparison > div h3 {
  margin-top: 0;
}
.comparison p {
  text-align: left;
  color: var(--color-text);
}

/* --- tldr --- */
.tldr {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  padding: 1.5em 1.75em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: var(--shadow-subtle);
}
.tldr h2 {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.75em;
  color: var(--color-text);
}
.tldr ul {
  margin-bottom: 0;
}
.tldr li {
  text-align: justify;
  color: var(--color-text);
  margin-bottom: 0.6em;
}
.tldr li:last-child {
  margin-bottom: 0;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5em 0;
}
.dos-donts > div {
  padding: 1.25em;
  border-radius: var(--component-radius);
}
.dos-donts > div:first-child {
  border: 1px solid var(--color-success);
  background-color: color-mix(in srgb, var(--color-success) 5%, var(--color-surface));
}
.dos-donts > div:last-child {
  border: 1px solid var(--color-danger);
  background-color: color-mix(in srgb, var(--color-danger) 5%, var(--color-surface));
}
.dos-donts h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}
.dos-donts > div:first-child h3 {
  color: var(--color-success);
}
.dos-donts > div:last-child h3 {
  color: var(--color-danger);
}
.dos-donts p,
.dos-donts li {
  text-align: left;
  color: var(--color-text);
}

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 2em 0;
}
.pre-game-checklist h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--caption-size);
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 1em;
}
.pre-game-checklist ul {
  list-style: none;
  padding-left: 1.5em;
  border-left: 2px solid var(--color-border);
}
.pre-game-checklist li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  text-align: justify;
  color: var(--color-text);
}
.pre-game-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.5em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-subtle);
}
.at-a-glance > div {
  padding: 1.25em;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.at-a-glance > div:last-child {
  border-right: none;
}
.at-a-glance p {
  text-align: center;
  margin-bottom: 0.25em;
  color: var(--color-text);
}
.at-a-glance p:last-child {
  margin-bottom: 0;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
}
.at-a-glance strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  display: block;
  margin-bottom: 0.15em;
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  padding: 1.75em;
  margin: 1.5em 0;
  border-radius: var(--component-radius);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
}
.worked-example p {
  text-align: justify;
  font-family: 'Courier New', monospace;
  color: var(--color-text);
  margin-bottom: 0.75em;
}
.worked-example p:last-child {
  margin-bottom: 0;
}
.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}
.worked-example .result {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.15em;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2.5em 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  font-size: 1.05em;
}
.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  margin: 0 0.75em;
  color: var(--color-border);
}

/* --- calc-example --- */
.calc-example {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 1.75em;
  margin: 1.5em 0;
  border-radius: var(--component-radius);
  box-shadow: var(--shadow-medium);
}
.calc-example p {
  text-align: center;
  font-family: 'Courier New', monospace;
  color: var(--color-bg);
  margin-bottom: 0.75em;
  background-color: var(--color-primary);
}
.calc-example p:last-child {
  margin-bottom: 0;
}
.calc-example strong {
  color: var(--color-accent-gold);
}
@media (prefers-color-scheme: dark) {
  .calc-example {
    background-color: #1B1F3B;
    color: #E5E7EB;
  }
  .calc-example p {
    color: #E5E7EB;
    background-color: #1B1F3B;
  }
  .calc-example strong {
    color: var(--color-accent-gold);
  }
}

/* --- state-badge --- */
.state-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: var(--caption-size);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.state-badge--banned {
  background-color: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
  color: var(--color-danger);
}
.state-badge--legal {
  background-color: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
  color: var(--color-success);
}
.state-badge--pending {
  background-color: color-mix(in srgb, var(--color-accent-gold) 12%, var(--color-surface));
  color: #B45309;
}
@media (prefers-color-scheme: dark) {
  .state-badge--pending {
    color: var(--color-accent-gold);
  }
}

/* =============================================
   5. Hero Section
   ============================================= */
[data-content="hero"] {
  max-width: none;
  padding: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: var(--section-gap);
  background: linear-gradient(165deg, var(--hero-gradient-start), var(--hero-gradient-end));
  position: relative;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(124,58,237,0.04) 40px,
      rgba(124,58,237,0.04) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(124,58,237,0.04) 40px,
      rgba(124,58,237,0.04) 41px
    );
  pointer-events: none;
  opacity: 1;
}

[data-content="hero"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124,58,237,0.06), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
}

[data-content="hero"] .hero-rubric {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--caption-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1em;
}

[data-content="hero"] h1 {
  color: #FFFFFF;
  text-align: left;
  margin-bottom: 0.5em;
}

[data-content="hero"] .hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--caption-size);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 1.5em;
}

[data-content="hero"] .hero-meta {
  font-family: var(--font-body);
  font-size: var(--caption-size);
  color: rgba(255,255,255,0.5);
}

[data-content="hero"] figure {
  margin: 2em auto 0;
  max-width: 100%;
}
[data-content="hero"] .hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--component-radius);
}
[data-content="hero"] figcaption {
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 0.5em;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5em;
  font-family: var(--font-body);
  font-size: var(--caption-size);
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.6em 1.4em;
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero-cta:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  opacity: 1;
}
.hero-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hero bottom fade into page background */
[data-content="hero"]::after {
  /* Already defined above for glow — combine via pseudo-element below */
}

/* =============================================
   6. Table of Contents — Horizontal Strip
   ============================================= */
[data-content="table-of-contents"] {
  max-width: 960px;
}
[data-content="table-of-contents"] h2 {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 1em;
}

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.toc-strip a {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.9em;
  font-size: var(--caption-size);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.toc-strip a:hover {
  border-color: var(--color-accent);
  background-color: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
  transform: translateY(-1px);
  opacity: 1;
}
.toc-strip a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =============================================
   7. FAQ Accordion
   ============================================= */
details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}
details + details {
  margin-top: 0;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1em 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25em;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}
details[open] > summary::after {
  content: "\2212";
  transform: rotate(180deg);
}
summary:hover {
  color: var(--color-accent);
}
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern accordion animation using ::details-content */
::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    block-size 0.3s ease,
    content-visibility 0.3s ease allow-discrete;
}
details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Fallback for browsers without ::details-content */
@supports not selector(::details-content) {
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

[data-content="faq"] details div {
  padding-bottom: 1em;
}
[data-content="faq"] details div p {
  text-align: justify;
  color: var(--color-text);
}


/* =============================================
   9. Article images
   ============================================= */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
}

/* =============================================
   10. Media Queries
   ============================================= */
@media (max-width: 768px) {
  [data-content] {
    padding: 0 1rem;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child {
    border-bottom: none;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  table {
    table-layout: auto;
    font-size: 0.8em;
  }
  th, td {
    padding: 0.5em 0.6em;
  }

  .toc-strip {
    gap: 0.4em;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 2.5rem;
  }

  .hero-inner {
    padding: 2.5rem 1rem 2rem;
  }
}

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU + LOGO
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 75px; /* Optimal height for most logos */
    width: auto !important; /* Prevents squishing */
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

/* Desktop Grid Layout: Logo left, Menu center */
@media (min-width: 1024px) {
    .top-navigation-bar {
        max-width: 100%;
        padding: 15px 40px; /* Safe padding from screen edges */
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .site-logo {
        grid-column: 1;
        justify-self: start; /* Locks logo to the left edge */
        margin: 0;
    }

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; /* Locks menu perfectly in the center */
    }

    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent);
    }
}

/* --- MOBILE BURGER BUTTON --- */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE MENU SLIDER --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; /* Slide in */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   4-COLUMN FOOTER (Online Slots Theme)
   ========================================= */
.site-footer-4col {
    background-color: var(--color-bg, #0b1120); /* Deep dark background */
    color: var(--color-text-secondary, #94a3b8);
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-primary, #7c3aed); /* Violet/Purple accent */
}

.footer-4col-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimers p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.footer-disclaimers a {
    color: var(--color-primary, #7c3aed);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-disclaimers a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Grid Layout */
.footer-4col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-4col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-4col-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Titles */
.widget-title {
    color: var(--color-primary, #7c3aed); 
    font-family: var(--font-display, sans-serif); 
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Lists */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #94a3b8);
    line-height: 1.5;
}

.widget-list a {
    color: var(--color-text-secondary, #94a3b8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--color-primary, #7c3aed);
}

/* Bullets */
.bullet-list li {
    position: relative;
    padding-left: 16px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-primary, #7c3aed); 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li {
    padding-left: 0;
    padding-bottom: 0.8rem;
}

.clean-list li::before {
    display: none;
}

.footer-4col-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

.footer-4col-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #94a3b8);
    text-align: center;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary, #7c3aed);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #6d28d9; /* Darker violet */
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden !important; 
        width: 100% !important;
        max-width: 100vw !important;
    }

    main {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    [data-content="hero"], 
    main:not(:has([data-content="toc"])) [data-content="hero"],
    .article-hero,
    .cl-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important; 
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    
    .tldr, [data-content], article {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}


body {
  overflow-x: clip;
}