/* Starglass website. Colours come from the game: night-sky purple,
   glass-bubble highlights and the gold of the winner's cup. */
:root {
  --sky-top: #1b1464;
  --sky-mid: #2b1b7a;
  --sky-deep: #0b1033;
  --ink: #f4f1ff;
  --ink-soft: #c9c3ea;
  --gold: #ffd34d;
  --mint: #7cf5b0;
  --panel: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-deep) 100%) fixed;
  font-family: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--gold); }
a:focus-visible, .play:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0; }
.top img { width: 44px; height: 44px; border-radius: 12px; }
.top .name { font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.top nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: 1rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- home page ---------- */
.hero { padding: 1rem 0 3rem; }
.hero .banner { width: 100%; height: auto; display: block; border-radius: 28px; border: 2px solid var(--line); box-shadow: 0 24px 60px rgba(4, 2, 30, 0.55); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; font-weight: 800; margin: 2.25rem 0 0.75rem; max-width: 16ch; }
.hero p { max-width: 46ch; color: var(--ink-soft); margin: 0 0 1.75rem; }

.play {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  background: var(--mint); color: #07301a; font-weight: 800; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 8px 0 #1fa35c;
}
.play:hover { transform: translateY(2px); box-shadow: 0 6px 0 #1fa35c; }
.note { display: block; margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 1rem 0 3rem; }
.shots img { width: 100%; height: auto; display: block; border-radius: 22px; border: 2px solid var(--line); }

.about { padding: 0 0 3.5rem; }
.about h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 1rem; }
.about ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 2.5rem; max-width: 52rem; }
.about li { padding-left: 1.6rem; position: relative; }
/* a small glass bubble as the bullet */
.about li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.8em; height: 0.8em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, rgba(124, 245, 176, 0.55) 22% 70%, var(--mint) 100%);
}

/* ---------- text pages (privacy, terms) ---------- */
.doc { padding: 1rem 0 4rem; max-width: 44rem; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; font-weight: 800; margin: 1rem 0 0.25rem; }
.doc .updated { color: var(--ink-soft); margin: 0 0 2rem; }
.doc h2 { font-size: 1.4rem; font-weight: 800; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { color: #e6e2fb; }
.doc ul { padding-left: 1.3rem; }
.doc .box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.25rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; font-size: 0.98rem; color: var(--ink-soft); }
footer .row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots img:last-child { display: none; }
  .about ul { grid-template-columns: 1fr; }
  .top nav { gap: 0.9rem; font-size: 0.95rem; }
  .hero .banner { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play:hover { transform: none; }
}
