/* =============================================================================
   Wildzy — styles.css | Mobile-first | ASSETS_FOLDER: images/
   ============================================================================= */

:root {
  --color-bg-deep: #070818;
  --color-bg-mid: #0b0e1b;
  --color-surface: #121528;
  --color-surface-2: #1a1530;
  --color-card: #1c1333;
  --color-card-inner: #251b3d;
  --color-border-soft: rgba(180, 140, 255, 0.12);
  --color-border-glow: rgba(255, 0, 127, 0.45);
  --color-text: #f4f2fb;
  --color-text-muted: #a39bb8;
  --color-accent: #ff007f;
  --color-accent-soft: #ff4da6;
  --color-blue: #3d7cff;
  --color-blue-glow: rgba(61, 124, 255, 0.35);
  --color-magenta-glow: rgba(255, 0, 127, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --sidebar-w: 280px;
  --z-drawer: 200;
  --z-overlay: 190;
  --z-header: 150;
  --z-mobile-nav: 140;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --transition-fast: 0.18s ease;
  --shadow-glow-accent: 0 0 24px var(--color-magenta-glow);
  --shadow-card-top: inset 0 1px 0 rgba(255, 100, 200, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

#accueil,
#offres-promotions,
#offres-hebdo,
#themes,
#jeux,
#casino-live,
#sports,
#search,
#faq,
#seo-text {
  scroll-margin-top: calc(100px + env(safe-area-inset-top, 0));
}

@media (min-width: 1024px) {
  #accueil,
  #offres-promotions,
  #offres-hebdo,
  #themes,
  #jeux,
  #casino-live,
  #sports,
  #search,
  #faq,
  #seo-text {
    scroll-margin-top: 100px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
  background-color: var(--color-bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(88, 40, 160, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(255, 0, 127, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(61, 124, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #0a0618 0%, var(--color-bg-deep) 40%, #05050f 100%);
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- App shell ----- */
.app-shell {
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
}

@media (min-width: 1024px) {
  .app-shell {
    padding-bottom: 0;
  }
}

/* ----- Sidebar (desktop) ----- */
.sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(180deg, #0e0f22 0%, #0a0b18 100%);
    border-right: 1px solid var(--color-border-soft);
    z-index: 50;
    overflow-y: auto;
  }
}

.sidebar__top {
  margin-bottom: var(--space-md);
}

.sidebar__logo img {
  width: 120px;
  height: auto;
}

.sidebar__promo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  border: none;
  cursor: pointer;
  width: 100%;
}

.sidebar__promo-icon-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.sidebar__nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar__nav-link.is-active {
  background: rgba(20, 15, 40, 0.95);
  box-shadow: 0 0 0 1px rgba(140, 80, 200, 0.35), 0 0 20px rgba(120, 40, 180, 0.2);
}

.sidebar__nav-img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar__popular {
  margin-top: auto;
  padding-top: var(--space-lg);
}

.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb8ff;
  margin-bottom: var(--space-sm);
}

.sidebar__popular-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.popular-card__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (prefers-reduced-motion: no-preference) {
  .popular-card__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
  }
}

.popular-card__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.popular-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popular-card__title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-card__provider {
  font-size: 11px;
  color: var(--color-text-muted);
}

.popular-card__play {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
  box-shadow: 0 0 12px var(--color-magenta-glow);
}

.popular-card__play::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.sidebar__footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-soft);
}

.lang-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: #14152a;
  border: 1px solid var(--color-border-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

.lang-pill__chev {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text-muted);
}

.sidebar__footer-tools {
  display: flex;
  gap: var(--space-xs);
}

.utility-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #14152a;
  border: 1px solid var(--color-border-soft);
  transition: background var(--transition-fast);
}

.utility-btn:hover {
  background: rgba(255, 0, 127, 0.15);
}

.utility-btn__icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-text-muted);
  border-radius: 50%;
  position: relative;
}

.utility-btn__icon--headset::before {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border: 2px solid var(--color-text-muted);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.utility-btn__icon--help::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
  border: none;
}

/* ----- Main wrap ----- */
.main-wrap {
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .main-wrap {
    margin-left: var(--sidebar-w);
  }
}

/* ----- Header / topbar ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(7, 8, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.site-header__mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  padding-top: calc(var(--space-sm) + env(safe-area-inset-top, 0));
}

@media (min-width: 1024px) {
  .site-header__mobile {
    display: none;
  }
}

.menu-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-soft);
  background: #14152a;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.menu-trigger__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

.site-header__mobile-logo img {
  height: 28px;
  width: auto;
  margin: 0 auto;
}

/* Barre catalogue (#search) — mobile : 1 recherche + filtre, sans CTA dupliqués */
.catalog-toolbar {
  display: block;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 1024px) {
  .catalog-toolbar {
    padding: var(--space-md) var(--space-lg) var(--space-md);
    border-top: none;
  }
}

.catalog-toolbar__row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 38vw);
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 1024px) {
  .catalog-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
  }
}

.catalog-toolbar__search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #14152a;
  border: 1px solid var(--color-border-soft);
}

@media (min-width: 1024px) {
  .catalog-toolbar__search {
    flex: 2;
    min-width: 220px;
  }
}

.catalog-toolbar__search-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.85;
}

.catalog-toolbar__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: var(--color-text);
}

.catalog-toolbar__input::placeholder {
  color: var(--color-text-muted);
}

.catalog-toolbar__filter {
  flex-shrink: 0;
}

.catalog-toolbar__actions {
  display: none;
  gap: var(--space-sm);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .catalog-toolbar__actions {
    display: flex;
    margin-left: auto;
  }
}

.fournisseurs-select {
  appearance: none;
  padding: 10px 36px 10px 16px;
  border-radius: var(--radius-pill);
  background: #14152a;
  border: 1px solid var(--color-border-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
    linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 3px), calc(100% - 12px) calc(50% + 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* ----- CTA buttons ----- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-align: center;
}

.cta-button--primary {
  background: linear-gradient(180deg, var(--color-accent-soft), var(--color-accent));
  color: #fff;
  box-shadow: var(--shadow-glow-accent);
}

.cta-button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.cta-button--outline-light {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-button--sm {
  padding: 8px 14px;
  font-size: 10px;
}

.cta-button--banner {
  background: linear-gradient(90deg, #1e3a8a, #3d7cff 50%, #6366f1);
  color: #fff;
  box-shadow: 0 0 20px var(--color-blue-glow);
}

.cta-button--pill-dark {
  width: 100%;
  background: linear-gradient(180deg, #2a2244, #1a1528);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  justify-content: space-between;
  padding: 14px 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-button--primary:hover,
  .cta-button--pill-dark:hover {
    transform: translateY(-1px);
  }
}

/* ----- Main content ----- */
.main-content {
  padding: 0 var(--space-md) var(--space-2xl);
}

@media (min-width: 768px) {
  .main-content {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-2xl);
  margin: 0 calc(-1 * var(--space-md)) var(--space-xl);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(165deg, rgba(30, 20, 60, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 0, 127, 0.12), transparent 55%);
}

.hero--visual {
  min-height: 320px;
  padding-bottom: calc(var(--space-2xl) + var(--space-md));
  background: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 18, 0.92) 0%, rgba(5, 6, 18, 0.55) 42%, rgba(5, 6, 18, 0.25) 100%),
    url("images/banner1.webp") center right / cover no-repeat;
  border-radius: inherit;
  pointer-events: none;
}

.hero--visual .hero__glow {
  z-index: 0;
}

.hero__character {
  position: absolute;
  right: -8%;
  bottom: 0;
  z-index: 1;
  width: min(58vw, 280px);
  max-width: none;
  height: auto;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom right;
}

@media (min-width: 768px) {
  .hero__character {
    right: clamp(12px, 3vw, 36px);
    width: min(42vw, 380px);
  }
}

@media (min-width: 768px) {
  .hero {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    border-radius: var(--radius-lg);
  }

  .hero--visual {
    min-height: 420px;
  }
}

@media (min-width: 1024px) {
  .hero__character {
    right: clamp(16px, 3.5vw, 48px);
    width: min(36vw, 420px);
    transform: translateX(-8px);
  }

  .hero--visual {
    min-height: 520px;
  }
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
}

.hero__glow--1 {
  width: 200px;
  height: 200px;
  background: #7c3aed;
  top: -40px;
  right: 10%;
}

.hero__glow--2 {
  width: 280px;
  height: 280px;
  background: var(--color-accent);
  bottom: -80px;
  left: -40px;
  opacity: 0.25;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

@media (min-width: 768px) {
  .hero__inner {
    max-width: 26rem;
  }
}

.hero__eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.hero__percent-img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 0 var(--space-xs);
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(250, 204, 21, 0.25));
}

@media (min-width: 768px) {
  .hero__percent-img {
    width: min(100%, 300px);
  }
}

.hero__jackpot {
  margin: 0 0 var(--space-md);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__hint {
  margin: 0 0 var(--space-md);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(244, 242, 251, 0.78);
  max-width: 22rem;
}

.hero__cta--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 54px;
  padding: 18px 28px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(253, 224, 71, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%),
    url("images/button.webp") center / 100% auto no-repeat;
  box-shadow: 0 0 28px var(--color-magenta-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__cta--pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(255, 0, 127, 0.45);
  }
}

.hero__cta-bolt {
  font-size: 1.1rem;
  line-height: 1;
}

/* ----- Section titles ----- */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-title--inline {
  justify-content: space-between;
  flex-wrap: wrap;
}

.section-title__text {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title__gem {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: 0 0 20px currentColor;
}

.section-title__gem--magenta {
  background: linear-gradient(145deg, #ff00ff, #ff007f);
  color: #ff007f;
}

.section-title__gem--blue {
  background: linear-gradient(145deg, #38bdf8, #6366f1);
  color: #38bdf8;
}

.section-title__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
}

.section-title__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.section-kicker--right {
  margin: 0;
  align-self: center;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

/* ----- Promo cards ----- */
.promo-hub,
.promo-section {
  margin-bottom: var(--space-2xl);
}

.section-title--spaced {
  margin-top: var(--space-2xl);
}

.promo-hub .section-title--spaced + .section-lead {
  margin-top: var(--space-sm);
}

.promo-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .promo-grid {
    gap: var(--space-lg);
  }
}

.promo-grid--welcome {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .promo-grid--welcome {
    grid-template-columns: repeat(2, 1fr);
  }
}

.promo-grid--weekly {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .promo-grid--weekly {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promo-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-card-inner) 0%, var(--color-card) 100%);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-card-top), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 0, 127, 0.55), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.promo-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.promo-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.promo-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-card__thumb {
  flex-shrink: 0;
  width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.promo-card__thumb img {
  width: auto;
  max-width: 100%;
  max-height: 118px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
}

.promo-card__thumb--cover img {
  max-width: 132px;
  max-height: 118px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 768px) {
  .promo-card__thumb {
    width: 112px;
  }

  .promo-card__thumb img {
    max-height: 132px;
  }

  .promo-card__thumb--cover img {
    max-height: 132px;
  }
}

.promo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

.chip--slots {
  background: rgba(109, 40, 217, 0.5);
  border-color: rgba(196, 181, 253, 0.35);
  color: #fff;
}

.chip--wager {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.chip__icon--slot {
  width: 12px;
  height: 10px;
  border-radius: 2px;
  border: 2px solid currentColor;
  position: relative;
}

.chip__icon--slot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-top: 2px solid currentColor;
}

.promo-card__label {
  margin: var(--space-xs) 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff4daf;
  line-height: 1.25;
}

.promo-card__amount {
  margin: 0;
  font-size: clamp(0.95rem, 2.65vw, 1.32rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.promo-card .chip {
  font-size: 9px;
  padding: 3px 8px;
  letter-spacing: 0.035em;
}

.promo-card .cta-button--pill-dark {
  font-size: 11px;
  padding: 11px 16px;
}

.promo-card__chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

/* ----- Category cards ----- */
.category-section {
  margin-bottom: var(--space-2xl);
}

.category-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .category-card:hover .category-card__media img {
    transform: scale(1.04);
  }
}

.category-card__media {
  position: absolute;
  inset: 0;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  background: linear-gradient(180deg, transparent 20%, rgba(5, 5, 15, 0.92) 100%);
}

.category-card__title {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.category-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.category-card__cta {
  align-self: flex-start;
}

/* ----- Games grid ----- */
.games-section {
  margin-bottom: var(--space-2xl);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

@media (prefers-reduced-motion: no-preference) {
  .game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(61, 124, 255, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

.game-card__img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__meta {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(180deg, #121428, #0e0f1a);
}

.game-card__name {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__provider {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ----- Strips ----- */
.strip-section {
  text-align: center;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(26, 21, 48, 0.6);
  border: 1px solid var(--color-border-soft);
}

.strip-section--live-bg {
  background-image:
    linear-gradient(180deg, rgba(6, 5, 14, 0.88) 0%, rgba(6, 5, 14, 0.82) 100%),
    url("images/bg-games-live-casino.webp");
  background-size: cover;
  background-position: center;
}

.strip-section--sports-bg {
  background-image:
    linear-gradient(180deg, rgba(6, 5, 14, 0.88) 0%, rgba(6, 5, 14, 0.82) 100%),
    url("images/bg-games-sports.webp");
  background-size: cover;
  background-position: center;
}

.strip-section--live-bg .strip-section__text,
.strip-section--sports-bg .strip-section__text {
  color: rgba(244, 242, 251, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.strip-section__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Providers ----- */
.providers-strip {
  margin-bottom: var(--space-2xl);
}

.providers-strip__divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
  margin-bottom: var(--space-lg);
}

.providers-strip__diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #a855f7, #ff007f);
  box-shadow: 0 0 16px var(--color-magenta-glow);
}

.providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.provider-badge {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

/* ----- Footer ----- */
.footer {
  margin: 0 calc(-1 * var(--space-md)) 0;
  padding: var(--space-2xl) var(--space-md);
  background: linear-gradient(180deg, #06060f, #030308);
  border-top: 1px solid var(--color-border-soft);
}

@media (min-width: 768px) {
  .footer {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .footer__columns {
    text-align: center;
    justify-items: center;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__brand img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__heading {
    text-align: center;
  }

  .footer__links a {
    padding-left: 0;
    padding-right: 0;
  }

  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer__rg {
    justify-content: center;
  }
}

.footer__columns {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer__columns {
    grid-template-columns: 1.2fr repeat(4, 1fr);
  }
}

.footer__brand img {
  margin-bottom: var(--space-md);
}

.footer__brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.footer__heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.footer__links a {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-soft);
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer__rg {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}

.footer__18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-weight: 900;
  font-size: 11px;
}

.footer__copy {
  margin: 0;
}

/* ----- SEO / contenu éditorial (#seo-text) ----- */
.seo-text {
  min-height: 0;
  margin: 0;
}

.seo-article {
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) calc(var(--space-2xl) + env(safe-area-inset-bottom, 0));
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.65;
  border-top: 1px solid var(--color-border-soft);
  background: linear-gradient(180deg, rgba(12, 10, 28, 0.5) 0%, transparent 40%);
}

.seo-article__h1 {
  margin: 0 0 var(--space-xl);
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.seo-article__h2 {
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.25;
}

.seo-article__h1 + .seo-article__h2 {
  margin-top: var(--space-lg);
}

.seo-article__h3 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.seo-article p {
  margin: 0 0 var(--space-md);
}

.seo-table-wrap {
  margin: var(--space-2xl) 0;
}

.seo-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
}

.seo-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(15, 14, 30, 0.9);
}

.seo-table__caption {
  caption-side: top;
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
}

.seo-table th,
.seo-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-soft);
}

.seo-table th {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255, 0, 127, 0.08);
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Tableau SEO : tient dans la largeur du téléphone sans scroll horizontal */
@media (max-width: 767px) {
  .seo-table-scroll {
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
  }

  .seo-table {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: clamp(9px, 2.65vw, 11px);
    line-height: 1.35;
  }

  .seo-table__caption {
    font-size: clamp(9px, 2.5vw, 11px);
    padding: 6px 8px;
    line-height: 1.35;
  }

  .seo-table th,
  .seo-table td {
    padding: 5px 5px;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .seo-table th {
    font-size: clamp(8px, 2.35vw, 10px);
    letter-spacing: 0.02em;
    line-height: 1.3;
  }
}

.seo-faq {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-soft);
}

.seo-faq__list {
  margin: var(--space-lg) 0 0;
}

.seo-faq__item {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: rgba(15, 14, 30, 0.45);
  overflow: hidden;
}

.seo-faq__item:last-child {
  margin-bottom: 0;
}

.seo-faq__list dd {
  margin-inline-start: 0;
}

.seo-faq__q {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
}

.seo-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.seo-faq__trigger::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-accent-soft);
  border-bottom: 2px solid var(--color-accent-soft);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.28s ease;
}

.seo-faq__trigger:hover,
.seo-faq__trigger:focus-visible {
  background: rgba(255, 0, 127, 0.08);
  color: #fff;
}

.seo-faq__item.is-open .seo-faq__trigger::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Panneau : animation hauteur via grille */
.seo-faq__a {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  border-top: 1px solid transparent;
}

.seo-faq__item.is-open .seo-faq__a {
  grid-template-rows: 1fr;
  border-top-color: var(--color-border-soft);
}

.seo-faq__a-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 var(--space-lg);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.seo-faq__item.is-open .seo-faq__a-inner {
  padding: var(--space-sm) var(--space-lg) var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  .seo-faq__a {
    transition: none;
  }

  .seo-faq__trigger::after {
    transition: none;
  }
}

/* ----- Mobile nav ----- */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-nav);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: var(--space-sm) var(--space-xs) calc(var(--space-sm) + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.95), #050508);
  border-top: 1px solid var(--color-border-soft);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-xs);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-align: center;
  min-width: 0;
}

.mobile-nav__item.is-active {
  color: var(--color-text);
}

.mobile-nav__item--cta {
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
}

.mobile-nav__icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.72;
}

.mobile-nav__item.is-active .mobile-nav__icon-img {
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--color-accent));
}

.mobile-nav__fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-top: -28px;
  background: linear-gradient(180deg, var(--color-accent-soft), var(--color-accent));
  box-shadow: 0 8px 24px var(--color-magenta-glow);
  position: relative;
}

.mobile-nav__fab--icon {
  display: grid;
  place-items: center;
}

.mobile-nav__fab--icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mobile-nav__fab--icon::before,
.mobile-nav__fab--icon::after {
  display: none;
}

/* ----- Overlay + drawer ----- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(2, 3, 12, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-drawer);
  width: min(88vw, 360px);
  height: 100%;
  height: 100dvh;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + env(safe-area-inset-top, 0));
  background: linear-gradient(180deg, #101125 0%, #080812 100%);
  border-right: 1px solid var(--color-border-soft);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.26s ease, visibility 0.26s ease;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer {
    transition: none;
  }
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.drawer-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
}

.drawer-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-drawer .sidebar__promo {
  margin-bottom: var(--space-md);
}

.mobile-drawer .sidebar__nav {
  margin-bottom: var(--space-lg);
}

.mobile-drawer .sidebar__popular {
  margin-top: 0;
  padding-top: 0;
}

.mobile-drawer__footer {
  margin-top: var(--space-xl);
}

body.drawer-open {
  overflow: hidden;
}

/* ============================================================
   Mine Game
   ============================================================ */
.mine-section {
  margin-bottom: var(--space-xl);
}

.mine-section__sub {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.mine-section__sub strong {
  color: var(--color-text);
}

/* Canvas wrapper */
.mine-canvas-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.25),
    0 0 48px rgba(124, 58, 237, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.55);
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.mine-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Start overlay */
.mine-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: rgba(7, 8, 24, 0.18);
  transition: opacity 0.35s ease;
  overflow: hidden;
}

/* Cover image — fills the whole overlay */
.mine-overlay__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Gradient scrim over the cover so text stays readable */
.mine-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(5, 6, 18, 0.72) 70%,
    rgba(5, 6, 18, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Content sits on top of cover + scrim */
.mine-overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  width: 100%;
  text-align: center;
}

@keyframes mine-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}

.mine-overlay__title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.mine-overlay__hint {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 260px;
  line-height: 1.5;
}

/* Win modal */
.mine-win {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: var(--space-md);
}

.mine-win.is-visible {
  opacity: 1;
  pointer-events: all;
}

.mine-win__card {
  position: relative;
  background: linear-gradient(155deg, #1c1040 0%, #0d0b1e 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 64px rgba(245, 158, 11, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mine-win.is-visible .mine-win__card {
  transform: scale(1) translateY(0);
}

/* Sparks */
.mine-win__sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.mine-win__sparks span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  animation: mine-spark 2.2s ease-in-out infinite;
}

.mine-win__sparks span:nth-child(1) { left: 12%; top: 18%; animation-delay: 0s;    background: #fbbf24; }
.mine-win__sparks span:nth-child(2) { left: 82%; top: 12%; animation-delay: 0.44s; background: #a78bfa; }
.mine-win__sparks span:nth-child(3) { left: 50%; top:  8%; animation-delay: 0.88s; background: #34d399; }
.mine-win__sparks span:nth-child(4) { left: 18%; top: 78%; animation-delay: 1.32s; background: #f472b6; }
.mine-win__sparks span:nth-child(5) { left: 78%; top: 82%; animation-delay: 1.76s; background: #fbbf24; }

@keyframes mine-spark {
  0%   { transform: scale(0) rotate(0deg);   opacity: 0; }
  30%  { transform: scale(1) rotate(90deg);  opacity: 1; }
  100% { transform: scale(0) rotate(200deg) translateY(-28px); opacity: 0; }
}

.mine-win__gems {
  font-size: 30px;
  letter-spacing: 10px;
  margin-bottom: var(--space-sm);
  animation: mine-gems-pulse 1.6s ease-in-out infinite;
}

@keyframes mine-gems-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(147,197,253,0.6)); transform: scale(1); }
  50%       { filter: drop-shadow(0 0 18px rgba(147,197,253,1));  transform: scale(1.07); }
}

.mine-win__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: var(--space-xs);
}

.mine-win__title {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.mine-win__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(140deg, #92400e 0%, #d97706 100%);
  border-radius: var(--radius-md);
  padding: var(--space-md) calc(var(--space-xl) + 8px);
  margin-bottom: var(--space-md);
  box-shadow: 0 0 28px rgba(217, 119, 6, 0.5);
}

.mine-win__pct {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 900;
  color: #fef08a;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(254, 240, 138, 0.5);
}

.mine-win__badge-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(254, 240, 138, 0.85);
}

.mine-win__detail {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.mine-win__detail strong {
  color: #fbbf24;
}

.mine-win__cta {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.mine-win__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}

.mine-win__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
