/* Snarelight website. Colours follow the game's Theme.swift: a near-black field, cyan light,
   gold rewards and a pink danger accent. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06070d;
  --panel: #0e1018;
  --panel-soft: #141826;
  --ink: #dfe6f5;
  --ink-dim: rgba(223, 230, 245, 0.62);
  --ink-faint: rgba(223, 230, 245, 0.38);
  --cyan: #45d6ff;
  --cyan-light: #8ae8ff;
  --gold: #ffc860;
  --danger: #ff6f8b;
  --line: rgba(223, 230, 245, 0.10);
  --radius: 18px;
  --radius-pill: 100px;
  --wrap: 900px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-dim);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The soft glows behind the page, like the comet's light in the game. */
.field { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.20; }
.glow-cyan { width: 520px; height: 520px; background: var(--cyan); top: -14%; left: -12%; }
.glow-gold { width: 420px; height: 420px; background: var(--gold); bottom: -12%; right: -10%; opacity: 0.13; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav.site { display: flex; gap: 20px; font-size: 0.92rem; font-weight: 600; }
nav.site a { color: var(--ink-dim); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--cyan); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 76px 0 52px; }
.hero .kicker { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.34em; text-transform: uppercase; }
.hero h1 {
  color: var(--ink); font-size: clamp(2.8rem, 9vw, 4.6rem); font-weight: 900; letter-spacing: 0.02em;
  line-height: 1.05; margin: 14px 0 18px; text-shadow: 0 0 44px rgba(69, 214, 255, 0.35);
}
.hero p.lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 34rem; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 26px; padding: 10px 22px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 200, 96, 0.4); background: rgba(255, 200, 96, 0.10);
  color: var(--gold); font-size: 0.86rem; font-weight: 700;
}

/* Sections */
section { padding: 46px 0; }
h2 { color: var(--ink); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: 0.01em; margin-bottom: 8px; }
h3 { color: var(--ink); font-size: 1.12rem; font-weight: 700; margin: 26px 0 6px; }
section > p, section > ul { margin-bottom: 14px; }
ul { padding-left: 1.25rem; }
li { margin: 6px 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p { font-size: 0.96rem; margin: 0; }

.shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.shots img {
  width: 210px; max-width: 44vw; height: auto; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* FAQ */
details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 10px;
}
details[open] { border-color: rgba(69, 214, 255, 0.28); }
summary { color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--cyan); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p, details ul { margin-top: 10px; font-size: 0.97rem; }

/* Legal pages */
.legal { padding: 44px 0 20px; }
.legal h1 { color: var(--ink); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.15; margin-bottom: 18px; }
.legal h2 {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}
.legal h3 { color: var(--cyan-light); font-size: 1.05rem; margin-top: 26px; }
.legal p, .legal li { font-size: 0.98rem; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--cyan-light);
}
.legal strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); background: var(--panel); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 40px; color: var(--ink-faint); font-size: 0.88rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--ink-dim); }

@media (max-width: 560px) {
  nav.site { gap: 14px; font-size: 0.86rem; }
  .hero { padding: 54px 0 38px; }
}
