/* ============================================================
   CoinsBase — style8 : disposition « casino premium », noir & or
   Menu à icônes à gauche · jeux au centre · gains en direct à droite
   ============================================================ */
:root {
  --gold1: #f6dc94; --gold2: var(--accent); --gold3: #a8782a;
  --goldGrad: linear-gradient(135deg, var(--gold1) 0%, var(--gold2) 45%, var(--gold3) 100%);
  --hair: color-mix(in srgb, var(--accent) 16%, transparent);
  --rail: 92px; --live: 300px;
}
body { background: var(--bg); }
body::before {
  background:
    radial-gradient(1000px 520px at 50% -18%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--accent2) 7%, transparent), transparent 70%) !important;
}
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- Grille générale ---------- */
@media (min-width: 981px) {
  .shell.v3 { grid-template-columns: var(--rail) minmax(0, 1fr) var(--live) !important; }
}
@media (min-width: 981px) and (max-width: 1279px) {
  .shell.v3 { grid-template-columns: var(--rail) minmax(0, 1fr) !important; }
  .live { display: none !important; }
}
@media (max-width: 980px) { .live { display: none !important; } }

/* ---------- Menu à icônes ---------- */
@media (min-width: 981px) {
  .sidebar.rail { width: var(--rail) !important; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 70%, #000) !important; border-right: 1px solid var(--line) !important; box-shadow: none !important; transition: none !important; }
  .sidebar.rail::-webkit-scrollbar { display: none; }
  .sidebar.rail:hover { width: var(--rail) !important; box-shadow: none !important; }
  .rail .brand { justify-content: center; padding: 0 !important; height: var(--top); }
  .rail .brand-name { display: none; }
  .rail .brand-logo, .rail .brand-logo svg, .rail .brand-logo img { width: 38px !important; height: 38px !important; }
  .rail .nav { padding: 8px 10px 20px !important; gap: 4px; }
  .rail .nav-title { opacity: 1 !important; height: 1px !important; padding: 0 !important; margin: 10px 14px; background: var(--line); font-size: 0 !important; }
  .rail .nav a { flex-direction: column; justify-content: center; gap: 5px; padding: 11px 4px !important; border-radius: 14px; text-align: center; }
  .rail .nav a svg { width: 21px; height: 21px; margin: 0; }
  .rail .nav a span { opacity: 1 !important; font-size: 10.5px; font-weight: 700; line-height: 1.15; white-space: normal !important; letter-spacing: .01em; }
  .rail .nav a .tag, .rail .nav a .nav-count { position: absolute; top: 6px; right: 10px; opacity: 1 !important; font-size: 9.5px; padding: 1px 5px; min-width: 0; }
  .rail .nav a .nav-count { display: none; }
  .rail .nav a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--gold1); }
  .rail .nav a.active::before { left: -10px; top: 14px; bottom: 14px; background: var(--goldGrad); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
  .rail .nav a.active svg { color: var(--accent); }
}

/* ---------- Barre du haut ---------- */
.topbar { height: var(--top); background: color-mix(in srgb, var(--bg) 82%, transparent) !important; border-bottom: 1px solid var(--line) !important; }
.tb-brand { display: flex; align-items: center; }
.tb-brand .brand-name { font-family: var(--display); font-size: 18px; letter-spacing: -.03em; background: var(--goldGrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wallet { border-color: var(--hair) !important; background: color-mix(in srgb, var(--panel) 90%, transparent) !important; }
.wallet .bal { color: var(--text); }
.wallet a { background: var(--goldGrad) !important; color: #1a1306 !important; font-weight: 800; box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 #fff8 !important; }
.wallet a svg { color: #1a1306; }

/* ---------- Boutons, champs, cartes ---------- */
.btn.primary, .btn.primary.big {
  background: var(--goldGrad) !important; color: #1a1306 !important; border: none !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 22%, transparent), inset 0 1px 0 #fff9, inset 0 -2px 0 #0002 !important;
  text-shadow: 0 1px 0 #fff4;
}
.btn.primary svg { color: #1a1306 !important; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.primary:disabled { filter: grayscale(.5) brightness(.6); opacity: .7; }
.btn.violet { background: color-mix(in srgb, var(--accent) 12%, var(--panel2)) !important; color: var(--gold1) !important; border: 1px solid var(--hair) !important; box-shadow: none !important; }
.btn.violet svg { color: var(--accent) !important; }
.card, .stat, .game-panel, .game-stage, .challenge-box, .hs-card, .shop-item {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, transparent), color-mix(in srgb, var(--panel) 80%, transparent)) !important;
  border: 1px solid var(--line) !important;
}
.card h3 svg, .title svg, .row-head h2 svg { color: var(--accent) !important; }
.title { font-weight: 800; }
.acc-t, .num.acc, .stat b.acc { color: var(--accent); }
.progress i { background: var(--goldGrad) !important; }
.chip-btn.on { background: var(--goldGrad) !important; color: #1a1306 !important; }
.chip-btn.on svg { color: #1a1306 !important; }
.seg button.on, .tabs button.on { background: color-mix(in srgb, var(--accent) 14%, var(--panel2)) !important; color: var(--gold1); }
.toggle.on, input[type=checkbox].sw:checked { background: var(--accent) !important; }
.announce { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 9%, transparent), transparent) !important; border-bottom: 1px solid var(--line) !important; }

/* ---------- Colonne « En direct » ---------- */
.live { display: flex; flex-direction: column; height: 100vh; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, #000); min-width: 0; }
.live-head { height: var(--top); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.live-head b { display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: .02em; }
.live-head .muted { font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 0 color-mix(in srgb, var(--win) 60%, transparent); animation: liveDot 2s infinite; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
html.reduce .live-dot { animation: none; }
.live-tabs { display: flex; gap: 4px; padding: 12px 14px 8px; }
.live-tabs button { flex: 1; padding: 8px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--muted); background: transparent; border: 1px solid transparent; }
.live-tabs button.on { color: var(--gold1); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--hair); }
.live-list { flex: 1; overflow-y: auto; padding: 4px 10px 16px; scrollbar-width: thin; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; transition: background .15s; }
.lv-row:hover { background: var(--line); }
.lv-row img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.lv-mid { flex: 1; min-width: 0; }
.lv-mid b, .lv-mid small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-mid b { font-size: 13px; }
.lv-mid small { font-size: 11.5px; color: var(--muted); }
.lv-r { text-align: right; flex: none; }
.lv-r small { display: block; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lv-mult { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-mult.up { color: var(--text); }
.lv-row.hot .lv-mult { background: var(--goldGrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-row.hot { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent); }
.lv-row.new { animation: lvIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes lvIn { from { opacity: 0; transform: translateY(-10px); background: color-mix(in srgb, var(--accent) 12%, transparent); } }
.lv-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
/* le fil remplace le bandeau défilant sur PC large */
@media (min-width: 1280px) { .ticker { display: none !important; } }

/* ---------- Accueil ---------- */
.home-top { grid-template-columns: 1fr !important; }
.feature { min-height: 320px; border-color: var(--hair) !important; background: #000 !important; }
.ft-slide::after { background: linear-gradient(90deg, #000 0%, color-mix(in srgb, #000 75%, transparent) 40%, transparent 78%) !important; }
.ft-bg { opacity: .45 !important; }
.ft-kicker { color: var(--accent) !important; }
.ft-copy h1 { color: #fff; }
.ft-dots i.on { background: var(--goldGrad) !important; }
.home-side.quick3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.quick3 > * { min-width: 0; }
.quick3 .hs-me { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px !important; }
.quick3 .hs-me .row { min-width: 0; }
.quick3 .hs-me .progress { grid-column: 1 / -1; }
.quick3 .hs-bal { text-align: right; }
.quick3 .hs-rank, .quick3 .hs-hi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick3 .hs-bal b { font-size: 24px !important; background: var(--goldGrad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.hs-ico { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; color: var(--accent) !important; border: 1px solid var(--hair); }
.hs-bonus { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 75%) !important; border-color: var(--hair) !important; }
.gcard:hover .gimg { box-shadow: 0 22px 40px #000c, 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent) !important; }
.gcard .gtag { background: var(--goldGrad) !important; color: #1a1306 !important; }
.see-all:hover { color: var(--gold1) !important; }

/* ---------- Pages de jeu ---------- */
.game-stage { box-shadow: inset 0 0 140px #000a, inset 0 0 0 1px color-mix(in srgb, var(--accent) 6%, transparent) !important; }
.game-panel { border-color: var(--line) !important; }
.res-strip .pill.w, .pill.win { border-color: color-mix(in srgb, var(--win) 40%, transparent); }

/* ---------- Téléphone / tablette ---------- */
@media (max-width: 1279px) and (min-width: 981px) { .home-side.quick3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick3 .hs-me { grid-column: 1 / -1; } }
@media (max-width: 980px) {
  .sidebar.rail { background: var(--bg) !important; }
  .sidebar.rail .nav a span { opacity: 1; }
  .tb-brand { display: none; }
  .bottom-nav a.active { color: var(--accent) !important; }
  .bottom-nav a.active svg { color: var(--accent) !important; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 60%, transparent)); }
  .home-side.quick3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick3 .hs-me { grid-column: 1 / -1; }
  .quick3 .hs-bal b { font-size: 21px !important; }
  .feature { min-height: 230px; }
}

/* tuiles de Mines / Tower un peu plus chaudes sur fond noir */
.tile { background: linear-gradient(180deg, #24222a, #1a191f) !important; border-color: #ffffff0d !important; }
.tile:hover:not(:disabled) { background: linear-gradient(180deg, #2e2b33, #222027) !important; }
@media (max-width: 640px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shop-item { padding: 16px 10px; } }
