/* Reset — modern baseline to remove browser defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root,
#__next {
  height: 100%;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100%;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
blockquote,
figure {
  margin: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Nexus — 2025 Casino & Betting Showcase UI (Full redesign) */
/* Unique class system (nx-*) + new geometry, colors, interactions, a11y-first */

/* Design tokens */
:root {
  /* Colors: obsidian + neon teal/coral with warm slate */
  --nx-bg: #0b0a0f;
  --nx-bg-2: #0e0d14;
  --nx-surface: #14121d;
  --nx-surface-2: #171427;
  --nx-ink: #f6f5ff;
  --nx-ink-sub: #bfc3d9;
  --nx-ink-mute: #9aa1bd;
  --nx-teal: #2de2e6;
  --nx-coral: #ff5470;
  --nx-purple: #9a5cff;
  --nx-lime: #c4fb6d;
  --nx-line: #2a2740;
  --nx-line-soft: #242138;
  --nx-shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
  --nx-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  --nx-radius-sm: 12px;
  --nx-radius: 16px;
  --nx-radius-lg: 22px;
  --nx-focus: 0 0 0 3px rgba(45, 226, 230, 0.4),
    0 0 0 6px rgba(154, 92, 255, 0.28);

  /* Typography scale */
  --nx-h1: clamp(1.9rem, 2.8vw, 2.9rem);
  --nx-h2: clamp(1.3rem, 2.2vw, 1.9rem);
  --nx-h3: clamp(1.05rem, 1.8vw, 1.2rem);
  --nx-body: 1rem;
  --nx-tight: 1.5;
  --nx-comfy: 1.7;

  /* Motion */
  --nx-speed: 280ms;
  --nx-snap: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

/* Base shell */
body.nx-shell {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--nx-ink);
  background: linear-gradient(
      180deg,
      rgba(8, 9, 14, 0.72),
      rgba(8, 9, 14, 0.72)
    ),
    url("assets/main-bg.webp"),
    radial-gradient(
      1000px 500px at 120% -10%,
      rgba(157, 96, 255, 0.15),
      transparent 60%
    ),
    radial-gradient(
      900px 480px at -10% 10%,
      rgba(45, 226, 230, 0.13),
      transparent 60%
    ),
    linear-gradient(180deg, var(--nx-bg) 0%, var(--nx-bg-2) 100%);
  background-position: center, center, center, center, center;
  background-size: auto, cover, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, fixed, scroll, scroll, scroll;
  line-height: var(--nx-comfy);
  overflow-x: clip;
}

/* Background orbs */
body.nx-shell::before {
  content: "";
  position: fixed;
  inset: -8vh -8vw;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
      340px 340px at 20% 18%,
      rgba(45, 226, 230, 0.12),
      transparent 58%
    ),
    radial-gradient(
      360px 360px at 78% 26%,
      rgba(255, 84, 112, 0.12),
      transparent 58%
    ),
    radial-gradient(
      460px 460px at 30% 72%,
      rgba(154, 92, 255, 0.1),
      transparent 60%
    );
  filter: saturate(110%);
}

/* Subtle animated fiber */
body.nx-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px, 18px 18px;
  mix-blend-mode: soft-light;
  animation: nx-grid-shift 28s linear infinite;
}
@keyframes nx-grid-shift {
  to {
    background-position: 18px 18px, 18px 18px;
  }
}

/* Links */
.nx-shell a {
  color: var(--nx-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nx-shell a:hover {
  color: #d6fdff;
}

/* Focus, a11y */
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--nx-focus);
  border-radius: 10px;
}
.nx-skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.nx-skip:focus-visible {
  left: 16px;
  top: 16px;
  background: #0f1322;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 1000;
}

/* Layout */
.nx-wrap {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Hero */
.nx-hero {
  padding: 42px 0 16px;
}
.nx-h1 {
  font-family: "Unbounded", cursive;
  font-size: var(--nx-h1);
  margin: 0 0 10px;
  letter-spacing: 0.1px;
}
.nx-sub {
  color: var(--nx-ink-sub);
  margin: 0.4rem 0;
}
.nx-divider {
  position: relative;
  height: 0;
  margin: 26px 0;
}
.nx-divider::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(45, 226, 230, 0.22),
    rgba(154, 92, 255, 0.22)
  );
  border-radius: 999px;
}

/* Offer (spotlight) — full-width card, geometry altered */
.nx-spot {
  padding: 10px 0 30px;
}
.nx-offer {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr 1.2fr 1fr;
  gap: 14px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: visible;
  align-items: center;
}
.nx-offer::before {
  content: none;
}
/* Flatten header wrapper so children participate in grid */
.nx-offer-head {
  display: contents;
}
/* Place items into desktop grid columns */
.nx-offer-logo {
  grid-column: 1;
}
.nx-tags {
  grid-column: 2;
}
.nx-offer-meta {
  grid-column: 3;
}
.nx-offer-side {
  grid-column: 4;
  display: grid;
  grid-auto-flow: row;
  gap: 8px;
  justify-items: end;
}
/* Hide legacy dividers in the new inline layout */
.nx-offer-divider {
  display: none;
}

.nx-ribbon {
  position: absolute;
  top: -14px;
  left: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  color: #0b0a0f;
  background: var(--nx-teal);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.nx-offer-logo {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  border-radius: var(--nx-radius);
  border: 1px dashed var(--nx-line);
  background: #121126;
  display: grid;
  place-items: center;
}
.nx-offer-logo img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nx-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-points li {
  position: relative;
  padding-left: 16px;
}
.nx-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--nx-teal);
  transform: rotate(45deg);
}

.nx-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.nx-tag {
  font-size: 0.78rem;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #131a33;
  color: #e8eaff;
  transition: transform 140ms ease, background-color 200ms ease,
    border-color 200ms ease;
}
.nx-tag:hover {
  transform: translateY(-1px);
  background: #182046;
}

.nx-offer-side {
  display: grid;
  grid-auto-flow: row;
  align-items: start;
  justify-items: end;
  gap: 8px;
}
.nx-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.nx-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}
.nx-stars-base {
  color: #2c2a46;
}
.nx-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #ffd166;
  pointer-events: none;
}
.nx-score {
  font-weight: 800;
}

.nx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  color: var(--nx-ink) !important;
  text-decoration: none !important;
  font-weight: 900;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease, filter 0.2s, box-shadow 0.2s;
}
.nx-cta:hover,
.nx-cta:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.nx-cta-note {
  display: block;
  color: var(--nx-ink-mute);
  font-size: 0.86rem;
  text-align: left;
}
/* Offer — flat meta and solid CTA within card */
.nx-offer .nx-cta {
  background: var(--nx-purple);
}
.nx-offer .nx-cta:hover,
.nx-offer .nx-cta:focus-visible {
  filter: brightness(1.05);
}
.nx-offer-divider {
  height: 1px;
  background: var(--nx-line);
  border-radius: 1px;
}
/* Inline layout: tags | centered bonus | rating+CTA */
.nx-offer-inline {
  display: grid;
  grid-template-columns: 1fr 0.9fr auto;
  gap: 12px;
  align-items: center;
}
.nx-offer-meta--center {
  display: grid;
  justify-items: center;
  text-align: center;
}
.nx-offer-meta--center .nx-meta-item {
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (max-width: 720px) {
  .nx-offer-inline {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.nx-offer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.nx-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #131a33;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  padding: 10px;
}
.nx-meta-label {
  color: var(--nx-ink-mute);
  font-size: 0.86rem;
}
.nx-meta-value {
  font-weight: 800;
  color: var(--nx-ink);
}

/* Compact offer tuning */
.nx-meta-item--bonus {
  border-color: var(--nx-teal);
}
.nx-meta-item--bonus .nx-meta-value {
  font-size: 1.2rem;
  color: var(--nx-teal);
}
.nx-offer {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .nx-offer {
    padding: 12px;
    gap: 10px;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .nx-offer-logo {
    min-height: 92px;
    padding: 8px;
    grid-column: 1;
  }
  .nx-tags {
    display: none;
  }
  .nx-tag {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  .nx-rating {
    justify-self: center;
  }
  .nx-offer-meta {
    grid-template-columns: 1fr;
    gap: 8px;
    grid-column: 1;
  }
  .nx-meta-item {
    padding: 8px;
  }
  .nx-meta-label {
    font-size: 0.8rem;
  }
  .nx-meta-value {
    font-size: 0.95rem;
  }
  .nx-meta-item--bonus .nx-meta-value {
    font-size: 1.1rem;
  }

  .nx-offer-side {
    grid-column: 1;
    justify-items: stretch;
    gap: 8px;
  }
  .nx-rating .nx-stars {
    font-size: 16px;
  }
  .nx-cta {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
  }
  .nx-cta-note {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
  }
}

/* Section wrapper spacing */
.nx-section {
  padding: 26px 0;
}

/* Universal full-width cards column */
.nx-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.nx-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 16px;
  position: relative;
  box-shadow: none;
}
.nx-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--nx-teal), var(--nx-purple));
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* ANJ */
.nx-anj p {
  display: inline-block;
  background: #141a33;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 12px;
}
.nx-anj-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.nx-anj-list li {
  background: #121834;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 12px 12px 12px 30px;
  position: relative;
}
.nx-anj-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--nx-teal), var(--nx-purple));
  transform: rotate(45deg);
}

/* Guide */
.nx-guide .nx-card h3 {
  font-size: var(--nx-h3);
  margin-top: 0;
}

/* Compare: table-like but stacked cards */
.nx-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.nx-compare-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-weight: 900;
  color: #e7e4ff;
  background: #191642;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: 12px;
}
.nx-compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border: 1px dashed var(--nx-line);
  border-radius: 12px;
  padding: 12px;
  background: #151233;
}
.nx-compare-row div:first-child {
  color: var(--nx-ink);
  font-weight: 700;
}
.nx-compare-row div:nth-child(2) {
  color: var(--nx-lime);
  font-weight: 700;
}
.nx-compare-row div:nth-child(3) {
  color: var(--nx-ink-sub);
}

/* Reviews */
.nx-review {
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  background: #14142a;
  padding: 14px;
  position: relative;
}
.nx-starline {
  color: #ffd166;
}

/* Pay */
.nx-paylist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-paylist li {
  border: 1px dashed var(--nx-line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #131a33;
  transition: transform 0.16s ease, background-color 0.2s ease;
}
.nx-paylist li:hover {
  transform: translateY(-1px);
  background: #182046;
}
.nx-pay-note {
  color: var(--nx-ink-mute);
}

/* Games */
.nx-game {
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  background: #121834;
  padding: 14px;
}

/* Trust */
.nx-trustpoints {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nx-trustpoints li {
  background: #151233;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 12px;
}

/* Calendar */
.nx-calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-calendar-list li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 18px;
}
.nx-calendar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: linear-gradient(90deg, var(--nx-teal), var(--nx-purple));
  transform: rotate(45deg);
}

/* Stats */
.nx-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.nx-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #151233;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  padding: 10px 14px;
}
.nx-stat::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--nx-teal), var(--nx-purple));
  transform: rotate(45deg);
  border-radius: 2px;
}
.nx-stat-figure {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--nx-teal);
}
.nx-stat p {
  margin: 0;
  color: var(--nx-ink-sub);
}

/* Glossary */
.nx-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.nx-dl dt,
.nx-dl dd {
  background: #131a33;
  border: 1px solid var(--nx-line);
  margin: 0;
  border-radius: 14px;
  padding: 12px 14px;
}
.nx-dl dd {
  color: #e3e6ff;
}

/* Footer */
.nx-footer {
  margin-top: 18px;
  border-top: 1px solid var(--nx-line);
  background: linear-gradient(180deg, #0d0c16, #0c1020);
}
.nx-foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 0 12px;
  align-items: start;
}
.nx-legal-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  background: #151233;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  padding: 10px;
}
.nx-legal-logos-link {
  width: 90px;
  height: 90px;
  background: #121834;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nx-legal-logos-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--nx-shadow);
}
.nx-legal-logos-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nx-foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-foot-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f6f8ff;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  background: #131a33;
  min-height: 40px;
}
.nx-foot-links a::after {
  content: "↗";
  color: var(--nx-teal);
}
.nx-foot-links a:hover {
  background: #182046;
  border-color: #2b2950;
}

.nx-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-legal-nav a {
  display: inline-block;
  color: #d8dcff;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px dashed var(--nx-line);
  border-radius: 999px;
}
.nx-legal-nav a:hover {
  border-style: solid;
  border-color: var(--nx-purple);
  color: #ffffff;
}

.nx-disclaimer {
  color: var(--nx-ink-mute);
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.nx-foot-btm {
  border-top: 0;
  padding: 6px 0 10px;
  margin-top: 2px;
}
.nx-copy {
  color: #aab0cf;
  font-size: 0.94rem;
}

@media (min-width: 900px) {
  .nx-foot-top {
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 14px;
  }
}

/* In-view reveal */
.nx-will {
  opacity: 0;
  transform: translateY(10px);
}
.nx-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .nx-hero {
    padding: 16px 0;
  }
  .nx-h1 {
    font-size: 24px;
  }
  .nx-sub {
    font-size: 0.85rem;
  }
  .nx-divider {
    display: none;
  }
}
