/**
 * Design tokens. Every colour and layout dimension in the project resolves
 * here — hardcoded hex in a `*.module.css` file is not allowed.
 *
 * Direction: dark electric — black base, cyan→blue accent (logo reference only;
 * the reference images are not used as assets).
 */
:root {
  /* --- Type --- */
  --font-display: 'Exo 2', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  /* --- Brand accents (logo cue: cyan → electric blue) --- */
  --color-accent: #00c8ff;
  --color-accent-deep: #1a6bff;
  --color-accent-soft: rgba(0, 200, 255, 0.14);
  --gradient-brand: linear-gradient(115deg, #00c8ff 0%, #1a6bff 100%);

  /* --- Surfaces --- */
  --color-bg: #07090f;
  --color-surface: #10131c;
  --color-surface-muted: #161a26;
  --color-surface-subtle: #1a1f2e;
  --color-skeleton: #1c2230;
  --color-skeleton-strong: #2a3144;

  /* --- Text --- */
  --color-text: #f4f7fb;
  --color-text-secondary: #d5dbe6;
  --color-text-muted: #a8b0c0;
  --color-text-subtle: #8b94a8;
  --color-text-faint: #6f788c;
  --color-text-faintest: #5a6378;

  /* --- Lines --- */
  --color-border: #2a3144;
  --color-border-strong: #00c8ff;
  --color-border-soft: #222836;
  --color-border-softer: #1c2230;
  --color-border-input: #3a4258;
  --color-border-muted: #3a4258;

  /* --- Inverted (CTA, banners, badges) --- */
  --color-inverted-bg: #00c8ff;
  --color-inverted-bg-hover: #33d4ff;
  --color-inverted-text: #061018;
  --color-contrast-bg: #05070d;
  --color-contrast-text: #f4f7fb;

  /* --- Overlay --- */
  --color-overlay: rgba(4, 7, 14, 0.88);
  /* Lighter: the promo modal sits over a page the visitor is still reading. */
  --color-overlay-soft: rgba(4, 7, 14, 0.62);

  /* --- Spinner --- */
  --color-spinner-track: #2a3144;
  --color-spinner-head: #00c8ff;

  /* --- Layout ---
     One width for the header, the footer, the offer grid and the sticky bar.
     They used to disagree, which is what made the page look subtly misaligned. */
  --layout-max-width: 1200px;
  --layout-padding-x: 1.25rem;
  --content-max-width: 900px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
}

.pageShell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Site background */
.bgRoot {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bgImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.bgDesktop {
  display: none;
}

.bgMobile {
  display: block;
}

@media (min-width: 769px) {
  .bgDesktop {
    display: block;
  }

  .bgMobile {
    display: none;
  }
}

/* Header */
.header {
  width: 100%;
  border-bottom: 1px solid rgba(0, 200, 255, 0.18);
  background: rgba(7, 9, 15, 0.55);
  backdrop-filter: blur(10px);
}

.headerInner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 14px var(--layout-padding-x);
  display: flex;
  align-items: center;
  justify-content: center;
}

.homeLink {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.headerLogo {
  width: auto;
  height: 40px;
  max-width: min(220px, 58vw);
  object-fit: contain;
}

/* Home page */
.main {
  flex: 1;
}

.hero {
  position: relative;
  padding: 14px var(--layout-padding-x) 4px;
}

.heroInner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 200, 255, 0.22);
  background: linear-gradient(
    160deg,
    rgba(8, 18, 40, 0.72) 0%,
    rgba(6, 28, 64, 0.55) 55%,
    rgba(0, 70, 130, 0.35) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 200, 255, 0.06),
    0 18px 40px rgba(0, 20, 60, 0.28);
  backdrop-filter: blur(8px);
}

.heroTitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 5.2vw, 1.7rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.heroAccent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroText {
  margin: 0;
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

@media (min-width: 769px) {
  .hero {
    padding: 36px var(--layout-padding-x) 12px;
  }

  .heroInner {
    padding: 26px 28px 24px;
    gap: 14px;
  }

  .heroTitle {
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    line-height: 1.2;
  }

  .heroText {
    font-size: clamp(0.92rem, 1.6vw, 1.02rem);
    line-height: 1.55;
  }
}

.infoSection {
  padding: 36px var(--layout-padding-x) 8px;
}

.infoSectionLast {
  padding-bottom: 48px;
}

.infoInner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: linear-gradient(
    155deg,
    rgba(8, 16, 36, 0.78) 0%,
    rgba(8, 32, 72, 0.58) 100%
  );
  box-shadow: 0 14px 36px rgba(0, 18, 50, 0.28);
  backdrop-filter: blur(8px);
}

.infoIntro {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.infoTitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.infoLead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.infoPointList {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 14px;
}

.infoPoint {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  background: rgba(0, 200, 255, 0.06);
}

.infoPointTitle {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
}

.infoPointText {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.infoCardGrid {
  display: grid;
  gap: 14px;
}

.infoCard {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 200, 255, 0.18);
  background: rgba(7, 9, 15, 0.35);
}

.infoCardTitle {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.infoCardText {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.infoMoodGrid {
  display: grid;
  gap: 14px;
}

.infoMood {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(0, 120, 200, 0.18) 0%,
    rgba(26, 107, 255, 0.12) 100%
  );
  border: 1px solid rgba(0, 200, 255, 0.16);
}

.infoMoodTitle {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  font-style: italic;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.infoMoodText {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.infoNote {
  margin: 0;
  padding-top: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-subtle);
  border-top: 1px solid rgba(0, 200, 255, 0.14);
}

@media (min-width: 769px) {
  .infoSection {
    padding: 44px var(--layout-padding-x) 12px;
  }

  .infoInner {
    padding: 32px 28px;
    gap: 26px;
  }

  .infoPointList {
    grid-template-columns: repeat(3, 1fr);
  }

  .infoCardGrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .infoMoodGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Offers */
.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-padding-x);
}

.promoSection {
  padding: 24px 0;
}

.promoGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.gameGrid {
  gap: 24px;
}

.promoSectionEnd {
  width: 100%;
  height: 1px;
}

/* Game offer card */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 200, 255, 0.28);
  background: linear-gradient(
    145deg,
    rgba(10, 24, 52, 0.94) 0%,
    rgba(8, 42, 92, 0.9) 48%,
    rgba(0, 96, 168, 0.82) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 200, 255, 0.06),
    0 14px 36px rgba(0, 30, 80, 0.35);
  overflow: hidden;
}

.cardTop {
  border-color: rgba(0, 220, 255, 0.5);
  box-shadow:
    0 0 24px rgba(0, 200, 255, 0.18),
    0 16px 40px rgba(0, 40, 110, 0.4);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--gradient-brand);
  color: var(--color-inverted-text);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.cardLink {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gameInner {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px;
  pointer-events: none;
}

.media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: rgba(7, 9, 15, 0.45);
}

.image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cardTitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.features {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature {
  margin: 0;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 200, 255, 0.22);
  background: rgba(0, 200, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.ctaWrap {
  display: flex;
  align-items: stretch;
}

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    115deg,
    var(--color-accent) 0%,
    var(--color-accent-deep) 50%,
    var(--color-accent) 100%
  );
  background-size: 200% 100%;
  color: var(--color-inverted-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 140, 255, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  animation:
    gameCtaGlow 2.6s ease-in-out infinite alternate,
    gameCtaShift 4.5s ease-in-out infinite alternate;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: translateX(-140%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.cta::after {
  content: '→';
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.25s ease;
}

.card:hover .cta {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 28px rgba(0, 180, 255, 0.45),
    0 0 22px rgba(0, 200, 255, 0.35);
  animation: none;
  background-position: 100% 50%;
}

.card:hover .cta::before {
  opacity: 1;
  animation: gameCtaShine 0.7s ease forwards;
}

.card:hover .cta::after {
  transform: translateX(4px);
}

@keyframes gameCtaGlow {
  from {
    box-shadow: 0 6px 16px rgba(0, 140, 255, 0.22);
  }

  to {
    box-shadow:
      0 8px 26px rgba(0, 190, 255, 0.48),
      0 0 18px rgba(0, 200, 255, 0.28);
  }
}

@keyframes gameCtaShift {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes gameCtaShine {
  from {
    transform: translateX(-140%) skewX(-18deg);
  }

  to {
    transform: translateX(280%) skewX(-18deg);
  }
}

@media (min-width: 769px) {
  .gameInner {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 18px 20px;
  }

  .media {
    width: 220px;
    height: 160px;
    aspect-ratio: auto;
  }

  .cta {
    width: auto;
    min-width: 150px;
    padding: 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    animation: none;
  }

  .card:hover .cta {
    transform: none;
  }

  .card:hover .cta::before {
    animation: none;
    opacity: 0;
  }

  .card:hover .cta::after {
    transform: none;
  }
}

/* Footer */
.footer {
  margin-top: auto;
  color: var(--color-text);
  border-top: 1px solid rgba(0, 200, 255, 0.18);
  background: rgba(7, 9, 15, 0.55);
  backdrop-filter: blur(10px);
}

.withSticky {
  padding-bottom: 72px;
}

.footerInner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 36px var(--layout-padding-x) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 34rem;
}

.logoLink {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footerLogo {
  width: auto;
  height: 36px;
  max-width: min(200px, 70vw);
  object-fit: contain;
}

.description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.footerLink {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.footerLink:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.copy {
  margin: 0;
  padding-top: 4px;
  font-size: 0.8rem;
  color: var(--color-text-faintest);
}

@media (max-width: 500px) {
  .withSticky {
    padding-bottom: 60px;
  }

  .footerInner {
    padding: 28px var(--layout-padding-x) 22px;
    gap: 18px;
  }
}

/* Legal pages */
.legalPage {
  flex: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 32px var(--layout-padding-x) 48px;
  color: var(--color-text);
}

.meta {
  margin: -6px 0 20px;
  font-size: 0.88rem;
  color: var(--color-text-faintest);
}

.legalPage h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
}

.legalPage h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.legalPage h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.legalPage p,
.legalPage li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.legalPage ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.legalPage a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legalPage a:hover {
  color: var(--color-inverted-bg-hover);
}

/* 404 */
.nfWrapper {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.nfCard {
  max-width: 640px;
  text-align: center;
  border: 1px solid var(--color-border-softer);
  border-radius: 12px;
  padding: 24px;
  background: var(--color-surface);
}

.nfCode {
  display: block;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-faintest);
}

.nfTitle {
  margin: 0 0 12px;
}

.nfDescription {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
}

.nfBackLink {
  display: inline-block;
  text-decoration: underline;
}
