/* ==========================================================================
   RealMoneyCasinoRank — Base / Reset / Global
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-normal);
  line-height: var(--lh-tight);
  color: var(--text-primary);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { line-height: var(--lh-normal); color: var(--text-secondary); }
p + p { margin-top: var(--sp-4); }

a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-light); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }

ul, ol { padding-left: var(--sp-5); }
li { line-height: var(--lh-loose); color: var(--text-secondary); }

strong, b { font-weight: var(--fw-semi); color: var(--text-primary); }
em, i { font-style: italic; }

img, svg { display: block; max-width: 100%; }
picture { display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--gold); color: var(--bg-base);
  font-weight: var(--fw-semi); font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  z-index: var(--z-toast); transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ── Utility classes ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--max-w-wide); margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: var(--max-w-content); }
.container--wide { max-width: var(--max-w-full); }

.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-center  { text-align: center; }
.text-sm      { font-size: var(--fs-sm); }
.text-xs      { font-size: var(--fs-xs); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2        { gap: var(--sp-2); }
.gap-3        { gap: var(--sp-3); }
.gap-4        { gap: var(--sp-4); }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-xs); font-weight: var(--fw-semi); letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px var(--sp-2);
  border-radius: var(--r-full); border: 1px solid;
}
.badge--gold  { color: var(--gold); border-color: var(--gold-border); background: var(--gold-subtle); }
.badge--green { color: var(--green); border-color: rgba(63,185,80,0.3); background: var(--green-dim); }
.badge--blue  { color: var(--blue); border-color: rgba(91,156,246,0.3); background: var(--blue-dim); }

/* ── Ambient background ── */
.ambient-bg {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 0; overflow: hidden;
}
.ambient-bg__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.04;
}
.ambient-bg__orb--1 {
  width: 700px; height: 700px; top: -200px; right: -200px;
  background: var(--gold);
}
.ambient-bg__orb--2 {
  width: 500px; height: 500px; bottom: 20%; left: -150px;
  background: var(--blue);
}
.ambient-bg__orb--3 {
  width: 400px; height: 400px; top: 60%; right: 20%;
  background: var(--green);
}

/* ── Noise overlay ── */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 0; opacity: 0.018;
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-8) 0; }

/* ── Section spacing ── */
.section { position: relative; z-index: var(--z-base); padding: var(--sp-16) 0; }
.section--sm { padding: var(--sp-10) 0; }
.section--lg { padding: var(--sp-20) 0; }

.section__header { margin-bottom: var(--sp-10); }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semi); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--sp-3);
}
.section__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.section__subtitle { font-size: var(--fs-lg); color: var(--text-secondary); max-width: 560px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ── Selection ── */
::selection { background: var(--gold-dim); color: var(--text-primary); }

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6);
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--bg-elevated); border: 1px solid var(--border-md);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--t-normal);
  z-index: var(--z-above);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }

/* ── Responsive base ── */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-12) 0; }
  .section--lg { padding: var(--sp-16) 0; }
}
