:root {
  --bg: #0b0b14;
  --bg-soft: #14141f;
  --card: #181826;
  --border: #262636;
  --text: #f5f5fa;
  --muted: #a3a3b8;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(167, 139, 250, 0.18), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, .brand-name {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; }
.brand-name { font-weight: 700; font-size: 1.15rem; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #0b0b14;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(34, 211, 238, 0.3); }

.btn-ghost {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--violet); }

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 36px;
}

.section-sub {
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 36px;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  justify-content: center;
  gap: 22px;
}

.game-card {
  display: block;
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--violet);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.cover-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 240px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-placeholder span {
  font-family: "Sora", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(11, 11, 20, 0.85);
}

.game-info { padding: 18px 20px 22px; }
.game-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.game-tagline { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-soft {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  backdrop-filter: blur(8px);
}
.status-available { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.status-coming-soon { background: rgba(167, 139, 250, 0.2); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.4); }
.status-in-development { background: rgba(34, 211, 238, 0.16); color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.35); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[aria-hidden="false"] { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(6px);
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lb-in 0.22s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(0, 0, 0, 0.75); }

.lightbox-media {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  background: #0d0d16;
}
.lightbox-media img {
  height: 340px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
}
.lightbox-media .cover-placeholder { width: 100%; aspect-ratio: 16 / 9; }

.lightbox-body { padding: 24px 28px 30px; }
.lightbox-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.lightbox-head h3 { font-size: 1.6rem; }
.lightbox-head .badge-status { position: static; }
.lightbox-tagline { color: var(--violet); font-weight: 600; margin-bottom: 14px; }
.lightbox-desc { color: var(--muted); margin-bottom: 18px; }
.lightbox-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* About split */
.section-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.section-split h2 { margin-bottom: 20px; }
.section-split p { color: var(--muted); margin-bottom: 16px; }

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.about-card dl { display: grid; gap: 18px; }
.about-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.about-card dd { font-weight: 600; }
.about-card a { color: var(--cyan); }

/* Contact */
.section-contact { text-align: center; }
.section-contact .lede { margin-bottom: 28px; }

/* Legal pages (privacy, etc.) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.legal h2 {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
}
.legal p { color: var(--muted); margin-bottom: 16px; }
.legal ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal-meta { color: var(--muted); font-size: 0.9rem; }
.legal-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .section-split { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 48px; }
}
