/* SWGames — the same neon night as the game. No web fonts, no scripts, no cookies. */

:root {
  --bg: #130c20;
  --bg-deep: #0d0818;
  --surface: #1d1430;
  --border: #3a2a5c;
  --text: #b9aed6;
  --text-h: #f1eaff;
  --cyan: #4cf3ff;
  --pink: #ff3ea5;
  --violet: #b14eff;
  --gold: #ffd23f;
  --radius: 18px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(177, 78, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(76, 243, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--cyan);
}

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

h1,
h2,
h3 {
  color: var(--text-h);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
}

/* --- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 8, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text-h);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand span {
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 62, 165, 0.6);
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text-h);
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current='page'] {
  color: var(--bg-deep);
  background: var(--cyan);
}

/* --- hero --- */

.hero {
  padding: 64px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.hero-icon {
  width: 180px;
  border-radius: 40px;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 50px rgba(255, 62, 165, 0.35);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  margin-bottom: 0.15em;
  text-shadow: 0 0 24px rgba(76, 243, 255, 0.45);
}

.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--text-h);
  margin: 0 0 1.2em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(255, 62, 165, 0.4);
}

.button:hover {
  filter: brightness(1.1);
}

.button.secondary {
  background: none;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}

/* --- sections --- */

section {
  padding: 48px 0;
}

.lead {
  max-width: 46rem;
  margin: 0 0 1.6em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.card .emoji {
  font-size: 1.8rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
}

/* Screenshots scroll sideways on phones and sit two by two on wide screens. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 520px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.shots img {
  border-radius: 14px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(76, 243, 255, 0.08), rgba(177, 78, 255, 0.08)), var(--surface);
  border: 1px solid var(--border);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  padding-left: 30px;
  position: relative;
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

.mail {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--pink);
  text-decoration: none;
  word-break: break-all;
}

/* --- footer --- */

.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 40px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 24px;
  }

  .hero-icon {
    width: 140px;
    border-radius: 32px;
  }

  .facts {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
