/* Prism Breakout — public site styles.
   Neon-on-dark identity taken from the app: near-black navy background, a cyan→
   purple→magenta "prism" accent gradient, and the game's cosmetic neons. No third-
   party fonts (system stack only), no web fonts, no JS. Built for fast, accessible,
   responsive static hosting (Cloudflare Pages). Motion is restrained and fully
   disabled under prefers-reduced-motion. */

:root {
  --bg: #05060f;
  --bg-2: #070920;
  --panel: #0b0c1a;
  --panel-2: #0f1226;
  --border: rgba(176, 108, 255, 0.28);
  --border-soft: rgba(176, 108, 255, 0.16);
  --text: #eaedff;
  --muted: #b9bfe6; /* ≥ 7:1 on --bg */
  --cyan: #34f5ff;
  --magenta: #ff4fd8;
  --purple: #b06cff;
  --green: #6cff7a;
  --link: #7fe9ff;
  --link-hover: #b7f4ff;
  --prism: linear-gradient(90deg, #34f5ff 0%, #b06cff 52%, #ff4fd8 100%);
  --radius: 16px;
  --maxw: 860px;
  --focus: #ffe14f;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  /* Static prism-tinted glow — no animation. */
  background-image:
    radial-gradient(1100px 620px at 50% -8%, rgba(176, 108, 255, 0.16), transparent 62%),
    radial-gradient(760px 520px at 12% 8%, rgba(52, 245, 255, 0.1), transparent 60%),
    radial-gradient(760px 520px at 88% 4%, rgba(255, 79, 216, 0.1), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

/* Keyboard focus visibility everywhere. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link for screen-reader / keyboard users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel);
  color: var(--text);
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Site header / nav ---------- */
.site-header {
  padding: 22px 0 10px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.brand img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}
.brand span {
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(176, 108, 255, 0.08);
}
.nav-links a[aria-current="page"] {
  color: #06121a;
  background-image: var(--prism);
  border-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 34px 0 12px;
}
.hero-icon {
  width: 132px;
  height: 132px;
  display: block;
  margin: 0 auto 22px;
  object-fit: contain;
  /* Glow follows the artwork's own alpha shape (drop-shadow, not box-shadow),
     so the icon's baked-in rounded-square corners are never framed or clipped. */
  filter:
    drop-shadow(0 14px 44px rgba(52, 245, 255, 0.22))
    drop-shadow(0 18px 72px rgba(255, 79, 216, 0.18));
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.prism-text {
  background-image: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  margin: 0 auto;
  max-width: 46ch;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}
.platform-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Prism divider rule. */
.rule {
  height: 3px;
  border: 0;
  margin: 30px auto;
  max-width: 240px;
  border-radius: 3px;
  background-image: var(--prism);
  opacity: 0.85;
}

/* ---------- Content ---------- */
main {
  padding: 8px 0 40px;
}
section.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 24px;
  margin: 20px 0;
}
section.card h2 {
  margin-top: 4px;
}
h2 {
  font-size: 1.5rem;
  margin: 26px 0 10px;
  font-weight: 750;
}
h3 {
  font-size: 1.13rem;
  margin: 22px 0 6px;
  font-weight: 700;
  color: #dfe4ff;
}
p {
  margin: 0 0 14px;
}
.lead {
  font-size: 1.08rem;
  color: #d7dcff;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
}
ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}
li {
  margin: 6px 0;
}
strong {
  color: #fff;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}

/* Definition-style rows for the privacy data tables. */
.datalist {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.datalist li {
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin: 8px 0;
  background: var(--panel-2);
}
.datalist li b {
  color: #fff;
}

/* ---------- Buttons / CTA ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--purple);
  background: rgba(176, 108, 255, 0.12);
  color: #fff;
}
.btn-primary {
  background-image: var(--prism);
  color: #06121a;
  border-color: transparent;
}
.btn-primary:hover {
  color: #06121a;
  filter: brightness(1.06);
}

.contact-email {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  section.card {
    padding: 18px 16px;
  }
  .hero-icon {
    width: 108px;
    height: 108px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover {
    transform: none;
  }
}
