:root {
  --bg: #05060a;
  --fg: #eef0f6;
  --muted: #a3a8b8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #9fb4ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Game page ---------- */
.backdrop {
  position: fixed; inset: -10%;
  background: center / cover no-repeat;
  filter: blur(60px) saturate(1.3) brightness(0.35);
  z-index: -1;
}
.wrap {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.poster { margin: 0; }
.poster img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
}
.kind {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.facts:empty { display: none; }
.facts li + li::before { content: "·"; margin-right: 18px; opacity: .6; }
.features-title { margin: 32px 0 12px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 26px; }
/* Diamond centred on the first line: half the line-height minus half the 9px box. */
.features li::before { content: ""; position: absolute; left: 4px; top: calc(0.8em - 4.5px); width: 9px; height: 9px; box-sizing: border-box; border: 2px solid var(--accent); transform: rotate(45deg); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.info h1, .title-top h1 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 64px);
  overflow-wrap: break-word;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.subtitle {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: clamp(14px, 1.6vw, 18px); font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
}
.tagline {
  margin: 18px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--fg);
  text-wrap: balance;
}
.intro { margin: 20px 0 0; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions:empty { display: none; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #05060a; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.1); }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  padding: 10px 16px;
  background: var(--accent); color: #05060a;
  font-size: 14px; font-weight: 600; text-align: center;
}
.banner p { margin: 0; max-width: 980px; line-height: 1.5; }
.banner-inline { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.banner-inline:hover { text-decoration-thickness: 3px; }
.banner-link {
  padding: 4px 12px; border-radius: 999px;
  background: #05060a; color: #fff;
  text-decoration: none; font-weight: 700; white-space: nowrap;
}
.banner-link:hover { background: #1b1d26; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1320px, 100%); margin: 0 auto; padding: 18px 24px 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.topbar-kind { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.topbar-status { padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #05060a; }

/* Landscape poster: poster on top, text centred underneath. */
.wide .wrap { grid-template-columns: 1fr; width: min(1320px, 100%); gap: 40px; padding-top: 32px; }
.title-top { text-align: center; }
.title-top h1 { font-size: clamp(36px, 5.5vw, 76px); }
.title-top .tagline { margin-top: 12px; }
.wide .wrap { row-gap: 28px; }
.wide .poster img { max-height: 72vh; margin: 0 auto; }
.wide .info { text-align: center; max-width: 760px; margin: 0 auto; }
.wide .intro { margin-left: auto; margin-right: auto; }
.wide .actions, .wide .facts { justify-content: center; }
.wide .features { width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; }

/* ---------- Studio page ---------- */
.hero { text-align: center; padding: 88px 24px 40px; }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.02em; }
.hero p { margin: 12px 0 0; color: var(--muted); font-size: 19px; }
.grid {
  flex: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.card { text-decoration: none; display: flex; flex-direction: column; }
.card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(0, 0, 0, 0.5); }
.card-kind { margin-top: 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.card-title { margin-top: 2px; font-weight: 700; }
.card-tag { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: center; gap: 16px;
  padding: 24px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .topbar { padding: 14px 16px 0; font-size: 12px; }
  .wrap { grid-template-columns: 1fr; gap: 32px; padding: 24px 16px 48px; }
  .poster img { max-height: none; }
  .hero { padding: 56px 16px 24px; }
  .grid { padding: 16px 16px 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
