:root {
  --bg: #0d0b1a;
  --bg-2: #161229;
  --card: #1d1836;
  --text: #f4f1ff;
  --muted: #a9a3c7;
  --accent: #b46bff;
  --accent-2: #ff5fa2;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 11, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 18px; color: #fff;
}
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px;
  background: radial-gradient(closest-side, rgba(180, 107, 255, 0.35), transparent),
              radial-gradient(closest-side, rgba(255, 95, 162, 0.25), transparent);
  background-position: 30% 50%, 70% 50%;
  background-size: 60% 100%, 60% 100%;
  background-repeat: no-repeat;
  filter: blur(40px); z-index: -1;
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--muted); font-size: 13px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 76px); line-height: 1.05; font-weight: 900;
  letter-spacing: -0.04em; margin-bottom: 20px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); max-width: 620px; margin: 0 auto 32px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); margin-left: 10px; }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { color: var(--muted); margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card .icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

.game-card { display: flex; flex-direction: column; gap: 10px; }
.game-thumb {
  aspect-ratio: 16 / 10; border-radius: 14px;
  background: linear-gradient(135deg, #2a2150, #3b1f45);
  display: grid; place-items: center; font-size: 42px;
}
.tag { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.contact-box { text-align: center; }
.contact-box .card { max-width: 560px; margin: 0 auto; }

/* Legal / doc pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; font-size: 14px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: #d6d1ee; margin-bottom: 10px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); }
.doc td { color: #d6d1ee; }
.table-scroll { overflow-x: auto; }

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

@media (max-width: 600px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .hero { padding: 64px 0 48px; }
}
