:root {
  --bg: #12141F;
  --panel: #1B1E2E;
  --line: #2A2E44;
  --text: #E8EAF2;
  --muted: #A3A8BF;
  --blue: #4A86FF;
  --green: #A6E22E;
  --purple: #B46CF2;
}

* { box-sizing: border-box; }

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

a { color: var(--blue); }
a:hover { color: var(--green); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-name { font-weight: 900; letter-spacing: 1px; font-size: 18px; }
.c-blue { color: var(--blue); }
.c-green { color: var(--green); }
.c-purple { color: var(--purple); }
nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-weight: 600; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero img { width: min(360px, 80%); height: auto; }
.tagline { font-size: 20px; color: var(--muted); margin: 18px 0 0; }

/* Sections */
section { padding: 40px 0; }
h1, h2 { line-height: 1.2; }
h2 { font-size: 28px; margin: 0 0 20px; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; text-decoration: none; color: var(--text); display: block;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--text); }
.card img { width: 96px; height: 96px; border-radius: 20px; }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: rgba(166, 226, 46, .15); color: var(--green);
}

/* Game page */
.game-head { display: flex; gap: 24px; align-items: center; padding-top: 48px; flex-wrap: wrap; }
.game-head img { width: 140px; height: 140px; border-radius: 28px; }
.game-head h1 { margin: 0; font-size: 40px; }
.game-head p { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.btn {
  display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 10px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--purple); color: #fff; }
.btn.disabled { background: var(--line); color: var(--muted); pointer-events: none; }
ul.crew { padding-left: 20px; }
ul.crew li { margin-bottom: 6px; }
.tribute { background: var(--panel); border-left: 4px solid var(--green); border-radius: 8px; padding: 18px 22px; }

/* Plain text pages (privacy) */
.doc { max-width: 760px; padding-top: 40px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 22px; margin-top: 30px; }
.muted { color: var(--muted); }

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

@media (max-width: 560px) {
  nav a { margin-left: 14px; }
  .brand-name { display: none; }
  .game-head h1 { font-size: 32px; }
}
