/* XeNova Studios — site styles. No build step, no external requests. */
:root {
  --bg: #0b0820;
  --bg-2: #1b1145;
  --panel: rgba(27, 17, 69, 0.72);
  --panel-border: rgba(124, 92, 255, 0.28);
  --gold: #ffcf5a;
  --gold-soft: #ffe39b;
  --violet: #7c5cff;
  --violet-soft: #a893ff;
  --text: #f3efff;
  --muted: #b9b0dc;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 207, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 10px;
  font-weight: 700; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 8, 32, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 92, 255, 0.18);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg, .brand img { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.brand-word { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand-word b { color: var(--gold); font-weight: 800; }
.brand-word small { font-weight: 600; color: var(--muted); font-size: 0.8rem; margin-left: 4px; letter-spacing: 0.08em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--panel-border); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-links {
  list-style: none; margin: 0; padding: 8px 16px 16px;
  position: absolute; left: 0; right: 0; top: 64px;
  background: rgba(11, 8, 32, 0.97);
  border-bottom: 1px solid rgba(124, 92, 255, 0.25);
  display: none; flex-direction: column; gap: 2px;
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block; padding: 12px 14px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 700;
}
.nav-links a:hover { background: rgba(124, 92, 255, 0.16); color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--gold); background: rgba(255, 207, 90, 0.08); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; position: static; flex-direction: row; padding: 0; gap: 4px;
    background: none; border: 0;
  }
  .nav-links a { padding: 8px 14px; font-size: 0.95rem; }
}

/* ---------- Generic sections ---------- */
main { flex: 1; }
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet-soft); margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.gold { color: var(--gold); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.page-hero { padding: 56px 0 8px; }
@media (min-width: 720px) { .page-hero { padding: 88px 0 16px; } }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .btn-row { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #ffdc7d, var(--gold)); color: #2a1a05; box-shadow: 0 8px 26px rgba(255, 207, 90, 0.28); }
.btn-gold:hover { color: #2a1a05; box-shadow: 0 10px 32px rgba(255, 207, 90, 0.4); }
.btn-ghost { background: rgba(124, 92, 255, 0.14); color: var(--text); border: 1px solid var(--panel-border); }
.btn-ghost:hover { color: var(--text); background: rgba(124, 92, 255, 0.24); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
@media (min-width: 720px) { .hero { padding: 110px 0 70px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 .shine {
  background: linear-gradient(90deg, var(--gold) 0%, #fff1c4 45%, var(--violet-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(360px, 82vw); height: auto; filter: drop-shadow(0 20px 60px rgba(124, 92, 255, 0.45)); }
.hero-art .orbit { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.hero-art .twinkle { animation: twinkle 3.2s ease-in-out infinite; }
.hero-art .twinkle:nth-of-type(2n) { animation-delay: 1.1s; }
.hero-art .twinkle:nth-of-type(3n) { animation-delay: 2.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .orbit, .hero-art .twinkle { animation: none; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 207, 90, 0.12); color: var(--gold); margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); }

/* ---------- Game feature ---------- */
.game-feature {
  display: grid; gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(27, 17, 69, 0.75));
  border: 1px solid var(--panel-border); border-radius: 26px; padding: 24px;
}
@media (min-width: 860px) { .game-feature { grid-template-columns: 300px 1fr; padding: 40px; gap: 44px; } }
.game-icon {
  width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto; border-radius: 22%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.game-icon svg, .game-icon img { display: block; width: 100%; height: 100%; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.tag {
  font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted);
}
.tag.gold { color: var(--gold); border-color: rgba(255, 207, 90, 0.35); background: rgba(255, 207, 90, 0.08); }
.feature-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.feature-list li { padding-left: 28px; position: relative; color: var(--muted); }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* Store badges (placeholders — swap for official badge artwork when live) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 180px; min-height: 56px; padding: 8px 18px 8px 14px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); border-color: var(--gold); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }
.store-badge strong { font-size: 1.1rem; font-weight: 700; }
.store-badge[aria-disabled="true"] { opacity: 0.78; cursor: default; }
.store-badge[aria-disabled="true"]:hover { transform: none; border-color: rgba(255, 255, 255, 0.35); }
.soon-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Coming soon tile ---------- */
.ghost-card {
  border: 2px dashed rgba(124, 92, 255, 0.35); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted);
}

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; padding-top: 8px; scroll-margin-top: 80px; }
.legal h3 { font-size: 1.08rem; margin-top: 22px; }
.legal p, .legal li { color: #ddd6f6; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal .meta { color: var(--muted); font-size: 0.95rem; }
.summary-box {
  background: rgba(255, 207, 90, 0.08); border: 1px solid rgba(255, 207, 90, 0.35);
  border-radius: var(--radius); padding: 20px 22px; margin: 24px 0 8px;
}
.summary-box h2 { margin-top: 0; padding-top: 0; font-size: 1.15rem; color: var(--gold); }
.summary-box ul { margin-bottom: 0; }
.toc { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(124, 92, 255, 0.22); vertical-align: top; }
th { color: var(--gold); font-weight: 700; }
/* Phones: fit legal tables to the screen instead of scrolling sideways. */
@media (max-width: 560px) {
  .legal table { min-width: 0; font-size: 0.84rem; }
  .legal th, .legal td { padding: 8px 6px; }
  .legal td { overflow-wrap: break-word; hyphens: auto; }
}

/* ---------- Contact ---------- */
.contact-card { text-align: center; padding: 36px 24px; }
.email-chip {
  display: inline-block; margin: 6px 0 18px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border);
  font-weight: 700; word-break: break-all;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(11, 8, 32, 0.7);
  padding: 36px 0 28px; margin-top: 40px; font-size: 0.92rem; color: var(--muted);
}
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { margin: 0 0 8px; color: var(--text); font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.copyright { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.85rem; }
