/* ==========================================================================
   ZOKGAMES – site styles
   ========================================================================== */

:root {
  --bg: #070b18;
  --bg-2: #0b1226;
  --surface: #111a33;
  --border: #1f2b4d;
  --text: #eef2ff;
  --text-muted: #a9b4d0;      /* 8.6:1 on --bg */
  --accent: #3d7bff;
  --accent-hover: #5b90ff;
  --accent-soft: rgba(61, 123, 255, 0.14);
  --green: #3ddc84;

  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 11, 24, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 43, 77, 0.6);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-link img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  text-align: center;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(61, 123, 255, 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(64vw, 280px); margin-bottom: 28px; }
.hero__title { font-size: clamp(2.6rem, 9vw, 4.5rem); font-weight: 900; letter-spacing: 0.04em; }
.hero__tagline { margin-top: 10px; font-size: clamp(1.2rem, 3.6vw, 1.6rem); font-weight: 700; color: var(--accent-hover); }
.hero__text { margin: 18px auto 32px; max-width: 520px; color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section__title { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; margin-bottom: 36px; text-align: center; }

/* ---------- Game cards ---------- */
.games { display: grid; gap: 24px; }
.game-card {
  display: grid; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s;
}
.game-card:hover { border-color: #2e4278; }
.game-card__art {
  display: grid; place-items: center;
  padding: 32px 24px;
  background: radial-gradient(circle at 50% 40%, #1d4fe0 0%, #0c2a9c 55%, #081a66 100%);
}
.game-card__art img { width: min(70%, 260px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.game-card__body { padding: 28px 24px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.game-card__title { font-size: 1.75rem; font-weight: 800; margin: 14px 0 8px; letter-spacing: .02em; }
.game-card__text { color: var(--text-muted); }
.game-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.game-card__note { margin-top: 16px; font-size: .9rem; color: var(--text-muted); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .35);
  color: #8ff0b8; font-size: .85rem; font-weight: 700;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- About ---------- */
.section--about { background: var(--bg-2); border-block: 1px solid rgba(31, 43, 77, 0.6); }
.about { max-width: 680px; text-align: center; }
.about__text { font-size: 1.2rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 32px; }
.footer__inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer__logo { height: 48px; width: auto; }
.footer__heading { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.footer__contact p { color: var(--text-muted); }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer__links a, .footer__contact a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover, .footer__contact a:hover { color: var(--text); }
.footer__copy { margin-top: 36px; text-align: center; font-size: .9rem; color: var(--text-muted); }

/* ---------- Tablet & desktop ---------- */
@media (min-width: 720px) {
  .game-card { grid-template-columns: 1fr 1.1fr; }
  .game-card__art { padding: 40px; }
  .game-card__body { padding: 40px; justify-content: center; }
  .footer__inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .footer__contact { justify-self: center; text-align: center; }
}
@media (min-width: 1000px) {
  .hero { padding: 120px 0 128px; }
  .section { padding: 112px 0; }
}

/* ---------- Small phones: keep nav on one line ---------- */
@media (max-width: 380px) {
  .logo-link img { height: 34px; }
  .nav a { padding: 8px 10px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
