:root{
  --page: #000000;
  --text: #e9eef6;
  --muted: rgba(233,238,246,.70);

  --border: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.85);

  --accent: #52a7ff;

  --game-width: 1200px;
}

*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  min-height:100%;
}

body{
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(82,167,255,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(47,230,166,.10), transparent 55%),
    var(--page);

  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.4;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.container{
  max-width:820px;
  width:calc(100% - 24px);
  margin:20px auto;
}

/* Banner */

.banner{
  width:min(var(--game-width), calc(100% - 24px));
  margin:20px auto 10px auto;
  background:#000;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.banner img{
  width:100%;
  height:100%;
  display:block;
}

/* Card */

.card{
  background:#000;
  border:1px solid var(--border);
  border-radius:14px;
  padding:20px;
  box-shadow:var(--shadow);
}

/* Titles */

h1,h2,h3{
  margin:0 0 12px 0;
  font-weight:800;
}

.small{
  color:var(--muted);
  margin-bottom:18px;
  white-space:pre-line;
}

/* Buttons */

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(82,167,255,.25);
  color:var(--text);
  font-weight:800;
}

.btn:hover{
  background:rgba(82,167,255,.35);
}

.btn.secondary{
  background:rgba(0,0,0,.35);
}

.btn.secondary:hover{
  background:rgba(0,0,0,.50);
}

/* Footer */

.footer{
  margin-top:20px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

/* =========================
   LEGAL PAGES
   ========================= */

body.legal .banner{
  max-width:700px;
  margin:18px auto 12px auto;
}

body.legal .banner img{
  width:100%;
  height:auto;
  display:block;
}

body.legal h1{
  color:rgba(233,238,246,.90);
}

body.legal h2{
  color:rgba(233,238,246,.86);
}

body.legal h3{
  color:rgba(233,238,246,.82);
}

.legal-card{
  max-width:700px;
  margin:0 auto;
  font-size:15px;
}

.legal-card h1{
  margin-bottom:8px;
}

.legal-card .muted{
  color:var(--muted);
  margin-bottom:16px;
}

.legal-card h2{
  margin-top:34px;
  margin-bottom:8px;
  font-size:20px;
  letter-spacing:.02em;
}

.legal-card p{
  margin-top:10px;
  line-height:1.7;
  color:rgba(233,238,246,.78);
}

.legal-card li{
  margin-top:6px;
  line-height:1.6;
  color:rgba(233,238,246,.78);
}

.legal-card hr{
  margin:28px 0;
  opacity:.18;
  border:none;
  border-top:1px solid rgba(255,255,255,.15);
}

.legal-card section + section{
  margin-top:18px;
}