/* Xenlix Games: one stylesheet for every page. Colours match Pulse Paths (game/ui/palette.gd). */
:root {
  color-scheme: dark;
  --bg: #070b1a;
  --bg-deep: #04060f;
  --panel: #0f1633;
  --panel-edge: #23305e;
  --grid: #0e1630;
  --text: #e8f0ff;
  --text-dim: #8a97c2;
  --cyan: #22e5ff;
  --magenta: #ff3dcb;
  --lime: #a6ff3d;
  --amber: #ffb83d;
  --violet: #9d6bff;
  --star: #ffd25a;
  --radius: 18px;
  --wrap: 1080px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff3ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 11, 26, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-edge);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 15px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: radial-gradient(circle at 70% 30%, var(--cyan) 0 4px, transparent 5px), var(--panel);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(34, 229, 255, 0.55), inset 0 0 8px rgba(255, 61, 203, 0.4);
}
.brand span b { color: var(--cyan); font-weight: 800; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--text-dim); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--cyan); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 700; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.01em; }
h1 .glow { color: #fff; text-shadow: 0 0 18px rgba(34, 229, 255, 0.75), 0 0 2px var(--magenta); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 19px; }
.lead { font-size: 19px; color: var(--text-dim); max-width: 36em; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art .logo {
  border-radius: 22%;
  box-shadow: 0 0 60px rgba(34, 229, 255, 0.35), 0 0 120px rgba(255, 61, 203, 0.15);
}
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: var(--panel); border: 1.5px solid var(--panel-edge);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
}
.badge small { display: block; color: var(--text-dim); font-weight: 500; font-size: 12px; line-height: 1.2; }
.badge.cyan { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 229, 255, 0.25); }
.badge.magenta { border-color: var(--magenta); box-shadow: 0 0 14px rgba(255, 61, 203, 0.25); }
.note { color: var(--text-dim); font-size: 14px; }

/* Sections */
section { padding: 48px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, rgba(15, 22, 51, 0.95), rgba(10, 15, 36, 0.95));
  border: 1px solid var(--panel-edge); border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--text-dim); }
.card .chip {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; border: 2px solid currentColor;
  box-shadow: 0 0 14px currentColor; background: var(--bg-deep);
}
.chip svg { width: 22px; height: 22px; }
.c-cyan { color: var(--cyan); } .c-magenta { color: var(--magenta); } .c-lime { color: var(--lime); }
.c-amber { color: var(--amber); } .c-violet { color: var(--violet); }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px);
  gap: 18px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 3px solid var(--panel-edge); background: var(--bg-deep); }
.shots figcaption { color: var(--text-dim); font-size: 14px; text-align: center; margin-top: 8px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }
.facts li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--panel-edge); background: var(--panel); font-size: 14px; color: var(--text-dim); }
.facts li b { color: var(--text); }

.game-tile { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.game-tile img { border-radius: 22%; box-shadow: 0 0 30px rgba(34, 229, 255, 0.3); }

/* Legal pages */
.doc { padding: 48px 0 24px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 23px; margin-top: 40px; padding-top: 8px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: #c9d4f2; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--text-dim); font-size: 15px; }
.callout {
  border: 1px solid var(--cyan); border-radius: var(--radius);
  background: rgba(34, 229, 255, 0.06); padding: 18px 20px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--text); }
.toc { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 16px 22px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-edge); vertical-align: top; }
th { color: var(--text); background: var(--panel); }
td { color: #c9d4f2; }
.table-scroll { overflow-x: auto; }
pre.license {
  white-space: pre-wrap; word-break: break-word;
  background: var(--bg-deep); border: 1px solid var(--panel-edge); border-radius: 12px;
  padding: 16px; font: 13.5px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #c9d4f2;
}
details { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--panel-edge); margin-top: 48px; padding: 32px 0 40px; background: rgba(4, 6, 15, 0.8); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; color: var(--text-dim); font-size: 14px; }

@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; width: min(70%, 300px); }
  .toc ol { columns: 1; }
  .game-tile { grid-template-columns: 1fr; }
  .game-tile img { width: 140px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
