:root {
  --bg: #000000;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --panel-3: #242424;
  --border: #2a2a2a;
  --muted: #9a9a9a;
  --text: #f5f5f5;
  --gold-a: #ffe066;
  --gold-b: #d4a012;
  --gold-c: #8a6a0a;
  --accent: #e8c547;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --rail-w: 268px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  background: var(--gold-b);
  color: #000;
  border-radius: 8px;
  z-index: 2000;
}

.skip-link:focus {
  left: 12px;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1408 0%, #000 55%);
}

.main-shell {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  display: flex;
  flex-direction: column;
}

/* Side rail — desktop */
.side-rail {
  display: none;
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: var(--rail-w);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 12px 20px;
  background: linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
  border-right: 1px solid var(--border);
  flex-direction: column;
  gap: 12px;
}

.side-rail__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 8px;
}

.side-rail__collapse {
  display: none;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1a1a1a;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rail-fab {
  display: none;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  width: 28px;
  height: 72px;
  border: 1px solid #333;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #2a2a2a, #121212);
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1023px) {
  .rail-fab {
    display: none !important;
  }
}

body.is-rail-collapsed .side-rail {
  display: none !important;
}

body.is-rail-collapsed .rail-fab {
  display: flex;
}

.side-rail__logo img {
  width: 140px;
  height: auto;
}

.side-rail__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.side-rail__promo-text {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.side-rail__promo img {
  width: 96px;
  height: auto;
  border-radius: 8px;
}

.side-rail__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.side-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
}

.side-rail__link:hover,
.side-rail__link:focus-visible {
  color: var(--text);
  background: #111;
}

.side-rail__link.is-active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(232, 197, 71, 0.12), #151515 40%);
  border-color: rgba(232, 197, 71, 0.35);
  box-shadow: inset 3px 0 0 var(--accent);
}

.side-rail__ico {
  display: flex;
  opacity: 0.85;
}

.side-rail__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.action-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #222, #161616);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
}

a.action-pill:hover,
.action-pill:hover {
  border-color: #444;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  max-width: 1600px;
  margin: 0 auto;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__menu {
  display: inline-flex;
}

.header__logo img {
  width: 108px;
  height: auto;
}

.header__search {
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #121212;
  border: 1px solid #2f2f2f;
}

.header__search-ico {
  opacity: 0.7;
  display: flex;
}

.header__search-input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.header__search-input::placeholder {
  color: #7a7a7a;
}

.header__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111;
  cursor: pointer;
}

.icon-btn:focus-visible,
.cta-button:focus-visible,
.category-tile:focus-visible,
.promo-filters__pill:focus-visible,
.bonus-choice__opt:focus-visible,
.jackpot-tile:focus-visible,
.games-row__nav:focus-visible,
.drawer__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cta-button {
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.cta-button--dark {
  background: linear-gradient(180deg, #2a2a2a, #151515);
  color: var(--text);
  border: 1px solid #333;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-button--gold {
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffeaa3 0%, #e8c547 38%, #b8890f 100%);
  border: 2px solid #a67c00;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(232, 197, 71, 0.22);
}

.cta-button--header {
  padding: 10px 12px;
  font-size: 10px;
}

.cta-button--hero {
  width: 100%;
  padding: 16px 18px;
  font-size: 13px;
  border-radius: 16px;
}

.cta-button--block {
  width: 100%;
  padding: 16px;
  font-size: 13px;
}

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

/* Mobile tabs */
.mobile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: #050505;
}

.mobile-tabs__tab {
  text-align: center;
  padding: 12px 6px;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.mobile-tabs__tab.is-active {
  color: var(--text);
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 0 12px 8px;
  max-width: 1600px;
  margin: 0 auto;
}

.hero__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #2a2410;
  background: #000;
  min-height: 200px;
}

.hero__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero__slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.hero__media {
  display: block;
  text-decoration: none;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero__content {
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, #0a0a0a, #000);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 5.5vw, 28px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.hero__arrow {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111;
  color: var(--text);
  cursor: pointer;
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #444;
  cursor: pointer;
}

.hero__dot.is-active {
  background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
}

/* Categories */
.category-tiles-wrap {
  padding: 10px 12px 6px;
  max-width: 1600px;
  margin: 0 auto;
}

.category-tiles {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-tiles--desktop {
  display: none;
}

.category-tile {
  flex: 0 0 auto;
  min-width: 92px;
  max-width: 110px;
  padding: 10px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1f1f1f, #121212);
  border: 1px solid #2c2c2c;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  font: inherit;
}

.category-tile--sq {
  min-width: 48px;
  max-width: 48px;
  padding: 10px;
}

.category-tile__ico {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.9;
}

.category-tile__lbl {
  display: block;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6d6d6;
}

/* Games */
.games-section {
  padding: 16px 0 8px;
  max-width: 1600px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 10px;
}

.section-head--tight {
  padding-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title--center {
  text-align: center;
  padding: 8px 12px 0;
}

.section-link {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.games-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}

.games-row__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.games-row__track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 4px 4px 10px;
  scroll-snap-type: x mandatory;
}

.games-row__viewport::-webkit-scrollbar {
  height: 4px;
}

.games-row__viewport::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.games-row__track::-webkit-scrollbar {
  display: none;
}

.games-row__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #141414;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.game-card {
  position: relative;
  flex: 0 0 46%;
  min-width: 140px;
  max-width: 170px;
  scroll-snap-align: start;
}

.game-card--sm {
  flex: 0 0 42%;
  min-width: 120px;
  max-width: 150px;
}

.game-card__link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.game-card__link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.game-card__rank {
  position: absolute;
  left: 6px;
  bottom: 36px;
  font-size: clamp(34px, 10vw, 52px);
  font-weight: 900;
  color: rgba(232, 197, 71, 0.35);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.game-card__badge {
  position: absolute;
  top: 8px;
  right: 36px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
  color: #000;
}

.game-card__badge--gold {
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
  color: #000;
}

.game-card__badge--pink {
  background: linear-gradient(90deg, #ff6fb7, #a45bff);
  color: #fff;
}

.game-card__fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #333;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.game-card__jp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
  border-top: 1px solid #8a6a0a;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
  align-items: start;
}

.games-grid .game-card,
.games-grid .game-card--sm {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
}

/* Wins carousel */
.wins-carousel {
  padding: 8px 12px 18px;
  max-width: 1600px;
  margin: 0 auto;
}

.wins-carousel__controls {
  display: flex;
  gap: 6px;
}

.wins-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0a0a0a;
}

.wins-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.wins-item {
  flex: 0 0 calc((100% - 32px) / 2);
  padding: 10px;
  border-right: 1px solid #1f1f1f;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.wins-item:last-child {
  border-right: 0;
}

.wins-item__cover {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
}

.wins-item__cover img {
  width: 100%;
  height: 56px;
  object-fit: cover;
}

.wins-item__nick {
  font-size: 11px;
  color: #cfcfcf;
  margin-bottom: 2px;
}

.wins-item__meta {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.wins-item__win {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
}

/* Promotions */
.promotions-block {
  padding: 18px 12px 8px;
  max-width: 1600px;
  margin: 0 auto;
}

.promotions-block__title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.promo-filters__pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #333;
  background: #121212;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.promo-filters__pill.is-active {
  color: var(--text);
  border-color: #f0f0f0;
  background: #1c1c1c;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.promo-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #101010;
  box-shadow: var(--shadow);
}

.promo-card.is-hidden {
  display: none;
}

.promo-card__media {
  display: block;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 16 / 10;
  position: relative;
  isolation: isolate;
}

.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.promo-card__body {
  padding: 14px 14px 16px;
  position: relative;
}

.promo-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
  color: #000;
  margin-bottom: 10px;
}

.promo-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-card__cta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Specials */
.specials {
  padding: 10px 12px 8px;
  max-width: 1600px;
  margin: 0 auto;
}

.specials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 8px;
}

.special-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
}

.special-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 13 / 7;
  background: #0a0a0a;
  position: relative;
  isolation: isolate;
}

.special-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

/* When a portrait-oriented image lives inside a landscape card slot,
   show it fully (object-fit: contain) and fill the empty sides with a
   blurred, dimmed copy of the same image for a clean photo-booth look. */
.card-media--portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.1) brightness(0.55);
  transform: scale(1.18);
  z-index: 0;
}

.card-media--portrait img {
  object-fit: contain !important;
  object-position: center !important;
}

.special-card__body {
  padding: 16px;
}

.special-card__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
  color: #000;
  margin-bottom: 10px;
}

.special-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
}

.special-card__cta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Jackpots */
.jackpots {
  padding: 12px 12px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.jackpots__tiles {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.jackpot-tile {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #151515;
  border: 1px solid #2c2c2c;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #e2e2e2;
}

.jackpot-tile__ico {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  opacity: 0.85;
}

.jackpot-tile.is-active {
  border-color: rgba(232, 197, 71, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.25);
}

.jackpot-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.jackpot-card {
  position: relative;
  flex: 0 0 42%;
  min-width: 120px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  background: #000;
}

.jackpot-card a {
  display: block;
}

.jackpot-card img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
}

.jackpot-card__badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
  color: #000;
}

.jackpot-card__amt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffeaa3, #c9970a);
}

.seo-text {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 36px;
  border-top: 1px solid var(--border);
  font-weight: 500;
  color: #c4c4c4;
  font-size: 15px;
  line-height: 1.55;
}

.seo-text__h1 {
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
}

.seo-text__h2 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
}

.seo-text__h2:first-of-type {
  margin-top: 8px;
}

.seo-text__h3 {
  margin: 22px 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #eaeaea;
}

.seo-text p {
  margin: 0 0 14px;
}

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

/* Footer — accordéon + paiements + légal (réf. mobile) */
.site-footer {
  border-top: 1px solid #1f1f1f;
  background: #121212;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
}

.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
}

.footer-accordion__item {
  border-top: 1px solid #1a1a1a;
}

.footer-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 16px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2f2f2;
  user-select: none;
}

.footer-accordion__summary::-webkit-details-marker {
  display: none;
}

.footer-accordion__summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9a9a9a;
  border-bottom: 2px solid #9a9a9a;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.footer-accordion__item[open] .footer-accordion__summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

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

.footer-accordion__panel {
  padding: 0 0 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-accordion__link {
  font-size: 13px;
  font-weight: 600;
  color: #bdbdbd;
  padding: 4px 0;
}

.footer-accordion__link:hover,
.footer-accordion__link:focus-visible {
  color: #fff;
}

.footer-accordion__flat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 16px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2f2f2;
  border-top: 1px solid #1a1a1a;
}

.footer-accordion__flat:hover,
.footer-accordion__flat:focus-visible {
  color: var(--accent);
}

.footer-payments {
  padding: 20px 0 8px;
  text-align: center;
}

.footer-payments__label {
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
}

.payment-pill img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
}

.payment-pill--more {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding-inline: 18px;
}

.footer-legal {
  text-align: center;
  padding: 20px 12px 0;
  max-width: 520px;
  margin: 0 auto;
}

.footer-legal__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 2px solid #e8e8e8;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.footer-legal__warn {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  color: #9a9a9a;
}

.footer-legal__copy {
  margin: 0;
  font-size: 11px;
  color: #7a7a7a;
  font-weight: 500;
}

/* Drawer — [hidden] doit primer sur display:flex (sinon le menu reste ouvert) */
.mobile-drawer[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  visibility: visible;
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: transparent;
}

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

.drawer__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  max-width: 100%;
  background: #000;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.55);
}

.drawer__top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid #1a1a1a;
}

.drawer__title {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 14px;
}

.drawer__auth {
  display: flex;
  gap: 6px;
}

.drawer__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #151515;
  border: 1px solid #2c2c2c;
}

.drawer__search-ico {
  opacity: 0.75;
}

.drawer__search-input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 500;
}

.drawer__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #121212;
  border: 1px solid #2a2a2a;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer__promo img {
  width: 120px;
  height: auto;
  border-radius: 8px;
}

.drawer__nav {
  flex: 1;
  overflow: auto;
  padding: 4px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer__nav-link {
  padding: 12px 12px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcfcf;
  border: 1px solid transparent;
}

.drawer__nav-link.is-active {
  color: var(--accent);
  background: #141414;
  border-color: rgba(232, 197, 71, 0.35);
  box-shadow: inset 4px 0 0 var(--accent);
}

.drawer__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #1a1a1a;
  margin-top: auto;
  align-items: stretch;
}

.drawer__big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid #333;
  background: linear-gradient(180deg, #242424, #121212);
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  font: inherit;
  font-weight: 800;
}

.drawer__close {
  border: 1px solid #333;
  background: #111;
}

/* Modals */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(480px, 100%);
  border-radius: 16px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, #121212, #0a0a0a);
  border: 1px solid #2f2f2f;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid #333;
  background: #101010;
  color: #fff;
}

.login-modal__title,
.bonus-choice__title {
  margin: 0 40px 16px 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-modal__label {
  font-size: 12px;
  color: #eaeaea;
}

.login-modal__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: var(--text);
}

.login-modal__input::placeholder {
  color: #6f6f6f;
  font-weight: 500;
}

.login-modal__pw {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #0d0d0d;
  padding-right: 6px;
}

.login-modal__pw .login-modal__input {
  border: 0;
  background: transparent;
}

.login-modal__toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #bbb;
  display: flex;
  padding: 6px;
}

.login-modal__forgot {
  font-size: 12px;
  text-decoration: underline;
  color: #eaeaea;
  font-weight: 600;
}

.login-modal__footer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: #cfcfcf;
}

.link-gold {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

a.link-gold {
  display: inline;
  color: var(--accent);
}

.bonus-choice__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bonus-choice__opt {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid #2c2c2c;
  background: #151515;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  appearance: none;
  font: inherit;
}

.bonus-choice__opt.is-active {
  border-color: rgba(232, 197, 71, 0.85);
  background: linear-gradient(90deg, rgba(232, 197, 71, 0.12), #151515);
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.2);
}

.bonus-choice__ico {
  color: var(--accent);
  display: flex;
  justify-content: center;
}

.bonus-choice__ico--muted {
  color: #666;
}

.bonus-choice__opt.is-active .bonus-choice__ico--muted {
  color: var(--accent);
}

.bonus-choice__k {
  display: block;
  font-size: 11px;
  color: #bdbdbd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bonus-choice__v {
  display: block;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bonus-choice__text--single {
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  color: #8c8c8c;
}

.bonus-choice__opt.is-active .bonus-choice__text--single {
  color: #e6e6e6;
}

.bonus-choice__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #444;
  justify-self: end;
  position: relative;
}

.bonus-choice__opt.is-active .bonus-choice__radio {
  border-color: var(--accent);
}

.bonus-choice__opt.is-active .bonus-choice__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffeaa3, #b8890f);
}

.bonus-choice__foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: #cfcfcf;
}

.link-underline {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* Tablet */
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jackpot-card {
    flex: 0 0 22%;
    min-width: 130px;
  }

  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wins-item {
    flex: 0 0 calc((100% - 64px) / 5);
  }

  .game-card {
    flex: 0 0 28%;
    max-width: 200px;
  }

}

/* Desktop */
@media (min-width: 1024px) {
  .side-rail {
    display: flex;
  }

  .side-rail__collapse {
    display: inline-flex;
  }

  .main-shell {
    margin-left: 0;
  }

  .header__menu {
    display: none;
  }

  .header__search {
    display: flex;
  }

  .mobile-tabs {
    display: none;
  }

  .category-tiles--mobile {
    display: none !important;
  }

  .category-tiles--desktop {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px;
  }

  .category-tiles--desktop .category-tile {
    min-width: 104px;
    max-width: 120px;
  }

  .hero__slide {
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
  }

  .hero__media {
    flex: 1.15;
    min-height: 260px;
    overflow: hidden;
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    aspect-ratio: auto;
  }

  .hero__content {
    flex: 0.85;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 24px 28px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .game-card {
    flex: 0 0 18%;
    max-width: 200px;
  }

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

  .jackpot-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }

  .jackpot-card {
    flex: none;
    min-width: 0;
    scroll-snap-align: none;
  }

  .wins-item {
    flex: 0 0 calc((100% - 64px) / 5);
  }
}

/* ===== Polish & refinements ===== */

/* Smooth interactions on hoverable elements */
.cta-button,
.category-tile,
.promo-filters__pill,
.jackpot-tile,
.action-pill,
.drawer__big-btn,
.icon-btn,
.games-row__nav,
.hero__arrow,
.hero__dot {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.22s ease,
    color 0.18s ease,
    filter 0.18s ease;
}

.game-card__link,
.promo-card,
.special-card,
.jackpot-card,
.wins-item,
.hero__media {
  transition:
    transform 0.22s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

/* Hover lift for cards and banners */
.game-card__link:hover,
.jackpot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
  border-color: #3a3a3a;
}

.promo-card:hover,
.special-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.65);
  border-color: #3a3a3a;
}

.hero__viewport {
  overflow: hidden;
}

.hero__media {
  overflow: hidden;
}

.hero__media img {
  transition: transform 0.6s ease;
}

.hero__media:hover img {
  transform: scale(1.03);
}

.wins-item:hover {
  background: #101010;
}

/* Gold CTA — subtle polish on hover */
.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button--gold:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 12px 28px rgba(232, 197, 71, 0.3);
}

.cta-button--dark:hover {
  border-color: #4a4a4a;
  background: linear-gradient(180deg, #333, #1a1a1a);
}

/* Tile and pill hover */
.category-tile:hover {
  border-color: #3e3e3e;
  background: linear-gradient(180deg, #262626, #161616);
}

.jackpot-tile:hover {
  border-color: rgba(232, 197, 71, 0.35);
  color: var(--text);
}

.promo-filters__pill:hover {
  color: var(--text);
  border-color: #555;
}

.games-row__nav:hover,
.icon-btn:hover,
.hero__arrow:hover {
  border-color: #4a4a4a;
  background: #1c1c1c;
}

.footer-accordion__link {
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-accordion__link:hover {
  transform: translateX(2px);
}

/* Category tile labels — slightly bigger so they are readable */
.category-tile__lbl {
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* Align games row with section head (both at 12px) */
.games-row {
  padding: 0 12px;
  gap: 8px;
}

/* Wins carousel — better thumb proportions */
.wins-item {
  grid-template-columns: 56px 1fr;
  padding: 12px 12px;
  gap: 12px;
}

.wins-item__cover img {
  height: auto;
  aspect-ratio: 3 / 2;
  width: 100%;
}

/* Hero CTA — don't span the whole content column on large screens */
@media (min-width: 1024px) {
  .cta-button--hero {
    width: auto;
    min-width: 240px;
    max-width: 320px;
    padding: 16px 28px;
  }

  /* Avoid duplicated logo on desktop — side-rail already has the brand */
  .header__logo {
    display: none;
  }

  /* Tighten header paddings and add breathing room */
  .site-header__inner {
    padding: 12px 20px;
    gap: 16px;
  }

  /* Footer: convert accordion to multi-column grid on desktop */
  .site-footer {
    padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  }

  .site-footer__inner {
    max-width: 1200px;
    padding: 0 24px;
  }

  .footer-accordion {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 32px;
    align-items: start;
  }

  .footer-accordion__item,
  .footer-accordion__flat {
    border-top: 0;
  }

  .footer-accordion__summary {
    padding: 0 0 12px;
    pointer-events: none;
    cursor: default;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #f2f2f2;
  }

  .footer-accordion__summary::after {
    display: none;
  }

  .footer-accordion__item > .footer-accordion__panel {
    padding: 0;
  }

  .footer-accordion__flat {
    padding: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .footer-accordion__link {
    font-size: 12px;
    padding: 2px 0;
  }

  .footer-payments {
    padding: 28px 0 8px;
    border-top: 1px solid #1a1a1a;
    margin-top: 24px;
  }

  .footer-legal {
    max-width: 720px;
    padding-top: 24px;
  }
}

/* Mobile header — hide the secondary "Se connecter" so the primary CTA fits */
@media (max-width: 767px) {
  .header__action--login {
    display: none;
  }

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

/* ===== Mini-jeu "Attrape le furet" ===== */
.mole-game {
  padding: 14px 12px 8px;
  max-width: 1600px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.mole-game__inner {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid #2a2410;
  background:
    linear-gradient(180deg, #0e0a03 0%, #050505 100%),
    #050505;
  padding: 16px 14px 18px;
  overflow: hidden;
  isolation: isolate;
}

.mole-game__inner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(420px 260px at 12% 0%, rgba(232, 197, 71, 0.22), transparent 60%),
    radial-gradient(360px 240px at 92% 100%, rgba(232, 197, 71, 0.14), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.mole-game__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mole-game__info {
  min-width: 0;
}

.mole-game__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.mole-game__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 4.2vw, 26px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.mole-game__sub {
  margin: 0;
  font-size: 12px;
  color: #aeaeae;
  font-weight: 500;
  max-width: 520px;
}

.mole-game__stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.mole-stat {
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: linear-gradient(180deg, #141414, #0a0a0a);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mole-stat__lbl {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 700;
}

.mole-stat__val {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}

.mole-game__stage {
  position: relative;
  border-radius: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, #0a1a08 0%, #04100a 100%);
  border: 1px solid #1b2a18;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.02);
  image-rendering: pixelated;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.mole-game__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, transparent 95%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.02) 100%);
  background-size: 8px 8px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.mole-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.mole-hole {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mole-hole__rim {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  height: 22%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, #0d0604 0%, #1a0f08 60%, #241408 100%);
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.9),
    0 3px 0 #2a1a0b,
    0 6px 0 #1a0f08,
    0 9px 14px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.mole-hole__pit {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  height: 14%;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 1);
  z-index: 3;
}

/* The mole */
.mole-mole {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 68%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, 100%);
  opacity: 0;
  transition:
    transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1),
    opacity 0.12s ease-out;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 4;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45));
}

.mole-mole.is-up {
  transform: translate(-50%, -6%);
  opacity: 1;
  pointer-events: auto;
}

.mole-mole.is-hit {
  transform: translate(-50%, 100%) scale(0.7);
  opacity: 0;
  transition:
    transform 0.14s ease-in,
    opacity 0.14s ease-in;
  pointer-events: none;
}

/* Pixel-art mole — inline SVG rendered crisply */
.mole-mole::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='4' y='3' width='8' height='1' fill='%236b4226'/><rect x='3' y='4' width='10' height='1' fill='%236b4226'/><rect x='2' y='5' width='12' height='1' fill='%237a4e2c'/><rect x='2' y='6' width='12' height='1' fill='%237a4e2c'/><rect x='2' y='7' width='12' height='1' fill='%237a4e2c'/><rect x='2' y='8' width='12' height='1' fill='%237a4e2c'/><rect x='2' y='9' width='12' height='1' fill='%236b4226'/><rect x='3' y='10' width='10' height='1' fill='%236b4226'/><rect x='5' y='10' width='6' height='1' fill='%23a06a3d'/><rect x='4' y='11' width='8' height='1' fill='%236b4226'/><rect x='5' y='11' width='6' height='1' fill='%23a06a3d'/><rect x='5' y='12' width='2' height='1' fill='%232a1608'/><rect x='9' y='12' width='2' height='1' fill='%232a1608'/><rect x='4' y='6' width='2' height='2' fill='%23fff'/><rect x='10' y='6' width='2' height='2' fill='%23fff'/><rect x='5' y='6' width='1' height='2' fill='%23000'/><rect x='10' y='6' width='1' height='2' fill='%23000'/><rect x='5' y='6' width='1' height='1' fill='%233a88ff'/><rect x='10' y='6' width='1' height='1' fill='%233a88ff'/><rect x='7' y='8' width='2' height='1' fill='%23ff8aa0'/><rect x='7' y='10' width='1' height='1' fill='%23fff'/><rect x='8' y='10' width='1' height='1' fill='%23fff'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Golden mole variant */
.mole-mole--gold::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'><rect x='4' y='3' width='8' height='1' fill='%23d4a012'/><rect x='3' y='4' width='10' height='1' fill='%23d4a012'/><rect x='2' y='5' width='12' height='1' fill='%23e8c547'/><rect x='2' y='6' width='12' height='1' fill='%23e8c547'/><rect x='2' y='7' width='12' height='1' fill='%23e8c547'/><rect x='2' y='8' width='12' height='1' fill='%23e8c547'/><rect x='2' y='9' width='12' height='1' fill='%23d4a012'/><rect x='3' y='10' width='10' height='1' fill='%23d4a012'/><rect x='5' y='10' width='6' height='1' fill='%23ffeaa3'/><rect x='4' y='11' width='8' height='1' fill='%23d4a012'/><rect x='5' y='11' width='6' height='1' fill='%23ffeaa3'/><rect x='5' y='12' width='2' height='1' fill='%238a6a0a'/><rect x='9' y='12' width='2' height='1' fill='%238a6a0a'/><rect x='4' y='6' width='2' height='2' fill='%23fff'/><rect x='10' y='6' width='2' height='2' fill='%23fff'/><rect x='5' y='6' width='1' height='2' fill='%231a1004'/><rect x='10' y='6' width='1' height='2' fill='%231a1004'/><rect x='5' y='6' width='1' height='1' fill='%23ffd94d'/><rect x='10' y='6' width='1' height='1' fill='%23ffd94d'/><rect x='7' y='8' width='2' height='1' fill='%23ff8aa0'/><rect x='7' y='10' width='1' height='1' fill='%23fff'/><rect x='8' y='10' width='1' height='1' fill='%23fff'/></svg>");
}

.mole-mole--gold {
  filter: drop-shadow(0 0 12px rgba(232, 197, 71, 0.85)) drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45));
}

.mole-mole--gold::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 197, 71, 0.45) 0%, transparent 65%);
  animation: moleGlow 0.9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes moleGlow {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Floating points popup */
.mole-pop {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, 0);
  color: var(--accent);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(232, 197, 71, 0.6);
  pointer-events: none;
  animation: molePop 0.7s ease-out forwards;
  z-index: 6;
}

@keyframes molePop {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
  30% { transform: translate(-50%, -20px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -60px) scale(1); }
}

/* Overlay for idle/end states */
.mole-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(4, 8, 4, 0.55);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%),
    url("images/game-ban.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(2px);
  transition: opacity 0.25s ease;
  z-index: 8;
}

.mole-overlay[data-mole-state="playing"] {
  opacity: 0;
  pointer-events: none;
}

.mole-overlay__card {
  width: min(420px, 100%);
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: linear-gradient(180deg, #111, #050505);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 197, 71, 0.08);
}

.mole-overlay__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.mole-overlay__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.mole-overlay__text {
  margin: 0 0 16px;
  font-size: 13px;
  color: #c0c0c0;
  font-weight: 500;
}

.mole-overlay__btn {
  width: 100%;
  max-width: 280px;
  padding: 14px 18px;
  font-size: 12px;
}

.mole-overlay__link {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 71, 0.4);
  background: rgba(232, 197, 71, 0.08);
}

.mole-overlay__link[hidden] {
  display: none;
}

.mole-overlay__link:hover {
  background: rgba(232, 197, 71, 0.16);
  border-color: rgba(232, 197, 71, 0.7);
}

/* Responsive */
@media (max-width: 480px) {
  .mole-game__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .mole-stat {
    flex: 1;
  }

  .mole-game__stage {
    padding: 12px;
  }

  .mole-board {
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .mole-game__stage {
    padding: 24px;
  }

  .mole-board {
    max-width: 560px;
    gap: 14px;
  }
}
