:root {
  --bg: #0c0d17;
  --surface: #15172a;
  --surface-hi: #1d2038;
  --border: #2a2d4a;
  --text: #f1efe9;
  --text-muted: #9a9cc0;
  --gold: #f2b84b;
  --gold-soft: #f7d488;
  --emerald: #2fdd9f;
  --rose: #ff5c7a;
  --radius: 14px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(12,13,23,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.navbar .brand span { color: var(--gold); }
.navbar nav { display: flex; gap: 22px; align-items: center; }
.navbar nav a { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.navbar nav a:hover { color: var(--gold-soft); }
.lang-switch { display:flex; border:1px solid var(--border); border-radius:999px; overflow:hidden; font-size:.8rem; font-weight:600; }
.lang-switch a { padding:6px 10px; color:var(--text-muted); }
.lang-switch a.active { background:var(--gold); color:#1a1200; }
.balance-pill {
  background: var(--surface-hi); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-weight: 600; color: var(--emerald); font-size: .9rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #d99a2b); color: #1a1200; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242,184,75,.25); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-danger { background: var(--rose); color: #2b0410; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.96); transition: transform .1s; }
/* Retour tactile immédiat sur mobile (aucun :hover n'existe au toucher) — sans ceci,
   chaque bouton du site (miser, valider, naviguer...) semblait "mou" au tap. */

/* ---- Hero ---- */
.hero {
  position: relative; padding: 110px 24px 90px; text-align: center; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 0;
  animation: float 12s ease-in-out infinite;
}
.hero::before { width: 380px; height: 380px; background: var(--gold); top: -120px; left: -80px; }
.hero::after { width: 320px; height: 320px; background: var(--emerald); bottom: -100px; right: -60px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(90deg, var(--gold-soft), var(--emerald));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-glow { position: relative; box-shadow: 0 0 0 0 rgba(242,184,75,.5); animation: btn-pulse 2.2s ease-out infinite; }
@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,184,75,.45); }
  70% { box-shadow: 0 0 0 14px rgba(242,184,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,184,75,0); }
}

.big-wins-viewport { overflow: hidden; padding-bottom: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.big-wins-track { display: flex; width: max-content; animation: scroll-left 15s linear infinite; }
.big-wins-viewport:hover .big-wins-track, .big-wins-viewport:active .big-wins-track { animation-play-state: paused; }
.big-wins-row { display: flex; gap: 14px; padding: 6px 7px 0; }
.big-win-card {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; min-width: 200px;
  animation: big-win-in .4s ease-out backwards;
}
.big-win-card:nth-child(2) { animation-delay: .08s; }
.big-win-card:nth-child(3) { animation-delay: .16s; }
.big-win-card:nth-child(4) { animation-delay: .24s; }
@keyframes big-win-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.big-win-icon { font-size: 1.6rem; }
.big-win-amount { color: var(--emerald); font-weight: 800; font-size: 1.05rem; }
.big-win-game { color: var(--text-muted); font-size: .72rem; }

/* ---- Payment methods showcase (homepage) — bandeau défilant compact ---- */
.payment-methods-box { margin: 8px 0 28px; }
.payment-methods-box h4 { margin: 0 0 8px; font-size: .82rem; color: var(--text-muted); font-weight: 700; }
.payment-ticker-wrap {
  overflow: hidden; position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 0; margin-bottom: 16px;
}
.payment-ticker-track { display: flex; gap: 12px; white-space: nowrap; width: max-content; animation: scroll-left 22s linear infinite; }
.payment-ticker-wrap:hover .payment-ticker-track { animation-play-state: paused; }
.payment-badge {
  background: var(--surface-hi); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 14px; font-size: .8rem; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.payment-badge-img { padding: 6px 16px; display: flex; align-items: center; }
.payment-badge-img img { height: 22px; max-width: 90px; object-fit: contain; display: block; }

/* Variante "uniquement image" : l'image envoyée par l'admin remplit toute la
   hauteur du bandeau, sans les badges texte (utilisée dès qu'au moins une
   image a été envoyée dans Admin → Paramètres). */
.payment-ticker-wrap-images { padding: 0; }
.payment-ticker-wrap-images .payment-ticker-track { gap: 0; align-items: center; height: 84px; }
.payment-ticker-fullimg { height: 100%; width: auto; max-width: none; object-fit: contain; display: block; flex-shrink: 0; }

/* ---- Live wins ticker (signature element) ---- */
.ticker-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); overflow: hidden; padding: 12px 0; position: relative;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.ticker-wrap::before {
  content: "EN DIRECT"; position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; padding: 0 16px; background: var(--surface);
  color: var(--rose); font-weight: 700; font-size: .75rem; letter-spacing: .08em; z-index: 2;
  box-shadow: 20px 0 20px -10px var(--surface);
}
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: scroll-left 16s linear infinite; padding-left: 130px; width: max-content; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: .9rem; color: var(--text-muted); }
.ticker-item b { color: var(--text); }
.ticker-item .win-amount { color: var(--emerald); font-weight: 700; }

/* ---- Sections & cards ---- */
.section { padding: 70px 24px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 8px auto 0; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: block; overflow: hidden; box-sizing: border-box;
}
.card:hover { transform: translateY(-4px); border-color: rgba(242,184,75,.4); box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.card:active { transform: scale(.97); border-color: rgba(242,184,75,.5); transition: transform .1s; }
/* :hover ne veut rien dire sur un écran tactile — sans :active, taper une carte sur
   mobile ne donne aucun retour visuel avant que la page ne change, ce qui rend
   l'interface "molle" au toucher. */
.game-card {
  animation: card-appear .45s ease-out backwards;
}
.game-row .game-card:nth-child(1) { animation-delay: .03s; }
.game-row .game-card:nth-child(2) { animation-delay: .09s; }
.game-row .game-card:nth-child(3) { animation-delay: .15s; }
.game-row .game-card:nth-child(4) { animation-delay: .21s; }
.game-row .game-card:nth-child(5) { animation-delay: .27s; }
@keyframes card-appear { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.game-card .thumb {
  width: 100%; height: 150px; border-radius: 10px; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-hi), var(--bg));
  display: flex; align-items: center; justify-content: center; transition: background .3s;
}
.game-card:hover .thumb { background: linear-gradient(135deg, var(--surface-hi), rgba(242,184,75,.08)); }
.game-card .thumb svg { display: block; width: 92px; height: 92px; max-width: 100%; max-height: 100%; flex-shrink: 0; transition: transform .3s; }
.game-card:hover .thumb svg { transform: scale(1.08); }
.game-card .meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .85rem; margin-top: 10px; }

/* ---- Forms ---- */
.form-card { max-width: 440px; margin: 60px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; margin-top: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: .95rem;
}
textarea { min-height: 140px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }

/* ---- How-to-play explainer ---- */
.howto {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 16px; margin-bottom: 18px;
}
.howto summary {
  cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--gold-soft);
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: "❓"; font-size: .95rem; }
.howto summary::after { content: "▾"; margin-left: auto; color: var(--text-muted); transition: transform .2s; }
.howto[open] summary::after { transform: rotate(180deg); }
.howto p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; padding-bottom: 14px; margin: 0; }
.alert-error { background: rgba(255,92,122,.12); border: 1px solid var(--rose); color: #ffb3c1; }
.alert-success { background: rgba(47,221,159,.12); border: 1px solid var(--emerald); color: #b6ffe3; }
.alert-neutral { background: rgba(242,184,75,.12); border: 1px solid var(--gold); color: var(--gold-soft); }
.helper { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.fee-preview-box {
  display: none; align-items: center; gap: 8px; background: var(--surface-hi); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: .82rem; color: var(--text-muted); line-height: 1.4;
}
.fee-preview-box.visible { display: flex; }
.fee-preview-box .fee-icon { flex-shrink: 0; font-size: 1rem; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 24px; color: var(--text-muted); text-align: center; font-size: .85rem; }
footer a { color: var(--text-muted); margin: 0 8px; }
footer a:hover { color: var(--gold-soft); }

/* ---- Wheel ---- */
.wheel-wrap { position: relative; width: 260px; height: 260px; margin: 20px auto; filter: drop-shadow(0 18px 34px rgba(0,0,0,.55)); }
.wheel-pointer {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 28px solid var(--gold); z-index: 3; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5));
}
.wheel {
  width: 260px; height: 260px; border-radius: 50%; position: relative;
  border: 9px solid var(--surface-hi);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 4px rgba(0,0,0,.3), 0 0 36px rgba(242,184,75,.35), 0 22px 44px rgba(0,0,0,.55);
  animation: wheelAmbient 4s ease-in-out infinite;
}
@keyframes wheelAmbient { 0%, 100% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 4px rgba(0,0,0,.3), 0 0 36px rgba(242,184,75,.35), 0 22px 44px rgba(0,0,0,.55); } 50% { box-shadow: 0 0 0 3px var(--gold-soft), 0 0 0 4px rgba(0,0,0,.3), 0 0 52px rgba(242,184,75,.55), 0 22px 44px rgba(0,0,0,.55); } }
.wheel-label {
  position: absolute; top: 50%; left: 50%; font-weight: 800; font-size: .76rem;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); transform-origin: 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 42px; margin-left: -21px;
}
.wheel-label-icon { font-size: 1.2rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #fde68a, var(--gold) 60%, #b8860b);
  border: 3px solid #fff3; box-shadow: 0 4px 12px rgba(0,0,0,.55), inset 0 2px 4px rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

/* ---- Apple Fortune ---- */
.af-info-row {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px;
  padding: 12px; background: var(--bg); border-radius: 10px;
}
.af-info-row > div { text-align: center; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.af-info-label { color: var(--text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; }
.af-ladder { display: flex; flex-direction: column-reverse; gap: 4px; max-height: 260px; overflow-y: auto; }
.af-rung {
  display: flex; justify-content: space-between; padding: 6px 12px; border-radius: 8px;
  background: var(--bg); color: var(--text-muted); font-size: .8rem;
}
.af-rung-cleared { background: rgba(47,221,159,.12); color: var(--emerald); font-weight: 700; }
.af-rung-current { background: rgba(242,184,75,.15); color: var(--gold); font-weight: 700; border: 1px solid var(--gold); }
.af-apples { display: flex; gap: 12px; justify-content: center; }
.af-apple {
  width: 60px; height: 60px; border-radius: 14px; font-size: 1.9rem; border: 1px solid var(--border);
  background: radial-gradient(circle at 35% 25%, var(--surface-hi), var(--bg) 75%); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 14px -6px rgba(0,0,0,.55);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.af-apple:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 20px -8px rgba(242,184,75,.4); }

/* ---- Slots ---- */
.slots-wrap {
  display: flex; gap: 12px; justify-content: center; margin: 20px 0;
  background: linear-gradient(180deg, #2a2340, #1a1730); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px 16px; box-shadow: 0 0 0 1px rgba(242,184,75,.15), inset 0 2px 6px rgba(0,0,0,.4), 0 16px 34px -14px rgba(0,0,0,.6);
}
.slot-reel { width: 92px; height: 98px; overflow: hidden; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); box-shadow: inset 0 3px 10px rgba(0,0,0,.55); }
.slot-strip { display: flex; flex-direction: column; }
.slot-cell { width: 92px; height: 98px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }

/* ---- Scratch card ---- */
.scratch-wrap { display: flex; gap: 14px; justify-content: center; margin: 20px 0; }
.scratch-cell {
  position: relative; width: 108px; height: 108px; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 22px -10px rgba(0,0,0,.6);
}
.scratch-cover, .scratch-symbol {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.3rem;
}
.scratch-cover {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 10px),
    linear-gradient(135deg, var(--gold), #d99a2b);
  transition: opacity .35s ease, transform .35s ease;
}
.scratch-cover::after { content: '?'; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: rgba(12,13,23,.35); }
.scratch-cell.scratchable { cursor: pointer; }
.scratch-cell.scratchable:hover .scratch-cover { filter: brightness(1.08); }
.scratch-cell.revealed .scratch-cover { opacity: 0; transform: scale(0.7) rotate(12deg); pointer-events: none; }

/* ---- Crash ---- */
.crash-display {
  text-align: center; padding: 48px 20px; background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--border); border-radius: 18px; margin: 20px 0; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 34px -16px rgba(0,0,0,.6);
}
.crash-display::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(500px 260px at 50% 120%, rgba(47,221,159,.14), transparent 70%);
}
.crash-multiplier { font-family: var(--font-display); font-size: 3.6rem; font-weight: 800; transition: color .2s; position: relative; }
.crash-rocket { font-size: 2rem; margin-bottom: 6px; display: inline-block; transform: rotate(-45deg); transition: transform .3s; }
.crash-rocket-flying { animation: crashRocketFly 1.4s ease-in-out infinite; }
@keyframes crashRocketFly { 0%, 100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(-10px); } }
.crash-multiplier.live { color: var(--emerald); text-shadow: 0 0 24px rgba(47,221,159,.5); }
.crash-multiplier.busted { color: var(--rose); text-shadow: 0 0 24px rgba(255,92,122,.5); }
.crash-status { color: var(--text-muted); margin-top: 10px; position: relative; }

/* ---- Blackjack ---- */
.bj-table {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.05), transparent 55%),
    radial-gradient(ellipse at center, #1c4a2c, #0c2016 80%);
  border: 1px solid var(--border); border-radius: 20px; padding: 30px 20px; margin: 20px 0;
  box-shadow: inset 0 2px 20px rgba(0,0,0,.4), 0 16px 34px -16px rgba(0,0,0,.65);
}
.bj-hand-label { color: var(--text-muted); font-size: .85rem; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.bj-cards { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.bj-card {
  width: 62px; height: 86px; border-radius: 9px; background: linear-gradient(160deg, #fff, #f1efe9); color: #0c0d17;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06); position: relative;
}
.bj-card.red { color: var(--rose); }
.bj-card.hidden { background: linear-gradient(155deg, #2a2d4a, #15172a); color: transparent; box-shadow: 0 6px 14px rgba(0,0,0,.4), inset 0 0 0 3px rgba(242,184,75,.18); }
.bj-total { font-size: .88rem; color: var(--gold-soft); margin-top: -14px; margin-bottom: 20px; font-weight: 600; }

/* ---- Category tabs ---- */
.category-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex-shrink: 0; padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.category-tab.active, .category-tab:hover { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.category-tab:active { transform: scale(.95); transition: transform .1s; }

/* ---- Category section with count + arrows ---- */
.category-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
/* Le nav est "sticky" (toujours visible) — sans cette marge, cliquer sur un onglet
   catégorie fait défiler jusqu'au titre de section, qui se retrouve alors caché
   sous la barre de navigation au lieu de juste en dessous. */
section[id^="cat-"] { scroll-margin-top: 76px; }
.category-section-head h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.category-count { background: var(--surface-hi); color: var(--text-muted); font-size: .75rem; padding: 2px 10px; border-radius: 999px; }
.scroll-arrows { display: flex; gap: 6px; }
.scroll-arrow {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-hi); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .9rem;
}
.scroll-arrow:hover { background: var(--gold); color: #1a1200; }
.game-row { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.game-row::-webkit-scrollbar { display: none; }
.game-row .card { flex: 0 0 230px; scroll-snap-align: start; }
.game-row-fill .card { flex: 0 0 230px; }
.category-row-wrap { position: relative; }
.category-row-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 6px; width: 56px;
  background: linear-gradient(to right, transparent, var(--surface) 70%); pointer-events: none;
}
.category-row-wrap.no-fade::after { display: none; }

/* ---- Promo carousel ---- */
.promo-carousel { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 30px; height: 150px; }
.promo-slide {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 18px; padding: 24px 28px;
  opacity: 0; transition: opacity .6s ease; pointer-events: none; text-decoration: none;
}
.promo-slide.active { opacity: 1; pointer-events: auto; }
.promo-slide .promo-icon { font-size: 2.6rem; }
.promo-slide h4 { margin: 0 0 4px; font-size: 1.25rem; color: #1a1200; }
.promo-slide p { margin: 0; color: rgba(0,0,0,.65); font-size: .9rem; }
.promo-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; }
.promo-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ---- Bottom mobile nav ---- */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  justify-content: space-around; background: rgba(12,13,23,.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); font-size: .68rem; padding: 4px 10px; }
.bottom-nav a .bn-icon { display: flex; align-items: center; justify-content: center; }
.bottom-nav a .bn-icon svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--gold); }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body.has-bottom-nav { padding-bottom: 70px; }
}

/* ---- Plinko ---- */
.plinko-wrap { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.plinko-slot {
  flex: 1 1 auto; min-width: 38px; text-align: center; padding: 10px 4px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); font-size: .78rem; font-weight: 700; color: var(--text-muted);
}
.plinko-slot.plinko-hit { background: var(--gold); color: #1a1200; border-color: var(--gold); transform: scale(1.15); }

/* ---- Roulette ---- */
.roulette-wrap { display: flex; justify-content: center; margin: 24px 0; }
.roulette-result {
  width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--text);
  background: var(--surface); border: 3px solid var(--border); transition: all .3s;
}
.roulette-result.roulette-red { background: linear-gradient(135deg, #ff5c7a, #c92e4e); border-color: #ff5c7a; }
.roulette-result.roulette-black { background: linear-gradient(135deg, #2a2d3a, #101119); border-color: #4a4d5a; }
.roulette-result.roulette-green { background: linear-gradient(135deg, #2fdd9f, #1ea876); border-color: #2fdd9f; }
.roulette-result.roulette-spin-in { animation: rouletteSpinIn .9s cubic-bezier(0.17,0.67,0.12,0.99); }
@keyframes rouletteSpinIn { from { transform: rotate(540deg) scale(.4); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
.plinko-slot.plinko-bounce-in { animation: plinkoBounceIn .4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes plinkoBounceIn { from { transform: scale(0.3) translateY(-30px); opacity: 0; } to { transform: scale(1.15) translateY(0); opacity: 1; } }

/* ---- Apples (pick game) ---- */
.apples-wrap { display: flex; gap: 12px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.apple-cell {
  width: 78px; height: 78px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; background: radial-gradient(circle at 35% 25%, var(--surface-hi), var(--surface) 75%);
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px -10px rgba(0,0,0,.55);
  transition: transform .18s, box-shadow .18s;
}
.apple-cell.apple-good { background: rgba(47,221,159,.16); border-color: var(--emerald); box-shadow: 0 0 22px -4px rgba(47,221,159,.5); }
.apple-cell.apple-bad { background: rgba(255,92,122,.14); border-color: var(--rose); box-shadow: 0 0 22px -4px rgba(255,92,122,.5); }
.apple-cell.apple-hidden { color: var(--text-muted); }

/* ---- Ad slot ---- */
.ad-slot { text-align: center; margin: 20px 0; }

@media (max-width: 640px) {
  .navbar nav { display: none; }
  .navbar { padding: 14px 16px; gap: 8px; }
  .navbar .brand { font-size: 1.15rem; }
  .navbar .btn { padding: 7px 12px !important; font-size: .85rem; }
  .hero { padding: 70px 20px 60px; }
  .wheel-wrap, .wheel { width: 210px; height: 210px; }
  .wheel-label { transform-origin: 0 0; }
  .scratch-cell { width: 84px; height: 84px; }
  .apple-cell { width: 60px; height: 60px; font-size: 1.5rem; }
  .af-apple { width: 50px; height: 50px; font-size: 1.5rem; }
  .slot-reel { width: 72px; height: 78px; }
  .slot-cell { width: 72px; height: 78px; font-size: 1.9rem; }
  .bj-card { width: 48px; height: 66px; font-size: .95rem; }
  .card table { display: block; overflow-x: auto; white-space: nowrap; }
  .game-row .card { flex-basis: 195px; }
}

/* ============================================================
   MODE PLEIN ÉCRAN DES JEUX — coquille immersive, sans distraction,
   qui maximise l'espace de jeu sur tous les appareils.
   ============================================================ */
body.game-fullscreen {
  margin: 0; padding: 0; min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1100px 620px at 15% -10%, rgba(242,184,75,.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(47,221,159,.08), transparent 55%),
    var(--bg);
}
.game-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.game-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(10,11,18,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.game-back {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.game-back:hover { background: var(--surface-hi); border-color: var(--gold); }
.game-topbar-title {
  flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-topbar-balance { flex-shrink: 0; white-space: nowrap; }
.game-stage {
  flex: 1; width: 100%; max-width: 780px; margin: 0 auto;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.game-stage h1 { font-size: 1.5rem; margin: 0 0 6px; }
.game-tagline { color: var(--text-muted); font-size: .95rem; margin: 0 0 20px; line-height: 1.5; }

/* Plateau de jeu premium : cadre net, léger relief, respiration constante */
.game-board {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 20px; margin-bottom: 20px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

/* Symboles / tuiles avec relief et lueur — remplace le rendu plat par défaut */
.symbol-tile {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 25%, var(--surface-hi), var(--bg) 75%);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px -8px rgba(0,0,0,.6);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.symbol-tile.symbol-win {
  border-color: var(--gold); animation: symbolWinPulse 1.1s ease-in-out infinite;
}
@keyframes symbolWinPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,184,75,.55), inset 0 1px 0 rgba(255,255,255,.08); transform: scale(1); }
  50% { box-shadow: 0 0 26px 6px rgba(242,184,75,.45), inset 0 1px 0 rgba(255,255,255,.1); transform: scale(1.045); }
}
.symbol-tile.symbol-spinning { animation: symbolSpin .55s linear infinite; }
@keyframes symbolSpin { 0% { transform: translateY(0); filter: blur(0); } 45% { transform: translateY(-6px); filter: blur(1.5px); } 100% { transform: translateY(0); filter: blur(0); } }

/* Éclat de victoire — halo doré qui balaie le plateau */
.win-flash { position: relative; overflow: hidden; }
.win-flash::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(242,184,75,.35), transparent 65%);
  opacity: 0; animation: winFlashSweep .9s ease-out;
}
@keyframes winFlashSweep { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }

.result-banner {
  width: 100%; text-align: center; font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; padding: 14px 18px; border-radius: 14px; margin-bottom: 4px;
}
.result-banner.result-win { background: rgba(47,221,159,.14); border: 1px solid var(--emerald); color: var(--emerald); }
.result-banner.result-lose { background: rgba(255,92,122,.1); border: 1px solid var(--rose); color: var(--rose); }
.result-banner.result-neutral { background: var(--surface-hi); border: 1px solid var(--border); color: var(--text-muted); }

@media (max-width: 640px) {
  .game-topbar { padding: 12px 14px; gap: 10px; }
  .game-topbar-title { font-size: .95rem; }
  .game-board { padding: 20px 14px; border-radius: 16px; }
  .game-stage { padding: 16px 12px 24px; }
}
@media (min-width: 900px) {
  .game-stage { max-width: 860px; padding-top: 32px; }
  .game-board { padding: 36px 32px; }
}
