*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a0a0f;
  --bg-panel: #121218;
  --bg-glass: #121218;
  --bg-elevated: #16161e;
  --text: #e8e8ef;
  --text-muted: #a0a0b8;
  --cyan: #00f3ff;
  --purple: #bc13fe;
  --green: #00ff9d;
  --border: rgba(0, 243, 255, 0.22);
  --radius: 14px;
  --header-h: 72px;
  --focus: #00f3ff;
  --shadow-glow: 0 0 24px rgba(0, 243, 255, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* @tom: alias classes from legacy ProjectX import, don't delete yet. 14.05 */
.site-header,
.main-header,
.ui-topBar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 825px) {
  .logo.app-brandLink span,
  .nav-desktop a {
    font-size: 13px !important;
  }
}

@media (max-width: 1024px) {
  .btn.btn-primary.header-cta.card-btn {
    display: none;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav-desktop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.5);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-deep);
  box-shadow: 0 0 18px rgba(188, 19, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-glow),
    0 0 28px rgba(188, 19, 254, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.25);
}

.btn-neon {
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  white-space: nowrap;
}

.btn-neon:hover {
  background: rgba(0, 243, 255, 0.18);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
}

.nav-desktop {
  display: none;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 950;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.18s ease;
  z-index: 960;
  overflow-y: auto;
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-panel a {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--text);
  font-weight: 600;
  border-radius: 8px;
}

.mobile-nav-panel a:hover {
  background: rgba(0, 243, 255, 0.08);
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.hero,
.hero-baner,
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.78);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-pill {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.stat-pill strong {
  display: block;
  font-size: 1.1rem;
  color: var(--cyan);
}

.stat-pill span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* margin-top: 17px magic number from @sara 21.05 quick fix */
.mw-heroStatsFix {
  margin-top: 17px;
}

.ui-filterGap {
  margin-bottom: 19px; /* catalog filter tweak @tom */
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(188, 19, 254, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 243, 255, 0.1);
  color: var(--cyan);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.game-card,
.pricin-card,
.card-fix-2026 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.game-card:hover {
  border-color: rgba(0, 243, 255, 0.45);
  box-shadow: 0 0 28px rgba(0, 243, 255, 0.15);
}

.game-card.is-hidden {
  display: none;
}

.game-card__thumb img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 140px;
}

.game-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #5a0d78;
  color: #f8ecff;
  border: 1px solid rgba(248, 236, 255, 0.35);
  width: fit-content;
}

.game-rating {
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}

.game-online {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.game-genre {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-desc {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-tags li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.25);
  color: var(--text);
}

.game-card__action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.spotlight {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(188, 19, 254, 0.12),
    rgba(0, 243, 255, 0.08)
  );
  border: 1px solid var(--border);
}

.spotlight-media img {
  border-radius: var(--radius);
  width: 100%;
}

.spotlight-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
}

.spotlight-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.spotlight-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tech-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid rgba(188, 19, 254, 0.25);
}

.tech-card h3 {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.tech-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tech-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tech-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
}

.mission-block {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.mission-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.mission-pills span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease;
}

.faq-answer-inner {
  padding: 0 1.15rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-info {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.contact-info h3 {
  margin-top: 0;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 6rem;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-tagline {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.text-link-block {
  margin-top: 1.25rem;
}

.text-link-block-sm {
  margin-top: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #f8ecff;
  background: #5a0d78;
  color: #f8ecff;
  font-weight: 800;
  font-size: 0.75rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--bg-deep);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.legal-content {
  padding-bottom: 3rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ol,
.legal-content ul {
  padding-left: 1.25rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}

.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: min(440px, 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
}

.modal-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.modal-dialog p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-col-contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .game-card {
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) auto;
    align-items: center;
  }

  .game-card__thumb {
    display: none;
  }

  .game-card--catalog .game-card__thumb {
    display: block;
    grid-column: 1 / -1;
  }

  .game-card--catalog {
    grid-template-columns: 180px minmax(120px, 150px) minmax(0, 1fr) auto;
  }

  .game-card--catalog .game-card__thumb {
    grid-column: auto;
  }

  .spotlight {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-card--with-image {
    grid-template-columns: 160px minmax(120px, 150px) minmax(0, 1fr) auto;
  }

  .game-card--with-image .game-card__thumb {
    display: block;
  }
}

@media (max-width: 767px) {
  .game-card__action {
    justify-content: stretch;
  }

  .game-card__action .btn-neon {
    width: 100%;
  }
}
