:root {
  --bg: #0b0f0c;
  --surface: #141a16;
  --surface-2: #1a221c;
  --border: #2a3a2e;
  --text: #f4f7f5;
  --muted: #9aa89e;
  --accent: #8bff2a;
  --accent-2: #c8ff7a;
  --cta-text: #0b0f0c;
  --radius: 14px;
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--cta-text);
  padding: 8px 16px;
  z-index: 100;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 12, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner,
.slide__inner,
.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
}

/* height drives the size, the width follows: the wordmark carries a descender,
   so 24px of total ink matches the cap height of the buttons next to it */
.logo img {
  display: block;
  width: auto;
  height: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* padding is 1px shorter than .btn-cta so the border keeps both the same height */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 0 24px rgba(139, 255, 42, 0.22);
}

.btn-cta:hover {
  color: var(--cta-text);
  background: var(--accent-2);
}

.btn-cta--block {
  margin-top: 28px;
}

.slide {
  display: flex;
  align-items: flex-start;
  padding: calc(var(--header-h) + 32px) 0 56px;
}

.slide--alt {
  background: var(--surface);
}

.slide--hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(139, 255, 42, 0.12), transparent 40%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.lead,
.muted {
  color: var(--muted);
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 20px 0 0;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.note strong {
  color: var(--accent);
}

.note .steps {
  margin: 10px 0 0;
}

/* the arithmetic behind a figure: one step below the body text, same treatment
   as a second paragraph inside .note */
.aside {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-figure {
  margin: 0;
}

.hero-figure img,
.media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.media {
  margin: 24px 0;
}

/* Crop of two lobby buttons: full-width would blow a 192 px snippet up to 1070 */
.media--snippet {
  max-width: 192px;
}

.conditions-figure {
  margin: 28px 0 8px;
}

.conditions-figure img {
  width: 100%;
  height: auto;
  background: var(--bg);
}

.sommaire {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sommaire__titre {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sommaire__liste {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sommaire__liste a {
  text-decoration: none;
  font-weight: 600;
}

.sommaire__liste a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

caption {
  text-align: left;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--border);
}

th {
  background: var(--surface-2);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: rgba(26, 34, 28, 0.55);
}

.promo-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}

/* cards are anchor targets from other sections; .slide already clears the
   sticky header with its own top padding, cards do not */
.promo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

.promo-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

.badge-ok::before {
  content: "✓";
  font-weight: 700;
}

.promo-meta sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

.bonus-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  margin: 24px 0;
}

.bonus-game {
  grid-row: 1 / span 2;
  margin: 0;
}

/* Single block in the right column: spanning two rows would create an empty
   second row that stretches the grid */
.bonus-layout--single .bonus-game {
  grid-row: 1;
}

/* Carré imposé : les visuels des cartes ont des proportions d’origine
   différentes, le cadrage se fait ici pour que toutes les cartes s’alignent */
.bonus-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.bonus-game figcaption,
.conditions-figure figcaption,
.media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.bonus-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tier {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.tier--top {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(139, 255, 42, 0.12);
}

.tier p {
  margin: 0;
}

.tier__label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier__value {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-top: 6px;
}

.tier__note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.tier--low .tier__value {
  color: var(--text);
}

.tier__foot {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec {
  background: var(--surface);
  padding: 14px 18px;
}

/* Odd number of specs: the last one fills the row instead of leaving a gap
   showing the grid's border background */
.spec:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.spec dt {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.spec dd {
  margin: 0;
  font-weight: 600;
}

.spec strong {
  color: var(--accent);
}

/* second line of a spec: the detail that would otherwise need a third table
   column, cut off on a phone */
.spec .spec__note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 24px;
  padding: 22px 24px;
  list-style: none;
  counter-reset: timeline-step;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* direct-child selectors only: nested .timeline__rules items must not
   inherit the step dot or the connector segment */
.timeline > li {
  position: relative;
  counter-increment: timeline-step;
  padding-top: 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* segment bridging the 16px grid gap, stopping short of the next marker */
.timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 30px;
  right: -10px;
  height: 2px;
  background: var(--border);
}

.timeline > li::before {
  content: counter(timeline-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cta-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.timeline__label {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.timeline__time {
  display: block;
}

.timeline__rules {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.timeline__rules li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.timeline__rules li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

.timeline__rules strong {
  color: var(--accent);
}

.steps-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.steps {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
}

.steps li {
  margin-bottom: 4px;
}

.providers {
  --logo-w: 80px;
  --logo-h: 40px;
  --tile-pad: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the logos are dark artwork on transparency, so the tiles carry a light
   background: recolouring them to white destroys the ones drawn as a coloured
   plate with knocked-out lettering */
.providers li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--logo-h) + var(--tile-pad) * 2);
  background: #e9ede9;
  border-radius: 10px;
  padding: var(--tile-pad) 8px;
}

.providers img {
  display: block;
  width: var(--logo-w);
  height: var(--logo-h);
  object-fit: contain;
}

/* studios with no logo available yet: the name set in the page font sits in a
   tile of the same size, so the grid keeps its rhythm */
.providers .is-name {
  color: #1a221c;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
}

/* covers are 2:3 portraits; 190px lands on five per row inside a card, so the
   ten titles of the lobby fill two rows without a ragged end */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.games:last-child {
  margin-bottom: 0;
}

.games li {
  position: relative;
}

.games img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* the lobby tags its own tiles the same way, so the badge reads as a quote of
   the interface rather than as our own classification */
.games__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--cta-text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.games__tag--new {
  background: rgba(11, 15, 12, 0.85);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.games__name {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* line under a cover: the RTP where the lobby shows it, otherwise the price of
   the bonus buy and the studio */
.games__rtp,
.games__meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* touch devices have no hover, so the button stays a plain pill under the tile */
.games__btn {
  display: flex;
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

/* with a real pointer, the button becomes an overlay covering the artwork: the
   aspect-ratio matches the 2:3 cover, so 100% width lands exactly on its box.
   `pointer: fine` keeps hybrid tablets that claim hover out of it */
@media (hover: hover) and (pointer: fine) {
  .games__btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 2 / 3;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(11, 15, 12, 0.6);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  /* outline only: the label has to stay readable through it */
  .games__btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    height: 38px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--accent);
    border-radius: 999px;
  }

  .games li:hover .games__btn,
  .games__btn:focus-visible {
    opacity: 1;
  }

  .games__btn:hover {
    border: 0;
    color: var(--accent);
  }
}

@media (max-width: 700px) {
  /* both buttons plus the logo have to fit a 360px header */
  .header-actions {
    gap: 8px;
  }

  .logo img {
    height: 21px;
  }

  /* two columns would stretch the wall over 2000px of scrolling */
  .providers {
    --logo-w: 66px;
    --logo-h: 33px;
    --tile-pad: 9px;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .providers .is-name {
    font-size: 0.7rem;
  }

  /* three columns would shrink the covers below their baked-in titles */
  .games {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .header-actions .btn-cta,
  .header-actions .btn-ghost {
    padding: 9px 14px;
    font-size: 0.85rem;
  }

  /* the mobile source is a crop of the side menu: full width would make a list
     of ten links as tall as the screen */
  .media--menu img {
    display: block;
    width: 240px;
    margin: 0 auto;
  }

  .bonus-layout,
  .bonus-tiers,
  .specs {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }

  .timeline > li:not(:last-child)::after {
    display: none;
  }

  .timeline > li {
    padding: 0 0 0 34px;
  }

  .timeline > li::before {
    top: 0;
  }

  .bonus-game img {
    max-width: 280px;
  }

  .promo .btn-cta--block {
    width: 100%;
  }

  .faq-item table {
    min-width: 0;
  }
}

.formula {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 1.15rem;
}

.formula strong {
  color: var(--accent);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.review__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cta-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.rating {
  color: var(--accent);
  font-weight: 700;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--muted);
}

.faq-item ul {
  margin: 0;
  padding: 0 20px 16px 40px;
  color: var(--muted);
}

.faq-item .table-wrap {
  margin: 0 20px 16px;
}

.faq-item li {
  margin-bottom: 6px;
}

#promotions > .slide__inner > .bonus-tiers {
  margin-bottom: 20px;
}

.promo .faq-item {
  background: var(--surface-2);
  margin: 20px 0;
}

.promo .btn-cta--block {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  background: var(--surface);
}

.legal {
  color: var(--muted);
  font-size: 0.88rem;
}

.sticky-cta {
  display: none;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--accent);
  color: var(--cta-text);
}

@media (max-width: 900px) {
  .hero-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

  /* clears the fixed .sticky-cta bar sitting at bottom: 12px */
  .to-top {
    right: 14px;
    bottom: 84px;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    text-align: center;
  }

  .sticky-cta .btn-cta {
    width: 100%;
  }

  body {
    padding-bottom: 76px;
  }
}
