/* ===================================================================
   pepe.fail — Casino UI
   Thème : Frog dorée (or lumineux) + boutons orange fluo (Rollbit)
   Typo   : Bricolage Grotesque (titres) + Space Grotesk (interface)
   =================================================================== */

:root {
  /* --- Fonds : navy très sombre échantillonné sur le fond du logo (#131724) --- */
  --bg-900: #080b12;
  --bg-800: #0d1017;  /* fond de page */
  --bg-750: #10131c;  /* sidebar + topbar */
  --bg-700: #161a26;  /* éléments surélevés */
  --bg-600: #1c2131;
  --panel: #131724;   /* = fond exact du logo */
  --panel-2: #181d2c;
  --hover: #1e2432;

  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);

  --text: #eaeeff;
  --text-dim: #9aa3d0;
  --text-mute: #6b74a6;

  /* --- OR (couleur de marque, tirée du logo) --- */
  --gold: #ffd21e;
  --gold-lo: #f5a623;
  --gold-hi: #ffe86b;
  --grad-gold: linear-gradient(180deg, #ffe86b 0%, #ffce1f 45%, #f5a623 100%);
  --glow-gold: 0 0 22px rgba(255, 200, 40, 0.45);

  /* --- ORANGE FLUO (secondaire, style Rollbit) --- */
  --orange: #ff7a00;
  --orange-hi: #ffb020;
  --orange-lo: #ff5c00;
  --grad-orange: linear-gradient(180deg, #ffb020 0%, #ff7a00 50%, #ff5c00 100%);
  --glow-orange: 0 0 20px rgba(255, 122, 0, 0.55);

  --green: #4ade80;
  --red: #ff4d6d;

  --radius: 12px;
  --radius-sm: 9px;
  --sidebar-w: 248px;
  --topbar-h: 64px;

  /* --- TYPOGRAPHIE --- */
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Space Grotesk", sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-800);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input { font-family: inherit; }

/* --- Titres : gros, bold, serrés --- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #242b3d; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #313a52; }

/* =========================== LAYOUT =========================== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas: "brand topbar" "sidebar main";
  height: 100vh;
}

/* =========================== BRAND / TOPBAR =========================== */
.brand {
  grid-area: brand;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  background: var(--bg-750);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Raw transparent PNG: no frame, no radius, no shadow. */
.brand__logo {
  width: 38px; height: 38px; object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px; letter-spacing: -0.04em;
}
.brand__name b {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  background: var(--bg-750);
  border-bottom: 1px solid var(--line);
}
.seg {
  display: flex; gap: 3px; padding: 4px;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seg__tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 7px;
  font-weight: 700; font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
}
.seg__ico { display: grid; place-items: center; width: 18px; height: 18px; flex: none; }
.seg__ico svg { width: 18px; height: 18px; }

.seg__tab:hover { color: var(--text); background: var(--hover); }
.seg__tab.active,
.seg__tab.active:hover {
  background: var(--grad-gold); color: #201800;
  box-shadow: var(--glow-gold);
}

/* --- Locked sections: real icon by default, padlock on hover ---
   Both live in the same 18px box, so the label never shifts. */
.seg__tab.is-locked { color: var(--text-mute); cursor: not-allowed; }
.seg__tab.is-locked:hover { background: var(--bg-700); color: var(--text-dim); }
.seg__lock {
  position: absolute;
  left: 16px;
  display: grid; place-items: center;
  width: 18px; height: 18px;
  opacity: 0;
  color: var(--gold);
}
.seg__lock svg { width: 15px; height: 15px; }
.seg__tab.is-locked:hover .seg__ico { opacity: 0; }
.seg__tab.is-locked:hover .seg__lock { opacity: 1; }
/* the swap itself is animated in anim.css */
.topbar__spacer { flex: 1; }

/* Wallet area: shell.js drops one or two buttons in here, so it has to lay
   them out itself — without this they stack and spill out of the topbar. */
.topbar__auth { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-dim);
  transition: 0.18s;
}
.icon-btn:hover { color: var(--gold); background: var(--hover); border-color: var(--line-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700; font-size: 14px;
  transition: transform 0.12s, box-shadow 0.18s, filter 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--hover); }
.btn--gold { background: var(--grad-gold); color: #201800; box-shadow: var(--glow-gold); }
.btn--gold:hover { filter: brightness(1.06); box-shadow: 0 0 30px rgba(255,200,40,.6); }
.btn--orange { background: var(--grad-orange); color: #2a1400; box-shadow: var(--glow-orange); }
.btn--orange:hover { filter: brightness(1.07); box-shadow: 0 0 30px rgba(255,122,0,.7); }
.btn--dark {
  background: var(--bg-700); border: 1px solid var(--line-2); color: var(--text);
}
.btn--dark:hover { background: var(--hover); border-color: var(--gold); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: 16px; border-radius: 12px; }

/* =========================== SIDEBAR =========================== */
.sidebar {
  grid-area: sidebar;
  background: var(--bg-750);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 14px 10px 40px;
}

.promo-card {
  position: relative;
  background: linear-gradient(135deg, #1c2233, #10131c);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

/* Banner strip across the top of the card. Cropped rather than scaled:
   the artwork is 2:1 and the strip is far wider than tall, so cover +
   a slightly high focal point keeps the figure and the machine in frame. */
.promo-card__banner {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: cover;
  object-position: center 42%;
}
/* fades the artwork into the card instead of ending on a hard line */
.promo-card__banner + .promo-card__body::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -26px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, #171d2b);
  pointer-events: none;
}

.promo-card__body {
  position: relative;
  padding: 13px 13px 13px 48px;
}
.promo-card__ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; color: var(--gold);
  filter: drop-shadow(0 0 7px rgba(255,200,40,.55));
}
.promo-card__amount { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.promo-card__label { font-size: 10px; font-weight: 700; letter-spacing: .6px; color: var(--gold); }
.promo-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--bg-800); border: 1px solid var(--line-2);
  color: var(--gold); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}

/* --- Rank progress ---------------------------------------------
   The one cool-toned element in a gold interface, so progress reads
   instantly as a different kind of thing from money. */
.rankbar {
  --slurp: #6fe3ff;
  --slurp-deep: #1fa8dd;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin-bottom: 16px;
}
.rankbar__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rankbar__ico { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: var(--slurp); }
.rankbar__ico svg { width: 100%; height: 100%; }
.rankbar__n { font-size: 13px; font-weight: 700; }
.rankbar__pct {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800; color: var(--slurp);
}

.rankbar__track {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: var(--bg-900);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.rankbar__fill {
  position: relative;
  height: 100%;
  /* a hairline of progress still needs room for the shine to read */
  min-width: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--slurp) 0%, var(--slurp-deep) 100%);
  box-shadow:
    0 0 12px rgba(111, 227, 255, .7),
    0 0 26px rgba(31, 168, 221, .45),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: width 420ms cubic-bezier(.25, .6, .2, 1);
  animation: slurp-breathe 2.8s ease-in-out infinite;
}

/* the liquid glows a little on its own, so the bar is alive at any width */
@keyframes slurp-breathe {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(111, 227, 255, .7),
      0 0 26px rgba(31, 168, 221, .45),
      inset 0 1px 0 rgba(255, 255, 255, .55);
  }
  50% {
    box-shadow:
      0 0 18px rgba(111, 227, 255, .95),
      0 0 38px rgba(31, 168, 221, .6),
      inset 0 1px 0 rgba(255, 255, 255, .75);
  }
}
/* pointer-tracked highlight; shell.js writes --mx on pointermove */
.rankbar__fill::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: radial-gradient(26px 130% at var(--mx, 50%) 50%, rgba(255, 255, 255, .6), transparent 72%);
  opacity: 0;
  transition: opacity 200ms var(--ease-soft, ease);
  pointer-events: none;
}
.rankbar:hover .rankbar__fill::before { opacity: 1; }
.rankbar:hover .rankbar__fill {
  box-shadow: 0 0 16px rgba(111, 227, 255, .8), 0 0 32px rgba(31, 168, 221, .45);
}
.rankbar__track { cursor: crosshair; }

/* A shine sweeping across the filled part. It is sized in pixels rather
   than percent so it reads the same whether the fill is 16px or 200px. */
.rankbar__fill::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, .15) 35%,
    rgba(255, 255, 255, .85) 50%,
    rgba(255, 255, 255, .15) 65%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 70px 100%;
  animation: slurp-flow 2.2s linear infinite;
  mix-blend-mode: screen;
}
@keyframes slurp-flow {
  from { background-position: -70px 0; }
  to   { background-position: calc(100% + 70px) 0; }
}

.rankbar__foot {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 8px;
  color: var(--text-mute);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em;
}

@media (prefers-reduced-motion: reduce) {
  .rankbar__fill { transition: none; animation: none; }
  .rankbar__fill::after { animation: none; opacity: .18; }
  .rankbar__fill::before { transition: none; }
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 600; font-size: 14px;
  transition: 0.15s; position: relative; cursor: pointer;
}
.nav__item:hover { background: var(--hover); color: var(--text); }
.nav__item:hover svg { color: var(--gold); }
.nav__item.active {
  background: linear-gradient(90deg, rgba(255,200,40,.14), transparent);
  color: var(--text);
}
.nav__item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--grad-gold);
  box-shadow: var(--glow-gold);
}
.nav__item.active svg { color: var(--gold); }
.nav__item svg { width: 19px; height: 19px; flex: none; transition: .15s; }
.nav__item .chev { margin-left: auto; transition: 0.2s; opacity: .6; width: 15px; height: 15px; }

.nav__group { margin-top: 4px; }

/* Sub-items sit clearly inside the group: indented, smaller, and hung off
   a thin rail that lines up under the parent icon. */
.nav__sub {
  display: flex; flex-direction: column;
  overflow: hidden; max-height: 0;
  margin: 0 0 0 21px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  transition: max-height 0.3s ease;
}
.nav__group.open .nav__sub { max-height: 420px; }
.nav__group.open > .nav__item .chev { transform: rotate(180deg); }
.nav__sub .nav__item { padding: 8px 10px; font-size: 13.5px; gap: 9px; }
.nav__sub .nav__item svg { width: 16px; height: 16px; }
/* the rail already marks the group, so the active bar hugs the item */
.nav__sub .nav__item.active::before { left: -13px; }

.nav__divider { height: 1px; background: var(--line); margin: 12px 6px; }

/* --- $FAIL token: a full gold line, the one loud entry in the menu --- */
.nav__item--token {
  margin-top: 6px;
  background: var(--grad-gold);
  color: #201800;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(255, 200, 40, 0.22);
}
.nav__item--token svg { color: #201800; }
.nav__item--token:hover {
  background: var(--grad-gold);
  color: #201800;
  filter: brightness(1.06);
  box-shadow: 0 0 26px rgba(255, 200, 40, 0.34);
}
.nav__item--token:hover svg { color: #201800; }
/* the gold fill already marks it, so the active bar would only muddy it */
.nav__item--token.active { background: var(--grad-gold); color: #201800; }
.nav__item--token.active::before { display: none; }
.nav__item--token.active svg { color: #201800; }

.badge-pill {
  margin-left: auto; font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
  background: var(--bg-800); border: 1px solid var(--line-2);
  color: var(--text-dim); letter-spacing: .3px;
}
.badge-pill--gold { color: #201800; background: var(--grad-gold); border: none; }
.badge-pill--live { color: var(--orange-hi); border-color: rgba(255,122,0,.4); background: rgba(255,122,0,.08); }

/* =========================== MAIN =========================== */
.main {
  grid-area: main; overflow-y: auto;
  background:
    radial-gradient(1100px 500px at 80% -180px, rgba(255,200,40,.06), transparent),
    var(--bg-800);
}
.main__inner { padding: 22px; max-width: 1500px; margin: 0 auto; }

/* --- HERO --- */
.hero { display: block; margin-bottom: 26px; }
.hero__banner {
  position: relative; border-radius: 18px; overflow: hidden;
  padding: 52px 48px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(100deg, rgba(13,16,23,.96) 30%, rgba(13,16,23,.42) 70%),
    url("../img/banner.png") right center / cover no-repeat,
    var(--bg-700);
  border: 1px solid var(--line);
}
.hero__title { font-size: 46px; max-width: 460px; }
.hero__title b {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--text-dim); margin: 16px 0 24px; font-size: 15px; max-width: 400px; }
.hero__cta { display: flex; align-items: center; gap: 14px; }
.hero__or { color: var(--text-mute); font-size: 13px; }
.pay-pills {
  display: flex; gap: 6px; align-items: center;
  background: var(--bg-800); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
.pay-pills span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

.hero__cards { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-card {
  position: relative; border-radius: 16px; overflow: hidden;
  padding: 22px; display: flex; align-items: flex-end;
  min-height: 130px; border: 1px solid var(--line);
  background: var(--bg-700); transition: 0.2s; cursor: pointer;
}
.hero-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.hero-card__grid { position: absolute; inset: 0; opacity: .55; }
.hero-card--casino .hero-card__grid { background: linear-gradient(120deg, #131724, #3a2408, #6b4508); }
.hero-card--sport .hero-card__grid { background: linear-gradient(120deg, #10131c, #1e2436, #2a3450); }
.hero-card__body { position: relative; z-index: 2; }
.hero-card__title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em;
}
.hero-card__title > svg { width: 26px; height: 26px; color: var(--gold); }
.hero-card__arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.4); display: grid; place-items: center; font-size: 13px;
}

/* --- SECTION --- */
.section { margin-bottom: 30px; }
.section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 10px;
}
.section__title .ico { color: var(--gold); display: grid; place-items: center; }
.section__title .ico svg { width: 22px; height: 22px; }
.section__all { color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer; }
.section__all:hover { color: var(--gold); }
.section__nav { margin-left: auto; display: flex; gap: 8px; }
.section__nav button {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-700); border: 1px solid var(--line);
  color: var(--text-dim); display: grid; place-items: center; transition: .15s;
}
.section__nav button:hover { background: var(--hover); color: var(--gold); border-color: var(--gold); }
.section__nav svg { width: 17px; height: 17px; }

/* --- Victoires en Direct --- */
.live-wrap {
  display: flex; align-items: stretch; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.live-badge {
  flex: none; width: 92px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: var(--bg-800); border: 1px solid var(--line-2);
  border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.live-track { display: flex; gap: 10px; overflow: hidden; flex: 1; }
.win-card {
  flex: none; width: 92px;
  background: var(--bg-800); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; text-align: center;
  animation: slideIn .5s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.win-card__thumb {
  width: 100%; aspect-ratio: 1; border-radius: 8px; margin-bottom: 6px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #1c2233, #0b0e15);
  border: 1px solid rgba(255,210,30,.18);
  color: var(--gold);
}
.win-card__thumb.orange { color: var(--orange-hi); border-color: rgba(255,122,0,.22); }
.win-card__thumb svg { width: 60%; height: 60%; }
.win-card__user { font-size: 11px; color: var(--text-dim); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-card__amt { font-size: 12px; font-weight: 700; color: var(--green); }

/* --- Grille de jeux --- */
.game-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px;
  gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-behavior: smooth;
}
.game-row::-webkit-scrollbar { height: 6px; }

.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.game {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-700);
  cursor: pointer; transition: 0.2s;
}
.game:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,200,40,.25); }
.game__art {
  aspect-ratio: 2/3; position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #1c2233 0%, #0b0e15 70%);
}

/* --- Poster artwork: fills the tile, no icon halo behind it --- */
.game__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game__art.has-poster { background: var(--bg-900); }
.game__art.has-poster::after { content: none; }
/* Halo derrière l'icône */
.game__art::after {
  content: ""; position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,40,.20), transparent 68%);
}
.game__art--orange::after { background: radial-gradient(circle, rgba(255,122,0,.22), transparent 68%); }

.game__icon { position: relative; z-index: 2; width: 52%; color: var(--gold); filter: drop-shadow(0 0 12px rgba(255,200,40,.45)); }
.game__art--orange .game__icon { color: var(--orange-hi); filter: drop-shadow(0 0 12px rgba(255,122,0,.5)); }
.game__icon svg { width: 100%; height: 100%; }

.game__tag {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(8,11,18,.78); color: var(--gold);
  border: 1px solid rgba(255,210,30,.25); text-transform: uppercase;
}
.game__hot { position: absolute; top: 7px; right: 8px; z-index: 3; width: 16px; height: 16px; color: var(--orange); filter: drop-shadow(0 0 6px rgba(255,122,0,.8)); }
.game__hot svg { width: 100%; height: 100%; }

.game__play {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  background: rgba(8,11,18,.66); opacity: 0; transition: .2s;
}
.game:hover .game__play { opacity: 1; }
.game__play .btn { height: 38px; padding: 0 18px; }
.game__meta { padding: 9px 10px; }
.game__name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__prov { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* --- Bandeau CTA --- */
.cta-strip {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(100deg, #1a2133, #10131c);
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 22px 26px; margin-bottom: 30px;
}
.cta-strip img { width: 74px; height: 74px; object-fit: contain; }
.cta-strip__t { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.cta-strip__s { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.cta-strip .btn { margin-left: auto; }

/* Support button: the mascot itself, on a dark disc with a gold rim —
   the artwork is the icon, so no gold fill behind it. */
.fab {
  position: fixed; right: 22px; bottom: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--bg-700);
  border: 2px solid rgba(255, 210, 30, .55);
  box-shadow: 0 0 18px rgba(255, 200, 40, .28), 0 8px 24px rgba(0,0,0,.45);
  z-index: 50;
  transition: transform .2s var(--ease-soft, ease), box-shadow .2s var(--ease-soft, ease), border-color .2s var(--ease-soft, ease);
}
.fab:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(255, 200, 40, .45), 0 10px 28px rgba(0,0,0,.5);
}
.fab img { width: 100%; height: 100%; object-fit: contain; }

/* ===================================================================
   SITE FOOTER (markup injected by shell.js)
   =================================================================== */
.sfoot {
  margin-top: 40px;
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
}
.sfoot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.sfoot__brand p {
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 380px;
}
.sfoot__copy { color: var(--text-mute); }

.sfoot__logo {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 16px;
}
.sfoot__logo img { width: 30px; height: 30px; object-fit: contain; }
.sfoot__logo span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; letter-spacing: -0.04em;
}
.sfoot__logo b {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.sfoot__age {
  display: block;
  width: 100%; max-width: 300px; height: auto;
  margin-top: 14px;
}

.sfoot__col h3 {
  font-family: var(--font);
  font-size: 11px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.sfoot__col ul { list-style: none; }
.sfoot__col li + li { margin-top: 10px; }
.sfoot__col a {
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 600;
  transition: color .16s var(--ease-out, ease);
}
.sfoot__col a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .sfoot__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .sfoot__brand { grid-column: 1 / -1; }
}

/* ===================================================================
   PAGES DE JEU
   =================================================================== */
.game-page { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }

/* --- En-tête de jeu --- */
.gh { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.gh__ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, #1c2233, #0b0e15);
  border: 1px solid rgba(255,210,30,.22);
  color: var(--gold); box-shadow: var(--glow-gold);
}
.gh__ico svg { width: 28px; height: 28px; }
.gh__title { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.gh__sub { color: var(--text-mute); font-size: 13px; font-weight: 600; margin-top: 2px; }
.gh__stats { margin-left: auto; display: flex; gap: 10px; }
.gh__stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 14px; text-align: right;
}
.gh__stat b { font-family: var(--font-display); display: block; font-size: 17px; letter-spacing: -0.02em; }
.gh__stat span { font-size: 10px; color: var(--text-mute); text-transform: uppercase; font-weight: 700; letter-spacing: .4px; }

/* --- Panneau de mise --- */
.bet {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px;
  position: sticky; top: 0;
}
.bet__tabs {
  display: flex; gap: 3px; padding: 4px; margin-bottom: 16px;
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 10px;
}
.bet__tabs button {
  flex: 1; padding: 8px; border-radius: 7px;
  font-weight: 700; font-size: 13px; color: var(--text-dim); transition: .18s;
}
.bet__tabs button.active { background: var(--grad-gold); color: #201800; box-shadow: var(--glow-gold); }

.field { margin-bottom: 14px; }
.field__label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.field__label b { color: var(--text-dim); font-size: 12px; text-transform: none; letter-spacing: 0; }

.input-wrap {
  display: flex; align-items: center;
  background: var(--bg-800); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 0 4px 0 12px; transition: .15s;
}
.input-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,30,.10); }
.input-wrap input {
  flex: 1; width: 100%; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px; font-weight: 700; padding: 12px 0;
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.input-wrap .cur { color: var(--gold); font-weight: 700; margin-right: 8px; display: grid; place-items: center; }
.input-wrap .cur svg { width: 17px; height: 17px; }
.input-wrap .mini {
  padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); background: var(--bg-700); margin-left: 4px; transition: .15s;
}
.input-wrap .mini:hover { color: var(--gold); background: var(--hover); }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.chips button {
  padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: var(--bg-800); border: 1px solid var(--line); color: var(--text-dim); transition: .15s;
}
.chips button:hover, .chips button.active { color: var(--gold); border-color: var(--gold); background: rgba(255,210,30,.07); }

.payout {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-800); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.payout span { font-size: 11px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; }
.payout b { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.03em; color: var(--gold); }

/* --- Zone de jeu --- */
.stage {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(255,200,40,.05), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 520px;
  padding: 26px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.stage__hint {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-size: 11px; color: var(--text-mute); font-weight: 600; letter-spacing: .3px;
}

/* --- PLINKO --- */
.plinko { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.pegs { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.peg-row { display: flex; gap: 22px; }
.peg {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(255,210,30,.5);
  opacity: .85;
}
.mults { display: flex; gap: 4px; justify-content: center; }
.mult {
  flex: 1 1 0; min-width: 0;
  padding: 9px 2px; border-radius: 8px; text-align: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: -0.03em;
  color: #201800; background: var(--grad-gold);
}
.mult.m-hi { background: var(--grad-orange); color: #2a1400; box-shadow: var(--glow-orange); }
.mult.m-lo { background: linear-gradient(180deg, #242c40, #171c2a); color: var(--text-dim); }

/* --- MINES --- */
.mines-grid {
  flex: 1; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; align-content: center; max-width: 480px; margin: 0 auto; width: 100%;
}
.tile {
  aspect-ratio: 1; border-radius: 12px;
  background: linear-gradient(180deg, #1c2233, #141824);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: .16s; cursor: pointer;
}
.tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.tile svg { width: 40%; height: 40%; opacity: 0; transition: .2s; }
.tile.gem { background: radial-gradient(120% 100% at 50% 0%, #26304a, #131724); border-color: rgba(255,210,30,.4); }
.tile.gem svg { opacity: 1; color: var(--gold); filter: drop-shadow(0 0 8px rgba(255,210,30,.6)); }
.tile.mine { background: radial-gradient(120% 100% at 50% 0%, #4a1a0a, #2a0f06); border-color: rgba(255,90,0,.5); }
.tile.mine svg { opacity: 1; color: var(--orange); filter: drop-shadow(0 0 8px rgba(255,122,0,.7)); }

/* --- DICE --- */
.dice-area { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.dice-result {
  font-family: var(--font-display); font-size: 76px; font-weight: 800;
  text-align: center; letter-spacing: -0.05em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(255,200,40,.3));
}
.slider {
  position: relative; height: 14px; border-radius: 10px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 48%, var(--green) 48%, var(--green) 100%);
  margin: 0 10px;
}
.slider__knob {
  position: absolute; top: 50%; left: 48%; transform: translate(-50%, -50%);
  width: 26px; height: 34px; border-radius: 8px;
  background: var(--grad-gold); box-shadow: var(--glow-gold);
  cursor: grab; border: 2px solid #0d1017;
}
.scale { display: flex; justify-content: space-between; margin: 12px 10px 0; font-size: 11px; color: var(--text-mute); font-weight: 700; }

/* --- CRASH / LIMBO --- */
.crash-area { flex: 1; display: flex; flex-direction: column; }
.crash-mult {
  font-family: var(--font-display); font-size: 68px; font-weight: 800;
  text-align: center; letter-spacing: -0.05em; margin-bottom: 6px;
  background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255,122,0,.35));
}
.crash-chart { flex: 1; position: relative; min-height: 260px; }
.crash-chart svg { width: 100%; height: 100%; }

/* --- Historique de résultats --- */
.history { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.history b {
  font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: -0.02em;
  padding: 5px 11px; border-radius: 7px;
  background: var(--bg-800); border: 1px solid var(--line-2); color: var(--text-dim);
}
.history b.win { color: var(--gold); border-color: rgba(255,210,30,.35); background: rgba(255,210,30,.07); }
.history b.big { color: var(--orange-hi); border-color: rgba(255,122,0,.4); background: rgba(255,122,0,.08); }

/* --- WHEEL --- */
.wheel-area { flex: 1; display: grid; place-items: center; }
.wheel-svg { width: 330px; max-width: 100%; filter: drop-shadow(0 0 40px rgba(255,200,40,.18)); }

/* --- Grille de filtres (page catégorie) --- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button {
  padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-dim); transition: .15s;
}
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button.active { background: var(--grad-gold); color: #201800; border-color: transparent; box-shadow: var(--glow-gold); }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 38px; }
.page-head p { color: var(--text-dim); margin-top: 8px; font-size: 15px; }

/* ===================================================================
   PAGE PROMOTIONS
   =================================================================== */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 34px; }
.pcard {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #1a2133, #0b0e15);
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 22px; transition: .2s; cursor: pointer;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.pcard::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,40,.14), transparent 68%);
}
.pcard--orange::after { background: radial-gradient(circle, rgba(255,122,0,.16), transparent 68%); }
.pcard__ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(255,210,30,.08); border: 1px solid rgba(255,210,30,.22);
}
.pcard--orange .pcard__ico { color: var(--orange-hi); background: rgba(255,122,0,.08); border-color: rgba(255,122,0,.25); }
.pcard__ico svg { width: 24px; height: 24px; }
.pcard__t { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; position: relative; z-index: 2; }
.pcard__s { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; line-height: 1.5; position: relative; z-index: 2; }
.pcard__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; position: relative; z-index: 2; }
.pcard__amt { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold); }
.pcard--orange .pcard__amt { color: var(--orange-hi); }
.pcard__timer {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-dim);
  background: var(--bg-800); border: 1px solid var(--line-2);
  padding: 5px 10px; border-radius: 7px;
}

/* --- Paliers VIP --- */
.vip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.vip {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; text-align: center; transition: .2s;
}
.vip:hover { border-color: var(--gold); transform: translateY(-3px); }
.vip__ico { color: var(--gold); width: 30px; height: 30px; margin: 0 auto 10px; }
.vip__ico svg { width: 100%; height: 100%; }
.vip__n { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.vip__w { font-size: 12px; color: var(--text-mute); margin-top: 4px; font-weight: 600; }
.vip.cur { background: linear-gradient(160deg, rgba(255,210,30,.10), transparent); border-color: var(--gold); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 900px) {
  .game-page { grid-template-columns: 1fr; }
  .bet { position: static; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero__cards { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1240px) {
  /* locked sections keep their icon but drop the label first */
  .seg__tab.is-locked .seg__t { display: none; }
  .seg__tab.is-locked { padding: 7px 12px; }
  .seg__tab.is-locked .seg__lock { left: 12px; }
}
@media (max-width: 1040px) {
  /* the search and gift shortcuts are the first thing to go when the
     topbar runs out of room — the wallet buttons matter more */
  .topbar .icon-btn:not(:last-child) { display: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "brand" "topbar" "main"; grid-template-rows: var(--topbar-h) var(--topbar-h) 1fr; }
  .sidebar { display: none; }
  .brand { border-right: none; }
  .hero__cards { grid-template-columns: 1fr; }
  .hero__title { font-size: 32px; }
  .gh__stats { display: none; }
}
