/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:      #0d0d0d;
  --bg-card:      #161616;
  --bg-card-2:    #1e1e1e;
  --accent:       #c0392b;
  --accent-light: #e74c3c;
  --accent-glow:  rgba(192, 57, 43, 0.45);
  --text:         #e8e8e8;
  --text-muted:   #888;
  --border:       #2a2a2a;
  --radius:       12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* -- Scrollbar -- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* -- Utility -- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.tag {
  display: inline-block;
  background: rgba(192, 57, 43, 0.18);
  color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
}

/* -- Nav -- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent-light); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* -- Hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(192, 57, 43, 0.18) 0%, transparent 70%),
    var(--bg-base);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.025) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.025) 40px);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

/* Game Icon */
.game-icon-wrap {
  flex-shrink: 0;
}
.game-icon {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  background: var(--bg-card-2);
  border: 2px solid var(--border);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

/* Hero text */
.hero-text { flex: 1; }
.hero-text .tag { margin-bottom: 16px; }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 60px var(--accent-glow);
}
.hero-title .highlight { color: var(--accent-light); }
.hero-subtitle {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero-desc {
  margin-top: 20px;
  font-size: 1.05rem;
  color: #bbb;
  max-width: 560px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.meta-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 28px rgba(231, 76, 60, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }

/* -- Section -- */
section { padding: 80px 0; }

/* Headings inside page content (privacy policy, etc.) */
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 8px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 6px;
}
ul { margin: 8px 0 16px 24px; }
ul li { margin-bottom: 6px; }

/* Links inside page content */
section a { color: var(--accent-light); }
section a:hover { text-decoration: underline; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .tag { margin-bottom: 12px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}
.section-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 1rem;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* -- About -- */
.about { background: var(--bg-card); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-body p {
  color: #bbb;
  margin-bottom: 16px;
  font-size: 1rem;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(192,57,43,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-light);
}
.feature-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -- Screenshots -- */
.screenshots { background: var(--bg-base); }
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  aspect-ratio: 16/9;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--accent);
  cursor: pointer;
}
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.screenshot-item:hover .screenshot-overlay { background: rgba(192,57,43,0.2); }
.screenshot-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* -- Stats -- */
.stats { background: var(--bg-card); }
.stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  flex: 1;
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -- Developer -- */
.developer { background: var(--bg-base); }
.dev-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.dev-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dev-logo img { width: 100%; height: 100%; object-fit: cover; }
.dev-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.dev-name span { color: var(--accent-light); }
.dev-desc {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -- Studio Home Extras -- */
.studio-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  background:
    radial-gradient(circle at 20% 20%, rgba(231, 76, 60, 0.2), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(192, 57, 43, 0.14), transparent 35%),
    var(--bg-base);
}
.studio-layout {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: center;
}
.studio-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 0 35px var(--accent-glow);
  object-fit: cover;
}
.studio-subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.studio-copy {
  margin-top: 16px;
  max-width: 760px;
  color: #bcbcbc;
}

.games { background: var(--bg-card); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;

  
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.game-content {
  padding: 16px;
}
.game-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
/* Ensure linked titles keep the intended color (browser visited defaults can turn links purple) */
.game-title a,
.game-title a:visited {
  color: #fff;
  text-decoration: none;
}
.game-title a:hover,
.game-title a:focus {
  color: var(--accent-light);
  text-decoration: underline;
}
.game-meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.game-desc {
  margin-top: 10px;
  color: #b3b3b3;
  font-size: 0.92rem;
}

/* -- Footer -- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
footer p { color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--accent-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-logo span { color: var(--accent-light); }

/* -- Responsive -- */
@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
  .game-icon { width: 120px; height: 120px; }
  .hero-desc { margin: 16px auto 0; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-direction: column; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .studio-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .studio-logo {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .game-grid { grid-template-columns: 1fr; }
}

/* -- Lightbox -- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-img {
  max-width: 92%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  object-fit: contain;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
