:root {
  --bg: #0b0d12;
  --bg-elev: #12151c;
  --border: #232833;
  --text: #e8eaf0;
  --text-dim: #9aa2b1;
  --accent: #d63f3f;
  --accent-2: #e8b04b;
  --radius: 10px;
  --max-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { font-weight: 700; letter-spacing: 0.01em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.55) blur(1px);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,13,18,0.55) 0%, rgba(11,13,18,0.92) 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px;
  max-width: 780px;
}

.studio-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  padding: 10px;
  margin-bottom: 20px;
}

.game-logo {
  width: min(560px, 88%);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.55));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.cn-title {
  margin: 0 0 20px;
  color: var(--accent-2);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 12px;
}

.studio-credit {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #ba3232; }

/* ---------- Subnav ---------- */

.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(11,13,18,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.subnav a {
  color: var(--text-dim);
  font-weight: 600;
}

.subnav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Sections ---------- */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 24px;
  color: #fff;
}

.hint {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: -12px 0 20px;
}

/* ---------- Video ---------- */

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-row { margin-top: 16px; }

/* ---------- Fact table ---------- */

.fact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact-table tr { border-bottom: 1px solid var(--border); }
.fact-table tr:last-child { border-bottom: none; }

.fact-table th, .fact-table td {
  text-align: left;
  padding: 14px 20px;
  vertical-align: top;
}

.fact-table th {
  width: 220px;
  color: var(--text-dim);
  font-weight: 600;
  background: rgba(255,255,255,0.02);
}

/* ---------- Description ---------- */

.description {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 800px;
}

.features {
  padding-left: 22px;
  margin: 20px 0 0;
}

.features li { margin-bottom: 10px; }

/* ---------- Links list ---------- */

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.05rem;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery a:hover img {
  transform: scale(1.02);
  border-color: var(--accent-2);
}

/* ---------- Downloads ---------- */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.download-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.download-card:hover {
  border-color: var(--accent-2);
  text-decoration: none;
}

.download-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #05060a;
}

.download-card span {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .fact-table th { width: 130px; }
  .fact-table th, .fact-table td { padding: 10px 14px; font-size: 0.9rem; }
}
