/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --accent: #e94560;
  --accent-alt: #f5a623;
  --green: #00d474;
  --link: #5dade2;
  --font-body: 'Segoe UI', 'Roboto', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ===== Container ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.4;
  text-shadow: 2px 2px 0 #000;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  text-decoration: none;
}

.store-btn--gplay {
  background: var(--green);
  color: #000;
}
.store-btn--rustore {
  background: var(--link);
  color: #000;
}

.hero-screenshot {
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  image-rendering: pixelated;
}

/* ===== Section shared ===== */
section {
  padding: 60px 20px;
}

section h2 {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--accent-alt);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 0 #000;
}

/* ===== Game Modes ===== */
.modes {
  background: var(--bg-secondary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid #2a2a4a;
  transition: border-color 0.2s;
}
.card:hover {
  border-color: var(--accent);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  image-rendering: pixelated;
}

.card h3 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Features ===== */
.features-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.features-list li {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-alt);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid #2a2a4a;
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    padding: 48px 16px 40px;
  }
  .hero h1 {
    font-size: 1.1rem;
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .hero-screenshot {
    height: 200px;
  }
}

/* ===== Docs page ===== */
.docs-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

.docs-page h1 {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.docs-page .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.docs-page ul {
  list-style: none;
}

.docs-page ul li {
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent-alt);
}

.docs-page ul li a {
  display: block;
  padding: 16px 20px;
  font-size: 1rem;
}

/* ===== Privacy Policy page ===== */
.policy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

.policy-page h1 {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.policy-page .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.policy-page h2 {
  font-size: 1.2rem;
  color: var(--accent-alt);
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-page h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.policy-page p,
.policy-page ul,
.policy-page ol {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.policy-page ul,
.policy-page ol {
  padding-left: 24px;
}

.policy-page ul li,
.policy-page ol li {
  margin-bottom: 6px;
}
