@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --sky-top: #5f9fd6;
  --sky-mid: #a9d0ee;
  --sky-low: #fbe6c4;
  --bg: #f6f3ec;
  --card: #ffffff;
  --ink: #1d2a3a;
  --muted: #4c5b6b;
  --line: #d9d2c3;
  --gold: #b9862a;
  --gold-hi: #e2b04f;
  --link: #1f5f96;
  --ph: #dfe9f2;
  --ph-ink: #4a6378;
  --badge: #111;
  --badge-ink: #fff;
  --cloud: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #0d1a2e;
    --sky-mid: #1f3556;
    --sky-low: #4a3c5c;
    --bg: #121820;
    --card: #1b2330;
    --ink: #e8edf3;
    --muted: #a9b6c4;
    --line: #2c3746;
    --gold: #e2b04f;
    --gold-hi: #f3cf7e;
    --link: #8cc4f2;
    --ph: #233042;
    --ph-ink: #9fb5ca;
    --badge: #000;
    --badge-ink: #fff;
    --cloud: rgba(210, 222, 240, 0.18);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--link); }

h1, h2, h3, .brand { font-family: "Cinzel", Georgia, serif; line-height: 1.2; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 8px; }

/* Top bar */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.page-home .top { position: absolute; left: 0; right: 0; z-index: 2; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.nav, .langs { display: flex; gap: 4px; }
.nav { flex: 1; }
.nav a, .langs a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav a:hover, .langs a:hover { background: rgba(255, 255, 255, 0.35); }
.nav a[aria-current], .langs a[aria-current] { font-weight: 700; text-decoration: underline; }
.langs a { font-size: 0.85rem; letter-spacing: 0.04em; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  padding: 120px 16px 72px;
  text-align: center;
}
.clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60px 26px at 12% 30%, var(--cloud) 98%, transparent),
    radial-gradient(90px 34px at 18% 34%, var(--cloud) 98%, transparent),
    radial-gradient(70px 28px at 82% 22%, var(--cloud) 98%, transparent),
    radial-gradient(110px 36px at 90% 27%, var(--cloud) 98%, transparent),
    radial-gradient(140px 40px at 30% 92%, var(--cloud) 98%, transparent),
    radial-gradient(180px 48px at 70% 96%, var(--cloud) 98%, transparent);
  pointer-events: none;
}
.hero-in { position: relative; max-width: 720px; margin: 0 auto; }
/* Game footage behind the hero, darkened so the text stays readable */
.hero.has-video { min-height: min(100svh, 860px); }
.hero.has-video .clouds { display: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.45), rgba(10, 20, 35, 0.1) 55%,
    rgba(10, 20, 35, 0.5));
}
.hero.has-video .note { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 5rem);
  font-weight: 800;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 6px 24px rgba(20, 40, 70, 0.35);
}
.crown {
  display: block;
  width: 64px;
  height: 48px;
  margin: 0 auto 8px;
  background: url("/img/crown.svg") center / contain no-repeat;
}
.sub {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.1rem, 4.4vw, 1.6rem);
  margin: 4px 0 20px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(20, 40, 70, 0.45);
}
.lead {
  font-size: 1.08rem;
  margin: 0 auto 28px;
  max-width: 600px;
  color: var(--ink);
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(20, 40, 70, 0.18);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--badge);
  color: var(--badge-ink);
  border: 1px solid #a6a6a6;
  border-radius: 10px;
  padding: 8px 18px 8px 14px;
  margin: 0;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}
.badge small { display: block; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.02em; }
.gp {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid var(--gold-hi);
}
.note { margin: 14px 0 0; font-size: 0.95rem; color: var(--ink); }

/* Sections */
.band { max-width: 1080px; margin: 0 auto; padding: 48px 16px 8px; }
.band h2 { font-size: 1.7rem; margin: 0 0 18px; color: var(--gold); }

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.18) 14px 28px),
    var(--ph);
  color: var(--ph-ink);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px;
}
/* Short vertical scenes (9:16): swipe row on phones, four across on wide screens */
.clips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.clip { margin: 0; scroll-snap-align: start; }
.clip video, .clip .ph {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: #000;
  object-fit: cover;
}
.clip .ph { display: flex; background-color: var(--ph); }
.clip figcaption { margin-top: 8px; font-weight: 600; text-align: center; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }

.feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.feats li {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-hi);
  border-radius: 12px;
  padding: 16px 18px;
}
.feats h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feats p { margin: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.shot { margin: 0; }
.shot .ph { aspect-ratio: 16 / 9; }

/* Text pages */
.prose { max-width: 720px; margin: 0 auto; padding: 24px 16px 32px; }
.prose h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--gold); margin: 8px 0 20px; }
.prose h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }

/* Wiki */
.wiki section { scroll-margin-top: 16px; border-top: 1px solid var(--line); margin-top: 18px; }
.wiki h2 { color: var(--gold); }
.wiki h3 { font-size: 1.05rem; margin: 14px 0 4px; }
.wiki-toc { font-size: 0.95rem; line-height: 1.9; }
.wiki-index li { margin: 10px 0; }
.wiki-meta { color: var(--muted); font-size: 0.9rem; }
.tag {
  font: 600 0.75rem/1 system-ui, sans-serif;
  background: var(--gold-hi);
  color: #1d2a3a;
  border-radius: 999px;
  padding: 3px 8px;
  vertical-align: middle;
}
.chain, .chain ul { list-style: none; padding-left: 0; }
.chain ul { margin-left: 10px; padding-left: 14px; border-left: 2px solid var(--line); }
.chain li { margin: 6px 0; }
.chain .from { color: var(--muted); font-size: 0.92rem; }

/* Footer */
.foot {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .top { gap: 4px 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .nav a { padding: 6px 8px; }
  .hero { padding-top: 132px; }
}
.page-home:has(.has-video) .top a { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
