:root {
  --bg: #050608;
  --bg-alt: rgba(16, 18, 25, 0.7);
  --accent: rgb(50, 197, 255);
  --accent-soft: rgba(50, 197, 255, 0.12);
  --text: #f5f7ff;
  --text-muted: #a7afc7;
  --text-footer: #a7afc7;
  --border: #2f395f;
  --header-height: 64px;
  --max-width: 960px;
}

/* Light theme variables */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7ff;
    --bg-alt: rgba(255, 255, 255, 0.6);
    --accent: #1b7fd6;
    --accent-soft: rgba(27, 127, 214, 0.12);
    --text: #111320;
    --text-muted: #4c5670;
    --border: #99a2c0;
  }
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: var(--bg);
  background-image: url('../img/background.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.4);
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* Fixed header (press kit + main site) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgba(245, 247, 255, 0.8);
  }
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.site-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.quick-nav {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.quick-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.quick-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* Main content wrapper */
.page {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 80px;
  flex: 1;
}

/* Generic sections (press kit + main site) */
.section {
  max-width: var(--max-width);
  margin: 0 auto 40px auto;
  padding: 24px 16px 8px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #04081c, var(--bg-alt));
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
  .section {
    background: linear-gradient(145deg, #ced7f9, var(--bg-alt));
  }
}

.section-header {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.section-body {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Language toggle controls (press kit) */
.section-lang-toggle {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.lang-toggle-button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0b0e16;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

@media (prefers-color-scheme: light) {
  .lang-toggle-button {
    background: #f5f7ff;
  }
}

.lang-toggle-button.is-active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.lang-block {
  display: none;
}

.lang-block.is-active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}

/* Utility styles (press kit) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.fact {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b0e16;
  border: 1px solid #141927;
}

@media (prefers-color-scheme: light) {
  .fact {
    background: #f3f5ff;
    border-color: #d3d8e8;
  }
}

.fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.fact-value {
  font-size: 0.95rem;
  margin-top: 4px;
  color: var(--text);
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-thumb {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #151822;
  border: 1px solid #141927;
}

.media-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-color-scheme: light) {
  .media-thumb {
    background: #eef2ff;
    border-color: #d3d8e8;
  }
}

.media-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}

.download-list {
  list-style: none;
  margin-top: 8px;
}

.download-list li {
  margin-bottom: 8px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0b0e16;
  color: var(--text);
  font-size: 0.85rem;
}

@media (prefers-color-scheme: light) {
  .download-link {
    background: #f5f7ff;
  }
}

.download-link span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Make the first download entry stand out (press kit) */
.download-list li:first-child a {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.download-list li:first-child a:hover {
  filter: brightness(1.3);
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 16px 16px;
  font-size: 0.75rem;
  color: var(--text-footer);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-footer);
}

.overview-cta {
  margin-top: auto;
}

h3 {
  margin-top: 16px;
}

/* -------------------------- */
/* Additions for index/about */
/* -------------------------- */

/* Logo + main navigation (index/about) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo:hover {
  text-decoration: none;
}

.logo-image {
  height: 36px;
}

/* Hero section (index) */
.section--hero {
  padding-top: 32px;
  padding-bottom: 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: top;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-title {
  font-size: clamp(2rem, 1.8rem + 1.2vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 34rem;
}

.hero-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

/* Buttons shared across pages */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #45c6ff);
  color: #020308;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(50, 197, 255, 0.38);
  border: none;
}

.button--primary:hover {
  box-shadow: 0 0 24px rgba(50, 197, 255, 0.9);
  text-decoration: none;
}

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.button--ghost:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* Game cards (index games list) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.game-card {
  background: linear-gradient(145deg, var(--bg-alt), #050711);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.title-card {
  background: linear-gradient(145deg, var(--bg-alt), #050711);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.title-card img {
  border-radius: 16px;
}

@media (prefers-color-scheme: light) {
  .game-card {
    background: linear-gradient(145deg, var(--bg-alt), #edf1ff);
  }
}

.game-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}

.game-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.game-card__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.game-card__body {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About layout (about.html) */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.game-card__steam {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #141927;
  background: #0b0e16;
}

@media (prefers-color-scheme: light) {
  .game-card__steam {
    background: #f5f7ff;
    border-color: #d3d8e8;
  }
}

.game-card__steam iframe {
  display: block;
  width: 100%;
}

.game-actions {
  margin-top: auto;
}

.plr-font {
  font-family: 'Orbitron ExtraBold';
}

.legal-bullet-points {
  margin-left: 24px;
}