/* Splinter Games — shared styles for the static site */

:root {
  --orange: #ff7a00;
  --orange-dark: #d95f00;
  --yellow: #ffc21a;
  --sky: #1fb3d6;
  --navy: #13202e;
  --navy-2: #1c2f42;
  --ink: #1f2a33;
  --muted: #5b6b78;
  --paper: #ffffff;
  --paper-2: #f5f7f9;
  --line: #e2e8ee;
  --radius: 14px;
  --max: 1080px;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-dark); }
a:hover { color: var(--orange); }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-weight: 600; font-size: 12px; opacity: .85; }
.btn-store { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-store:hover { color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* ---------- Game hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy) center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 30, .88) 0%, rgba(10, 20, 30, .55) 55%, rgba(10, 20, 30, .15) 100%);
}
.hero .wrap {
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  margin: 0 0 12px;
  color: var(--yellow);
  text-shadow: 0 4px 0 var(--orange-dark), 0 8px 24px rgba(0, 0, 0, .5);
  letter-spacing: .5px;
}
.hero .tagline {
  font-family: var(--display);
  font-size: clamp(20px, 3.2vw, 28px);
  margin: 0 0 18px;
}
.hero .lead { max-width: 560px; font-size: 18px; margin: 0 0 28px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); }
.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--navy);
}
.section .intro { max-width: 720px; color: var(--muted); margin: 0 0 32px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.features .icon { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.features h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 8px 4px 0; }

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  color: var(--navy);
}
.cta h2 { color: var(--navy); }
.cta .store-buttons { justify-content: center; }

/* ---------- Text pages (privacy policy) ---------- */
.page-title {
  background: var(--navy-2);
  color: #fff;
  padding: 48px 0 40px;
}
.page-title h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  margin: 0 0 6px;
  color: var(--yellow);
}
.page-title p { margin: 0; opacity: .85; }

.prose { max-width: 780px; padding-top: 40px; padding-bottom: 64px; }
.prose h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 44px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: 19px; color: var(--navy); margin: 26px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.prose .toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2 240px; }
.prose .note {
  background: #fff8e6;
  border-left: 4px solid var(--yellow);
  padding: 12px 16px;
  border-radius: 6px;
}

.table-wrap { overflow-x: auto; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th { background: var(--paper-2); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  padding: 32px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 36px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero::before { background: rgba(10, 20, 30, .72); }
  .section { padding: 44px 0; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .gallery img { transition: none; }
}

/* Game icon (hero + call to action) */
.game-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  border: 3px solid rgba(255, 255, 255, .9);
}
.game-icon-center { margin: 0 auto 18px; width: 96px; height: 96px; border-radius: 20px; }
@media (max-width: 600px) {
  .game-icon { width: 88px; height: 88px; border-radius: 20px; }
}
