:root {
  --navy: #0b1d2a;
  --navy-deep: #06131d;
  --ink: #142a36;
  --muted: #60727b;
  --paper: #f7f8f4;
  --white: #ffffff;
  --emerald: #087f68;
  --emerald-dark: #05604f;
  --mint: #dff1e8;
  --gold: #d7a843;
  --gold-soft: #f3e8c8;
  --line: #d9e2dc;
  --shadow: 0 16px 45px rgba(8, 29, 42, .1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
  --radius: 5px;
  --shell: min(1180px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.55; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--gold), var(--emerald), var(--gold)); z-index: 10; }
a { color: var(--emerald-dark); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 2; }
.header-inner { width: var(--shell); min-height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; min-height: 3rem; }
.brand:hover { color: var(--white); }
.brand-mark { width: 2.55rem; height: 2.55rem; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; gap: .25rem; }
.brand-name { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; }
.brand-tag { color: #a9c5bb; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.35rem); }
.primary-nav a { color: #e5f1ec; text-decoration: none; font-size: .92rem; font-weight: 600; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--gold); }
.menu-toggle { display: none; border: 1px solid #54706d; background: transparent; color: white; padding: .5rem .65rem; border-radius: var(--radius); }

.page-wrap { width: var(--shell); margin: 0 auto; padding: 3.25rem 0 5rem; }
.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2.5rem; align-items: start; }
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links { border-left: 2px solid var(--gold); padding: .2rem 0 .2rem 1rem; position: sticky; top: 1.5rem; }
.side-links h2 { font: 700 1rem/1.2 var(--font-display); margin: 0 0 .7rem; color: var(--navy); }
.side-links ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .87rem; }
.side-links a { color: var(--emerald-dark); font-weight: 600; }

.eyebrow { color: var(--emerald-dark); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.display-title { color: var(--navy); font: 700 clamp(2.7rem, 7vw, 5.8rem)/.98 var(--font-display); letter-spacing: -.055em; max-width: 10ch; margin: .45rem 0 1.35rem; }
.intro { color: var(--muted); font-size: 1.16rem; max-width: 43rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin: 0 0 1.3rem; }
.section-heading h2 { color: var(--navy); font: 700 clamp(1.6rem, 3vw, 2.35rem)/1.1 var(--font-display); letter-spacing: -.03em; margin: 0; }
.section-heading a { font-size: .9rem; font-weight: 700; }

.hero { position: relative; background: var(--navy); color: var(--white); padding: clamp(2rem, 5vw, 4.8rem); overflow: hidden; isolation: isolate; }
.hero::after { content: ''; position: absolute; width: 28rem; height: 28rem; right: -10rem; top: -13rem; border: 1px solid rgba(215,168,67,.35); border-radius: 50%; box-shadow: 0 0 0 26px rgba(215,168,67,.06), 0 0 0 52px rgba(215,168,67,.04); z-index: -1; }
.hero .eyebrow { color: #bde4d2; }
.hero-copy { position: relative; z-index: 1; max-width: 42rem; }
.hero-visual { float: right; width: min(35%, 19rem); aspect-ratio: 1 / 1; margin: 0 0 1rem 2rem; border: 1px solid rgba(215,168,67,.45); padding: .55rem; background: rgba(255,255,255,.05); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { color: var(--white); font: 700 clamp(2.6rem, 6vw, 5.15rem)/.98 var(--font-display); letter-spacing: -.06em; max-width: 9ch; margin: .45rem 0 1.25rem; }
.hero p { color: #c8d9d6; max-width: 40rem; font-size: 1.15rem; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); background: var(--gold); color: var(--navy-deep); padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { color: var(--navy-deep); transform: translateY(-2px); background: #e7bd5a; }
.button.secondary { background: transparent; color: var(--white); border-color: #7ca89a; }
.button.secondary:hover { color: var(--white); background: rgba(255,255,255,.08); }

.section { margin-top: 4.5rem; }
.section:first-child { margin-top: 0; }
.comparison-wrap { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; }
.comparison { border-collapse: collapse; width: 100%; min-width: 650px; text-align: left; }
.comparison th, .comparison td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.comparison th { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; background: #f4f8f4; }
.comparison tr:last-child td { border-bottom: 0; }
.casino-name { color: var(--navy); font: 700 1.25rem var(--font-display); }
.rating { color: var(--gold); letter-spacing: .08em; }
.status { color: var(--emerald-dark); font-weight: 700; }
.note { color: var(--muted); font-size: .87rem; }

.news-grid, .archive-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; align-items: start; }
.story-card { background: var(--white); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.story-image { display: block; position: relative; aspect-ratio: 1.55 / 1; overflow: hidden; background: var(--mint); }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card > :not(.story-image) { margin-left: 1.1rem; margin-right: 1.1rem; }
.story-meta { display: flex; gap: .5rem .75rem; flex-wrap: wrap; align-items: center; color: var(--muted); font: 500 .72rem var(--font-mono); margin-top: 1rem; }
.category-label { color: var(--emerald-dark); text-transform: uppercase; letter-spacing: .08em; }
.story-card h3 { color: var(--navy); font: 700 1.45rem/1.08 var(--font-display); letter-spacing: -.025em; margin-top: .6rem; margin-bottom: .5rem; }
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover { color: var(--emerald); }
.story-card p { color: var(--muted); margin-top: 0; margin-bottom: 1.15rem; font-size: .95rem; }
.story-author { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; font-size: .82rem; color: var(--muted); }
.story-author-avatar { width: 1.45rem; height: 1.45rem; border-radius: 50%; object-fit: cover; }
.empty-state { color: var(--muted); padding: 1rem 0; }

.split-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.feature-card { padding: 1.6rem; background: var(--mint); border-top: 4px solid var(--emerald); }
.feature-card.gold { background: var(--gold-soft); border-color: var(--gold); }
.feature-card h3 { color: var(--navy); font: 700 1.65rem/1.1 var(--font-display); margin: .5rem 0 .55rem; }
.feature-card p { color: var(--ink); margin: 0 0 1rem; }
.feature-image { margin: 0; min-height: 100%; background: var(--mint); overflow: hidden; }
.feature-image img { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; }
.text-link { font-weight: 700; }

.page-intro { border-bottom: 1px solid var(--line); padding-bottom: 2.2rem; margin-bottom: 2.5rem; }
.page-intro h1 { color: var(--navy); font: 700 clamp(2.6rem, 6vw, 4.8rem)/1 var(--font-display); letter-spacing: -.055em; max-width: 12ch; margin: .4rem 0 1rem; }
.page-intro p { max-width: 42rem; color: var(--muted); font-size: 1.15rem; margin: 0; }
.archive-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.search-field { flex: 1 1 18rem; }
.filter-list { display: flex; flex: 1 1 16rem; flex-wrap: wrap; gap: .5rem; align-items: center; padding-bottom: .15rem; }
.filter-list a, .filter-list button { display: inline-flex; border: 1px solid #b9ccc2; background: var(--white); color: var(--emerald-dark); padding: .56rem .75rem; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 600; }
.filter-list a:hover, .filter-list button:hover { border-color: var(--emerald); background: var(--mint); }
.filter-list [aria-current='page'], .filter-list .is-active { color: var(--white); border-color: var(--emerald); background: var(--emerald); }
.search-field label { display: block; color: var(--navy); font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.search-field input { width: 100%; border: 1px solid #b9ccc2; background: var(--white); padding: .75rem .85rem; color: var(--ink); border-radius: var(--radius); }
.search-field input:focus { outline: 3px solid rgba(8,127,104,.18); border-color: var(--emerald); }

.guide-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.guide-step { border: 1px solid var(--line); background: var(--white); padding: 1.35rem; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; }
.step-number { color: var(--white); background: var(--emerald); width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; font: 700 1rem var(--font-mono); }
.guide-step h2 { font: 700 1.45rem/1.1 var(--font-display); color: var(--navy); margin: .1rem 0 .45rem; }
.guide-step p { margin: 0; color: var(--muted); }
.info-band { background: var(--navy); color: var(--white); padding: 2rem; margin-top: 1.25rem; }
.info-band h2 { color: var(--gold); font: 700 2rem var(--font-display); margin: 0 0 .5rem; }
.info-band p { color: #d1e0dc; max-width: 48rem; margin: 0; }

.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fact { border-left: 3px solid var(--gold); padding: .4rem 1rem 1rem; }
.fact strong { display: block; color: var(--navy); font: 700 1.35rem var(--font-display); margin-bottom: .3rem; }
.fact span { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 2.4rem 1.15rem 0; color: var(--navy); font: 700 1.25rem var(--font-display); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: .4rem; color: var(--emerald); font: 400 1.5rem var(--font-body); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); max-width: 48rem; margin: -.35rem 0 1.2rem; }

.quiz { background: var(--white); border: 1px solid var(--line); padding: clamp(1.3rem, 3vw, 2.2rem); }
.quiz h2 { color: var(--navy); font: 700 2rem var(--font-display); margin: 0 0 .5rem; }
.quiz-question { border: 0; padding: 0; margin: 1.35rem 0; }
.quiz-question legend { color: var(--navy); font-weight: 700; margin-bottom: .6rem; }
.quiz-option { display: block; padding: .55rem .7rem; background: var(--paper); margin: .4rem 0; border: 1px solid transparent; }
.quiz-option:hover { border-color: var(--emerald); }
.quiz-option input { margin-right: .5rem; accent-color: var(--emerald); }
.quiz-result { background: var(--mint); color: var(--emerald-dark); padding: 1rem; font-weight: 700; }
.quiz-result[hidden] { display: none; }

.article-shell { width: 100%; }
.empty-title { color: var(--navy); font: 700 clamp(2.7rem, 6vw, 5rem)/1 var(--font-display); letter-spacing: -.055em; margin: .55rem 0 1rem; }
.article-header h1 { color: var(--navy); font: 700 clamp(2.7rem, 6vw, 5rem)/1 var(--font-display); letter-spacing: -.055em; margin: .55rem 0 1rem; }
.article-deck { color: var(--muted); font-size: 1.2rem; max-width: 44rem; }
.article-cover { aspect-ratio: 2 / 1; overflow: hidden; margin: 2rem 0; background: var(--mint); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.byline { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.5rem 0 2.5rem; }
.byline img { width: 2.7rem; height: 2.7rem; border-radius: 50%; object-fit: cover; background: var(--mint); }
.byline strong { color: var(--navy); }
.byline p { color: var(--muted); margin: 0; font-size: .9rem; }
.byline[hidden] { display: none; }
.prose { max-width: 720px; }
.prose p, .prose li { color: #29424b; font: 400 1.15rem/1.78 var(--font-body); }
.prose p { margin: 0 0 1.3rem; }
.prose h2, .prose h3 { color: var(--navy); font-family: var(--font-display); line-height: 1.1; margin: 2.2rem 0 .7rem; }
.prose h2 { font-size: 2.1rem; }
.prose h3 { font-size: 1.55rem; }
.prose a { color: var(--emerald-dark); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; background: var(--white); }
.prose th, .prose td { text-align: left; padding: .7rem; border: 1px solid var(--line); }

.not-found { text-align: center; padding: 4rem 1rem 5rem; }
.not-found .code { color: var(--gold); font: 700 6rem/1 var(--font-display); }
.not-found h1 { color: var(--navy); font: 700 3rem/1 var(--font-display); margin: .5rem 0 1rem; }
.not-found p { color: var(--muted); margin: 0 auto 1.5rem; max-width: 32rem; }

.site-footer { background: var(--navy-deep); color: #bdd0ca; padding: 2.5rem 0; }
.footer-inner { width: var(--shell); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.footer-inner p { margin: 0; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }
.footer-links a { color: #dbe8e3; }
.footer-note { margin-top: 1.2rem !important; max-width: 47rem; color: #8da9a0; }

@media (max-width: 820px) {
  :root { --shell: min(100% - 2rem, 680px); }
  .header-inner { min-height: 78px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 1rem var(--shell); background: var(--navy); border-top: 1px solid #31504c; flex-direction: column; align-items: flex-start; }
  .primary-nav.is-open { display: flex; }
  .rail-layout, .rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
  .side-links { position: static; border-left: 0; border-top: 2px solid var(--gold); padding: 1rem 0 0; }
  .hero-visual { width: min(42%, 15rem); }
  .split-cards, .guide-layout, .facts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  :root { --shell: calc(100% - 1.25rem); }
  .page-wrap { padding-top: 2rem; }
  .hero { padding: 2rem 1.25rem; }
  .hero-visual { float: none; width: 100%; max-width: 15rem; margin: 1.5rem 0 0; }
  .hero h1 { font-size: 3.25rem; }
  .section { margin-top: 3.2rem; }
  .section-heading { display: block; }
  .section-heading a { display: inline-block; margin-top: .7rem; }
  .display-title { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
