:root {
  --bg: #0b0f1a;
  --bg-soft: #131a2b;
  --card: #182135;
  --border: #26314d;
  --text: #e8ecf6;
  --muted: #93a0bd;
  --accent: #6c5ce7;
  --accent-2: #00d2ff;
  --accent-grad: linear-gradient(135deg, #6c5ce7 0%, #00d2ff 100%);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-size: 18px;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--text); background: var(--card); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  background: var(--accent-grad); color: #fff;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: var(--card); border: 1px solid var(--border); }
.btn.secondary:hover { box-shadow: none; background: var(--bg-soft); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -10%, rgba(108, 92, 231, 0.35), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(0, 210, 255, 0.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 20px auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); margin-top: 10px; }

/* Game grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 3rem; }
.game-body { padding: 16px 18px 20px; }
.game-body h3 { font-size: 1.1rem; font-weight: 700; }
.game-body .tag { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.game-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.rating { color: #ffcc4d; font-size: 0.9rem; }
.plays { color: var(--muted); font-size: 0.82rem; }

/* Feature row */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature .ico { font-size: 1.8rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Page header (inner pages) */
.page-head { padding: 64px 0 20px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Card / content block */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 24px; }

/* Form */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-family: inherit; font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.alert {
  display: none; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px; margin-bottom: 20px;
  background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.4); color: #6ee7a8;
  font-weight: 600;
}
.alert.show { display: flex; }

/* Support extras */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
.support-tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.support-tile .ico { font-size: 1.6rem; margin-bottom: 8px; }
.support-tile h3 { font-size: 1.02rem; }
.support-tile p, .support-tile a { color: var(--muted); font-size: 0.9rem; }
.support-tile a { color: var(--accent-2); }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* Legal / prose */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.mock-tag {
  display: inline-block; background: rgba(255, 204, 77, 0.14); color: #ffcc4d;
  border: 1px solid rgba(255, 204, 77, 0.4); padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 20px;
}

/* Footer */
.site-footer {
  margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-soft);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 28px 0; color: var(--muted); font-size: 0.9rem;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links a { padding: 8px 10px; font-size: 0.88rem; }
  .brand span.name { display: none; }
}
