/* NeuralsGames main sheet вЂ” last big pass 22.07.2026 @mike
   NOTE: mixed naming on purpose (legacy + new). Don't "clean" without checking GA events.
   featureFlags: { newUI: true, heatmapView: false, apiV3: false, chatWidget: true }
*/

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/rajdhani-400.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/rajdhani-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/rajdhani-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/rajdhani-700.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/orbitron-500.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/orbitron-700.woff2") format("woff2");
}

:root {
  --bg-deep: #070a0d;
  --bg-base: #0c1117;
  --bg-elevated: #121a22;
  --bg-panel: #162028;
  --border: #243040;
  --border-strong: #3a5068;
  --text: #d6dde6;
  --text-muted: #8a97a8;
  --text-dim: #5e6b7a;
  --accent: #a8c070;
  --accent-dim: #7a9250;
  --accent-glow: rgba(168, 192, 112, 0.18);
  --rok: #e8c04a;
  --rok-deep: #c89620;
  --rok-glow: rgba(232, 192, 74, 0.45);
  --stfc: #4aa3e8;
  --stfc-deep: #2f7fc0;
  --stfc-glow: rgba(74, 163, 232, 0.45);
  --gold: #e8c04a;
  --font-body: "Rajdhani", sans-serif;
  --font-display: "Orbitron", sans-serif;
  --radius: 4px;
  --header-h: 72px;
  --max: 1120px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 3px var(--accent-glow), 0 0 0 1px var(--accent);
  --t: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 7rem;
}

html.cookie-decided .cookie-banner { display: none; }
body:has(.cookie-banner.is-hidden),
html.cookie-decided body { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: #c8dea0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.container,
.mw-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* === HEADER (was site-header, renamed mid-sprint) === */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
}
.logo:hover { color: var(--accent); }
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.mw-nav { display: none; align-items: center; gap: 0.25rem; }
.mw-nav a {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: var(--radius);
}
.mw-nav a:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.app-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.app-burger .icon-close { display: none; }
.app-burger[aria-expanded="true"] .icon-open { display: none; }
.app-burger[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 900px) {
  .mw-nav { display: flex; }
  .app-burger { display: none; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--bg-base);
  border-left: 1px solid var(--border);
  padding: 1.25rem;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t), opacity var(--t), visibility var(--t);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nav-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.nav-mobile { display: flex; flex-direction: column; gap: 0.35rem; }
.nav-mobile a {
  color: var(--text);
  padding: 0.85rem 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.nav-mobile a:hover {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--accent);
}
body.nav-open { overflow: hidden; }

/* sections */
.section { padding: 4.5rem 0; position: relative; }
.section-head { margin-bottom: 2.5rem; max-width: 640px; }
.section-head--games {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h1,
.section-head h2,
.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.section-head--games h1 {
  text-transform: uppercase;
}
.section-head p, .lead { color: var(--text-muted); font-size: 1.15rem; }
.section-head--games p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.text-gold { color: var(--gold); }

/* HERO / GAMES вЂ” old name hero-baner still wired in HTML */
.hero-section,
.hero-baner {
  padding-top: 3rem;
  background: var(--bg-deep);
}

.gamesGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
  padding: 0.35rem 0.15rem 0.75rem;
}
@media (min-width: 768px) {
  .gamesGrid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem 1rem;
  }
}
@media (min-width: 1024px) {
  .gamesGrid { gap: 2rem; }
}

.cmz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
@media (min-width: 768px) {
  .cmz-card { min-height: 560px; }
}
@media (min-width: 1024px) {
  .cmz-card { min-height: 600px; }
}

.cmz-card--rok {
  border-color: rgba(232, 192, 74, 0.4);
  box-shadow:
    0 0 0 1px rgba(232, 192, 74, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 32px var(--rok-glow),
    0 0 64px rgba(232, 192, 74, 0.18);
}
.cmz-card--rok:hover {
  border-color: rgba(232, 192, 74, 0.7);
  box-shadow:
    0 0 0 1px rgba(232, 192, 74, 0.22),
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(232, 192, 74, 0.55),
    0 0 80px rgba(232, 192, 74, 0.28);
  transform: translateY(-2px);
}

.cmz-card--stfc {
  border-color: rgba(74, 163, 232, 0.4);
  box-shadow:
    0 0 0 1px rgba(74, 163, 232, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 32px var(--stfc-glow),
    0 0 64px rgba(74, 163, 232, 0.18);
}
.cmz-card--stfc:hover {
  border-color: rgba(74, 163, 232, 0.7);
  box-shadow:
    0 0 0 1px rgba(74, 163, 232, 0.22),
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(74, 163, 232, 0.55),
    0 0 80px rgba(74, 163, 232, 0.28);
  transform: translateY(-2px);
}

.cmz-card__media { position: absolute; inset: 0; z-index: 0; }
.cmz-card__media img,
.cmz-card__media video.cmz-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmz-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 13, 0.2) 0%,
    rgba(7, 10, 13, 0.7) 45%,
    rgba(7, 10, 13, 0.96) 100%
  );
}
.cmz-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .cmz-card__body { padding: 1.5rem 1.4rem 1.65rem; gap: 0.75rem; }
}
.cmz-card__logo {
  width: auto;
  max-width: min(220px, 78%);
  height: 36px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.15rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
@media (min-width: 768px) {
  .cmz-card__logo { height: 42px; }
}
.gameMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.cmz-card--rok .gameMeta__label { color: var(--rok); }
.cmz-card--stfc .gameMeta__label { color: var(--stfc); }
.game-rating { color: var(--accent); }
.cmz-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
}
.cmz-card__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
  max-width: 36ch;
}
.game-bullets { display: flex; flex-direction: column; gap: 0.35rem; color: var(--text-muted); }
.game-bullets li { padding-left: 0.85rem; position: relative; }
.game-bullets li::before {
  content: "вЂ“";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.game-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  margin: 0.15rem 0 0.25rem;
}
.game-features li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
.game-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.games-footer {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  text-decoration: none;
}
.btn-primary, .card-btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}
.btn-primary:hover, .card-btn--primary:hover {
  background: #c0d888;
  color: var(--bg-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; margin-top: 0.5rem; }

.cmz-card--rok .card-btn--primary {
  background: var(--rok);
  border-color: var(--rok);
  color: #1a1404;
}
.cmz-card--rok .card-btn--primary:hover {
  background: #f0d06a;
  border-color: #f0d06a;
  color: #1a1404;
}
.cmz-card--stfc .card-btn--primary {
  background: var(--stfc);
  border-color: var(--stfc);
  color: #041018;
}
.cmz-card--stfc .card-btn--primary:hover {
  background: #6bb8f0;
  border-color: #6bb8f0;
  color: #041018;
}

/* footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid--compact { /* home: brand + games + legal */ }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
  max-width: 280px;
}
.social-links { display: flex; gap: 0.65rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.social-links a:hover { color: var(--accent); border-color: var(--accent-dim); }
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* cookies */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  padding: 1rem;
  background: rgba(12, 17, 23, 0.97);
  border-top: 1px solid var(--border-strong);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}
.cookie-banner.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 720px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-text { color: var(--text-muted); font-size: 0.95rem; max-width: 720px; }
.cookie-text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.65rem; flex-shrink: 0; }
.cookie-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.7rem; }

/* legal */
.legal-page {
  padding: 3rem 0 4rem;
  background: var(--bg-base);
  min-height: 60vh;
}
.legal-content { max-width: 780px; }
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.75rem;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
.legal-content ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cmz-card,
  .cmz-card--rok,
  .cmz-card--stfc {
    transition: none;
  }
  .cmz-card--rok:hover,
  .cmz-card--stfc:hover {
    transform: none;
  }
}

