:root {
  --bg: #0d0b09;
  --bg-soft: #141110;
  --card: #171312;
  --ink: #ece4d4;
  --ink-dim: #b9ad94;
  --ink-faint: #7d7461;
  --gold: #c9a25e;
  --gold-soft: rgba(201, 162, 94, 0.16);
  --line: #2a241e;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 94, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(120, 40, 30, 0.05), transparent);
}

a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Masthead ---------- */
.masthead {
  text-align: center;
  padding: 84px 24px 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.studio-kicker {
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.studio-name {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 3.4vw, 28px);
  color: var(--ink-dim);
  margin-top: 16px;
}
.byline {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.howto {
  margin: 30px auto 0;
  max-width: 560px;
  font-size: 14px;
  color: var(--ink-dim);
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
}
.howto strong { color: var(--gold); font-weight: 600; }

/* ---------- Section titles ---------- */
.section-head {
  padding: 64px 0 8px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
}
.section-head p {
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------- Game grid ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 40px 0 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.build-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 8, 6, 0.82);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.genre {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-body .story { color: var(--ink-dim); font-size: 15px; flex: 1; }
.card-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.play-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.play-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  margin: 56px 0 0;
  padding: 56px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.about h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  margin-bottom: 18px;
}
.about p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 16px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px 44px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.1em;
}
footer .f-studio { font-family: var(--serif); font-size: 18px; color: var(--ink-dim); margin-bottom: 8px; }

/* ---------- Screenshot galleries ---------- */
.shots { margin-top: 16px; }
.shots-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.shots-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shots-grid a:hover { border-color: var(--gold); transform: translateY(-2px); }
.shots-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .masthead { padding: 56px 18px 40px; }
  .games { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 12px; }
  .card-body h3 { font-size: 24px; }
  .section-head { padding: 44px 0 4px; }
}
