:root {
  --bg: #0e0b1e;
  --bg-2: #16122e;
  --bg-3: #1e1a3a;
  --border: #2e2850;
  --text-1: #f0eeff;
  --text-2: #b8b0d8;
  --text-3: #7870a8;
  --accent: #7c3aed;
  --accent-text: #a78bfa;
  --accent-dim: rgba(124,58,237,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Saira', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
main { flex: 1; }

/* ── Disclaimer banner ── */
.disclaimer-bar {
  background: #1a0a2e;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: .7rem;
  color: var(--text-3);
  padding: .35rem 1rem;
}
.disclaimer-bar a { color: var(--accent-text); text-decoration: underline; }

/* ── Header ── */
header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: -.02em;
}
.logo span { color: var(--text-3); font-weight: 400; }

nav a {
  font-size: .85rem;
  color: var(--text-2);
  padding: .4rem .6rem;
  border-radius: .4rem;
  transition: color .15s, background .15s;
}
nav a:hover { color: var(--text-1); background: var(--bg-3); }

/* ── Search ── */
.search-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .4rem .8rem;
  flex: 1;
  max-width: 340px;
}
.search-wrap svg { color: var(--text-3); flex-shrink: 0; }
.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: .875rem;
  width: 100%;
}
.search-wrap input::placeholder { color: var(--text-3); }

/* ── Hero / page header ── */
.page-hero {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.page-hero p { color: var(--text-2); margin-top: .5rem; font-size: .95rem; }

/* ── Game grid ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  padding: 1rem;
}
@media (min-width: 640px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.game-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  display: block;
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg-3);
}
.game-card-body { padding: .5rem .6rem .6rem; }
.game-card-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-provider { font-size: .7rem; color: var(--text-3); margin-top: .15rem; }

/* ── Pill badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 500;
}
.badge-accent { background: var(--accent-dim); color: var(--accent-text); }
.badge-border { border: 1px solid var(--border); color: var(--text-2); }

/* ── Spec card (game detail) ── */
.spec-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
}
.spec-item { text-align: center; }
.spec-label { font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.spec-value { font-size: 1.1rem; font-weight: 700; color: var(--accent-text); margin-top: .2rem; }

/* ── Rating stars ── */
.stars { color: var(--accent-text); letter-spacing: .05em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }

/* ── Game embed area ── */
.game-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  border-radius: .75rem;
  overflow: hidden;
  cursor: pointer;
}
.game-embed-wrap iframe { width: 100%; height: 100%; border: none; }
.game-embed-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: rgba(14,11,30,.85);
}
.game-embed-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .4;
}
.game-embed-cover .play-btn {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.8rem;
  border-radius: .5rem;
  font-weight: 700;
}

/* ── Related games slider ── */
.slider-wrap { position: relative; overflow: hidden; }
.slider-track {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .25rem .25rem .5rem;
  scroll-snap-type: x mandatory;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .game-card {
  flex-shrink: 0;
  width: 42%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .slider-track .game-card { width: 22%; } }
@media (min-width: 1024px) { .slider-track .game-card { width: 15%; } }
.slider-fade-l, .slider-fade-r {
  position: absolute; inset-y: 0; width: 3rem; z-index: 5;
  pointer-events: none;
}
.slider-fade-l { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.slider-fade-r { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--text-3);
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--accent-text); }

/* ── Section title ── */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: .75rem;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1.5rem 1rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: .4rem;
  font-size: .8rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0 .4rem;
  transition: background .15s, color .15s;
}
.pagination a:hover { background: var(--bg-3); color: var(--text-1); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── FAQ ── */
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
}
.faq-q { font-weight: 600; color: var(--text-1); margin-bottom: .4rem; }
.faq-a { font-size: .875rem; color: var(--text-3); }

/* ── Footer ── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  margin-top: 3rem;
  color: var(--text-3);
  font-size: .8rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { display: block; margin-bottom: .5rem; font-size: 1.1rem; }
.footer-col h4 { color: var(--text-2); font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.footer-col a { display: block; margin-bottom: .35rem; color: var(--text-3); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}
.footer-responsible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.footer-responsible a { color: var(--text-3); font-size: .72rem; }
.footer-responsible a:hover { color: var(--accent-text); }

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .hide-mobile { display: none; }
  .search-wrap { max-width: none; }
}
