:root {
  --sky-1: #61b0ff;
  --sky-2: #cfeaff;
  --navy: #1f2a5c;
  --navy-2: #2b3a7a;
  --ink: #1b2240;
  --muted: #5a6488;
  --card: #ffffff;
  --line: #e3e9f6;
  --fire: #ff7a2f;
  --fire-2: #e8590c;
  --leaf: #7cc04b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 42, 92, 0.12);
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f8ff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
.hero .art { align-self: center; }
a { color: var(--fire-2); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--navy); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--fire), #d6336c); display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: 0 4px 10px rgba(232, 89, 12, .35); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--fire), var(--fire-2)); color: #fff;
  box-shadow: 0 6px 0 #b8460a, 0 10px 24px rgba(232, 89, 12, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8460a; }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: 0 4px 0 var(--line), var(--shadow); }
.btn.big { font-size: 1.25rem; padding: 18px 34px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky-1) 0%, #8cc6ff 55%, #f4f8ff 100%);
  color: #fff; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(31, 42, 92, .35); }
.hero p.lead { font-size: 1.2rem; color: #f2f8ff; max-width: 34em; }
.hero .art { border-radius: 24px; box-shadow: 0 20px 50px rgba(31, 42, 92, .35); overflow: hidden; border: 4px solid rgba(255, 255, 255, .7); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; background: rgba(255, 255, 255, .22); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31, 42, 92, .18); }
.card .thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--sky-2); }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body p { color: var(--muted); margin: 0; font-size: .97rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.tag { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--sky-2); color: var(--navy); }
.tag.play { background: #ffe5d4; color: var(--fire-2); }
.tag.soon { background: #eceff6; color: var(--muted); }
.card.soon { opacity: .75; }
.card.soon .thumb { display: grid; place-items: center; font-size: 3rem; }

/* Feature rows */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature .ico { font-size: 1.8rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* Game page */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots img { border-radius: 14px; box-shadow: var(--shadow); }
.video { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.keys li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
kbd { font-family: inherit; font-weight: 800; background: var(--navy); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .85rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { font-weight: 800; cursor: pointer; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Spark */
.spark-band { background: radial-gradient(1200px 400px at 20% 0%, #3b4aa0 0%, var(--navy) 60%); color: #e8ecff; }
.spark-band h2, .spark-band h3 { color: #fff; }
.spark-band p { color: #c9d1f5; }
.spark-band .feature { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.spark-band .feature p { color: #c9d1f5; }

/* Prose pages */
.prose { max-width: 760px; padding: 48px 20px 72px; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* Footer */
footer { background: var(--navy); color: #c9d1f5; padding: 40px 0; margin-top: 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; margin-right: 16px; font-weight: 700; }
footer small { opacity: .8; }

@media (max-width: 860px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 36px; padding-bottom: 48px; }
  .shots { grid-template-columns: 1fr; }
  .nav a { padding: 8px 8px; }
}
.brand, .nav { white-space: nowrap; }
.nav { flex-wrap: nowrap; }
@media (max-width: 520px) {
  .nav .hide-sm { display: none; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .nav a { padding: 8px 6px; }
  section.block { padding: 44px 0; }
}
