/* Bonus Play Club — shared theme: night plum, bonus amber, magenta, violet and sky */
:root {
  --ink: #22113d;
  --ink-soft: #43306a;
  --muted: #6e5f8a;
  --bg: #fbf8ff;
  --bg-2: #f1eaff;
  --paper: #ffffff;
  --night: #1a0c30;
  --plum: #2a1450;
  --plum-2: #3b1d6e;
  --magenta: #e7337a;
  --magenta-deep: #c21d61;
  --magenta-soft: #fde6f0;
  --amber: #ffb321;
  --amber-deep: #f08c00;
  --amber-soft: #fff3d6;
  --violet: #7c4dff;
  --violet-deep: #5b2fe0;
  --violet-soft: #ece5ff;
  --sky: #2fa8ff;
  --sky-soft: #e1f2ff;
  --mint: #22c58b;
  --mint-soft: #dcf7ec;
  --on-dark: #e9e0ff;
  --on-dark-muted: #b9a9dc;
  --grad-bonus: linear-gradient(135deg, var(--amber) 0%, var(--magenta) 100%);
  --grad-night: linear-gradient(135deg, #2a1450 0%, #4a1f7a 55%, #7a2a8c 100%);
  --grad-violet: linear-gradient(135deg, var(--violet) 0%, var(--sky) 100%);
  --grad-mint: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  --border: 1px solid rgba(34, 17, 61, 0.1);
  --shadow-sm: 0 4px 14px rgba(34, 17, 61, 0.08);
  --shadow: 0 12px 32px rgba(34, 17, 61, 0.12);
  --shadow-lg: 0 22px 54px rgba(34, 17, 61, 0.18);
  --glow: 0 10px 28px rgba(231, 51, 122, 0.35);
  --radius: 20px;
  --max: 1160px;
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(124, 77, 255, 0.08), transparent 40%),
    radial-gradient(circle at 92% 30%, rgba(255, 179, 33, 0.08), transparent 35%);
  background-attachment: fixed;
}

a {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--magenta-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

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

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-bonus);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
  box-shadow: var(--glow);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.06);
}

.brand-accent {
  color: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad-bonus);
  color: #ffffff;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(231, 51, 122, 0.45);
}

.btn-coral {
  background: var(--grad-violet);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 77, 255, 0.35);
}

.btn-coral:hover {
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.3);
}

/* ---------- Dark headers (home, subpages, games) ---------- */
header.top,
.site-header,
.game-top {
  background: rgba(26, 12, 48, 0.94);
  backdrop-filter: blur(12px);
  color: var(--on-dark);
}

header.top {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Thin bonus glow line under every header */
header.top::after,
.site-header::after,
.game-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--amber));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 16px;
}

nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 6px;
}

nav a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-bonus);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.menu-toggle {
  display: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--grad-bonus);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .nav-panel {
    display: none;
    width: 100%;
    padding-bottom: 12px;
  }

  .nav-panel.open {
    display: block;
  }

  nav > ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background: var(--grad-night);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 179, 33, 0.35), transparent 65%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(47, 168, 255, 0.3), transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 20px;
}

.marker {
  background: var(--grad-bonus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.14rem;
  color: var(--on-dark-muted);
  max-width: 54ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sticker-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sticker {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.sticker:nth-child(2),
.sticker:nth-child(4) {
  transform: translateY(18px);
}

.sticker b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}

.sticker:nth-child(1) b { color: var(--amber); }
.sticker:nth-child(2) b { color: #ff7fb0; }
.sticker:nth-child(3) b { color: #7cc8ff; }
.sticker:nth-child(4) b { color: #6ee7b7; }

.sticker span {
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.band {
  background: var(--paper);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Bonus accent under headings (class name kept for markup compatibility) */
.squiggle {
  position: relative;
  display: block;
  width: 58px;
  height: 6px;
  margin: 10px 0 18px;
  border-radius: 999px;
  background: var(--grad-bonus);
}

.squiggle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 66px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 12px 0 0 var(--sky);
}

/* ---------- Play for fun ---------- */
.fun-panel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (min-width: 760px) {
  .fun-panel {
    grid-template-columns: 220px 1fr;
  }
}

.fun-side {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 179, 33, 0.45), transparent 55%),
    var(--grad-night);
  font-size: 4rem;
}

.fun-body {
  padding: clamp(26px, 4vw, 46px);
}

.fun-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
}

.fun-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 68ch;
}

.fun-body p strong {
  color: var(--violet-deep);
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
}

.badges li {
  padding: 6px 15px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--violet-soft);
  color: var(--violet-deep);
}

.badges li:nth-child(2) { background: var(--amber-soft); color: #9a5a00; }
.badges li:nth-child(3) { background: var(--magenta-soft); color: var(--magenta-deep); }
.badges li:nth-child(4) { background: var(--mint-soft); color: #11795a; }

/* ---------- Game cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 920px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 26px;
  border-radius: 26px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.game-art {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--grad-bonus);
}

.game-card:nth-child(2) .game-art {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--grad-violet);
}

.game-card:nth-child(3) .game-art {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--grad-mint);
}

.game-card h3,
.game-card p,
.game-card .btn {
  margin-inline: 26px;
}

.game-card h3 {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 1.45rem;
}

.game-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  flex: 1;
}

.game-card .btn {
  margin-top: 8px;
}

/* ---------- Store ---------- */
.store-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 40px;
}

.store-head .squiggle {
  margin-inline: auto;
  left: -9px;
}

.store-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 6px;
}

.store-head h2 small {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 500;
}

.store-head p {
  margin: 0;
  color: var(--muted);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 28px;
  align-items: stretch;
}

@media (max-width: 1000px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

.store-card {
  position: relative;
  padding: 32px 20px 24px;
  border-radius: 24px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.store-card.featured {
  background: var(--grad-night);
  color: var(--on-dark);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.store-card.featured h3 {
  color: #ffffff;
}

.store-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--grad-bonus);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: var(--glow);
}

.store-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 20px;
  background: var(--violet-soft);
}

.store-card.featured .store-icon {
  background: rgba(255, 255, 255, 0.12);
}

.store-card h3 {
  margin: 0 0 4px;
  font-size: 1.28rem;
}

.store-coins {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--violet-deep);
  font-weight: 800;
}

.store-card.featured .store-coins {
  color: var(--amber);
}

.store-price {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
}

.store-card.featured .store-price {
  color: #ffffff;
}

.store-note {
  min-height: 3em;
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.store-card.featured .store-note {
  color: var(--on-dark-muted);
}

.store-card .btn {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
}

.store-disclaimer {
  display: grid;
  gap: 10px;
}

.store-disclaimer p {
  margin: 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--bg-2);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.step {
  position: relative;
  padding: 40px 26px 26px;
  border-radius: var(--radius);
  background: var(--bg);
  border: var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -24px;
  left: 24px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-bonus);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: var(--glow);
  transform: rotate(-6deg);
}

.step:nth-child(2)::before { background: var(--grad-violet); box-shadow: 0 10px 26px rgba(124, 77, 255, 0.35); }
.step:nth-child(3)::before { background: var(--grad-mint); box-shadow: 0 10px 26px rgba(34, 197, 139, 0.35); }

.step h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Why ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 820px) {
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hi {
  padding: 26px 14px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.hi strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-bonus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hi:nth-child(2) strong,
.hi:nth-child(4) strong {
  background-image: var(--grad-violet);
}

.hi span {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: var(--border);
}

.feature .emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--amber-soft);
  font-size: 1.6rem;
  line-height: 1;
}

.feature:nth-child(2) .emoji { background: var(--magenta-soft); }
.feature:nth-child(3) .emoji { background: var(--violet-soft); }
.feature:nth-child(4) .emoji { background: var(--sky-soft); }

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: var(--border);
}

.trust .icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 1.35rem;
  line-height: 1;
}

.trust h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.trust p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Banners ---------- */
.banner {
  margin-top: 44px;
  padding: 34px;
  border-radius: 28px;
  background: var(--grad-night);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}

.banner h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  color: #ffffff;
}

.banner p {
  margin: 0 0 16px;
}

.banner a {
  color: var(--amber);
}

.banner a:hover {
  color: #ffffff;
}

.banner.light {
  background: var(--amber-soft);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid rgba(240, 140, 0, 0.25);
}

.banner.light h3 {
  color: var(--ink);
}

.banner.light a {
  color: var(--violet-deep);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-links a {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.support-links a:hover {
  background: var(--amber);
  color: var(--ink);
}

/* ---------- FAQ ---------- */
details {
  margin-bottom: 12px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--paper);
  border: var(--border);
  transition: box-shadow 0.15s ease;
}

details[open] {
  box-shadow: var(--shadow);
  border-color: rgba(124, 77, 255, 0.3);
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 1.3rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
  background: var(--grad-bonus);
  color: #ffffff;
}

details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--ink-soft);
}

/* ---------- Home footer ---------- */
footer.main-footer {
  padding: 60px 0 30px;
  background: var(--night);
  color: var(--on-dark-muted);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--violet), var(--magenta), var(--amber)) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

footer.main-footer .brand {
  margin-bottom: 14px;
}

footer.main-footer h4 {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 1.08rem;
}

footer.main-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.main-footer li {
  margin-bottom: 8px;
}

footer.main-footer a {
  color: var(--on-dark-muted);
  font-weight: 600;
  text-decoration: none;
}

footer.main-footer a:hover {
  color: #ffffff;
}

.footer-blurb {
  margin: 0;
  font-size: 0.95rem;
  max-width: 36ch;
}

.fineprint {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}

.fineprint p {
  margin: 0;
}

/* ---------- Subpage header & footer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px 17px;
}

.back {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.back:hover {
  color: var(--ink);
  background: var(--amber);
}

.site-footer {
  margin-top: 24px;
  padding: 30px 20px 36px;
  background: var(--night);
  color: var(--on-dark-muted);
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--violet), var(--magenta), var(--amber)) 1;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

/* ---------- Document pages (legal, guide) ---------- */
.doc {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 60px;
}

.doc-hero {
  margin-bottom: 34px;
}

.doc-hero h1 {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 700;
  margin: 0 0 4px;
}

.doc-hero .lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.inline-strong {
  color: var(--ink);
  font-weight: 800;
}

article.section {
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: var(--border);
  border-left: 5px solid var(--violet);
  box-shadow: var(--shadow-sm);
}

article.section:nth-of-type(3n + 2) { border-left-color: var(--magenta); }
article.section:nth-of-type(3n + 3) { border-left-color: var(--amber); }

article.section h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
}

article.section p,
article.section ul {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

article.section p:last-child,
article.section ul:last-child {
  margin-bottom: 0;
}

article.section ul {
  padding-left: 1.25rem;
}

article.section li {
  margin-bottom: 8px;
}

article.section p > strong:first-child {
  color: var(--ink);
}

.tip,
.callout {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: var(--ink-soft);
}

.tip strong,
.callout strong {
  color: var(--violet-deep);
}

/* Responsible play guide */
.toc {
  margin-bottom: 38px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--grad-night);
  color: var(--on-dark);
  box-shadow: var(--shadow);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #ffffff;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  background: var(--amber);
  color: var(--ink);
}

section.block {
  padding: 0;
  margin-bottom: 46px;
}

section.block > h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  scroll-margin-top: 90px;
}

section.block h3 {
  margin: 22px 0 10px;
  font-size: 1.22rem;
}

section.block p,
section.block li {
  color: var(--ink-soft);
}

section.block p {
  margin: 0 0 12px;
}

section.block ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

section.block li {
  margin-bottom: 8px;
}

section.block strong {
  color: var(--ink);
}

.plan-card {
  margin-bottom: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.plan-card h3 {
  margin-top: 0;
  color: var(--violet-deep);
}

.urgent {
  margin: 20px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--magenta-soft);
  border-left: 5px solid var(--magenta);
}

.urgent p {
  margin: 0 0 10px;
  color: var(--ink);
}

.urgent p:last-child {
  margin-bottom: 0;
}

.dir-item {
  margin-bottom: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: var(--border);
  scroll-margin-top: 90px;
}

.dir-item h3 {
  margin: 0 0 8px;
}

.dir-item p:last-child,
.dir-item ul:last-child {
  margin-bottom: 0;
}

/* ---------- Help & Support ---------- */
.hs-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 60px;
}

.hs-hero {
  text-align: center;
  margin-bottom: 42px;
}

.hs-hero h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
}

.hs-hero h1 span {
  display: inline-block;
  padding: 2px 20px;
  border-radius: 18px;
  color: #ffffff;
}

.hs-hero .t-help { background: var(--grad-bonus); }
.hs-hero .t-and { background: var(--plum); }
.hs-hero .t-support { background: var(--grad-violet); }

.hs-intro {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hs-intro strong {
  color: var(--ink);
}

.hs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 900px) {
  .hs-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.hs-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hs-card {
  padding: 28px 26px 30px;
  border-radius: 24px;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
}

.hs-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.hs-email {
  margin: 0 0 20px;
  padding: 8px 16px;
  display: inline-block;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-weight: 800;
  word-break: break-all;
}

.hs-form .field {
  margin-bottom: 16px;
}

.hs-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 0.88rem;
}

.hs-form input[type="email"],
.hs-form select,
.hs-form textarea,
.chat-input-row input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(34, 17, 61, 0.18);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus,
.chat-input-row input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.2);
}

.hs-form textarea {
  min-height: 120px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.check-row input {
  margin-top: 5px;
  accent-color: var(--violet);
}

.check-row label {
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--ink-soft);
}

.hs-form .btn {
  width: 100%;
}

.hs-note {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.help-item {
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 4px solid var(--magenta);
}

.help-item:nth-child(3) { border-left-color: var(--amber); }
.help-item:nth-child(4) { border-left-color: var(--violet); }

.help-item:last-child {
  margin-bottom: 0;
}

.help-item h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.help-item p,
.hs-resp > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hs-resp > p {
  margin-bottom: 16px;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 0.88em;
}

.urgent-box {
  padding: 20px;
  border-radius: 18px;
  background: var(--magenta-soft);
}

.urgent-box h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.urgent-box p {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.urgent-box p:last-child {
  margin-bottom: 0;
}

/* Chat widget */
.chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 0;
  background: var(--grad-bonus);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.15s ease;
}

.chat-toggle:hover {
  transform: translateY(-3px) rotate(-4deg);
}

.chat-toggle[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 101;
  width: min(360px, calc(100vw - 32px));
  max-height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--grad-night);
  color: var(--on-dark);
}

.chat-head strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: #ffffff;
}

.chat-head span {
  font-size: 0.78rem;
}

.chat-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 180px;
  max-height: 240px;
  padding: 14px 16px;
  font-size: 0.9rem;
  background: var(--bg);
}

.chat-bubble {
  max-width: 92%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 16px;
}

.chat-bubble.bot {
  background: var(--paper);
  border: var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  margin-left: auto;
  background: var(--violet);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: var(--border);
}

.chat-input-row .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
