/* VeiMel Games – yhteiset tyylit
   Värit on koottu tähän alkuun: vaihda niitä, niin koko sivuston ilme muuttuu. */
:root {
  --bg: #0f0e1f;
  --bg-soft: #17152e;
  --card: #1d1a3a;
  --card-hover: #242049;
  --border: #2e2a57;
  --text: #ecebff;
  --muted: #a9a6cf;
  --accent: #8b7bff;
  --accent-2: #ffcf5c;
  --radius: 16px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

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

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

/* ---------- Yläpalkki ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 14, 31, 0.85);
  backdrop-filter: blur(8px);
  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;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo img { width: 32px; height: 32px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--text); }

/* ---------- Etusivun yläosa ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(139, 123, 255, 0.25), transparent 70%),
    radial-gradient(500px 260px at 90% 20%, rgba(255, 207, 92, 0.12), transparent 70%);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero h1 .hl { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 32px;
}
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #0f0e1f;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #0f0e1f; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { border-color: var(--accent-2); color: var(--accent-2); background: transparent; }

/* ---------- Osiot ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* ---------- Kortit (pelit ja sovellukset) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, background 0.15s ease;
}
.card:hover { transform: translateY(-3px); background: var(--card-hover); }
.card .cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2b2560, #3b2f7a 50%, #5a3f8f);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
}
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; }
.tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(139, 123, 255, 0.18);
  color: var(--accent);
}
.tag.soon { background: rgba(255, 207, 92, 0.15); color: var(--accent-2); }
.card.placeholder { border-style: dashed; opacity: 0.85; }

/* ---------- Tietoa ---------- */
.about { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.about .box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about .box h3 { margin-top: 0; }
.about .box p { color: var(--muted); margin-bottom: 0; }

/* ---------- Alapalkki ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Sovellussivut ---------- */
.app-page { padding: 48px 0 72px; }
.app-page h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.app-page .lead { color: var(--muted); margin: 0 0 32px; }
.app-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; }
