/* ==========================================================================
   Baloo Casino - design system
   Theme lock: dark only. Accent lock: --color-primary-2 (gold).
   Shape lock: cards + buttons + inputs = var(--radius); tags = pill.
   ========================================================================== */

:root {
  --color-primary-1: #1E1E1E;
  --color-primary-2: #F7C82C;
  --color-primary-3: #D7D7D7;
  --color-accent-1: #C0C0C0;
  --color-accent-2: #707070;
  --color-accent-3: #FFFFFF;
  --color-bg: #1E1E1E;
  --color-text: #FFFFFF;
  --color-accent: #C0C0C0;
  --font-primary: 'Roboto', system-ui, sans-serif;
  --font-secondary: 'Montserrat', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* derived surfaces, all in the same dark family */
  --surface-0: #151515;
  --surface-1: #1E1E1E;
  --surface-2: #262626;
  --surface-3: #2F2F2F;
  --line: rgba(215, 215, 215, 0.14);
  --line-strong: rgba(247, 200, 44, 0.35);
  --text-muted: #B4B4B4;
  --gold-soft: rgba(247, 200, 44, 0.12);

  --wrap: 1180px;
  --header-h: 68px;
  --mobbar-h: 44px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
a { color: var(--color-primary-2); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  margin-bottom: 0.6em;
}

.lede {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-2);
  margin: 0 0 14px;
}

:focus-visible {
  outline: 3px solid var(--color-primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- buttons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease,
              border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

/* gold on near-black: contrast ratio ~ 12:1 */
.btn--primary {
  background: var(--color-primary-2);
  color: #1A1400;
  box-shadow: 0 8px 24px rgba(247, 200, 44, 0.18);
}
.btn--primary:hover { background: #FFD84A; transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary-2);
  border-color: rgba(247, 200, 44, 0.55);
}
.btn--ghost:hover { background: var(--gold-soft); border-color: var(--color-primary-2); }
.btn--ghost:active { transform: scale(.985); }

.btn--sm { padding: 11px 20px; font-size: 0.875rem; }
.btn--wide { width: 100%; }

/* ---------- header ------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(21, 21, 21, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  flex: none;
}
.brand svg { flex: none; }
.brand span { color: var(--color-primary-2); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: auto;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a {
  color: var(--color-primary-3);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--color-text); border-bottom-color: var(--color-primary-2); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* mobile sticky bar */
.mob-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--mobbar-h);
  z-index: 1001;
}
.mob-bar a {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 0;
}
.mob-bar__login {
  background: #101010;
  color: var(--color-primary-2);
  border: 1px solid rgba(247, 200, 44, 0.55);
  border-right: 0;
}
.mob-bar__register { background: var(--color-primary-2); color: #1A1400; }

/* ---------- hero --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(247, 200, 44, 0.20), transparent 62%),
    linear-gradient(95deg, #131313 0%, rgba(19, 19, 19, 0.94) 38%, rgba(19, 19, 19, 0.68) 100%),
    url("img/hero-baloo.jpg") center / cover no-repeat,
    linear-gradient(180deg, #1B1B1B 0%, #141414 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 4px 4px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 72px 20px 80px;
  max-width: var(--wrap);
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 3.75rem);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary-2);
  display: block;
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--color-primary-3);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.bonus-card {
  position: relative;
  background: linear-gradient(160deg, #2A2405 0%, #1E1E1E 55%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.bonus-card__tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A1400;
  background: var(--color-primary-2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.bonus-card__amount {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1.05;
  color: var(--color-primary-2);
  margin: 0;
}
.bonus-card__spins {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 6px 0 18px;
}
.bonus-card__meta {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-primary-3);
}
.bonus-card__meta li { display: flex; align-items: center; gap: 10px; }
.bonus-card__meta svg { flex: none; color: var(--color-primary-2); }
.bonus-card__fine { font-size: 0.75rem; color: var(--color-accent-2); margin: 14px 0 0; }

/* ---------- intro -------------------------------------------------------- */

.intro { background: var(--surface-0); }
.intro__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.intro__body {
  border-left: 2px solid var(--color-primary-2);
  padding-left: 28px;
  color: var(--color-primary-3);
}
.intro__body p:last-child { margin-bottom: 0; }

.facts {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts > div { background: var(--surface-1); padding: 18px 20px; }
.facts dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 6px;
}
.facts dd {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

/* ---------- games -------------------------------------------------------- */

.games { background: var(--surface-1); border-block: 1px solid var(--line); }

.games__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.game {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease;
}
.game:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.game--wide { grid-column: span 2; }

.game__art {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-primary-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.game--wide .game__art { aspect-ratio: 8 / 3; font-size: 1.375rem; }

/* real key art; the gradient variants below stay as the loading backdrop */
img.game__art {
  width: 100%;
  height: auto;
  object-fit: cover;
  padding: 0;
  background: var(--surface-2);
}

.game__art--a { background: radial-gradient(120% 100% at 30% 10%, #3B3208, #171717); }
.game__art--b { background: radial-gradient(120% 100% at 70% 20%, #2C2A10, #141414); }
.game__art--c { background: linear-gradient(140deg, #332B06 0%, #1B1B1B 70%); }
.game__art--d { background: linear-gradient(200deg, #26240F 0%, #161616 75%); }

.game__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}
.game__name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
}
.game__provider { font-size: 0.75rem; color: var(--color-accent-2); }
.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-2);
  background: var(--gold-soft);
  border: 1px solid rgba(247, 200, 44, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.games__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.games__foot p { margin: 0; color: var(--text-muted); max-width: 52ch; }

/* ---------- table of contents -------------------------------------------- */

.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.toc h2 { font-size: 1.25rem; margin-bottom: 18px; }
.toc ol {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}
.toc li { counter-increment: toc; break-inside: avoid; margin-bottom: 10px; }
.toc a {
  display: flex;
  gap: 12px;
  color: var(--color-primary-3);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color .2s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-primary-2);
  flex: none;
}
.toc a:hover { color: var(--color-text); }

/* ---------- article ------------------------------------------------------ */

.article { background: var(--surface-0); }
.article__body { max-width: 74ch; margin-inline: auto; }
.article__body h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
}
.article__body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.article__body p { color: var(--color-primary-3); }
.article__body ul { color: var(--color-primary-3); padding-left: 0; list-style: none; }
.article__body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.article__body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-primary-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 26px 0 30px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 0;
  font-size: 0.8125rem;
  color: var(--color-accent-2);
}
th, td { padding: 13px 18px; text-align: left; vertical-align: top; }
thead th {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-2);
  background: var(--surface-2);
}
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody td { color: var(--color-primary-3); }
tbody th {
  border-top: 1px solid var(--line);
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text);
}
tbody tr:first-child th { border-top: 0; }

.callout {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(247, 200, 44, 0.14), rgba(247, 200, 44, 0.03));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 34px 0;
}
.callout p { margin: 0; flex: 1 1 260px; color: var(--color-text); font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.badges li {
  font-size: 0.8125rem;
  color: var(--color-primary-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface-2);
}

/* ---------- faq ---------------------------------------------------------- */

.faq { background: var(--surface-1); border-top: 1px solid var(--line); }
.faq__list { max-width: 860px; margin-inline: auto; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 20px 22px;
  cursor: pointer;
}
.faq-item__q svg { flex: none; color: var(--color-primary-2); transition: transform .25s ease; }
.faq-item.is-open .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item__a p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--color-primary-3);
  font-size: 0.9375rem;
}
.faq__cta { text-align: center; margin-top: 34px; }

/* ---------- footer ------------------------------------------------------- */

.site-footer {
  background: #101010;
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.site-footer h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--color-primary-3); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary-2); }
.site-footer p { color: var(--text-muted); max-width: 44ch; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: var(--color-accent-2);
  font-size: 0.8125rem;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--color-primary-2);
  color: var(--color-primary-2);
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 0.75rem;
  flex: none;
}
.disclaimer { display: flex; align-items: center; gap: 12px; }

/* ---------- popup -------------------------------------------------------- */

.popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup.active { display: flex; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.popup__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-primary-1);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 0 0 1px rgba(247, 200, 44, 0.12), 0 24px 70px rgba(0, 0, 0, 0.65);
  animation: popup-in .3s cubic-bezier(.16,1,.3,1) both;
}
@keyframes popup-in {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to { opacity: 1; transform: none; }
}
.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--color-primary-3);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.popup__close:hover { color: var(--color-primary-2); border-color: var(--line-strong); }
.popup__label {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A1400;
  background: var(--color-primary-2);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.popup__card h2 { font-size: 1.75rem; color: var(--color-primary-2); margin-bottom: 10px; }
.popup__card p { font-size: 0.9375rem; color: var(--color-primary-3); }

/* ---------- info pages --------------------------------------------------- */

.page-hero {
  background:
    radial-gradient(700px 420px at 82% 0%, rgba(247, 200, 44, 0.16), transparent 62%),
    linear-gradient(180deg, #1B1B1B, #151515);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); max-width: 20ch; }
.page-hero .lede { margin-bottom: 26px; }

.crumbs { font-size: 0.8125rem; color: var(--color-accent-2); margin-bottom: 18px; }
.crumbs a { color: var(--color-primary-3); text-decoration: none; }
.crumbs a:hover { color: var(--color-primary-2); }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  margin-top: 1.9em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 1.6em; }
.prose p { color: var(--color-primary-3); }

.steps { counter-reset: step; list-style: none; margin: 26px 0 30px; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
  color: var(--color-primary-3);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--color-primary-2);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
}
.steps strong { display: block; color: var(--color-text); font-family: var(--font-primary); margin-bottom: 4px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--color-primary-2);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- 404 ---------------------------------------------------------- */

.error-page {
  min-height: calc(100dvh - var(--header-h) - 240px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page__code {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(6rem, 4rem + 14vw, 11rem);
  line-height: 0.9;
  color: var(--color-primary-2);
  margin: 0 0 12px;
}
.error-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); }
.error-page p { color: var(--text-muted); max-width: 46ch; margin-inline: auto; }

/* ---------- reveal motion ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px 64px; }
  .intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .games__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  body { padding-top: calc(var(--header-h) + var(--mobbar-h)); }
  html { scroll-padding-top: calc(var(--header-h) + var(--mobbar-h) + 12px); }

  .site-header { top: var(--mobbar-h); }
  .mob-bar { display: flex; }
  .nav, .header-actions { display: none; }
  .site-header__inner { justify-content: center; }

  .section { padding: 52px 0; }
  .games__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game--wide { grid-column: span 2; }
  .game--wide .game__art { aspect-ratio: 16 / 7; }
  .toc { padding: 24px 20px; }
  .toc ol { columns: 1; }
  .facts { grid-template-columns: 1fr; }
  .intro__body { padding-left: 20px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
  .callout .btn, .games__foot .btn, .hero__cta .btn { width: 100%; }
  .article__body h2 { margin-top: 1.6em; }
}

@media (min-width: 1200px) {
  .section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
