/* ============================================
   Design tokens
   ============================================ */
:root {
  /* ألوان */
  --bg: #10131a;
  --panel: #171c25;
  --panel-2: #1d232f;
  --border: #2a3140;
  --text: #e9edf3;
  --text-muted: #8a93a6;
  --blue: #5fb4ff;
  --blue-dim: #3d7bb8;
  --amber: #ffb454;
  --green: #6ee7a0;
  --red: #ff6b6b;

  /* خطوط */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* مقاييس */
  --radius: 8px;
  --radius-sm: 4px;
  --max-width: 1100px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 800px 500px at 15% -10%, rgba(95, 180, 255, 0.08), transparent),
    radial-gradient(ellipse 600px 400px at 100% 20%, rgba(255, 180, 84, 0.05), transparent);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
}

.mono { font-family: var(--font-mono); font-size: 0.85em; }
.dot { color: var(--text-muted); opacity: 0.5; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #06141f;
  font-weight: 700;
  flex-shrink: 0;
  object-fit: cover; /* harmless on <span>, keeps <img> from stretching */
}

.brand__icon--sm { width: 22px; height: 22px; font-size: 0.68rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links__socials { display: none; }

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.social-icon:hover { color: var(--blue); background: var(--panel-2); }
.social-icon svg { width: 16px; height: 16px; }

.social-icon--labeled {
  display: none;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--panel-2); }
}

/* ============================================
   Hero — بتصميم "Project Manager" ديال Godot
   ============================================ */
.hero {
  padding-block: 64px 40px;
}

.editor-window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.dots { display: flex; gap: 6px; }
.dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.dots span:nth-child(1) { background: var(--red); opacity: 0.7; }
.dots span:nth-child(2) { background: var(--amber); opacity: 0.7; }
.dots span:nth-child(3) { background: var(--green); opacity: 0.7; }

.editor-titlebar__label {
  color: var(--text-muted);
  margin-inline-start: 4px;
}

.hero-body {
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(110, 231, 160, 0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--blue); }

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--blue);
  color: #06141f;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(95, 180, 255, 0.5);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* لوحة إحصائيات صغيرة يمين الـ hero */
.stat-panel {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }

.stat-row__label { color: var(--text-muted); }
.stat-row__value { font-family: var(--font-mono); color: var(--amber); font-weight: 600; }

/* ============================================
   Sections عامة
   ============================================ */
section { padding-block: 72px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 36px;
}

.section-head__index {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.9rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.section-head__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   About / Skills
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p { color: var(--text-muted); margin-bottom: 16px; max-width: 60ch; }
.about-text strong { color: var(--text); }

.about-info {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 4px;
}
.about-info .stat-row { border-bottom: 1px dashed var(--border); padding-bottom: 14px; }
.about-info .stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.about-info .stat-row__value { text-align: end; max-width: 30ch; }

.skills-list { display: grid; gap: 10px; }

.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.skill-row__name { font-family: var(--font-mono); color: var(--text-muted); }

.skill-bar {
  height: 6px;
  background: var(--panel-2);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue));
  border-radius: 3px;
  transform-origin: right;
  animation: growBar 1s ease forwards;
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.skill-row__pct { color: var(--amber); font-family: var(--font-mono); text-align: end; }

/* ============================================
   Projects grid
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.proj-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: fadeUp 0.5s ease backwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.proj-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-dim);
}

.proj-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--panel-2);
}

.proj-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.proj-card__status {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(16, 19, 26, 0.85);
  border: 1px solid var(--border);
}
.proj-card__status--released { color: var(--green); border-color: var(--green); }
.proj-card__status--in-dev { color: var(--amber); border-color: var(--amber); }
.proj-card__status--prototype { color: var(--text-muted); }

.proj-card__body { padding: 18px 18px 6px; flex: 1; }

.proj-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.proj-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.proj-card__tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.proj-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--panel-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.proj-card__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
}
.proj-card__open .arrow { transition: transform 0.2s; }
.proj-card__open:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .proj-card__open:hover .arrow { transform: translateX(-4px); }

/* ============================================
   Devlog — terminal-style feed
   ============================================ */
.terminal-window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  display: flex;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px dashed var(--border);
  animation: fadeUp 0.4s ease backwards;
  animation-delay: var(--delay, 0ms);
}
.log-line:last-of-type { border-bottom: none; }

.log-line__prompt {
  font-family: var(--font-mono);
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 1px;
}

.log-line__body { flex: 1; min-width: 0; }

.log-line__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.log-line__date { color: var(--amber); }

.tag--log {
  color: var(--blue);
  border-color: var(--blue-dim);
  background: rgba(95, 180, 255, 0.08);
}

.log-line__entry {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.log-line__link {
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}
.log-line__link:hover { text-decoration: underline; }

.log-cursor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  color: var(--text-muted);
}

.log-cursor__blink {
  width: 8px;
  height: 16px;
  background: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .log-cursor__blink { animation: none; opacity: 1; }
}

/* ============================================
   Platform badges
   ============================================ */
.platform-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--panel-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.platform-badge svg { width: 12px; height: 12px; }

/* ============================================
   Page hero (about / press-kit / game pages)
   ============================================ */
.page-hero {
  padding-block: 48px 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}

.page-hero p.lead {
  color: var(--text-muted);
  max-width: 60ch;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--blue); }

/* ============================================
   Game detail page
   ============================================ */
.game-hero-media {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.game-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Video hero (game page) ---------- */
.video-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  background: var(--panel-2);
}
.video-hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* pure background — not an interactive player */
}
.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}

/* ---------- Hover video preview (game cards) ---------- */
.card-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  animation: fadeUp 0.25s ease;
}

.game-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.game-detail-grid .description {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.game-sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.game-sidebar .btn { width: 100%; justify-content: center; }

/* ============================================
   Screenshot gallery + lightbox
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: var(--panel-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumb:hover { border-color: var(--blue-dim); transform: translateY(-2px); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: min(90vw, 1000px);
  max-height: 80vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.lightbox-nav:hover { border-color: var(--blue); color: var(--blue); }
.lightbox-nav--prev { inset-inline-start: 24px; }
.lightbox-nav--next { inset-inline-end: 24px; }

.lightbox-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}
.lightbox-close:hover { border-color: var(--red); color: var(--red); }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   About — timeline
   ============================================ */
.timeline {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 24px 1fr;
  gap: 4px;
}

.timeline-item__year {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.85rem;
  padding-top: 2px;
}

.timeline-item__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--blue-dim);
  flex-shrink: 0;
}
.timeline-item__line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 4px;
}
.timeline-item:last-child .timeline-item__line { display: none; }

.timeline-item__content {
  padding-bottom: 28px;
}
.timeline-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mission-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 40px;
}
.mission-panel h3 {
  font-family: var(--font-display);
  margin-bottom: 12px;
}
.mission-panel p { color: var(--text-muted); }

/* ============================================
   Press Kit
   ============================================ */
.fact-sheet {
  display: grid;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-row__label { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.82rem; }
.fact-row__value { color: var(--text); }

.boilerplate-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }
.copy-btn.is-copied { border-color: var(--green); color: var(--green); }

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

.asset-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.asset-card img { max-height: 90px; margin: 0 auto 14px; }
.asset-card .btn { width: 100%; justify-content: center; font-size: 0.8rem; padding: 9px 14px; }

.press-games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.press-games-table th, .press-games-table td {
  text-align: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.press-games-table th {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

/* ============================================
   Site footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding-block: 40px 24px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-cta h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.footer-cta p { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--blue); }

.footer-copyright {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ============================================
   Founder card (Studio page)
   ============================================ */
.founder-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  align-self: start;
}
.founder-card__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: #06141f;
  overflow: hidden;
  border: 1px solid var(--border);
}
.founder-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.founder-card__role {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.founder-card__bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================
   Section CTA (View all games, etc.)
   ============================================ */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ============================================
   Contact
   ============================================ */
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-panel p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

/* ============================================
   Status bar (footer)
   ============================================ */
.status-bar {
  border-top: 1px solid var(--border);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-bar .container {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
}

.status-bar span { display: flex; align-items: center; gap: 6px; }

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

.modal-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.modal-titlebar__label { color: var(--text-muted); }

.modal-body { padding: 24px; }

.modal-thumb {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.modal-desc {
  color: var(--text-muted);
  margin-block: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; padding: 32px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .status-bar .container { flex-direction: column; gap: 4px; }
  .game-detail-grid { grid-template-columns: 1fr; }
  .game-sidebar { position: static; }
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
  .timeline-item { grid-template-columns: 70px 20px 1fr; }

  .header-right .social-icons { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 480px; }
  .nav-links .nav-link {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-link.is-active::after { display: none; }
  .nav-links .nav-link.is-active { color: var(--amber); }

  .nav-links__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px;
  }
  .social-icon--labeled {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: auto;
    height: auto;
  }
  .social-icon--labeled svg { width: 16px; height: 16px; }

  .footer-cta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
