/* ===== CSS Variables ===== */
:root {
  --bg: #0d1612;
  --bg-gradient: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(40, 255, 187, 0.08) 0%, transparent 50%),
                 radial-gradient(ellipse 60% 40% at 20% 80%, rgba(40, 255, 187, 0.04) 0%, transparent 50%),
                 linear-gradient(180deg, #0d1612 0%, #0a120e 100%);
  --surface: rgba(26, 42, 34, 0.85);
  --surface-2: rgba(40, 255, 187, 0.06);
  --text: #e8f5f0;
  --muted: rgba(232, 245, 240, 0.65);
  --accent: #28FFBB;
  --accent-dim: rgba(40, 255, 187, 0.5);
  --radius: 12px;
  --radius-lg: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.35);
  --container: min(100% - 20px, 1200px);
  }

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Focus visible ===== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Container ===== */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 10px;
}
@media (min-width: 768px) {
  .container { padding-inline: 20px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 30px; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 255, 187, 0.1);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-block: 10px;
}
.logo {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(1.1);
}
@media (min-width: 768px) {
  .logo img { height: 32px; }
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover {
  color: var(--accent);
  background: var(--surface-2);
}
.nav__link.nav__link--active {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #20d4a0 100%);
  color: #0a120e;
}
.btn--secondary {
  background: rgba(40, 255, 187, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--lg { padding: 14px 28px; font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
  padding-block: 30px 40px;
}
@media (min-width: 768px) {
  .hero { padding-block: 40px 60px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 60px 80px; }
}
.hero__inner {
  display: grid;
  gap: 30px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero__desc {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
}
.hero__card {
  display: block;
  margin-top: 20px;
}
.hero__card-seo {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (min-width: 1024px) {
  .hero__card {
    margin-top: 0;
    aspect-ratio: 4/3;
    max-height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(40, 255, 187, 0.15);
    box-shadow: var(--shadow);
  }
  .hero__card-inner {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    position: relative;
  }
  .hero__card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .hero__card-seo { max-width: 360px; }
}
@media (max-width: 1023px) {
  .hero__card-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    border: 1px solid rgba(40, 255, 187, 0.15);
  }
  .hero__card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ===== Games section ===== */
.games {
  padding-block: 40px 60px;
}
@media (min-width: 768px) {
  .games { padding-block: 60px 80px; }
}
.games__title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}
.games__subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1rem;
}
.games__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .games__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .games__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .games__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ===== Game card ===== */
.game-card {
  background: var(--surface);
  border: 1px solid rgba(40, 255, 187, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}
.game-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-hover);
}
.game-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.game-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}
.game-card__body {
  padding: 20px;
}
.game-card__name {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.game-card .btn { pointer-events: none; }

/* ===== FAQ ===== */
.faq {
  padding-block: 40px 60px;
}
@media (min-width: 768px) {
  .faq { padding-block: 60px 80px; }
}
.faq__title {
  margin: 0 0 30px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}
.faq__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq__item {
  border-bottom: 1px solid rgba(40, 255, 187, 0.12);
}
.faq__item:first-child { border-top: 1px solid rgba(40, 255, 187, 0.12); }
.faq__term { margin: 0; }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
}
.faq__trigger:hover { color: var(--accent); background: var(--surface-2); }
.faq__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.faq__trigger::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq__trigger[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq__desc {
  margin: 0;
  padding: 0 10px 20px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}
.faq__desc[data-open="true"] { display: block; }
@media (min-width: 768px) {
  .faq__trigger { padding: 20px; }
  .faq__desc { padding: 0 20px 20px 20px; }
}

/* ===== Footer ===== */
.footer {
  padding-block: 20px 30px;
  border-top: 1px solid rgba(40, 255, 187, 0.1);
  background: var(--surface);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__nav {
  display: flex;
  gap: 20px;
}
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--accent); }
