/* ==========================================================================
   Cascadia Play - design system v3 "Midnight Lobby"
   Regulated Ontario casino product in the vibe of established operators:
   midnight-navy ground, casino-green action colour, gold reward accent,
   authored gradient game-tile art, Archivo throughout (Black for display).
   Dark-only by design: the lobby is the product's own light source.
   Compliance elements are first-class product chrome, never fine print.
   Shape lock: panels/cards 14px, tiles 16px, controls 10px, badges pill.
   All colours/fonts mirror data.json -> brand.*
   ========================================================================== */

/* self-hosted Archivo (variable, latin): no runtime dependency on font CDNs */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* palette roles: navy ground / green action / gold reward / white voice */
  --bg: #0b1024;
  --bg-deep: #070b1a;
  --surface: #131a36;
  --surface-alt: #1a2344;
  --primary: #22c07d;
  --primary-hover: #2cd48d;
  --primary-ink: #052015;
  --gold: #f2b64c;
  --gold-ink: #2a1c02;
  --accent: var(--gold);
  --text: #eef1fb;
  --text-soft: #c7cee6;
  --text-muted: #8d97bd;
  --border: #26305a;
  --border-soft: #1d2547;
  --field-bg: #0d1330;
  --danger: #ec5f57;
  --success: #22c07d;
  --warning: #f2b64c;
  --help-blue: #4f7ed9;

  /* type */
  --font-heading: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Archivo', 'Segoe UI', Arial, sans-serif;

  /* radius scale (shape lock: panels 14, tiles 16, controls 10, badges pill) */
  --r-card: 14px;
  --r-tile: 16px;
  --r-control: 10px;
  --r-pill: 999px;

  /* spacing rhythm */
  --container: 1240px;
  --gap: 1.25rem;

  /* motion tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur-ui: 220ms;
  --dur-slow: 480ms;

  --shadow-1: 0 2px 6px rgba(4, 7, 18, .45), 0 10px 28px rgba(4, 7, 18, .35);
  --shadow-2: 0 14px 44px rgba(4, 7, 18, .6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 540px at 80% -12%, rgba(34, 192, 125, .08), transparent 60%),
    radial-gradient(900px 500px at 4% 0%, rgba(113, 69, 214, .08), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  caret-color: var(--primary);
  accent-color: var(--primary);
}

::selection { background: var(--primary); color: var(--primary-ink); }

/* themed scrollbar: the browser chrome belongs to the world too */
* { scrollbar-width: thin; scrollbar-color: var(--surface-alt) var(--bg-deep); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--surface-alt); border-radius: 6px; border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 800;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

p { margin: 0 0 1rem; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(2.5rem, 5.5vw, 4rem); }
.section-sm { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }

.muted { color: var(--text-muted); }
.center { text-align: center; }
.measure { max-width: 68ch; }
.mx-auto { margin-inline: auto; }

/* ---------- Skip link + a11y ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: .5rem;
  background: var(--primary);
  color: var(--primary-ink);
  padding: .5rem .9rem;
  border-radius: var(--r-control);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: .75rem; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              color var(--dur-ui) var(--ease-out);
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--primary-hover); }
  .btn-secondary:hover { border-color: var(--text); }
  .btn-ghost:hover { color: var(--text); }
  .btn-gold:hover { background: #ffcb69; }
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 26, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 30px; height: 30px; flex: none; }
.brand .brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  padding-right: .15em; /* italic overhang */
}
.brand .brand-text em {
  font-style: italic;
  color: var(--gold);
  margin-left: .28em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: .75rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .93rem;
  padding: .4rem .1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--primary);
  text-decoration: none;
}
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-user { display: flex; align-items: center; gap: .6rem; }
.nav-user .hi { color: var(--text-muted); font-size: .9rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  color: var(--text);
  width: 44px; height: 42px;
  cursor: pointer;
}

@media (max-width: 940px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-deep);
  }
  .mobile-menu.open {
    display: flex;
    animation: menu-in 180ms var(--ease-out);
  }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-menu.open { animation: none; }
  }
  .mobile-menu a {
    color: var(--text);
    padding: .7rem .25rem;
    border-bottom: 1px solid var(--border-soft);
    font-weight: 600;
  }
  .mobile-menu a:hover { text-decoration: none; }
  .mobile-menu .btn { margin-top: .75rem; }
}
@media (min-width: 941px) { .mobile-menu { display: none; } }

/* ==========================================================================
   Compliance badges (19+, RG, AGCO ...)
   ========================================================================== */
.badges { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 30px;
  padding: 0 .65rem 0 .3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.badge.icon-only { padding-inline: .3rem; }
.badge .glyph {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 900;
  flex: none;
  line-height: 1;
}
.badge .glyph svg { width: 12px; height: 12px; }
.badge.age .glyph { background: var(--danger); color: #fff5f4; }
.badge.rg .glyph { background: var(--primary); color: var(--primary-ink); }
.badge.reg .glyph { background: var(--gold); color: var(--gold-ink); }
.badge.help .glyph { background: var(--help-blue); color: #f2f6fd; }

/* ==========================================================================
   Promo hero (home)
   ========================================================================== */
.promo { padding-block: clamp(1.5rem, 3vw, 2.5rem) 0; }
.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-tile);
  border: 1px solid var(--border);
  background:
    radial-gradient(720px 380px at 86% 10%, rgba(242, 182, 76, .28), transparent 62%),
    radial-gradient(560px 420px at 70% 110%, rgba(34, 192, 125, .22), transparent 60%),
    linear-gradient(115deg, #121a3e 0%, #1a2145 55%, #232a58 100%);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .75fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  box-shadow: var(--shadow-2);
}
.promo-flag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.promo h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: .75rem;
}
.promo h1 .gold { color: var(--gold); }
.promo .lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 46ch;
  margin-bottom: 1.4rem;
}
.promo-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.promo-compliance {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: var(--text-muted);
  max-width: 54ch;
}

/* authored promo art: fanned reward cards.
   The one authored moment of the page: the fan deals itself on arrival.
   CSS animation (not JS) so it stays smooth while covers are still loading. */
.promo-art { position: relative; min-height: 240px; }
.promo-art svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(4, 7, 18, .5));
}
.promo-art .fan {
  transform-box: fill-box;
  transform-origin: 50% 85%;
  animation: fan-in .5s var(--ease-out) both;
}
.promo-art .fan-a { animation-delay: .1s; }
.promo-art .fan-b { animation-delay: .17s; }
.promo-art .fan-c { animation-delay: .24s; } /* gold card lands last, on top */
@keyframes fan-in {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-art .fan { animation: fan-fade .2s ease both; }
  @keyframes fan-fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 860px) {
  .promo-card { grid-template-columns: 1fr; }
  .promo-art { min-height: 0; max-width: 300px; margin: .5rem auto 1rem; }
}

/* ==========================================================================
   Lobby: category pills + game grid
   ========================================================================== */
.lobby-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.lobby-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.lobby-count { color: var(--text-muted); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lobby-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lobby-search {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 .5rem 0 .9rem;
  color: var(--text-muted);
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.lobby-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 192, 125, .2);
}
.lobby-search svg { flex: none; }
.lobby-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .93rem;
  padding: .55rem .4rem .55rem 0;
  width: clamp(150px, 22vw, 240px);
}
.lobby-search input:focus { outline: none; }
.lobby-search input::placeholder { color: var(--text-muted); }
.lobby-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.show-more { text-align: center; margin-top: 1.75rem; }

.cat-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .55rem 1.1rem;
  cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out),
              background var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cat-pill:hover { color: var(--text); border-color: var(--text-muted); }
}
.cat-pill:active { transform: translateY(1px); }
.cat-pill[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 1020px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-tile);
  overflow: hidden;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text);
  transition: transform var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow-1); }
  .game-card:hover .game-play { opacity: 1; transform: translateY(0); }
  .game-card:hover .game-cover { transform: scale(1.05); }
}
.game-card.filter-hide { display: none; }

.game-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-alt);
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.game-art:focus-visible { outline-offset: -3px; }
.game-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.game-flag {
  position: absolute;
  z-index: 1;
  top: .7rem;
  left: .7rem;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: var(--r-pill);
}
.game-flag.new { background: var(--gold); color: var(--gold-ink); }
.game-flag.exclusive { background: var(--primary); color: var(--primary-ink); }
.game-play {
  position: absolute;
  z-index: 1;
  right: .8rem;
  bottom: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(7, 11, 26, .72);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  padding: .42rem .8rem;
  border-radius: var(--r-pill);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  pointer-events: none;
}
.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem .55rem .55rem .9rem;
}
.game-meta .game-name {
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.fav-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.fav-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .fav-btn:hover { color: var(--text); }
}
.fav-btn:active { transform: scale(.88); }
.fav-btn[aria-pressed="true"] { color: var(--danger); }
.fav-btn[aria-pressed="true"] .heart-fill { fill: currentColor; }
.fav-btn.pop svg { animation: heart-pop 260ms var(--ease-out); }
@keyframes heart-pop {
  0% { transform: scale(.8); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .fav-btn.pop svg { animation: none; }
}

.lobby-note {
  margin-top: 1.25rem;
  font-size: .82rem;
  color: var(--text-muted);
}

/* lobby entrance / filter stagger */
.game-card.deal { opacity: 0; transform: translateY(14px) scale(.985); }
.game-card.deal.dealt {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .game-card.deal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Game page
   ========================================================================== */
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.game-hero-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--r-tile);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.game-hero-info h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: .5rem;
  padding-right: .12em; /* italic overhang */
}
.game-meta-line { color: var(--text-muted); font-weight: 600; margin-bottom: 1.5rem; }
.game-actions { display: flex; align-items: center; gap: .9rem; }
.game-actions .fav-lg {
  width: 52px; height: 52px;
  border: 1px solid var(--text-muted);
}
.game-actions .fav-lg svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .game-actions .fav-lg:hover { border-color: var(--text); }
}
.game-compliance {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.related-heading {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
@media (max-width: 820px) {
  .game-hero { grid-template-columns: 1fr; }
  .game-hero-cover { max-width: 420px; }
}

/* ==========================================================================
   Trust band (AGCO registration as product chrome)
   ========================================================================== */
.trust-band {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}
.trust-band h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: .4rem; }
.trust-band p { color: var(--text-muted); margin: 0; max-width: 62ch; font-size: .95rem; }
.trust-reg {
  display: grid;
  gap: .45rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  min-width: 260px;
}
.trust-reg .row { display: flex; justify-content: space-between; gap: 1.25rem; font-size: .85rem; }
.trust-reg .k { color: var(--text-muted); }
.trust-reg .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.trust-reg .badges { margin-top: .5rem; }
@media (max-width: 820px) {
  .trust-band { grid-template-columns: 1fr; }
  .trust-reg { border-left: 0; border-top: 1px solid var(--border); padding: 1rem 0 0; }
}

/* assurance points folded into the trust band */
.trust-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.trust-props > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: .85rem;
  align-items: start;
}
.trust-props .icon {
  width: 38px; height: 38px;
  border-radius: var(--r-control);
  background: rgba(34, 192, 125, .14);
  color: var(--primary);
  display: grid; place-items: center;
}
.trust-props h3 { font-size: .95rem; font-weight: 800; margin: 0 0 .2rem; grid-column: 2; }
.trust-props .icon + h3 ~ p, .trust-props p { color: var(--text-muted); font-size: .85rem; margin: 0; grid-column: 2; }
.trust-props > div .icon { grid-row: 1 / 3; }
@media (max-width: 560px) { .trust-props { grid-template-columns: 1fr; } }

/* ==========================================================================
   Responsible-gaming banner + helpline
   ========================================================================== */
.rg-banner {
  background: linear-gradient(120deg, rgba(34, 192, 125, .16), rgba(34, 192, 125, .05));
  border: 1px solid rgba(34, 192, 125, .45);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2.1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.rg-banner .rg-lead {
  margin: 0 0 .35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.3;
}
.rg-banner .rg-help { margin: 0; color: var(--text-soft); font-size: .92rem; }
.rg-banner .rg-help a { color: var(--text); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.helpline {
  background: rgba(34, 192, 125, .1);
  border: 1px solid rgba(34, 192, 125, .45);
  border-radius: var(--r-card);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.helpline h3 { margin-bottom: .3rem; }
.helpline .phone { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; color: var(--text); }
.helpline a.phone:hover { color: var(--primary); }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-head {
  padding-block: clamp(2rem, 4.5vw, 3.25rem) 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; }
.page-head .intro { color: var(--text-soft); max-width: 72ch; font-size: 1.02rem; }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--text-muted); }

/* content prose */
.prose { max-width: 78ch; }
.prose section { margin-bottom: 1.75rem; }
.prose h2 { font-size: 1.28rem; margin-top: .25rem; }
.prose p { color: var(--text-soft); }
.updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.notice {
  border: 1px dashed var(--border);
  border-radius: var(--r-control);
  background: rgba(255, 255, 255, .02);
  padding: .9rem 1.1rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.notice strong { color: var(--gold); }

/* ==========================================================================
   Grids / cards (shared: contact, account)
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 1.5rem;
  transition: border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card.interactive:hover { border-color: var(--primary); transform: translateY(-3px); }
}
.card .icon {
  width: 42px; height: 42px;
  border-radius: var(--r-control);
  background: rgba(34, 192, 125, .14);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.08rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-cat { margin-bottom: 2rem; }
.faq-cat h2 { font-size: 1.15rem; color: var(--gold); }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  margin-bottom: .6rem;
  overflow: hidden;
  background: var(--surface);
}
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 1rem 1.2rem; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-q .chev { transition: transform var(--dur-ui) var(--ease-out); color: var(--text-muted); flex: none; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-ui) var(--ease-in-out);
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; min-height: 0; padding: 0 1.2rem; color: var(--text-muted); }
.faq-q[aria-expanded="true"] + .faq-a > div { padding-bottom: 1.1rem; }

/* ==========================================================================
   Forms / auth
   ========================================================================== */
.auth-wrap { max-width: 620px; margin-inline: auto; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-1);
}
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--text-muted); }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=date],
.field input[type=number],
.field input[type=password],
.field select,
.field textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .98rem;
  padding: .75rem .85rem;
  transition: border-color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 192, 125, .2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field .err { color: var(--danger); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }

.check {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .5rem 0; font-size: .92rem;
}
.check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.check label { font-weight: 400; color: var(--text-soft); }
.check .basis { display: block; color: var(--text-muted); font-size: .78rem; margin-top: .15rem; }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .grid-form { grid-template-columns: 1fr; } }
.col-span { grid-column: 1 / -1; }

/* stepper */
.stepper { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.stepper .step {
  flex: 1; text-align: center; font-size: .8rem; color: var(--text-muted);
  padding-bottom: .5rem; border-bottom: 2px solid var(--border);
}
.stepper .step.active { color: var(--text); border-color: var(--primary); font-weight: 700; }
.stepper .step.done { color: var(--primary); border-color: var(--primary); }
.step-panel { display: none; border: 0; padding: 0; margin: 0; }
.step-panel.active { display: block; }
.step-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .9rem;
  padding: 0;
}
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }

.pw-meter { height: 6px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; margin-top: .4rem; }
.pw-meter span {
  display: block; height: 100%; width: 100%;
  background: var(--danger);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out);
}

.form-alert {
  border-radius: var(--r-control); padding: .85rem 1rem; font-size: .92rem; margin-bottom: 1rem;
  border: 1px solid; display: none;
}
.form-alert.show { display: block; }
.form-alert.error { color: #ffd9d6; background: rgba(236, 95, 87, .12); border-color: var(--danger); }
.form-alert.success { color: #c9f5e0; background: rgba(34, 192, 125, .12); border-color: var(--success); }

/* account dashboard */
.dash-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--gap); }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }
.stat { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.stat:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
.stat .k { color: var(--text-muted); }
.stat .v, .stat span:last-child { font-variant-numeric: tabular-nums; }
.tools { display: grid; gap: .6rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
  margin-top: 3rem;
  padding-block: 2.5rem 1.5rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-col h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col ul a { color: var(--text-soft); font-size: .93rem; }
.footer-brand .brand { margin-bottom: .75rem; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; max-width: 40ch; }
.footer-badges { margin: 1rem 0; }
/* the footer 19+ mark reads at a glance, larger than inline badges */
.footer-badges .badge { height: 46px; }
.footer-badges .badge.icon-only { padding-inline: .35rem; }
.footer-badges .badge .glyph { width: 36px; height: 36px; font-size: .95rem; }
.footer-pay { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .75rem; }
.footer-pay .pay-label { color: var(--text-muted); font-size: .8rem; }
.footer-pay img { height: 30px; width: auto; }

.footer-certs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem;
  padding-top: 1.75rem;
}
.footer-certs img { height: 36px; width: auto; display: block; }
.footer-certs img.wide { height: 26px; } /* very wide wordmarks keep the row's visual weight */
/* RG Check ships with dark internals; a lifted plate keeps its wedge legible on navy */
.footer-certs img.square {
  height: 64px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-control);
  padding: 6px;
}
.footer-certs a, .footer-certs span { display: inline-flex; opacity: .92; transition: opacity var(--dur-ui) var(--ease-out); }
.footer-certs a:hover { opacity: 1; }
.footer-legal {
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .8rem; color: var(--text-muted);
}
.footer-legal p { margin: 0 0 .5rem; }
.footer-legal .reg { color: var(--text-muted); }

/* ==========================================================================
   Scroll reveal (subtle, reduced-motion aware)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
