/* ==========================================================================
   Ontario Casino Guide
   Design: "Register" — dark, but institutional rather than casino-garish.

   The audience expects dark; the subject demands credibility. So: near-black
   with a green cast, brass used sparingly as the single accent, and a separate
   verification green reserved for regulatory confirmations so a trust mark can
   never be mistaken for decoration.
   ========================================================================== */

:root {
  /* Per-topic accents — colour does navigational work, not decoration */
  --t-licensing: #4fd1c5;
  --t-games:     #b45cf0;
  --t-banking:   #f0a35c;
  --t-mobile:    #5b9df0;
  --t-support:   #e879fb;
  --t-safety:    #5fd48a;
  --t-method:    #a0a8c0;

  --ground:   #17121f;
  --ground-2: #201930;
  --ground-3: #2b2240;
  --ground-4: #3a2f52;

  --text:   #ece7f2;
  --text-2: #c7bfd4;
  --text-3: #a29ab2;
  --text-4: #6b6378;

  /* Brass — the single accent */
  --brass:   #b45cf0;
  --brass-2: #e879fb;
  --brass-wash: rgba(180, 92, 240, 0.12);

  /* Verification green — regulatory confirmations only */
  --verify: #4fd1c5;
  --verify-wash: rgba(79, 209, 197, 0.1);

  /* Caution */
  --caution: #c4784a;
  --caution-wash: rgba(196, 120, 74, 0.09);

  --rule:      rgba(235, 228, 245, 0.17);

  /* illustration surfaces */
  --art-bg:    #140f1c;
  --art-panel: #1b1326;
  --art-dim:   #463a52;
  --rule-soft: rgba(235, 228, 245, 0.08);

  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body:    "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs:   0.72rem;
  --t-sm:   0.86rem;
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.07rem);
  --t-md:   clamp(1.14rem, 1.05rem + 0.36vw, 1.34rem);
  --t-lg:   clamp(1.42rem, 1.24rem + 0.8vw, 1.95rem);
  --t-xl:   clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem);
  --t-2xl:  clamp(2.4rem, 1.5rem + 3.8vw, 4.4rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --shell:  74rem;
  --measure: 36rem;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-inline: var(--gutter);
  overflow-x: hidden;
}

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

.shell { max-width: var(--shell); margin-inline: auto; }
.shell--narrow { max-width: 50rem; margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }

p { margin: 0; text-wrap: pretty; }

a { color: var(--brass); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-2); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

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

.site-head {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 1.3rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.site-head__brand {
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--text); text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-nav a {
  font-size: var(--t-sm); font-weight: 500; color: var(--text-2);
  text-decoration: none; padding-block: 0.15rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); border-bottom-color: var(--brass); }

/* ---------------------------------------------------------------- banner */

.banner {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}
.banner__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.banner__inner { padding-block: clamp(3rem, 8vw, 5.5rem); }
.banner__kicker {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem;
}
.banner__title { max-width: 16ch; }
.banner__lede {
  font-size: var(--t-md); line-height: 1.5; color: var(--text-2);
  max-width: 40rem; margin-top: 1.4rem;
}
.banner__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.banner__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem;
  margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule);
  max-width: 48rem;
}
@media (min-width: 46rem) { .banner__stats { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); color: var(--brass); line-height: 1;
}
.stat span { display: block; font-size: var(--t-xs); color: var(--text-3); margin-top: 0.4rem; line-height: 1.35; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-size: var(--t-sm); font-weight: 600;
  text-decoration: none; padding: 0.8rem 1.45rem; border-radius: 3px;
  background: var(--brass); color: #150c1f; border: 1px solid var(--brass);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); color: #150c1f; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn--ghost:hover { background: var(--ground-3); color: var(--text); border-color: var(--text-3); }

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

.page-intro { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.kicker {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1rem;
}
.page-intro h1 { max-width: 20ch; }
.page-intro__lede {
  font-size: var(--t-md); line-height: 1.55; color: var(--text-2);
  max-width: 42rem; margin-top: 1.3rem;
}
.updated { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--text-4); margin-top: 1.1rem; }

.crumbs {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.06em;
  color: var(--text-4); padding-block: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--brass); }

/* ---------------------------------------------------------------- verdict */

.verdict {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  background: var(--ground-2); border: 1px solid var(--rule);
  border-left: 3px solid var(--brass); border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
@media (min-width: 48rem) { .verdict { grid-template-columns: 9rem 1fr; gap: 2.5rem; } }
.verdict__score { text-align: left; }
.verdict__num {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 2rem + 3vw, 4.4rem); color: var(--brass); line-height: 0.9;
}
.verdict__of { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-4); letter-spacing: 0.08em; }
.verdict__body h2 { font-size: var(--t-lg); margin-bottom: 0.75rem; }
.verdict__body p { color: var(--text-2); font-size: var(--t-sm); }
.verdict__body p + p { margin-top: 0.85rem; }
.verdict strong { color: var(--text); }

/* ---------------------------------------------------------------- blocks */

.block { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.block__head {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem;
}
.block__more { font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ----------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--ground); padding: 1.4rem 1.3rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  text-decoration: none; color: inherit;
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}
.card:hover { background: var(--ground-2); border-color: var(--brass); }
.card__kicker {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brass);
}
.card__name { font-family: var(--display); font-weight: 700; font-size: var(--t-md); line-height: 1.2; color: var(--text); }
.card__lede { font-size: var(--t-sm); color: var(--text-3); line-height: 1.55; }
.card__go { margin-top: auto; padding-top: 0.75rem; font-size: var(--t-sm); font-weight: 600; color: var(--brass); }
.card:hover .card__go { color: var(--brass-2); }

/* ----------------------------------------------------------------- trust */

.trust__grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 44rem) { .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
.trust__item h3 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.trust__item h3::before { content: ""; display: block; width: 2rem; height: 2px; background: var(--brass); margin-bottom: 0.8rem; }
.trust__item p { font-size: var(--t-sm); color: var(--text-3); line-height: 1.6; }

/* --------------------------------------------------------------- compare */

.compare { padding-block: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--rule); }
.compare__note { font-size: var(--t-sm); color: var(--text-3); max-width: 44rem; margin-bottom: 1.5rem; }
.ct-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 3px; }
.ct { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 36rem; }
.ct th, .ct td { padding: 0.85rem 0.8rem; text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ct thead th {
  font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3); font-weight: 500;
  background: var(--ground-2); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.ct tbody tr:last-child td { border-bottom: none; }
.ct tbody tr:hover { background: var(--ground-2); }
.ct__name { font-weight: 600; color: var(--text); white-space: nowrap; }
.ct__score b { font-family: var(--display); font-size: 1.2rem; color: var(--brass); }
.ct__note { color: var(--text-3); line-height: 1.55; }

/* ----------------------------------------------------------------- score */

.score { background: var(--ground-2); border: 1px solid var(--rule); border-radius: 3px; padding: 1.1rem 1.2rem; }
.score__head { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.85rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--rule-soft); }
.score__overall { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--brass); line-height: 1; }
.score__outof { font-size: var(--t-xs); color: var(--text-4); font-family: var(--mono); }
.score__how { margin-left: auto; font-size: var(--t-xs); font-family: var(--mono); letter-spacing: 0.05em; color: var(--text-3); text-decoration: none; }
.score__how:hover { color: var(--brass); }
.score__grid { display: grid; gap: 0.45rem; }
.score__row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.score__label {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3); min-width: 6.5rem;
}
.score__pips { display: flex; gap: 3px; }
.pip { width: 15px; height: 6px; border-radius: 1px; background: var(--brass); display: block; }
.pip--off { background: var(--ground-4); }
.score__note { flex: 1 1 100%; font-size: var(--t-xs); color: var(--text-4); line-height: 1.5; padding-left: 0; }
.score--full .score__row { padding-block: 0.5rem; border-bottom: 1px solid var(--rule-soft); }
.score--full .score__row:last-child { border-bottom: none; }

/* ----------------------------------------------------------------- facts */

.facts { border-top: 1px solid var(--rule); }
.facts__row { display: grid; grid-template-columns: 1fr; gap: 0.2rem 1.25rem;
  padding-block: 0.7rem; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 30rem) { .facts__row { grid-template-columns: 7.5rem minmax(0, 1fr); } }
.facts__key { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-4); }
.facts__val { font-size: var(--t-sm); color: var(--text-2); }

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

.article-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 1rem; }
@media (min-width: 62rem) {
  .article-grid { grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 1fr); gap: 4rem; }
}
.article-side { align-self: start; position: sticky; top: 1.5rem; display: grid; gap: 1.5rem; }

/* ----------------------------------------------------------------- prose */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose h2 { margin-top: 2.75rem; font-size: var(--t-lg); }
.prose h3 { margin-top: 2rem; font-size: var(--t-md); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--brass); }
.article-main .prose { max-width: 44rem; }

/* ----------------------------------------------------------------- panel */

.panel { background: var(--ground-2); border: 1px solid var(--rule); border-radius: 3px;
  padding: clamp(1.15rem, 3vw, 1.75rem); margin-top: 2.25rem; max-width: 40rem; }
.panel--caution { background: var(--caution-wash); border-color: rgba(196, 120, 74, 0.3);
  border-left: 3px solid var(--caution); }
.panel__label {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--caution); margin-bottom: 0.7rem;
}
.panel p { font-size: var(--t-sm); color: var(--text-2); }
.panel p + p { margin-top: 0.75rem; }
.panel strong { color: var(--text); }

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

.site-foot { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 8vw, 5rem); padding-block: 2rem 3rem; }

.rg-strip {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  background: var(--verify-wash); border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: 3px; padding: 1rem 1.25rem; margin-bottom: 2.25rem;
}
.rg-strip__age {
  font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--verify);
  border: 1.5px solid var(--verify); border-radius: 50%;
  width: 2.7rem; height: 2.7rem; display: grid; place-items: center; flex-shrink: 0;
}
.rg-strip p { font-size: var(--t-sm); color: var(--text-2); flex: 1 1 18rem; line-height: 1.55; }
.rg-strip strong { color: var(--text); }

.site-foot__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 48rem) { .site-foot__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.site-foot h4 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 0.9rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot a { font-size: var(--t-sm); color: var(--text-3); text-decoration: none; }
.site-foot a:hover { color: var(--brass); }
.site-foot__brand { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.7rem; }
.site-foot__legal { font-size: var(--t-xs); color: var(--text-4); line-height: 1.7; max-width: 34rem; }
.site-foot__legal p + p { margin-top: 0.7rem; }

/* -------------------------------------------------------------- utilities */

.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; color: var(--text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem;
  background: var(--brass); color: #150c1f;
  padding: 0.6rem 1rem; z-index: 1000; border-radius: 2px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ illustrations */

.card__fig { display: block; aspect-ratio: 25 / 18; background: #140f1c;
  border-bottom: 1px solid var(--rule); overflow: hidden;
  margin: -1.4rem -1.3rem 0.4rem; border-radius: 3px 3px 0 0; }
.card__art { width: 100%; height: 100%; display: block; }
.card { padding-top: 0; overflow: hidden; }
.card__kicker { margin-top: 0.9rem; }

.hero-fig { margin: 0 auto 2.5rem; aspect-ratio: 25 / 18; max-width: 30rem;
  border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: #140f1c; }
.hero-art { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Motion
   Entrance is orchestrated once on load; everything else is a response to
   the reader. All of it collapses under prefers-reduced-motion.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(1.4rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-200px, 0, 0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; r: 3; }
  50%      { opacity: 1; r: 5; }
}
@keyframes pipIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes sweep {
  from { transform: translateX(-120%) skewX(-18deg); }
  to   { transform: translateX(320%) skewX(-18deg); }
}

/* ------------------------------------------------------- banner entrance */

.banner__kicker { animation: rise 700ms cubic-bezier(.16,1,.3,1) backwards 80ms; }
.banner__title  { animation: rise 800ms cubic-bezier(.16,1,.3,1) backwards 180ms; }
.banner__lede   { animation: rise 800ms cubic-bezier(.16,1,.3,1) backwards 300ms; }
.banner__cta    { animation: rise 800ms cubic-bezier(.16,1,.3,1) backwards 420ms; }
.banner__stats  { animation: rise 900ms cubic-bezier(.16,1,.3,1) backwards 540ms; }
.banner__stats .stat:nth-child(1) b { animation: fade 600ms ease backwards 700ms; }
.banner__stats .stat:nth-child(2) b { animation: fade 600ms ease backwards 800ms; }
.banner__stats .stat:nth-child(3) b { animation: fade 600ms ease backwards 900ms; }
.banner__stats .stat:nth-child(4) b { animation: fade 600ms ease backwards 1000ms; }

/* ---------------------------------------------------------- banner art */

.b-glow { animation: glowPulse 7s ease-in-out infinite; transform-origin: center; }
.b-grid { animation: drift 34s linear infinite; }
.b-hex  { transform-origin: center; animation: spinSlow 90s linear infinite; }
.b-hex--rev { animation-duration: 70s; animation-direction: reverse; }
.b-node { animation: twinkle 4s ease-in-out infinite; }
.b-node:nth-of-type(2) { animation-delay: 1.3s; }
.b-node:nth-of-type(3) { animation-delay: 2.6s; }

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

.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.btn:hover::after { animation: sweep 750ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn { transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }

/* ----------------------------------------------------------------- cards */

.card { transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.42); }
.card__fig { position: relative; }
.card__art { transition: transform 500ms cubic-bezier(.16,1,.3,1); }
.card:hover .card__art { transform: scale(1.045); }
.card__go { transition: gap 200ms ease; display: inline-flex; gap: 0.4rem; align-items: center; }
.card:hover .card__go { gap: 0.75rem; }

/* ------------------------------------------------------------ nav + link */

.site-nav a { transition: color 180ms ease, border-color 180ms ease; }
.block__more { transition: opacity 180ms ease; }
.block__more:hover { opacity: 0.75; }

/* ------------------------------------------------------------ score pips */

.pip { transform-origin: left center; }
.is-in .pip, .score--full .pip { animation: pipIn 420ms cubic-bezier(.16,1,.3,1) backwards; }
.score__row:nth-child(1) .pip { animation-delay: 40ms; }
.score__row:nth-child(2) .pip { animation-delay: 110ms; }
.score__row:nth-child(3) .pip { animation-delay: 180ms; }
.score__row:nth-child(4) .pip { animation-delay: 250ms; }
.score__row:nth-child(5) .pip { animation-delay: 320ms; }
.score__row:nth-child(6) .pip { animation-delay: 390ms; }

/* -------------------------------------------------------- scroll reveal */
/* Only hides when JS is present, so the page is complete without it. */

.js .reveal { opacity: 0; transform: translateY(1.6rem); }
.js .reveal.is-in { opacity: 1; transform: translateY(0);
  transition: opacity 760ms cubic-bezier(.16,1,.3,1), transform 760ms cubic-bezier(.16,1,.3,1); }

/* ---------------------------------------------------------- verdict glow */

.verdict__num { position: relative; }
.verdict { position: relative; overflow: hidden; }
.verdict::before {
  content: ""; position: absolute; top: -40%; left: -10%; width: 40%; height: 180%;
  background: radial-gradient(ellipse at center, rgba(180,92,240,0.16), transparent 70%);
  pointer-events: none; animation: glowPulse 9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .banner__kicker, .banner__title, .banner__lede, .banner__cta, .banner__stats,
  .banner__stats .stat b, .b-glow, .b-grid, .b-hex, .b-node, .pip, .verdict::before {
    animation: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* --------------------------------------------------------- licence strip */

.licence-strip {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: 3px;
  background: var(--ground-2);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.25rem;
}

.licence-strip h4 { margin-bottom: 1rem; color: var(--text-3); }

.licence-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem 2rem; margin: 0 0 1.1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 40rem) { .licence-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .licence-grid { grid-template-columns: repeat(5, 1fr); } }

.licence-grid dt {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 0.25rem;
}
.licence-grid dd { margin: 0; font-size: var(--t-sm); color: var(--text); font-weight: 600; }

.licence-note { font-size: var(--t-xs); color: var(--text-3); line-height: 1.7; }
.licence-note + .licence-note { margin-top: 0.7rem; }
.licence-note strong { color: var(--text-2); }

.rg-strip p a { color: var(--verify); }
.rg-strip p a:hover { color: var(--text); }


/* ======================================================================
   Surface lift and per-topic colour
   ====================================================================== */

body {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(180, 92, 240, 0.09), transparent 60%),
    radial-gradient(ellipse 70% 45% at 92% 12%, rgba(232, 121, 251, 0.07), transparent 60%),
    var(--ground);
  background-attachment: fixed;
}

.card { background: linear-gradient(165deg, var(--ground-2), var(--ground)); }
.card:hover { background: linear-gradient(165deg, var(--ground-3), var(--ground-2)); }

.verdict { background: linear-gradient(140deg, var(--ground-3), var(--ground-2) 60%); }
.score, .panel { background: linear-gradient(160deg, var(--ground-2), var(--ground)); }
.licence-strip { background: linear-gradient(150deg, var(--ground-2), var(--ground)); }
.ct thead th { background: var(--ground-3); }
.ct tbody tr:hover { background: var(--ground-3); }

/* big figures get the gradient treatment */
.stat b, .verdict__num, .score__overall, .ct__score b {
  background: linear-gradient(135deg, var(--brass) 10%, var(--brass-2) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brass);
}

.banner__title {
  background: linear-gradient(120deg, #ffffff 25%, #e9d2ff 60%, #e879fb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* per-topic accent on cards and article headers */
.card[data-topic] { --accent: var(--brass); }
.card[data-topic="licensing"] { --accent: var(--t-licensing); }
.card[data-topic="games"]     { --accent: var(--t-games); }
.card[data-topic="banking"]   { --accent: var(--t-banking); }
.card[data-topic="mobile"]    { --accent: var(--t-mobile); }
.card[data-topic="support"]   { --accent: var(--t-support); }
.card[data-topic="safety"]    { --accent: var(--t-safety); }
.card[data-topic="method"]    { --accent: var(--t-method); }

.card[data-topic] .card__kicker { color: var(--accent); }
.card[data-topic] .card__go { color: var(--accent); }
.card[data-topic]:hover { border-color: var(--accent); }
.card[data-topic] .card__fig { border-bottom: 2px solid var(--accent); }
.card[data-topic]:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.45); }

.page-intro .kicker[data-topic="licensing"] { color: var(--t-licensing); }
.page-intro .kicker[data-topic="games"]     { color: var(--t-games); }
.page-intro .kicker[data-topic="banking"]   { color: var(--t-banking); }
.page-intro .kicker[data-topic="mobile"]    { color: var(--t-mobile); }
.page-intro .kicker[data-topic="support"]   { color: var(--t-support); }
.page-intro .kicker[data-topic="safety"]    { color: var(--t-safety); }
.page-intro .kicker[data-topic="method"]    { color: var(--t-method); }

.site-head { backdrop-filter: blur(8px); }

/* illustrations inherit the topic accent */
.card[data-topic] .card__art { color: var(--accent); }
.hero-fig { color: var(--brass); }
.hero-fig[data-topic="licensing"] { color: var(--t-licensing); }
.hero-fig[data-topic="games"]     { color: var(--t-games); }
.hero-fig[data-topic="banking"]   { color: var(--t-banking); }
.hero-fig[data-topic="mobile"]    { color: var(--t-mobile); }
.hero-fig[data-topic="support"]   { color: var(--t-support); }
.hero-fig[data-topic="safety"]    { color: var(--t-safety); }
.hero-fig[data-topic="method"]    { color: var(--t-method); }
.hero-fig { border-color: currentColor; }

/* ------------------------------------------------------------ pros / cons */

.pc { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 54rem) { .pc { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.pc__col {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(165deg, var(--ground-2), var(--ground));
}
.pc__col--pro { border-top: 3px solid var(--t-safety); }
.pc__col--con { border-top: 3px solid var(--caution); }

.pc__col h2 {
  font-size: var(--t-lg); margin-bottom: 1.25rem; display: flex;
  align-items: center; gap: 0.6rem;
}
.pc__mark {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; font-family: var(--mono); font-size: 1rem; line-height: 1; flex-shrink: 0;
}
.pc__col--pro .pc__mark { background: rgba(95, 212, 138, 0.16); color: var(--t-safety); }
.pc__col--con .pc__mark { background: rgba(196, 120, 74, 0.16); color: var(--caution); }

.pc__item + .pc__item { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-soft); }
.pc__item h3 { font-size: var(--t-base); margin-bottom: 0.3rem; line-height: 1.3; }
.pc__item p { font-size: var(--t-sm); color: var(--text-3); line-height: 1.6; }

.prose--wide ol { padding-left: 1.3rem; }
.prose--wide ol li { margin-bottom: 0.9rem; }

/* ==========================================================================
   Ambient marginalia — suits and chips in the empty right-hand column
   ========================================================================== */

.has-deco { position: relative; }

.deco {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.has-deco > .prose { position: relative; z-index: 1; }

.deco__piece { position: absolute; display: block; opacity: 0.16; }
.deco__art { width: 100%; height: 100%; display: block; }

/* only where there is genuine empty space to fill */
@media (max-width: 68rem) { .deco { display: none; } }

.deco__piece--1 { right: 7%;  top: 2%;   width: 8.5rem; height: 8.5rem; color: var(--t-games);   animation: floatA 19s ease-in-out infinite; }
.deco__piece--2 { right: 23%; top: 17%;  width: 6rem;   height: 6rem;   color: var(--t-banking); animation: floatB 24s ease-in-out infinite; }
.deco__piece--3 { right: 4%;  top: 33%;  width: 5.5rem; height: 5.5rem; color: var(--t-support); animation: floatB 21s ease-in-out infinite 2s; }
.deco__piece--4 { right: 19%; top: 50%;  width: 7rem;   height: 7rem;   color: var(--t-licensing); animation: floatA 26s ease-in-out infinite 1s; }
.deco__piece--5 { right: 6%;  top: 66%;  width: 9rem;   height: 9rem;   color: var(--t-mobile);  animation: floatB 30s ease-in-out infinite; }
.deco__piece--6 { right: 22%; top: 83%;  width: 6.5rem; height: 6.5rem; color: var(--t-safety);  animation: floatA 23s ease-in-out infinite 3s; }

@keyframes floatA {
  0%,100% { transform: translate3d(0,0,0) rotate(-8deg); }
  50%     { transform: translate3d(-14px,-26px,0) rotate(6deg); }
}
@keyframes floatB {
  0%,100% { transform: translate3d(0,0,0) rotate(7deg); }
  50%     { transform: translate3d(16px,-20px,0) rotate(-9deg); }
}

/* a couple of pieces spin very slowly instead of drifting */
.deco__piece--2 .deco__art,
.deco__piece--5 .deco__art { animation: spinSlow 120s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .deco__piece, .deco__piece .deco__art { animation: none !important; }
}

/* ========================================================== margin notes */

.mnotes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
@media (max-width: 68rem) { .mnotes { display: none; } }

.mnote {
  position: absolute; right: 0; width: 15.5rem;
  border-left: 2px solid var(--tone, var(--brass));
  padding: 0.2rem 0 0.2rem 1rem;
}

.mnote[data-tone="licensing"] { --tone: var(--t-licensing); }
.mnote[data-tone="games"]     { --tone: var(--t-games); }
.mnote[data-tone="banking"]   { --tone: var(--t-banking); }
.mnote[data-tone="mobile"]    { --tone: var(--t-mobile); }
.mnote[data-tone="support"]   { --tone: var(--t-support); }
.mnote[data-tone="safety"]    { --tone: var(--t-safety); }

.mnote__big {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 1.4rem + 1.1vw, 2.5rem); line-height: 1;
  color: var(--tone, var(--brass)); letter-spacing: -0.03em;
}
.mnote__label {
  display: block; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3);
  margin-top: 0.45rem; line-height: 1.4;
}
.mnote__note {
  display: block; font-size: var(--t-xs); color: var(--text-4);
  line-height: 1.6; margin-top: 0.55rem;
}

/* the suits drop back behind the notes */
.deco__piece { opacity: 0.09; }

/* ==========================================================================
   Killing the right-hand void
   Prose is capped near 40rem for readability, so in a 74rem shell it leaves a
   dead column. Two answers: centre text that is only text, and let anything
   that genuinely uses the width run full-bleed to the shell.
   ========================================================================== */

.prose--centred { margin-inline: auto; }
.prose--centred > h2:first-child { margin-top: 0; }

/* section heads above centred prose line up with it */
.block--centred .block__head { max-width: 46rem; margin-inline: auto; }

/* ---------------------------------------------------- paired walkthrough */

.walk { display: grid; gap: 2.5rem; }

.walk__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 64rem) {
  .walk__row {
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.85fr);
    gap: 3rem;
    align-items: start;
  }
}

.walk__row + .walk__row { padding-top: 2.5rem; border-top: 1px solid var(--rule-soft); }

.walk__text h3 { font-size: var(--t-lg); margin-bottom: 0.9rem; }
.walk__text p { color: var(--text-2); }
.walk__text p + p { margin-top: 1.05rem; }
.walk__text strong { color: var(--text); font-weight: 600; }

.walk__note {
  border-left: 2px solid var(--tone, var(--brass));
  padding: 0.15rem 0 0.15rem 1.15rem;
  position: sticky; top: 2rem;
}
.walk__note[data-tone="licensing"] { --tone: var(--t-licensing); }
.walk__note[data-tone="games"]     { --tone: var(--t-games); }
.walk__note[data-tone="banking"]   { --tone: var(--t-banking); }
.walk__note[data-tone="mobile"]    { --tone: var(--t-mobile); }
.walk__note[data-tone="support"]   { --tone: var(--t-support); }

.walk__big {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 1.6rem + 1.4vw, 3rem); line-height: 0.95;
  color: var(--tone, var(--brass)); letter-spacing: -0.035em;
}
.walk__label {
  display: block; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  margin-top: 0.55rem; line-height: 1.45;
}
.walk__body {
  display: block; font-size: var(--t-sm); color: var(--text-3);
  line-height: 1.65; margin-top: 0.7rem;
}

/* the absolute layers are no longer needed — the grid uses the width */
.deco, .mnotes { display: none; }

/* ==========================================================================
   Light mode
   Dark is the default here by design, so light is the override: it follows the
   OS unless the reader has chosen, and the toggle wins in both directions.
   ========================================================================== */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:   #f8f6fb;
    --ground-2: #f1ecf7;
    --ground-3: #e7dff1;
    --ground-4: #d6cae6;

    --text:   #191223;
    --text-2: #3d3350;
    --text-3: #605571;
    --text-4: #857b96;

    --brass:   #8b3fd4;
    --brass-2: #a855f7;
    --brass-wash: rgba(139, 63, 212, 0.09);

    --verify: #0f8f80;
    --verify-wash: rgba(15, 143, 128, 0.1);

    --caution: #b0561f;
    --caution-wash: rgba(176, 86, 31, 0.08);

    --rule:      rgba(25, 18, 35, 0.15);
    --rule-soft: rgba(25, 18, 35, 0.08);

    --art-bg:    #f1ecf7;
    --art-panel: #e7dff1;
    --art-dim:   #c3b6d4;

    --t-licensing: #0f8f80;
    --t-games:     #8b3fd4;
    --t-banking:   #b5741f;
    --t-mobile:    #2563c9;
    --t-support:   #c02fa8;
    --t-safety:    #1d8f52;
    --t-method:    #6b7280;
  }
}

:root[data-theme="light"] {
  --ground:   #f8f6fb;
  --ground-2: #f1ecf7;
  --ground-3: #e7dff1;
  --ground-4: #d6cae6;

  --text:   #191223;
  --text-2: #3d3350;
  --text-3: #605571;
  --text-4: #857b96;

  --brass:   #8b3fd4;
  --brass-2: #a855f7;
  --brass-wash: rgba(139, 63, 212, 0.09);

  --verify: #0f8f80;
  --verify-wash: rgba(15, 143, 128, 0.1);

  --caution: #b0561f;
  --caution-wash: rgba(176, 86, 31, 0.08);

  --rule:      rgba(25, 18, 35, 0.15);
  --rule-soft: rgba(25, 18, 35, 0.08);

  --art-bg:    #f1ecf7;
  --art-panel: #e7dff1;
  --art-dim:   #c3b6d4;

  --t-licensing: #0f8f80;
  --t-games:     #8b3fd4;
  --t-banking:   #b5741f;
  --t-mobile:    #2563c9;
  --t-support:   #c02fa8;
  --t-safety:    #1d8f52;
  --t-method:    #6b7280;
}

/* pieces that assumed a dark ground */

:root[data-theme="light"] .btn { color: #ffffff; }
:root[data-theme="light"] .btn:hover { color: #ffffff; }
:root[data-theme="light"] .skip-link { color: #ffffff; }
:root[data-theme="light"] .card:hover { box-shadow: 0 14px 30px rgba(25,18,35,0.12); }
:root[data-theme="light"] .site-foot__brand,
:root[data-theme="light"] .rg-strip strong { color: var(--text); }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn,
  :root:not([data-theme="dark"]) .btn:hover,
  :root:not([data-theme="dark"]) .skip-link { color: #ffffff; }
  :root:not([data-theme="dark"]) .card:hover { box-shadow: 0 14px 30px rgba(25,18,35,0.12); }
}

/* the banner stays dark in both themes — it is a hero, not a surface */
.banner__title { color: #f6f2ff; }

/* ------------------------------------------------------------- the toggle */

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--brass); border-color: var(--brass); background: var(--brass-wash); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }

.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
:root[data-theme="light"] .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle__sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle__moon { display: none; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

/* the header now carries nav + toggle; keep it from crushing on small screens */
.site-head { align-items: center; row-gap: 0.85rem; }
.site-head__brand { flex: 0 0 auto; }
.site-nav { flex: 1 1 auto; justify-content: flex-end; }

@media (max-width: 60rem) {
  .site-head { justify-content: space-between; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 0.35rem 1.1rem; }
  .site-nav a { font-size: var(--t-xs); }
}

@media (max-width: 44rem) {
  /* sticky rails have nothing to stick beside once the grid is one column */
  .article-side, .walk__note, .hotel-side { position: static; top: auto; }

  .banner__inner { padding-block: clamp(2.25rem, 9vw, 3.25rem); }
  .banner__title { max-width: none; }
  .banner__stats { margin-top: 2rem; padding-top: 1.25rem; gap: 1.1rem 1rem; }

  .btn { padding: 0.72rem 1.1rem; }
  .banner__cta { gap: 0.6rem; }
  .banner__cta .btn { flex: 1 1 auto; justify-content: center; }

  .walk__row + .walk__row { padding-top: 1.75rem; }
  .walk__note { border-left: none; border-top: 2px solid var(--tone, var(--brass));
    padding: 0.9rem 0 0; }
  .walk__big { font-size: 1.9rem; }

  .verdict { gap: 1rem; }
  .verdict__num { font-size: 2.8rem; }

  .licence-grid { gap: 0.9rem 1.5rem; }
  .rg-strip { gap: 0.85rem; padding: 0.9rem 1rem; }
  .rg-strip__age { width: 2.3rem; height: 2.3rem; font-size: 0.75rem; }

  .pc__col { padding: 1.1rem; }
  .card { padding: 1.15rem 1.1rem 1.25rem; }
  .card__fig { margin: -1.15rem -1.1rem 0.4rem; }

  .site-foot__grid { gap: 1.75rem; }
  .crumbs { font-size: 0.66rem; }
}

@media (max-width: 30rem) {
  .banner__stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.5rem; }
  .theme-toggle { width: 2.1rem; height: 2.1rem; }
}

/* nothing may push the page sideways */
html, body { max-width: 100%; }
.ct-wrap, .table-wrap { -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   The banner keeps a dark ground in both themes, so its text cannot inherit
   theme tokens — in light mode that put dark text on a dark field.
   Everything inside it is pinned.
   ========================================================================== */

.banner { --banner-ink: #f2ecf9; --banner-ink-2: #c3b3d8; --banner-accent: #d9a7ff; }

.banner__kicker { color: var(--banner-accent); }
.banner__lede   { color: var(--banner-ink-2); }
.banner__stats  { border-top-color: rgba(242, 236, 249, 0.18); }
.banner .stat span { color: var(--banner-ink-2); }

.banner .stat b,
.banner__title {
  background: linear-gradient(120deg, #ffffff 20%, #eed6ff 58%, #f08ffd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--banner-ink);
}

.banner .btn { background: var(--banner-ink); color: #1b1026; border-color: var(--banner-ink); }
.banner .btn:hover { background: #f08ffd; border-color: #f08ffd; color: #1b1026; }
.banner .btn--ghost { background: transparent; color: var(--banner-ink);
  border-color: rgba(242, 236, 249, 0.42); }
.banner .btn--ghost:hover { background: var(--banner-ink); color: #1b1026;
  border-color: var(--banner-ink); }
