/* NX Design System v2025 — rev G (uniform cards, split hero, 2-col footer)
   Typography: Bricolage Grotesque (Headings), Plus Jakarta Sans (UI)
   Palette: graphite + neon lime/fuchsia accents
*/
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap");

:root {
  --nx-bg: #090a0f;
  --nx-surface: #0e1118;
  --nx-elev: #141828;
  --nx-line: #222638;
  --nx-soft: #a6b2c6;
  --nx-text: #f6f8fc;
  --nx-sub: #cfd6e6;
  --nx-accent: #84cc16; /* neon lime */
  --nx-accent-2: #e879f9; /* fuchsia */
  --nx-warn: #f59e0b;
  --nx-good: #22c55e;

  --nx-radius: 12px;
  --nx-shadow-1: 0 8px 20px rgba(0, 0, 0, 0.35);
  --nx-shadow-2: 0 14px 36px rgba(10, 12, 24, 0.6);
  --nx-ring: 0 0 0 1px rgba(132, 204, 22, 0.45),
    0 6px 18px rgba(132, 204, 22, 0.18);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("../img/main-bg.webp") center/cover no-repeat fixed;
  color: var(--nx-text);
  font: 400 16px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI,
    Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.nx-skip {
  position: absolute;
  left: -9999px;
}
.nx-skip:focus {
  position: fixed;
  left: 8px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 9999;
}
:focus-visible {
  outline: 2px dashed rgba(132, 204, 22, 0.7);
  outline-offset: 2px;
}

.nx-wrap {
  width: min(1140px, 94%);
  margin-inline: auto;
}

/* Distinct section backgrounds */
.nx-section {
  padding: 16px 0;
  content-visibility: auto;
  contain-intrinsic-size: 480px;
  position: relative;
}

.nx-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.nx-h1,
.nx-h2,
.nx-h3 {
  font-family: "Bricolage Grotesque", ui-serif, Georgia, serif;
  letter-spacing: 0.3px;
}
.nx-h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  margin: 0 0 6px;
}
.nx-h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 8px;
  position: relative;
  padding-bottom: 6px;
}
.nx-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--nx-accent), var(--nx-accent-2));
  border-radius: 2px;
}
.nx-h3 {
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 4px;
}
.nx-lead {
  color: var(--nx-sub);
  font-size: clamp(13px, 1.9vw, 15px);
  margin: 0;
}

/* HERO — split layout: content + decorative band */
.nx-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 18px;
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-1);
  overflow: hidden;
}

/* Buttons — prominent */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  border: 1px solid transparent;
}
.nx-btn--prime {
  background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2));
  color: #0a0b10;
  box-shadow: var(--nx-shadow-1);
  border-color: rgba(132, 204, 22, 0.35);
}
.nx-btn--prime:hover {
  transform: translateY(-1px);
  box-shadow: var(--nx-ring);
}

/* LIST — uniform card layout (Logo min 200px, then info, then CTA) */
.nx-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.nx-card {
  display: grid;
  grid-template-columns: minmax(200px, 220px) 1fr 220px;
  gap: 12px;
  align-items: center;
  position: relative;
  background: var(--nx-surface);
  border: 2px solid var(--nx-line);
  border-radius: 14px;
  box-shadow: var(--nx-shadow-1);
  padding: 12px;
}
/* neutralize previous decorative elements, if any */
.nx-card::before,
.nx-card::after {
  display: none;
}

/* Logo column */
.nx-logo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #0f1524;
  border: 2px solid rgba(132, 204, 22, 0.45);
  padding: 8px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nx-offer {
  color: #fff1d6;
  font-weight: 800;
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.18),
    rgba(245, 158, 11, 0.08)
  );
  border: 1px dashed rgba(245, 158, 11, 0.55);
  border-radius: 10px;
  padding: 4px 8px;
  width: fit-content;
  font-size: 12px;
}
.nx-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  justify-content: center;
}
.nx-flag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #f2fcdf;
  background: rgba(132, 204, 22, 0.16);
  border: 1px solid rgba(132, 204, 22, 0.45);
  padding: 4px 8px;
  border-radius: 999px;
}
.nx-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nx-pay img {
  width: 52px;
  height: 24px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* CTA column */
.nx-cta {
  grid-column: 3;
  display: grid;
  gap: 8px;
  justify-items: stretch;
}
.nx-foot {
  font-size: 11px;
  color: var(--nx-soft);
  text-align: right;
}

/* Ribbon / Tag */
.nx-ribbon {
  position: absolute;
  left: 12px;
  top: 4px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0c0b10;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.25);
  font-size: 13px;
  z-index: 2;
}
.nx-tag {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(232, 121, 249, 0.14);
  border: 1px solid rgba(232, 121, 249, 0.45);
  font-weight: 800;
  font-size: 11px;
  z-index: 2;
}

/* Stars (exactly 5) */
.nx-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nx-sub);
  font-weight: 900;
  justify-content: center;
}
.nx-meter {
  --score: 5;
  --size: 16px;
  width: calc(5 * var(--size));
  height: var(--size);
  background: linear-gradient(
    90deg,
    var(--nx-accent-2) calc((var(--score) / 5) * 100%),
    rgba(255, 255, 255, 0.2) 0
  );
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23000" d="M10 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L10 14.6 4.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L10 0zM30 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L30 14.6 24.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L30 0zM50 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L50 14.6 44.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L50 0zM70 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L70 14.6 64.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L70 0zM90 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L90 14.6 84.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L90 0z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23000" d="M10 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L10 14.6 4.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L10 0zM30 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L30 14.6 24.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L30 0zM50 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L50 14.6 44.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L50 0zM70 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L70 14.6 64.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L70 0zM90 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L90 14.6 84.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L90 0z"/></svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Accordion */
.nx-accordion details {
  margin-bottom: 8px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  overflow: hidden;
}
.nx-accordion summary {
  cursor: pointer;
  padding: 8px 10px;
  font-weight: 800;
  background: #111426;
  font-size: 13px;
}
.nx-accordion p {
  padding: 0 10px 8px;
  color: var(--nx-sub);
  border-top: 1px dashed var(--nx-line);
}

/* Reviews */
.nx-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.nx-review {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 8px;
  box-shadow: var(--nx-shadow-1);
}
.nx-stars {
  --score: 5;
  --size: 16px;
  width: calc(5 * var(--size));
  height: var(--size);
  background: linear-gradient(
    90deg,
    var(--nx-accent-2) calc((var(--score) / 5) * 100%),
    rgba(255, 255, 255, 0.2) 0
  );
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23000" d="M10 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L10 14.6 4.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L10 0zM30 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L30 14.6 24.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L30 0zM50 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L50 14.6 44.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L50 0zM70 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L70 14.6 64.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L70 0zM90 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L90 14.6 84.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L90 0z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23000" d="M10 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L10 14.6 4.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L10 0zM30 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L30 14.6 24.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L30 0zM50 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L50 14.6 44.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L50 0zM70 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L70 14.6 64.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L70 0zM90 0l2.6 6.2 6.8.6-5.1 4.2 1.6 6.7L90 14.6 84.1 17.7l1.6-6.7-5.1-4.2 6.8-.6L90 0z"/></svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* GAMES */
.nx-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.nx-game {
  text-align: center;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nx-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(232, 121, 249, 0.22);
}

/* CHARTS */
.nx-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.nx-chart {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 10px;
  box-shadow: var(--nx-shadow-1);
}
.nx-chart .nx-bar {
  --val: 50;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
      90deg,
      var(--nx-accent) calc(var(--val) * 1%),
      rgba(255, 255, 255, 0.16) 0
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0 8px,
      transparent 8px 16px
    );
  margin-bottom: 4px;
}
.nx-ind {
  color: var(--nx-sub);
  font-size: 12px;
}

/* BANNER */
.nx-banner {
  background: linear-gradient(
    135deg,
    rgba(132, 204, 22, 0.22),
    rgba(232, 121, 249, 0.22)
  );
  color: var(--nx-text);
  padding: 14px;
  border-radius: var(--nx-radius);
  border: 1px solid rgba(132, 204, 22, 0.35);
  box-shadow: var(--nx-shadow-2);
  position: relative;
  overflow: hidden;
}
.nx-top {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.nx-topwrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px;
  align-items: center;
}
.nx-topwrap .nx-logo {
  width: 240px;
  height: auto;
  padding: 10px;
}
.nx-high {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

/* FOOTER — two-column layout (note left, nav+logos right, copy full-width) */
.nx-footer {
  padding: 20px 0;
  border-top: 2px solid var(--nx-line);
  margin-top: 20px;
  background: rgba(8, 10, 18, 0.9);
  backdrop-filter: blur(6px);
}
.nx-footgrid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  grid-template-areas:
    "note row"
    "copy copy";
  gap: 12px;
  align-items: start;
}
.nx-note {
  grid-area: note;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 12px;
  box-shadow: var(--nx-shadow-1);
}
.nx-footrow {
  grid-area: row;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  align-items: start;
}
.nx-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.nx-nav a {
  color: #d7e5f0;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.nx-nav a:hover {
  color: #e8ffe2;
  border-bottom-color: rgba(232, 255, 226, 0.6);
}
.nx-logos {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.nx-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 204, 22, 0.3);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  min-height: 36px;
}
.nx-logos a:hover {
  transform: translateY(-1px);
  background: rgba(132, 204, 22, 0.1);
  border-color: rgba(132, 204, 22, 0.5);
  box-shadow: 0 8px 18px rgba(132, 204, 22, 0.18);
}
.nx-logos a img {
  height: 22px;
  filter: saturate(118%) contrast(105%);
}
.nx-logos > img {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 204, 22, 0.3);
  height: 22px;
}
.nx-copy {
  grid-area: copy;
  text-align: center;
  color: var(--nx-soft);
  font-size: 12px;
}

/* Article */
.nx-article {
  display: block;
}
.nx-p {
  margin: 0 0 6px;
  color: var(--nx-sub);
}
.nx-ul {
  margin: 4px 0 8px;
  padding-left: 18px;
}
.nx-ul li {
  margin: 3px 0;
}
.nx-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  border-radius: var(--nx-radius);
  overflow: hidden;
}
.nx-table th,
.nx-table td {
  border-bottom: 1px solid var(--nx-line);
  padding: 6px 8px;
  text-align: left;
}
.nx-table thead th {
  background: #101226;
}
.nx-a {
  color: #b2f075;
  text-underline-offset: 2px;
}
.nx-a:hover {
  color: #e8ffc4;
}

/* Mobile */
@media (max-width: 960px) {
  .nx-hero {
    grid-template-columns: 1fr;
  }
  .nx-hero::after {
    display: none;
  }

  .nx-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nx-logo {
    max-width: 100%;
    margin: 0 auto;
  }
  .nx-cta {
    grid-column: 1;
  }
  .nx-foot {
    text-align: left;
  }

  .nx-footgrid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "note"
      "row"
      "copy";
  }
  .nx-nav {
    justify-content: center;
  }
  .nx-logos {
    justify-content: center;
  }
  .nx-topwrap,
  .nx-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .min-w {
    width: 100%;
  }
  .nx-high {
    justify-content: center;
  }
}
.nx-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.min-w {
  min-width: 220px;
}
.nx-cta .nx-btn {
  margin-bottom: 10px;
}
