/* Shared by every page of the Monster Match site: font, colours (the game's palette), backdrop,
   candy logo, buttons, panels, headings, footer and the text pages (privacy, support). */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --bg-top: #5433bd;
  --bg-bottom: #a84dc2;
  --ink: #2a1259;
  --edge: #3b1a78;
  --panel-a: #4d2b99;
  --panel-b: #3d2180;
  --rim: rgba(255, 255, 255, 0.16);
  --soft: #e6dcff;
  --muted: #cbbcf2;
  --gold: #ffd84d;
  --green-a: #4be07a;
  --green-b: #12a86a;
  --pink: #ff5c9e;
  --orange: #ffa234;
  --green: #46d26a;
  --blue: #3aaeff;
  --purple: #a878ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--bg-top) 0%, #7a41c0 45%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-top);
  line-height: 1.45;
  overflow-x: hidden;
}
/* Slow sparkles like the game's backdrop. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, #fff6 50%, transparent 51%),
    radial-gradient(3px 3px at 64% 42%, #fff5 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 66%, #fff7 50%, transparent 51%),
    radial-gradient(3px 3px at 88% 74%, #fff5 50%, transparent 51%),
    radial-gradient(2px 2px at 40% 88%, #fff6 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.4; } to { opacity: 1; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; position: relative; }

/* ---------- logo: the painted logo (img/logo.png, MONSTER with Gloop as the O, MATCH on tiles) */
.logo { display: block; }
.logo img { width: clamp(280px, 46vw, 520px); height: auto; filter: drop-shadow(0 10px 18px rgba(30, 8, 70, 0.35)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- shared bits */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px 18px;
  border-radius: 999px;
  font-size: 22px; font-weight: 1000;
  background: linear-gradient(180deg, var(--green-a), var(--green-b));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 6px 0 #0b7a4c, 0 14px 30px rgba(20, 10, 60, 0.35);
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 60, 30, 0.45);
}
.btn small { font-size: 15px; font-weight: 800; opacity: 0.9; }
.panel {
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 3px solid var(--rim);
  border-radius: 36px;
  box-shadow: 0 18px 40px rgba(25, 8, 70, 0.35);
}
section { padding: 56px 0; }
h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 1000;
  color: var(--gold);
  -webkit-text-stroke: 0.12em var(--edge);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(30, 8, 70, 0.4);
}
.lead { text-align: center; color: var(--soft); font-size: 19px; max-width: 640px; margin: 0 auto 32px; }
h3 { margin: 0 0 6px; font-size: 26px; font-weight: 1000; }
p { margin: 0; }

/* ---------- footer */
footer { padding: 30px 0 46px; text-align: center; color: var(--muted); font-size: 15px; }
footer nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 8px; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- text pages (privacy, support) */
.top { padding: 26px 0 8px; display: flex; justify-content: center; }
.top a { text-decoration: none; }
.top .logo img { width: clamp(200px, 30vw, 300px); }
.doc { max-width: 760px; margin: 18px auto 0; padding: 34px clamp(20px, 5vw, 48px) 40px; }
.doc h1 {
  margin: 0 0 4px; font-size: clamp(30px, 5vw, 42px); font-weight: 1000; color: var(--gold);
  -webkit-text-stroke: 0.12em var(--edge); paint-order: stroke fill;
}
.doc .date { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.doc h3 { margin: 26px 0 8px; font-size: 22px; }
.doc p, .doc li { color: var(--soft); font-size: 17px; font-weight: 700; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc ul + p { margin-top: 14px; }
.doc a { color: var(--gold); }
.doc strong { color: #fff; }
.contact { text-align: center; margin: 6px 0 4px; }

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