/* NQR — Aurora Magenta UI 2025 (v2)
   Радикально інший стиль: фіолетово‑маджента палітра, нова геометрія,
   квадратні/пілл чипи, прямокутний CTA, стрічка бейджа, перебудований футер. */

/* Fonts: Urbanist (UI) + Space Grotesk (Headings) */
@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  /* Palette (Deep Violet + Magenta) */
  --nqr-bg: #0e0a1a;
  --nqr-bg-soft: #140f27;
  --nqr-fg: #f0ecff;
  --nqr-sub: #b9aedd;
  --nqr-link: #b48bff;
  --nqr-primary: #ff5dc8; /* magenta */
  --nqr-primary-2: #7c4dff; /* violet */
  --nqr-good: #29e0a7;
  --nqr-warn: #ffd166;
  --nqr-danger: #ff6b6b;
  --nqr-line: #2b2442;
  --nqr-card: #130f26;
  --nqr-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --nqr-radius-sm: 10px;
  --nqr-radius: 16px;
  --nqr-radius-lg: 22px;
  --nqr-focus-ring: 0 0 0 3px rgba(255, 93, 200, 0.35),
    0 0 0 6px rgba(124, 77, 255, 0.28);
}

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

/* Base */
body.nqr-shell {
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Arial, sans-serif;
  color: var(--nqr-fg);

  background: linear-gradient(
      to bottom,
      rgba(11, 10, 16, 0.95) 0%,
      rgba(24, 21, 37, 0.7) 50%,
      rgba(24, 21, 37, 0.4) 100%
    ),
    url("assets/sports-bg.webp") center / cover no-repeat fixed;
  line-height: 1.65;
  overflow-x: clip;
}

@keyframes nqr-fade {
  0% {
    opacity: 0.86;
  }
  50% {
    opacity: 0.98;
  }
  100% {
    opacity: 0.86;
  }
}

/* Links */
.nqr-shell a {
  color: var(--nqr-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.nqr-shell a:hover {
  color: #e1d9ff;
}

/* Focus */
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--nqr-focus-ring);
  border-radius: 10px;
}

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

/* Dim backdrop on nav open */
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 14, 0.6);
  backdrop-filter: blur(2px);
  z-index: 40;
}

/* Skip link */
.nqr-skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.nqr-skip:focus-visible {
  left: 16px;
  top: 16px;
  background: #120c24;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 999;
}

/* Header */
.nqr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 12, 32, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--nqr-line);
}
.nqr-header .nqr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nqr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
}
.nqr-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: conic-gradient(
    from 200deg,
    rgba(255, 93, 200, 0.28),
    rgba(124, 77, 255, 0.28)
  );
}
.nqr-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nqr-title {
  display: flex;
  flex-direction: column;
}
.nqr-title-a {
  font-family: "Space Grotesk", "Urbanist", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nqr-burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nqr-line);
  border-radius: 12px;
  background: #151035;
  position: relative;
  z-index: 60;
}
.nqr-burger .l {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2px;
  background: #ece8ff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.2s ease, width 0.2s ease,
    background-color 0.2s ease;
  transform: translateX(-50%);
}
.nqr-burger .l1 {
  top: 50%;
  transform: translate(-50%, -8px);
}
.nqr-burger .l2 {
  top: 50%;
  transform: translate(-50%, 0);
}
.nqr-burger .l3 {
  top: 50%;
  transform: translate(-50%, 8px);
}
body.nav-open .nqr-burger {
  position: fixed;
  top: 16px;
  right: 16px;
  border-color: #9a7bff;
  background: #130e2e;
}
body.nav-open .nqr-burger .l {
  background: #dccfff;
}
body.nav-open .nqr-burger .l1 {
  transform: translate(-50%, 0) rotate(45deg);
}
body.nav-open .nqr-burger .l2 {
  opacity: 0;
  width: 0;
}
body.nav-open .nqr-burger .l3 {
  transform: translate(-50%, 0) rotate(-45deg);
}

.nqr-nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nqr-nav a {
  display: inline-block;
  padding: 8px 10px;
  color: inherit;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
}
.nqr-nav a:hover::after,
.nqr-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--nqr-primary), var(--nqr-primary-2));
  border-radius: 2px;
}

/* Hero */
.nqr-hero {
  padding: 42px 0 12px;
}
.nqr-h1 {
  text-align: center;
  font-family: "Space Grotesk", "Urbanist", system-ui, sans-serif;
  font-size: clamp(1.9rem, 2.9vw, 2.9rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nqr-sub {
  text-align: center;
  color: var(--nqr-sub);
  margin: 0.3rem 0;
}
.nqr-divider {
  border-top: 1px dashed var(--nqr-line);
  margin: 26px 0;
}

/* H2 marker — vertical bar */
.nqr-h2 {
  font-family: "Space Grotesk", "Urbanist", system-ui, sans-serif;
  font-size: clamp(1.26rem, 2.3vw, 2rem);
  margin: 0 0 16px;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  grid-template-columns: 6px auto;
}
.nqr-h2::before {
  content: "";
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--nqr-primary), var(--nqr-primary-2));
  border-radius: 4px;
}

/* Offer */
.nqr-top {
  padding: 12px 0 30px;
}
.nqr-offer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  background: var(--nqr-card);
  border: 1px solid var(--nqr-line);
  border-radius: var(--nqr-radius);
  padding: 20px 16px 16px 16px;
  box-shadow: var(--nqr-shadow);
  position: relative;
}

.nqr-badge {
  position: absolute;
  top: -15px;
  left: 15px;
  z-index: 2;
  font-weight: 800;
  font-size: 0.78rem;
  color: #1a0f24;
  background: #ffd6f1;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.nqr-offer-left {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 16px;
  align-items: center;
}

.nqr-offer-logo {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--nqr-line);
  background: linear-gradient(180deg, #1a1338, #160f2f);
  display: grid;
  place-items: center;
}
.nqr-offer-logo img {
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

.nqr-points {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  margin: 0;
}
.nqr-points li {
  position: relative;
  padding-left: 16px;
  margin: 0;
}
.nqr-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--nqr-primary), var(--nqr-primary-2));
  transform: rotate(45deg);
  border-radius: 2px;
}
.nqr-points li:nth-child(n + 3) {
  display: none;
}

.nqr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nqr-chip {
  max-width: 48%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid var(--nqr-line);
  border-radius: 16px;
  padding: 7px 12px;
  background: #19133a;
  color: #efe9ff;
  transition: transform 0.15s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}
.nqr-chip:hover {
  transform: translateY(-1px);
  background: #221a4c;
  border-color: #3d2f70;
}

.nqr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  justify-content: center;
}
.nqr-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nqr-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}
.nqr-stars-base {
  color: #3a3060;
}
.nqr-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #ffd166;
  pointer-events: none;
}
.nqr-score {
  font-weight: 700;
}

/* CTA — прямокутний */
.nqr-cta {
  display: inline-block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  color: #1a0f24 !important;
  width: 100%;
  background: linear-gradient(135deg, #ffd6f1, #d9c6ff);
  font-weight: 900;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.2s, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(124, 77, 255, 0.28);
}
.nqr-cta:hover,
.nqr-cta:focus-visible {
  filter: brightness(1.06) saturate(1.03);
  transform: translateY(-1px);
}

.nqr-cta-note {
  display: block;
  color: #cdbef0;
  text-align: right;
  font-size: 0.86rem;
}

/* Sections */
.nqr-guide,
.nqr-anj,
.nqr-compare,
.nqr-reviews,
.nqr-pay,
.nqr-games,
.nqr-trust,
.nqr-calendar,
.nqr-stats,
.nqr-gloss {
  padding: 28px 0;
}

/* Cards */
.nqr-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.nqr-guide article,
.nqr-review,
.nqr-game {
  background: var(--nqr-card);
  border: 1px solid var(--nqr-line);
  border-radius: var(--nqr-radius);
  padding: 14px;
  position: relative;
  box-shadow: none;
}
.nqr-guide article::before,
.nqr-review::before,
.nqr-game::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--nqr-primary), var(--nqr-primary-2));
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.nqr-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Blockquote style for reviews */
.nqr-review blockquote {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-left: 4px solid transparent;
  background: #1b1436;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #2c2350;
}
.nqr-review blockquote {
  border-image: linear-gradient(
      180deg,
      var(--nqr-primary),
      var(--nqr-primary-2)
    )
    1;
}

/* ANJ */
.nqr-anj details {
  border: 1px solid var(--nqr-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #1a1338;
  margin: 10px 0;
}
.nqr-anj summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.nqr-anj summary::-webkit-details-marker {
  display: none;
}
.nqr-anj p {
  margin: 8px 0 0;
  color: #e8e0ff;
}
.nqr-anj-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.nqr-anj-list li {
  background: #201848;
  border: 1px solid var(--nqr-line);
  border-radius: 10px;
  padding: 10px 12px 10px 14px;
  position: relative;
}
.nqr-anj-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--nqr-primary), var(--nqr-primary-2));
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Compare */
.nqr-compare-grid {
  display: grid;
  gap: 8px;
  border: 1px solid var(--nqr-line);
  border-radius: 12px;
  background: var(--nqr-card);
  padding: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nqr-compare-grid > [role="row"] {
  min-width: 720px;
}
.nqr-compare-head {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.6fr;
  gap: 10px;
  font-weight: 800;
  color: #efeaff;
  background: #221845;
  border: 1px solid var(--nqr-line);
  border-radius: 10px;
  padding: 10px;
}
.nqr-compare-grid [role="row"]:not(.nqr-compare-head) {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.6fr;
  gap: 10px;
  border: 1px dashed var(--nqr-line);
  border-radius: 10px;
  padding: 10px;
  background: #171033;
}

/* Pay */
.nqr-paylist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nqr-paylist li {
  border: 1px dashed var(--nqr-line);
  border-radius: 12px;
  padding: 8px 12px;
  background: #1a1338;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.nqr-paylist li:hover {
  transform: translateY(-1px);
  background: #261a52;
}
.nqr-pay-note {
  color: #c7bdf0;
}

/* Trust */
.nqr-trustpoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nqr-trustpoints li {
  background: #171033;
  border: 1px solid var(--nqr-line);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

/* Calendar */
.nqr-calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nqr-calendar-list li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 18px;
}
.nqr-calendar-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 12px;
  height: 3px;
  background: linear-gradient(90deg, var(--nqr-primary), var(--nqr-primary-2));
  border-radius: 2px;
}

/* Stats */
.nqr-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.nqr-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #171033;
  border: 1px solid var(--nqr-line);
  border-radius: 999px;
  padding: 10px 14px;
}
.nqr-stat::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, var(--nqr-primary), var(--nqr-primary-2));
  border-radius: 2px;
}
.nqr-stat-figure {
  font-size: 1.34rem;
  font-weight: 800;
  color: #d7c9ff;
}
.nqr-stat p {
  margin: 0;
  color: #eee9ff;
}

/* Footer — повністю перероблений */
.nqr-footer {
  margin-top: 28px;
  position: relative;
  border-top: 1px solid var(--nqr-line);
  background: linear-gradient(180deg, #130d2a, #100c21);
}

.nqr-foot-top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: start;
  padding: 28px 0 16px;
  /* Новий макет з областями */
  grid-template-columns: 1fr 320px;
  grid-template-areas:
    "links links"
    "logos legal";
}

/* Розкладка через області */
.nqr-foot-links {
  grid-area: links;
}
.nqr-legal-logos {
  grid-area: logos;
}
.nqr-legal-nav {
  grid-area: legal;
}

/* Посилання сайту — пігулки з іконкою‑хвостиком */
.nqr-foot-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.nqr-foot-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f5f1ff;
  text-decoration: none;
  padding: 12px 14px;
  border: 1px solid var(--nqr-line);
  border-radius: 999px;
  background: #1a1338;
  min-height: 44px;
  position: relative;
}
.nqr-foot-links a::after {
  content: "›";
  color: #d2c2ff;
  font-weight: 700;
}
.nqr-foot-links a:hover {
  background: #221a4c;
  border-color: #3a2d6d;
}

/* Лого‑бейджі — круглі, з кілецьовим блиском */
.nqr-legal-logos {
  display: flex;
  gap: 12px;
  background: #171033;
  border: 1px solid var(--nqr-line);
  border-radius: 14px;
  padding: 14px;
}
.nqr-legal-logos-link {
  width: 100%;
  aspect-ratio: 1/1;
  background: radial-gradient(circle at 30% 30%, #231a44, #1a1338);
  border: 1px solid var(--nqr-line);
  border-radius: 50%;
  padding: 14px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nqr-legal-logos-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--nqr-shadow);
  border-color: #3a2d6d;
}
.nqr-legal-logos-link img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.02);
}

/* Легальні сторінки — компактні кнопки */
.nqr-legal-nav {
  display: grid;
  grid-auto-rows: minmax(42px, auto);
  gap: 10px;
  height: 100%;
}
.nqr-legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6deff;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px dashed var(--nqr-line);
  border-radius: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nqr-legal-nav a:hover {
  border-style: solid;
  border-color: #b48bff;
  color: #fff;
  background: #1d1540;
}

.nqr-disclaimer {
  color: #cabfe8;
  text-align: center;
  margin-top: 8px;
}
.nqr-foot-btm {
  border-top: 1px solid var(--nqr-line);
  padding: 12px 0;
  margin-top: 8px;
  text-align: center;
}
.nqr-copy {
  color: #cabfe8;
  font-size: 0.94rem;
}

/* Reveal */
.will-in {
  opacity: 0;
  transform: translateY(8px);
}
.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Mobile nav */
@media (max-width: 900px) {
  .nqr-burger {
    display: grid;
  }
  .nqr-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(16, 12, 32, 0.98);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 55;
  }
  .nqr-nav ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .nqr-nav li {
    opacity: 0;
    transform: translateX(8px);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  body.nav-open .nqr-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  body.nav-open .nqr-nav li {
    opacity: 1;
    transform: none;
  }
  body.nav-open .nqr-nav li:nth-child(1) {
    transition-delay: 0.06s;
  }
  body.nav-open .nqr-nav li:nth-child(2) {
    transition-delay: 0.12s;
  }
  body.nav-open .nqr-nav li:nth-child(3) {
    transition-delay: 0.18s;
  }
  body.nav-open .nqr-nav li:nth-child(4) {
    transition-delay: 0.24s;
  }
  body.nav-open .nqr-nav li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nqr-offer {
    grid-template-columns: 1fr;
  }
  .nqr-right {
    align-items: flex-start;
  }
  .nqr-offer-left {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "points" "chips";
    align-items: start;
  }

  /* Footer layout stack */
  .nqr-foot-top {
    grid-template-columns: 1fr;
    grid-template-areas: "links" "logos" "legal";
  }
  .nqr-legal-logos {
    flex-wrap: wrap;
  }
  .nqr-legal-nav {
    grid-auto-rows: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nqr-legal-logos-link {
    max-width: 18%;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .nqr-legal-logos-link {
    max-width: 30%;
  }
  .nqr-hero {
    padding: 16px 0;
  }
  .nqr-h1 {
    font-size: 24px;
  }
  .nqr-sub {
    font-size: 14px;
    margin: 0;
  }
  .nqr-divider {
    display: none;
  }
  #meilleure-offre .nqr-h2 {
    display: none;
  }
}
.aur-chip {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.aur-chip a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
}
