/* Space Ninja Raptor - studio site. Colours come from the raptor logo:
   deep space indigo, the violet planet, raptor green, ninja-band red, the gold eye. */
:root {
  --space: #0c0a1d;
  --space-2: #14112c;
  --card: #1a1636;
  --card-edge: #2c2656;
  --violet: #7b5cff;
  --violet-soft: #b9a8ff;
  --green: #4cc97a;
  --red: #d0263a;
  --gold: #ffd27a;
  --text: #ece9ff;
  --muted: #a49fc8;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(123, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(76, 201, 122, 0.08), transparent 60%),
    var(--space);
  color: var(--text);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}
/* a few quiet stars */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 88% 46%, #fff6, transparent),
    radial-gradient(1px 1px at 34% 62%, #fff5, transparent),
    radial-gradient(1px 1px at 56% 84%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 6% 78%, #fff5, transparent),
    radial-gradient(1px 1px at 46% 30%, #fff4, transparent),
    radial-gradient(1px 1px at 94% 88%, #fff5, transparent);
  z-index: -1;
}

a { color: var(--violet-soft); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

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

h1, h2, h3, .brand {
  font-family: "Chakra Petch", "Nunito Sans", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}
.brand img { width: 46px; height: auto; }
.brand span b { color: var(--violet-soft); }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* home hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding: 40px 0 56px;
}
.hero h1 { font-size: clamp(36px, 6vw, 62px); margin: 0 0 16px; }
.hero h1 .accent { color: var(--green); }
.hero p { color: var(--muted); font-size: 19px; margin: 0 0 24px; max-width: 34ch; }
.hero-mark { justify-self: center; width: min(420px, 100%); filter: drop-shadow(0 20px 60px rgba(123, 92, 255, 0.35)); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}
.button:hover { background: #8f75ff; color: #fff; }
.button.ghost { background: transparent; border: 1.5px solid var(--card-edge); color: var(--text); }
.button.ghost:hover { border-color: var(--violet-soft); }
.button.gold { background: var(--gold); color: #2a1d05; }
.button.gold:hover { background: #ffe1a3; color: #2a1d05; }

section { padding: 36px 0; }
.section-title { font-size: 28px; margin: 0 0 20px; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.game:hover { transform: translateY(-3px); border-color: var(--violet); color: var(--text); }
.game .art { aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.game .art img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game h3 { margin: 0; font-size: 24px; }
.game .sub { color: var(--gold); font-size: 14px; margin-top: -4px; }
.game p { margin: 0; color: var(--muted); font-size: 16px; }
.tag {
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(76, 201, 122, 0.15);
  color: var(--green);
}
.tag.dev { background: rgba(123, 92, 255, 0.18); color: var(--violet-soft); }

/* the placeholder art for a game still in development */
.art.timebreak {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 210, 122, 0.25), transparent 45%),
    linear-gradient(160deg, #241b4a, #0f0c22 70%);
}
.art.timebreak svg { width: 38%; height: auto; }

/* about */
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--space-2);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 26px;
}
.about img { width: 120px; }
.about h2 { margin: 0 0 6px; font-size: 24px; }
.about p { margin: 0; color: var(--muted); }

/* game page */
.game-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 30px 0 10px;
}
.game-hero .icon { width: 132px; border-radius: 28px; box-shadow: 0 14px 40px rgba(255, 210, 122, 0.18); }
.game-hero h1 { font-size: clamp(34px, 6vw, 54px); margin: 0; color: var(--gold); }
.game-hero .tagline { margin: 4px 0 14px; font-size: 19px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lead { font-size: 19px; color: var(--text); max-width: 60ch; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.features li {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--muted);
}
.features b { display: block; color: var(--text); font-family: "Chakra Petch", sans-serif; font-size: 18px; margin-bottom: 2px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--card-edge); width: 100%; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 15px; padding: 0; list-style: none; }
.facts b { color: var(--text); }

/* long text (privacy policy) */
.doc { max-width: 760px; padding: 20px 0 40px; }
.doc h1 { font-size: 38px; margin: 16px 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; color: var(--gold); }
.doc p, .doc li { color: #d6d2f0; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--card-edge); }
.doc th { color: var(--text); font-family: "Chakra Petch", sans-serif; }
.doc .note { background: var(--card); border: 1px solid var(--card-edge); border-radius: 12px; padding: 14px 16px; }

/* footer */
footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--card-edge);
  color: var(--muted);
  font-size: 14px;
}
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

.crumb { font-size: 15px; color: var(--muted); padding-top: 8px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }

/* phones */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 10px; text-align: left; }
  .hero-mark { width: 70%; grid-row: 1; }
  .about { grid-template-columns: 1fr; text-align: left; }
  .about img { width: 90px; }
  .game-hero { grid-template-columns: 1fr; }
  .game-hero .icon { width: 96px; border-radius: 22px; }
  .shots { grid-template-columns: 1fr; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--card-edge); padding: 10px 0; }
}
