:root {
  --bg-top: #2a1f6b;
  --bg-bottom: #170f42;
  --panel: #33267a;
  --frame: #7356db;
  --gold: #ffcc33;
  --green: #4dcc38;
  --text: #f4f1ff;
  --muted: #c9c1f0;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  color: var(--text);
  font: 17px/1.6 "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--gold); }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
header.site a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
header.site a.brand img { width: 40px; height: 40px; border-radius: 10px; }
header.site nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-weight: 700; }
header.site nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1.logo {
  margin: 14px 0 0; font-weight: 700; line-height: .95; letter-spacing: .02em;
  font-size: clamp(3.2rem, 15vw, 5.6rem);
  -webkit-text-stroke: 5px #2b0f5c; paint-order: stroke fill;
  text-shadow: 0 7px 0 #2b0f5c, 0 14px 24px rgba(0,0,0,.35);
}
.logo .r { color: #ff4040; } .logo .y { color: #ffd02a; } .logo .b { color: #2f8cff; } .logo .g { color: #3fcf4a; }
.logo .gold { color: #ffc21a; font-size: .92em; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 0 #120a36, 0 18px 40px rgba(0,0,0,.4); }
.hero p.tag { font-size: 1.25rem; color: var(--muted); margin: 12px auto 24px; max-width: 520px; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 18px;
  background: var(--green); color: #fff; font-weight: 900; text-decoration: none;
  box-shadow: 0 6px 0 #21850f; text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.btn.soon { background: var(--frame); box-shadow: 0 6px 0 #3f2e9e; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 36px; }
.card {
  background: var(--panel); border: 4px solid var(--frame); border-radius: 22px; padding: 18px;
}
.card img { width: 56px; height: 56px; }
.card h3 { margin: 8px 0 4px; }
.card p { margin: 0; color: var(--muted); }

article.doc {
  background: var(--panel); border: 4px solid var(--frame); border-radius: 24px;
  padding: 28px clamp(18px, 4vw, 36px);
}
article.doc h1 { margin-top: 0; line-height: 1.2; }
article.doc h2 { margin-top: 1.8em; font-size: 1.2rem; color: var(--gold); }
article.doc p.meta { color: var(--muted); margin-top: -6px; }
article.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
article.doc th, article.doc td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
article.doc th { color: var(--muted); font-weight: 700; }

footer.site { margin-top: 40px; text-align: center; color: var(--muted); font-size: .9rem; }
footer.site a { color: var(--muted); margin: 0 8px; }

@media (max-width: 520px) {
  header.site nav a { margin-left: 10px; font-size: .95rem; }
  .hero .icon { width: 104px; height: 104px; }
}
