/* Gacha King site styles, shared by every page. */
:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --text: #1c1a2e;
  --muted: #5c5870;
  --accent: #6d3bd8;
  --gold: #e8a417;
  --border: #e4ded1;
  --hero-from: #1d1145;
  --hero-to: #3b1d8f;
  --shadow: 0 8px 24px rgb(28 26 46 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0c1d;
    --surface: #1a162e;
    --text: #ede9f7;
    --muted: #a8a2c0;
    --accent: #b89cff;
    --border: #2c2647;
    --shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, .brand { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; }
a { color: var(--accent); }
img { max-width: 100%; }

/* ---- Top bar ---- */
.topbar {
  background: var(--hero-from);
  color: #fff;
}
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 22px; }
.brand svg { width: 34px; height: 34px; }
.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.85; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: #fff;
  text-align: center;
  padding: 56px 16px 64px;
}
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 0 0 12px; line-height: 1.1; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 560px; margin: 0 auto; font-size: 18px; opacity: 0.88; }

/* Game page header */
.game-hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 28px rgb(0 0 0 / 0.35); }
.game-hero h1 { margin-top: 16px; }

.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.badge {
  display: inline-block;
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.35);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}
.badge.soon { opacity: 0.7; cursor: default; }

/* ---- Content ---- */
main { max-width: 1040px; margin: 0 auto; padding: 40px 16px 56px; }
main.narrow { max-width: 760px; }
.section-title { font-size: 28px; margin: 0 0 20px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.game-card header { display: flex; gap: 14px; align-items: center; }
.game-card img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.game-card h3 { margin: 0; font-size: 21px; }
.game-card p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 999px;
}
.card-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; font-weight: 600; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 22px 14px;
  margin-bottom: 16px;
}
.panel h2 { font-size: 21px; margin: 16px 0 8px; }
.panel h3 { font-size: 17px; margin: 16px 0 4px; }
.muted { color: var(--muted); }
ul { padding-left: 20px; }
li { margin: 4px 0; }

.about { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 16px 40px;
}
footer a { color: var(--muted); }
