/* Play Mirava — shared theme: twilight lagoon — deep navy, coral, gold, teal and periwinkle */
:root {
  --ink: #14213d;
  --ink-soft: #2b3a5c;
  --muted: #536084;
  --bg: #f1f7fb;
  --bg-2: #e2eef7;
  --paper: #ffffff;
  /* "tang" = coral */
  --tang: #ff6b6b;
  --tang-deep: #d94545;
  --tang-soft: #ffe2e0;
  /* "lemon" = gold */
  --lemon: #ffc94d;
  --lemon-soft: #fff3d1;
  /* "mint" = lagoon teal */
  --mint: #1fb5b0;
  --mint-deep: #0b7d79;
  --mint-soft: #d2f3f1;
  /* "lilac" = periwinkle */
  --lilac: #7c8cf8;
  --lilac-deep: #4b5bd6;
  --lilac-soft: #e5e9ff;
  /* "berry" = orchid pink */
  --berry: #f45d9a;
  --berry-soft: #ffe0ee;
  --line: 2px solid var(--ink);
  --drop: 5px 5px 0 var(--ink);
  --drop-lg: 8px 8px 0 var(--ink);
  --radius: 18px;
  --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.65;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  /* Soft lagoon grid with glints */
  background-image:
    radial-gradient(circle at 24px 24px, rgba(31, 181, 176, 0.22) 2px, transparent 3px),
    radial-gradient(circle at 72px 72px, rgba(255, 107, 107, 0.18) 2px, transparent 3px),
    linear-gradient(rgba(20, 33, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 48px 48px, 48px 48px;
}

img {
  max-width: 100%;
}

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

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

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

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

/* Rainbow strip on top of every page */
.rainbow {
  height: 6px;
  background: linear-gradient(90deg, var(--mint), var(--lilac), var(--berry), var(--tang), var(--lemon));
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mint), var(--lilac) 55%, var(--berry));
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 1px 0 var(--ink);
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}

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

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

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

.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  background: var(--lemon);
}

.btn-primary:hover {
  background: #ffd36e;
}

.btn-tang {
  background: var(--tang);
  color: var(--paper);
}

.btn-tang:hover {
  color: var(--paper);
}

.btn-ghost {
  background: var(--paper);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Main header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--line);
}

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

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

nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.15s ease;
}

nav a:hover {
  color: var(--ink);
  background: var(--mint-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--lemon);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: var(--line);
  background: var(--lemon);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

@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: stretch;
  }

  nav a {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, var(--berry) 0%, transparent 70%);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--lemon-soft);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.marker {
  background: linear-gradient(90deg, var(--mint-deep), var(--lilac-deep), var(--berry));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 30px;
}

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

.sticker-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  border: var(--line);
  background: linear-gradient(160deg, var(--mint) 0%, var(--lilac) 50%, var(--berry) 100%);
  box-shadow: var(--drop-lg);
  transform: rotate(1.5deg);
}

.sticker {
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: var(--line);
  background: var(--paper);
}

.sticker:nth-child(1) { background: var(--lemon-soft); }
.sticker:nth-child(2) { background: var(--mint-soft); }
.sticker:nth-child(3) { background: var(--lilac-soft); }
.sticker:nth-child(4) { background: var(--tang-soft); }

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

.sticker span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .sticker-stack {
    grid-template-columns: 1fr;
  }
}

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

.band {
  background: var(--paper);
  border-top: var(--line);
  border-bottom: var(--line);
}

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

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

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

.squiggle {
  display: block;
  width: 84px;
  height: 8px;
  margin: 6px 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint) 0 33%, var(--lilac) 33% 66%, var(--tang) 66% 100%);
  border: 2px solid var(--ink);
}

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

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

.fun-side {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35) 0 18px, transparent 19px),
    linear-gradient(180deg, var(--lilac), var(--mint));
  border-bottom: var(--line);
  font-size: 3.8rem;
}

@media (min-width: 760px) {
  .fun-side {
    border-bottom: none;
    border-right: var(--line);
  }
}

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

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

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

.fun-body p strong {
  color: var(--ink);
  background: var(--lemon-soft);
  padding: 0 4px;
  border-radius: 4px;
}

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

.badges li {
  padding: 6px 14px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--mint-soft);
}

.badges li:nth-child(2) { background: var(--lemon-soft); }
.badges li:nth-child(3) { background: var(--tang-soft); }
.badges li:nth-child(4) { background: var(--lilac-soft); }

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

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

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

.game-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 24px;
  border-radius: 28px;
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--drop);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--drop-lg);
}

.game-art {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 3.8rem;
  border-radius: 20px;
  border: var(--line);
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.45) 0 14px, transparent 15px),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.3) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--tang), var(--lemon));
}

.game-card:nth-child(2) .game-art {
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.45) 0 14px, transparent 15px),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.3) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--mint), var(--lilac));
}

.game-card:nth-child(3) .game-art {
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.5) 0 14px, transparent 15px),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.35) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--berry), var(--lilac-deep));
}

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

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

.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;
}

.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);
}

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

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

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

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

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

.store-card.featured {
  background: linear-gradient(170deg, var(--mint-soft), var(--lilac-soft));
  transform: translateY(-8px);
}

.store-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--lemon);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

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

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

.store-coins {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

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

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

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

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

.store-disclaimer p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px dashed var(--lilac-deep);
  background: var(--lilac-soft);
  text-align: center;
  font-size: 0.9rem;
  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: 36px;
  }
}

.step {
  position: relative;
  padding: 40px 24px 24px;
  border-radius: var(--radius);
  border: var(--line);
  background: var(--bg);
  box-shadow: var(--drop);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -24px;
  left: 22px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: var(--line);
  background: var(--mint);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
}

.step:nth-child(2)::before { background: var(--lilac); transform: rotate(4deg); }
.step:nth-child(3)::before { background: var(--tang); transform: rotate(-3deg); }

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

.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: 24px 12px;
  border-radius: var(--radius);
  border: var(--line);
  text-align: center;
  background: var(--tang-soft);
  box-shadow: 4px 4px 0 var(--ink);
}

.hi:nth-child(2) { background: var(--mint-soft); }
.hi:nth-child(3) { background: var(--lemon-soft); }
.hi:nth-child(4) { background: var(--lilac-soft); }

.hi strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.hi span {
  font-weight: 600;
  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: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: var(--line);
  background: var(--paper);
}

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

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

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

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

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

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

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

.trust .icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
}

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

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

/* ---------- Banners ---------- */
.banner {
  margin-top: 40px;
  padding: 32px;
  border-radius: 28px;
  border: var(--line);
  box-shadow: var(--drop-lg);
  background: linear-gradient(135deg, var(--ink) 0%, #1d4a6b 100%);
  color: #e3edf7;
}

.banner h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--lemon);
}

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

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

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

.banner.light {
  background: var(--lemon-soft);
  color: var(--ink);
}

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

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

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

.support-links a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--mint);
}

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

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

details[open] {
  background: var(--mint-soft);
  box-shadow: 4px 4px 0 var(--ink);
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  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;
  border: 2px solid var(--ink);
  background: var(--lilac);
  color: var(--paper);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
  background: var(--tang);
}

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

/* ---------- Home footer ---------- */
footer.main-footer {
  padding: 56px 0 30px;
  background: var(--ink);
  color: #d3deef;
  border-top: var(--line);
}

.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 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

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

footer.main-footer .brand {
  color: var(--paper);
  margin-bottom: 12px;
}

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

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

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

footer.main-footer a {
  color: #d3deef;
  font-weight: 500;
  text-decoration: none;
}

footer.main-footer a:hover {
  color: var(--lemon);
}

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

.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: 12px 20px;
  background: rgba(241, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--line);
}

.back {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.back:hover {
  color: var(--ink);
  background: var(--lemon);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.site-footer {
  margin-top: 24px;
  padding: 28px 20px 34px;
  background: var(--ink);
  color: #d3deef;
  border-top: var(--line);
  text-align: center;
  font-size: 0.92rem;
}

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

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

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

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

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

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

.doc-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 6px;
}

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

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

article.section {
  margin-bottom: 22px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: var(--line);
  background: var(--paper);
  border-left-width: 8px;
}

article.section:nth-of-type(4n + 1) { border-left-color: var(--mint); }
article.section:nth-of-type(4n + 2) { border-left-color: var(--lilac); }
article.section:nth-of-type(4n + 3) { border-left-color: var(--tang); }
article.section:nth-of-type(4n + 4) { border-left-color: var(--lemon); }

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

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 20px;
  border-radius: var(--radius);
  border: 2px dashed var(--lilac-deep);
  background: var(--lilac-soft);
  color: var(--ink-soft);
}

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

/* Responsible play guide */
.toc {
  margin-bottom: 36px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: var(--line);
  background: var(--mint-soft);
  box-shadow: var(--drop);
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

.toc a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

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

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

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

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

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: 20px 24px;
  border-radius: var(--radius);
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--drop);
}

.plan-card h3 {
  margin-top: 0;
}

.urgent {
  margin: 20px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: var(--line);
  background: var(--tang-soft);
  box-shadow: 5px 5px 0 var(--tang-deep);
}

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

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

.dir-item {
  margin-bottom: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: var(--paper);
  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: 44px 0 56px;
}

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

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

.hs-hero h1 span {
  display: inline-block;
  padding: 2px 20px;
  border-radius: 999px;
  border: var(--line);
  box-shadow: var(--drop);
}

.hs-hero .t-help { background: var(--mint); color: var(--paper); }
.hs-hero .t-and { background: var(--paper); }
.hs-hero .t-support { background: var(--lilac-deep); color: var(--paper); }

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

.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: 26px 24px 28px;
  border-radius: 26px;
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--drop);
}

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

.hs-email {
  margin: 0 0 20px;
  padding: 8px 14px;
  display: inline-block;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--lemon-soft);
  font-weight: 700;
  word-break: break-all;
}

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

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

.hs-form input[type="email"],
.hs-form select,
.hs-form textarea,
.chat-input-row input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
}

.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus,
.chat-input-row input:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--lilac);
}

.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: 4px;
  accent-color: var(--lilac-deep);
}

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

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

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

.help-item {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 5px solid var(--tang);
}

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

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

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

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

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

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--lilac-soft);
  border: 1px solid rgba(20, 33, 61, 0.2);
  font-size: 0.88em;
}

.urgent-box {
  padding: 18px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: var(--tang-soft);
}

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

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

.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: 50%;
  border: var(--line);
  background: var(--lilac);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--drop);
  transition: transform 0.15s ease;
}

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

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

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 101;
  width: min(360px, calc(100vw - 32px));
  max-height: min(480px, 75vh);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--drop-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: 14px 16px;
  background: linear-gradient(135deg, var(--mint-deep), var(--lilac-deep));
  color: var(--paper);
  border-bottom: var(--line);
}

.chat-head strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.chat-close {
  border: none;
  background: transparent;
  color: var(--paper);
  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.92rem;
  background: var(--bg);
}

.chat-bubble {
  max-width: 92%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid var(--ink);
}

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

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

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

.chat-input-row .btn {
  padding: 8px 16px;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
}

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