/* ==================================================================
   Doublon — feuille de style unique
   Jetons · base · coque · composants · lobby · jeux · caisse
   ==================================================================

   Palette : rouge sang de boeuf, laiton, feutre vert, sur un noir chaud.
   C'est celle des salles de jeu depuis un siecle, et elle a l'avantage de
   ne ressembler a aucun gabarit : le violet neon sur gris bleute est
   devenu la signature visuelle de tout ce qui est genere a la chaine.
   Les noirs tirent ici vers le brun, jamais vers le bleu.
   ================================================================== */

:root {
  --bg:        #0c0a09;
  --sidebar:   #120f0d;
  --surface:   #171310;
  --surface-2: #1f1a16;
  --surface-3: #2a231d;

  --line:        rgba(255, 240, 220, .08);
  --line-strong: rgba(255, 240, 220, .17);

  --text:  #f4efe7;
  --dim:   #a89d8e;
  --faint: #776c5e;

  /* rouge de tapis, et sa version eclairee pour les etats actifs */
  --brand:   #b4222f;
  --brand-2: #d94436;
  /* le vert d'un feutre, pas d'un ecran */
  --win:     #3f9c62;
  --loss:    #d4453f;
  /* laiton, pas or : moins criard, plus credible */
  --gold:    #c9a227;

  --r-xs: 8px;
  --r-sm: 11px;
  --r:    15px;
  --r-lg: 20px;

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --sans: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease:   cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow:    0 20px 50px rgba(0, 0, 0, .5);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, .65);

  --rail: 248px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(180, 34, 47, .35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2b3149; }

/* Les titres passent en serif. C'est le changement qui compte le plus :
   tout-en-sans-serif-geometrique est la signature des maquettes generees, et
   une enseigne de jeu a toujours eu des lettres a empattements. */
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.18;
}
h3 { margin: 0; letter-spacing: -.02em; font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.72rem; }
h2 { font-size: 1.14rem; }
h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .11em; color: var(--faint); font-weight: 700; }
p { margin: 0; }

.dim { color: var(--dim); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fine { color: var(--faint); font-size: .77rem; line-height: 1.55; }
.win  { color: var(--win); }
.loss { color: var(--loss); }
.icon { flex-shrink: 0; }

/* ---------- couche d'effets ---------- */

#fx-layer { position: fixed; inset: 0; z-index: 900; pointer-events: none; }

.float-text {
  position: fixed;
  z-index: 950;
  pointer-events: none;
  font: 800 1.6rem/1 var(--mono);
  text-shadow: 0 4px 26px rgba(0, 0, 0, .8);
  white-space: nowrap;
}

/* ==================================================================
   Coque : rail lateral + colonne principale
   ================================================================== */

.shell { display: flex; min-height: 100vh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  transition: width .26s var(--ease);
}
.rail-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 62px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
}

/* Le nom se lit, il ne crie pas : pas de capitales espacees facon logo
   d'agence, mais un mot pose a cote de sa piece. */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
}
.logo-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55));
}
.logo-mark svg { display: block; }

.rail-toggle {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--faint);
  cursor: pointer;
}
.rail-toggle:hover { background: var(--surface-2); color: var(--text); }

.rail-body { flex: 1; overflow-y: auto; padding: .9rem .6rem; }
.rail-body::-webkit-scrollbar { width: 6px; }
.rail-body::-webkit-scrollbar-thumb { border: 0; }

.rail-section { margin-bottom: 1.1rem; }
.rail-label {
  padding: 0 .6rem;
  margin-bottom: .4rem;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
}

.rail-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .58rem .65rem;
  margin-bottom: .12rem;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--dim);
  font: 600 .86rem var(--sans);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.rail-item:hover { background: var(--surface-2); color: var(--text); }
.rail-item.active { color: #fff; background: var(--surface-3); }
.rail-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--brand), var(--brand-2));
}
.rail-item .icon { color: inherit; opacity: .9; }
.rail-item.active .icon { color: var(--brand-2); opacity: 1; }
.rail-item .txt { overflow: hidden; text-overflow: ellipsis; }
.rail-item .badge {
  margin-left: auto;
  padding: .06rem .38rem;
  border-radius: 99px;
  background: rgba(180, 34, 47, .2);
  color: var(--brand-2);
  font: 700 .62rem var(--mono);
}

/* rail replie */
.shell.tight { --rail: 76px; }
.shell.tight .logo span:last-child,
.shell.tight .rail-label,
.shell.tight .rail-item .txt,
.shell.tight .rail-item .badge { display: none; }
.shell.tight .rail-item { justify-content: center; padding: .62rem 0; }
.shell.tight .rail-head { padding: 0 .5rem; justify-content: center; }
.shell.tight .rail-toggle { margin-left: 0; }

@media (max-width: 900px) {
  /* `--rail` servait a deux choses qui se contredisent : la largeur du tiroir
     et la marge de la colonne principale. A 0 sur telephone — pour que le
     contenu ne soit pas decale — elle ecrasait aussi le tiroir, qui s'ouvrait
     donc sur un pixel de large. On les separe. */
  .rail {
    width: min(80vw, 290px);
    transform: translateX(-100%);
    transition: transform .26s var(--ease);
  }
  .shell.open-rail .rail { transform: none; box-shadow: var(--shadow-lg); }
  .shell { --rail: 0px; }
  .shell.tight { --rail: 0px; }

  /* Replier n'a aucun sens dans un tiroir : on retablit les libelles meme si
     le repli avait ete memorise sur ordinateur. */
  .shell.tight .rail .logo span:last-child,
  .shell.tight .rail .rail-label,
  .shell.tight .rail-item .txt { display: revert; }
  .shell.tight .rail-item { justify-content: flex-start; padding: .62rem .8rem; }
  .shell.tight .rail-head { padding: 0 1rem; justify-content: space-between; }
  .rail-toggle { display: none; }

  /* Voile : sans lui, rien n'indique comment refermer le tiroir. */
  .rail-scrim {
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(6, 4, 3, .6);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s var(--ease);
  }
  .shell.open-rail .rail-scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- colonne principale ---------- */

.main { flex: 1; min-width: 0; margin-left: var(--rail); transition: margin .26s var(--ease); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .7rem;
  height: 62px;
  padding: 0 1.1rem;
  background: rgba(8, 10, 18, .82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.topbar .burger { display: none; }
@media (max-width: 900px) {
  .topbar .burger { display: grid; }
}

.spacer { flex: 1; }

/* solde + selecteur d'actif */
.balance-pill {
  display: flex;
  align-items: stretch;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.balance-pill .amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .3rem .8rem;
  line-height: 1.15;
}
.balance-pill .k { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.balance-pill .v { font: 700 .95rem var(--mono); font-variant-numeric: tabular-nums; }
.balance-pill .cur {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 0 .7rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--dim);
  font: 700 .74rem var(--mono);
  cursor: pointer;
}
.balance-pill .cur:hover { background: rgba(255, 255, 255, .07); color: var(--text); }

.avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--surface-3), var(--surface-2));
  color: var(--text);
  font: 800 .78rem var(--sans);
  cursor: pointer;
}
.avatar:hover { border-color: var(--line-strong); }

.menu-wrap { position: relative; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  min-width: 216px;
  padding: .3rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  animation: menu-in .16s var(--ease);
  z-index: 80;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  padding: .5rem .65rem;
  border-radius: 9px;
  font: 600 .84rem var(--sans);
  text-align: left;
  cursor: pointer;
}
.menu button:hover { background: var(--surface-3); }
.menu button .icon { color: var(--faint); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: .28rem .3rem; }

.content { padding: 1.3rem; max-width: 1480px; }

/* ==================================================================
   Blocs
   ================================================================== */

.grid { display: grid; gap: .9rem; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); }
.grid.halves { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.split { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .grid.split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: .9rem; }

.panel {
  padding: 1.1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel.flush { padding: 0; overflow: hidden; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.panel-head h2 { display: flex; align-items: center; gap: .5rem; }

.tag {
  padding: .18rem .55rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font: 600 .67rem var(--mono);
  color: var(--dim);
  white-space: nowrap;
}

.stat {
  padding: .8rem .95rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat .k { font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stat .v { margin-top: .18rem; font: 700 1.18rem var(--mono); font-variant-numeric: tabular-nums; }
.stat .v.good { color: var(--win); }
.stat .v.bad  { color: var(--loss); }

.empty { padding: 1.6rem 0; text-align: center; color: var(--faint); font-size: .84rem; }

/* ==================================================================
   Controles
   ================================================================== */

.field { display: block; margin-bottom: .75rem; }
.field > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .32rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: .62rem .75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text);
  font: 600 .9rem var(--mono);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(180, 34, 47, .85);
  box-shadow: 0 0 0 3px rgba(180, 34, 47, .16);
}
input[readonly] { color: var(--dim); }
select {
  appearance: none;
  cursor: pointer;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 17px) 53%, calc(100% - 12px) 53%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  height: 24px;
  background: none;
  border: 0;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--surface-3) var(--fill, 50%));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 2px 12px rgba(180, 34, 47, .75);
  transition: transform .15s var(--spring);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.24); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-3); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--brand); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }

/* champ avec suffixe */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 3.4rem; }
.input-wrap .suffix {
  position: absolute;
  right: .6rem; top: 50%;
  transform: translateY(-50%);
  font: 700 .74rem var(--mono);
  color: var(--faint);
  pointer-events: none;
}

/* boutons */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: .6rem 1rem;
  border-radius: var(--r-xs);
  font: 700 .85rem var(--sans);
  cursor: pointer;
  transition: transform .12s var(--ease), filter .16s, border-color .16s;
}
.btn:hover:not(:disabled) { border-color: var(--line-strong); filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .38; cursor: not-allowed; }

.btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 22px rgba(180, 34, 47, .35);
}
/* Encaisser, c'est prendre l'argent : laiton, pas vert menthe. Le degrade
   turquoise venait de l'ancienne palette et jurait avec tout le reste. */
.btn-accent {
  border-color: transparent;
  color: #2a1e05;
  background: linear-gradient(135deg, #d9b23a, #f0d375);
  box-shadow: 0 6px 22px rgba(201, 162, 39, .28);
}
.btn-danger { border-color: rgba(212, 69, 63, .4); color: var(--loss); background: rgba(212, 69, 63, .08); }
.btn-block { width: 100%; }
.btn-sm { padding: .34rem .6rem; font-size: .75rem; border-radius: 7px; }
.btn-lg { padding: .85rem 1.2rem; font-size: .96rem; border-radius: var(--r-sm); }

.btn-play::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, .26), transparent 68%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease);
}
.btn-play:hover:not(:disabled)::after { transform: translateX(120%); }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
  z-index: 2;
}

/* pastilles et segments */
.chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.chip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--dim);
  padding: .32rem .62rem;
  border-radius: 99px;
  font: 700 .75rem var(--sans);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #fff; border-color: rgba(180, 34, 47, .8); background: rgba(180, 34, 47, .22); }

.segmented {
  display: flex;
  gap: .2rem;
  padding: .22rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.segmented .chip {
  flex: 1;
  border: 0;
  background: none;
  border-radius: 8px;
  text-align: center;
  justify-content: center;
}
.segmented .chip.active { background: var(--surface-3); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .13rem .5rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  font: 700 .67rem var(--mono);
  color: var(--dim);
}
.pill.ok      { color: var(--win);  border-color: rgba(63, 156, 98, .35); background: rgba(63, 156, 98, .09); }
.pill.pending { color: var(--gold); border-color: rgba(201, 162, 39, .35); background: rgba(201, 162, 39, .09); }
.pill.ko      { color: var(--loss); border-color: rgba(212, 69, 63, .35); background: rgba(212, 69, 63, .09); }
.pill.live    { color: var(--win);  border-color: rgba(63, 156, 98, .35); }
.pill.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; transform: scale(.75); } }

/* ==================================================================
   Tableaux
   ================================================================== */

.scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: .5rem .7rem;
  font: 700 .63rem var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
td {
  padding: .52rem .7rem;
  border-top: 1px solid var(--line);
  font: 600 .8rem var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .028); }

.row-in { animation: row-in .38s var(--ease) backwards; }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } }

code {
  font: 600 .77rem var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1rem .36rem;
  word-break: break-all;
}

/* ==================================================================
   Lobby
   ================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 2.2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 130% at 88% 10%, rgba(217, 68, 54, .32), transparent 62%),
    radial-gradient(70% 120% at 8% 100%, rgba(63, 156, 98, .16), transparent 60%),
    linear-gradient(120deg, #2a1512, #140f0d);
}
.hero::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 34, 47, .34), transparent 62%);
  filter: blur(24px);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  to { transform: translate3d(-46px, 34px, 0) scale(1.14); }
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { margin-top: .5rem; color: var(--dim); max-width: 48ch; font-size: .92rem; }
.hero .cta { display: flex; gap: .55rem; margin-top: 1.2rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats div { line-height: 1.2; }
.hero-stats .k { font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.hero-stats .v { font: 800 1.1rem var(--mono); }

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

.game-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  cursor: pointer;
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tint) 55%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in srgb, var(--tint) 30%, transparent);
}
/* L'affiche occupe toute la carte ; le texte flotte par-dessus. */
.game-card .poster {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 42%;
  transition: transform .55s var(--ease);
}
.game-card .poster svg { width: 100%; height: 100%; display: block; }
.game-card:hover .poster { transform: scale(1.07); }

/* Reflet qui balaie la vitrine au survol */
.game-card .shine {
  position: absolute;
  inset: -30% -60%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-70%);
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .17) 50%, transparent 58%);
  transition: transform .85s var(--ease), opacity .3s;
}
.game-card:hover .shine { opacity: 1; transform: translateX(70%); }

.game-card .fair {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .2rem .5rem;
  border-radius: 99px;
  background: rgba(6, 8, 16, .6);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  font: 700 .56rem var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}

.game-card .meta {
  position: absolute;
  inset: auto 0 0;
  padding: 2.6rem .85rem .85rem;
  background: linear-gradient(transparent, rgba(6, 8, 16, .58) 36%, rgba(6, 8, 16, .96) 80%);
}
.game-card .name {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.012em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
}
.game-card .rtp {
  display: inline-block;
  margin-top: .3rem;
  padding: .12rem .44rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tint) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 46%, transparent);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  color: #fff;
}
.game-card .go {
  position: absolute;
  right: .8rem;
  bottom: 1rem;
  padding: .32rem .74rem;
  border-radius: 99px;
  background: var(--tint);
  color: #0a0c14;
  font-size: .68rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(9px) scale(.9);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tint) 55%, transparent);
  transition: opacity .24s var(--ease), transform .32s var(--spring);
}
.game-card:hover .go { opacity: 1; transform: none; }

/* ==================================================================
   Flux des paris
   ================================================================== */

.feed-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.feed table td { border-top: 1px solid var(--line); }
.feed tbody tr:first-child td { border-top: 0; }
.feed .who { display: flex; align-items: center; gap: .5rem; }
.feed .who .ic { color: var(--faint); }
.feed .mult { font-weight: 700; }
.feed-new { animation: feed-in .45s var(--ease) backwards; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-14px); background: rgba(180, 34, 47, .16); }
}

/* ==================================================================
   Ecran de jeu
   ================================================================== */

.game-layout {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 1020px) {
  .game-layout { grid-template-columns: 1fr; }
  .bet-panel { border-right: 0 !important; border-bottom: 1px solid var(--line); }
}

.bet-panel {
  padding: 1rem;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}
.bet-panel .segmented { margin-bottom: .9rem; }

.stage-wrap { position: relative; padding: 1rem; }

.stage {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.8rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    radial-gradient(62% 62% at 50% 34%, rgba(180, 34, 47, .13), transparent 70%),
    linear-gradient(180deg, #141010, #0c0a09);
  border: 1px solid var(--line);
}
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 110px rgba(0, 0, 0, .75);
}
.stage > * { position: relative; z-index: 1; }

.readout {
  font: 800 3.4rem/1 var(--mono);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.readout.win  { color: var(--win);  text-shadow: 0 0 46px rgba(63, 156, 98, .5); }
.readout.lose { color: var(--loss); text-shadow: 0 0 46px rgba(212, 69, 63, .35); }
.readout.idle { color: var(--faint); }

.sub { font: 600 .84rem var(--mono); color: var(--dim); text-align: center; }

/* bandeau des derniers multiplicateurs */
.recents {
  position: absolute;
  top: .8rem; right: .8rem;
  z-index: 2;
  display: flex;
  gap: .3rem;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  max-width: 60%;
}
.recent {
  padding: .16rem .5rem;
  border-radius: 99px;
  font: 700 .69rem var(--mono);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--faint);
  animation: recent-in .35s var(--spring) backwards;
}
.recent.win { color: var(--win); border-color: rgba(63, 156, 98, .4); background: rgba(63, 156, 98, .1); }
@keyframes recent-in { from { opacity: 0; transform: translateX(14px) scale(.7); } }

/* ---------- Dice ---------- */

.dice-track {
  position: relative;
  width: min(100%, 480px);
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--loss) 0%, var(--loss) var(--split, 50%), var(--win) var(--split, 50%), var(--win) 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .65);
}
.dice-track.flip {
  background: linear-gradient(90deg, var(--win) 0%, var(--win) var(--split, 50%), var(--loss) var(--split, 50%), var(--loss) 100%);
}
.dice-marker {
  position: absolute;
  top: 50%;
  width: 5px; height: 32px;
  margin-left: -2.5px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, .9);
  transform: translateY(-50%);
  transition: left .55s var(--spring);
}
.dice-scale {
  display: flex;
  justify-content: space-between;
  width: min(100%, 480px);
  font: 600 .66rem var(--mono);
  color: var(--faint);
}

/* ---------- Coinflip ---------- */

.coin-stage { perspective: 950px; height: 132px; display: flex; align-items: center; }
.coin3d { position: relative; width: 112px; height: 112px; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, .9, .3, 1); }
.coin3d .face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 2.2rem var(--mono);
  backface-visibility: hidden;
  border: 3px solid rgba(255, 255, 255, .26);
}
.coin3d .heads { background: radial-gradient(circle at 34% 28%, #ffeaa9, #e0a020 58%, #8a5c07); color: #4a2f02; box-shadow: 0 0 44px rgba(201, 162, 39, .45); }
.coin3d .tails { background: radial-gradient(circle at 34% 28%, #dbe7ff, #8b95c9 58%, #3d4470); color: #231a14; transform: rotateY(180deg); box-shadow: 0 0 44px rgba(140, 160, 255, .35); }

.streak-dots { display: flex; gap: .32rem; flex-wrap: wrap; justify-content: center; }
.streak-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 .73rem var(--mono);
  border: 2px solid var(--line);
  color: var(--faint);
  animation: dot-in .3s var(--spring) backwards;
}
.streak-dot.hit  { border-color: var(--win);  color: var(--win);  background: rgba(63, 156, 98, .12); }
.streak-dot.miss { border-color: var(--loss); color: var(--loss); background: rgba(212, 69, 63, .12); }
@keyframes dot-in { from { opacity: 0; transform: scale(.4); } }

/* ---------- Slots ---------- */

.reels {
  display: flex;
  gap: .55rem;
  padding: .7rem;
  border-radius: var(--r);
  background: linear-gradient(180deg, #1a1d2c, #0a0c15);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, .85);
}
.reel {
  position: relative;
  width: 94px; height: 108px;
  overflow: hidden;
  border-radius: 11px;
  background: #100c0a;
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 26px; z-index: 2; pointer-events: none; }
.reel::before { top: 0;    background: linear-gradient(#100c0a, transparent); }
.reel::after  { bottom: 0; background: linear-gradient(transparent, #100c0a); }
.reel-strip { display: flex; flex-direction: column; will-change: transform; }
.reel-cell { height: 108px; display: grid; place-items: center; font-size: 2.7rem; flex-shrink: 0; }
.reel.blur .reel-strip { filter: blur(2.6px); }
.reel.hit { border-color: rgba(63, 156, 98, .8); box-shadow: 0 0 28px rgba(63, 156, 98, .4); }

/* ---------- Roulette ---------- */

.wheel-wrap { position: relative; width: 268px; height: 268px; }
.wheel-canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer {
  position: absolute;
  top: -5px; left: 50%;
  width: 0; height: 0;
  margin-left: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 18px solid var(--gold);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .85));
  z-index: 3;
}
.wheel-center {
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1.5rem var(--mono);
  background: #100c0a;
  border: 2px solid var(--line-strong);
}

.board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.board-cell {
  position: relative;
  overflow: hidden;
  padding: .4rem 0;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 700 .73rem var(--mono);
  color: #fff;
  cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .18s;
}
.board-cell:hover { transform: translateY(-2px) scale(1.07); z-index: 2; }
.board-cell.red   { background: linear-gradient(160deg, #c81440, #7c0d25); }
.board-cell.black { background: linear-gradient(160deg, #232739, #10121c); }
.board-cell.green { background: linear-gradient(160deg, #12a273, #06563a); }
.board-cell.active { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(201, 162, 39, .5); }
.board-cell.outside { grid-column: span 4; background: var(--surface-2); border-color: var(--line); }
.board-cell.outside.active { background: rgba(201, 162, 39, .14); }

/* ---------- Mines ---------- */

.minefield { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; width: min(100%, 360px); perspective: 900px; }
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform .16s var(--ease), border-color .16s, background .3s;
}
.tile:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: rgba(180, 34, 47, .7);
  background: linear-gradient(160deg, rgba(180, 34, 47, .28), rgba(180, 34, 47, .06));
}
.tile:disabled { cursor: default; }
.tile.safe { border-color: rgba(63, 156, 98, .55); background: linear-gradient(160deg, rgba(63, 156, 98, .24), rgba(63, 156, 98, .05)); }
.tile.mine { border-color: rgba(212, 69, 63, .6);  background: linear-gradient(160deg, rgba(212, 69, 63, .26), rgba(212, 69, 63, .06)); }
.tile.dim { opacity: .3; }
.tile .glyph { animation: glyph-in .32s var(--spring) backwards; }
@keyframes glyph-in { from { opacity: 0; transform: scale(0) rotate(-40deg); } }

.mult-ladder { display: flex; gap: .22rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.mult-ladder::-webkit-scrollbar { display: none; }
.mult-step {
  flex-shrink: 0;
  padding: .2rem .45rem;
  border-radius: 7px;
  font: 700 .67rem var(--mono);
  color: var(--faint);
  border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.mult-step.done { color: var(--win); border-color: rgba(63, 156, 98, .4); background: rgba(63, 156, 98, .1); }
/* Le prochain palier etait rouge : dans un jeu ou le rouge signale la perte,
   c'etait le pire choix possible. Il passe au laiton, couleur de ce qu'on vise. */
.mult-step.next {
  color: #ffe9a8;
  border-color: rgba(201, 162, 39, .75);
  background: rgba(201, 162, 39, .18);
  transform: scale(1.08);
}


/* ==================================================================
   Marques crypto
   ================================================================== */

.coin { display: block; flex-shrink: 0; border-radius: 50%; }
.coin-row { display: flex; align-items: center; gap: .3rem; }

.asset-card .coin { margin: 0 auto; }
.asset-card .code { margin-top: .35rem; }

.asset-line { display: inline-flex; align-items: center; gap: .4rem; }
.asset-line .coin { width: 18px; height: 18px; }

/* ==================================================================
   Illustrations des cartes de jeu
   ================================================================== */



/* ==================================================================
   Blackjack
   ================================================================== */

/* Le tapis est un SVG a ratio fixe (lib/table.js) ; mains, jeton et etiquettes
   sont poses dessus aux coordonnees de la table. */
.felt {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  filter: drop-shadow(0 26px 54px rgba(0, 0, 0, .62));
}
.felt-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.felt .hand {
  position: absolute;
  left: 8%;
  right: 8%;
  min-height: 0;
  height: 20%;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 2;
}
.felt .dealer-hand { top: 27%; }
.felt .player-hand { top: 73%; }
.felt .card { width: 13%; max-width: 62px; min-width: 28px; }

.bet-spot {
  position: absolute;
  left: 50%;
  top: 85.8%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.bet-chip { width: 52px; height: 52px; display: block; animation: chip-land .4s var(--spring); }
@keyframes chip-land { from { opacity: 0; transform: translateY(-30px) scale(.55); } }

.seat-badge {
  position: absolute;
  z-index: 3;
  padding: .22rem .62rem;
  border-radius: 99px;
  background: rgba(5, 24, 14, .74);
  border: 1px solid rgba(255, 255, 255, .18);
  font: 700 .62rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}
.seat-badge b { color: #fff; margin-left: .4rem; font-size: .84rem; letter-spacing: 0; }
.seat-badge.dealer { top: 6%; left: 7%; }
.seat-badge.player { bottom: 5%; left: 7%; }

.hand { display: flex; gap: .35rem; min-height: 96px; align-items: center; }
.card { width: 62px; flex-shrink: 0; }
.card svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.card.dealt { animation: deal .42s var(--spring) backwards; animation-delay: calc(var(--i) * 95ms); }
@keyframes deal {
  from { opacity: 0; transform: translate(-46px, -58px) rotate(-16deg) scale(.82); }
}
.card-back svg { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }

.rule-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .28rem; }
.rule-list li {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  font-size: .78rem;
  padding: .26rem .1rem;
  border-bottom: 1px solid var(--line);
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list span { color: var(--faint); }
.rule-list b { font-family: var(--mono); font-size: .76rem; }

/* ==================================================================
   Chicken — la scene est peinte au canvas (lib/traffic.js)
   ================================================================== */

.road {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 268px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #171b29;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .6);
}
.road canvas { width: 100%; height: 100%; display: block; }

/* ==================================================================
   Modale
   ================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(4, 5, 10, .72);
  backdrop-filter: blur(6px);
  animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in .28s var(--spring);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(.965); } }

.modal-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { flex: 1; }
.modal-close {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--dim);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-body { overflow: auto; padding: 1.1rem; }

/* ==================================================================
   Caisse crypto
   ================================================================== */

.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .45rem; }

.asset-card {
  position: relative;
  overflow: hidden;
  padding: .7rem .45rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .2s;
}
.asset-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.asset-card.active {
  border-color: var(--tint);
  box-shadow: 0 0 0 1px var(--tint), 0 8px 26px rgba(0, 0, 0, .5);
  background: color-mix(in srgb, var(--tint) 13%, var(--surface-2));
}
.asset-card .glyph { font-size: 1.4rem; color: var(--tint); line-height: 1.1; }
.asset-card .code { font: 800 .77rem var(--mono); margin-top: .12rem; }
.asset-card .net  { font-size: .58rem; color: var(--faint); }

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1rem;
  border-radius: var(--r);
  background: linear-gradient(180deg, #fbfbff, #e7e7f2);
  animation: qr-in .4s var(--spring);
}
@keyframes qr-in { from { opacity: 0; transform: scale(.9); } }
.qr-card svg { width: 176px; height: 176px; display: block; }
.qr-card .net { font: 700 .66rem var(--mono); color: #363650; letter-spacing: .07em; }

.address-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .52rem .65rem;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
}
.address-row code { flex: 1; background: none; border: 0; padding: 0; font-size: .72rem; }
.copied { animation: copied .55s var(--ease); }
@keyframes copied { 40% { background: rgba(63, 156, 98, .2); border-color: var(--win); } }

.confirm-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .8rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--surface-2);
  animation: row-in .4s var(--ease) backwards;
}
.ring-wrap { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring .track { stroke: var(--surface-3); }
.ring .value { stroke: var(--win); transition: stroke-dashoffset .6s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .62rem var(--mono); }

/* ==================================================================
   Ecran d'authentification
   ================================================================== */

.auth {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  min-height: 100vh;
}

/* ---------- panneau de marque ---------- */

.auth-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.6rem, 4vw, 4rem);
  border-right: 1px solid var(--line);
  background: linear-gradient(155deg, #17133a 0%, #0d0f22 55%, #0c0a09 100%);
}

.auth-glow {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(34% 34% at 24% 22%, rgba(180, 34, 47, .55), transparent 66%),
    radial-gradient(30% 30% at 78% 34%, rgba(217, 68, 54, .38), transparent 64%),
    radial-gradient(36% 36% at 52% 86%, rgba(63, 156, 98, .22), transparent 66%);
  filter: blur(30px);
  animation: auth-drift 26s ease-in-out infinite alternate;
}
@keyframes auth-drift {
  to { transform: translate3d(5%, -4%, 0) scale(1.16) rotate(6deg); }
}

/* jetons qui remontent doucement en fond */
.auth-chips { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-chips span {
  position: absolute;
  bottom: -12%;
  font-size: 2.1rem;
  color: rgba(255, 255, 255, .07);
  animation: chip-rise linear infinite;
}
.auth-chips span:nth-child(1) { left:  6%; animation-duration: 23s; animation-delay:  0s;  font-size: 2.6rem; }
.auth-chips span:nth-child(2) { left: 21%; animation-duration: 31s; animation-delay: -6s;  }
.auth-chips span:nth-child(3) { left: 38%; animation-duration: 27s; animation-delay: -14s; font-size: 1.6rem; }
.auth-chips span:nth-child(4) { left: 55%; animation-duration: 35s; animation-delay: -3s;  font-size: 2.9rem; }
.auth-chips span:nth-child(5) { left: 70%; animation-duration: 25s; animation-delay: -19s; }
.auth-chips span:nth-child(6) { left: 84%; animation-duration: 33s; animation-delay: -9s;  font-size: 1.8rem; }
.auth-chips span:nth-child(7) { left: 93%; animation-duration: 29s; animation-delay: -23s; }
@keyframes chip-rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(-118vh) rotate(220deg); opacity: 0; }
}

.auth-art-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}
.auth-art-inner .logo { font-size: .78rem; margin-bottom: 2.2rem; }

.auth-headline {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  background: linear-gradient(105deg, #ffffff 26%, #c4b5fd 62%, #6ee7c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-lede { margin-top: .9rem; color: var(--dim); font-size: .96rem; max-width: 42ch; }

.perks { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.perks li { display: flex; align-items: flex-start; gap: .8rem; }
.perks b { display: block; font-size: .88rem; font-weight: 700; }
.perks em {
  display: block;
  margin-top: .1rem;
  font-style: normal;
  font-size: .78rem;
  color: var(--faint);
  line-height: 1.5;
}
.perk-ic {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--brand-2);
}

.ticker {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.ticker-head { margin-bottom: .6rem; }
.ticker-rows { display: grid; gap: .3rem; }
.ticker-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .34rem .55rem;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .035);
  font: 600 .76rem var(--mono);
  animation: row-in .4s var(--ease) backwards;
}
.ticker-row .g { color: var(--dim); flex: 1; display: flex; align-items: center; gap: .4rem; }
.ticker-row .m { color: var(--brand-2); }
.ticker-row .p { color: var(--win); }

.auth-art-foot {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
  text-align: center;
  font-size: .7rem;
  color: var(--faint);
}

/* ---------- colonne du formulaire ---------- */

.auth-side {
  display: grid;
  place-items: center;
  padding: 2.4rem 1.4rem;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 396px;
  animation: auth-in .5s var(--ease);
}
@keyframes auth-in { from { opacity: 0; transform: translateY(18px); } }

.auth-head { margin-bottom: 1.3rem; }
.auth-head h2 { font-size: 1.5rem; letter-spacing: -.03em; }
.auth-head .fine { margin-top: .25rem; font-size: .84rem; }

.auth-tabs { margin-bottom: 1.4rem; }

/* champ avec icone de tete et bouton d'action */
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon input { padding-left: 2.5rem; }
.input-icon .lead {
  position: absolute;
  left: .72rem;
  display: grid;
  place-items: center;
  color: var(--faint);
  pointer-events: none;
  transition: color .18s;
}
.input-icon:focus-within .lead { color: var(--brand-2); }
.input-icon:has(input:not(:placeholder-shown)) input:invalid { border-color: rgba(212, 69, 63, .5); }

.reveal {
  position: absolute;
  right: .4rem;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--faint);
  cursor: pointer;
}
.reveal:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.hint {
  display: block;
  margin-top: .3rem;
  font-style: normal;
  font-size: .71rem;
  color: var(--faint);
}
.hint.ok { color: var(--win); }
.hint.ko { color: var(--loss); }

/* jauge de robustesse */
.strength { margin-top: .45rem; }
.strength .bars { display: flex; gap: .22rem; }
.strength i {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--surface-3);
  transition: background .28s var(--ease);
}
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--loss); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--gold); }
.strength[data-level="3"] i:nth-child(-n+3) { background: #6ee7c0; }
.strength[data-level="4"] i { background: var(--win); }
.strength em {
  display: block;
  margin-top: .3rem;
  font-style: normal;
  font-size: .71rem;
  color: var(--faint);
}

/* bouton en attente */
#auth-submit { position: relative; }
#auth-submit[data-busy] .label { opacity: 0; }
.spinner {
  position: absolute;
  width: 17px; height: 17px;
  border: 2px solid rgba(255, 255, 255, .32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-legal { margin-top: 1.1rem; text-align: center; }

@media (max-width: 940px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art {
    padding: 2.2rem 1.4rem 1.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-art-inner { max-width: 520px; }
  .auth-art-inner .logo { margin-bottom: 1.4rem; }
  .perks, .ticker, .auth-art-foot { display: none; }
  .auth-side { padding: 2rem 1.4rem 3rem; }
}

.error { margin: .2rem 0 .7rem; color: var(--loss); font-size: .82rem; animation: err-in .35s var(--ease); }
@keyframes err-in { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ==================================================================
   Notifications et divers
   ================================================================== */

#toasts {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 940;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: min(360px, calc(100vw - 2.2rem));
}
.toast {
  position: relative;
  overflow: hidden;
  padding: .72rem .9rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow);
  font-size: .84rem;
  animation: toast-in .3s var(--spring);
}
.toast.ok { border-left-color: var(--win); }
.toast.ko { border-left-color: var(--loss); }
.toast .bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: currentColor;
  opacity: .3;
  transform-origin: left;
  animation: drain 4.4s linear forwards;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.94); } }
@keyframes drain { to { transform: scaleX(0); } }

.skeleton {
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

.foot {
  padding: 1.4rem 1.3rem 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .72rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Dice : bulle de résultat accrochée au marqueur ---------- */

.dice-bubble {
  position: absolute;
  bottom: 26px;
  transform: translateX(-50%) scale(.6);
  padding: .22rem .5rem;
  border-radius: 8px;
  font: 800 .82rem var(--mono);
  background: var(--surface-3);
  color: var(--dim);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: left .55s var(--spring), opacity .2s, transform .3s var(--spring);
}
.dice-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0; height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}
.dice-bubble.show { opacity: 1; transform: translateX(-50%) scale(1); }
.dice-bubble.win  { background: var(--win);  color: #04241b; }
.dice-bubble.lose { background: var(--loss); color: #fff; }
.dice-bubble.win::after  { border-top-color: var(--win); }
.dice-bubble.lose::after { border-top-color: var(--loss); }

.dice-track.rolling { animation: track-pulse .7s ease-in-out infinite; }
@keyframes track-pulse {
  50% { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .65), 0 0 22px rgba(180, 34, 47, .45); }
}

/* ---------- Slots : suspense sur le dernier rouleau ---------- */

.reel.suspense {
  border-color: rgba(201, 162, 39, .85);
  box-shadow: 0 0 26px rgba(201, 162, 39, .45);
  animation: suspense .55s ease-in-out infinite;
}
@keyframes suspense {
  50% { box-shadow: 0 0 40px rgba(201, 162, 39, .75); }
}

/* ---------- Blackjack : jeton lancé sur le tapis ---------- */

.chip-toss {
  position: fixed;
  z-index: 940;
  width: 30px; height: 30px;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-conic-gradient(var(--brand) 0 30deg, #fff 30deg 60deg);
  border: 3px solid var(--brand-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
}

/* ==================================================================
   Symboles dessines (lib/symbols.js)
   ================================================================== */

.sy { display: block; }
.tile .glyph { display: grid; place-items: center; width: 62%; }
.tile .glyph .sy { width: 100%; height: auto; }
.reel-cell .sy { width: 62%; height: auto; }
.reel-cell { font-size: 0; }
td .sy { display: inline-block; vertical-align: middle; }

/* ==================================================================
   Menu des jeux
   ================================================================== */

.menu-intro { margin: 0 0 .9rem; font-size: .82rem; color: var(--dim); line-height: 1.5; }
.menu-grid { display: grid; gap: .5rem; }

.menu-card {
  display: grid;
  grid-template-columns: 68px 1fr 22px;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .55rem .7rem .55rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(120deg, color-mix(in srgb, var(--tint) 12%, var(--surface-2)), var(--surface));
  text-align: left;
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.menu-card:hover,
.menu-card:focus-visible {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--tint) 60%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.menu-art {
  width: 68px;
  height: 68px;
  border-radius: 11px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.menu-art svg { width: 100%; height: 100%; display: block; }

.menu-txt { min-width: 0; display: block; }
.menu-name { display: block; font-weight: 800; font-size: .96rem; }
.menu-pitch {
  display: block;
  margin-top: .1rem;
  font-size: .76rem;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-tags { display: flex; gap: .35rem; margin-top: .35rem; flex-wrap: wrap; }
.menu-rtp, .menu-edge {
  padding: .1rem .4rem;
  border-radius: 6px;
  font: 700 .62rem var(--mono);
}
.menu-rtp {
  color: #fff;
  background: color-mix(in srgb, var(--tint) 26%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 48%, transparent);
}
.menu-edge { color: var(--faint); border: 1px solid var(--line); }
.menu-go { color: var(--faint); display: grid; place-items: center; }
.menu-card:hover .menu-go { color: #fff; }

/* ==================================================================
   Bouton "Jeux" de la barre du haut
   ================================================================== */

.games-btn { display: inline-flex; align-items: center; gap: .4rem; }
.games-btn .gb-ic { display: grid; place-items: center; }

/* ==================================================================
   Barre du bas (telephone)
   ================================================================== */

.tabbar { display: none; }

@media (max-width: 780px) {
  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom));
    background: rgba(9, 11, 20, .93);
    backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid var(--line);
  }
  .tabbar button {
    display: grid;
    justify-items: center;
    gap: .16rem;
    padding: .42rem 0 .34rem;
    border: 0;
    background: none;
    border-radius: 12px;
    color: var(--faint);
    font: 700 .62rem var(--sans, inherit);
    cursor: pointer;
    transition: color .18s, background .18s;
  }
  .tabbar button .ic { display: grid; place-items: center; }
  .tabbar button.active { color: #fff; background: rgba(180, 34, 47, .2); }
  .tabbar button:active { transform: scale(.94); }

  /* la barre ne doit pas recouvrir le bas des pages */
  .content { padding-bottom: 5.4rem; }
}

/* ==================================================================
   Telephone : mise en page
   ================================================================== */

/* Un enfant de grille prend par defaut la largeur de son contenu le plus
   large : la grille de Mines et la table de gains faisaient deborder le
   panneau bien au-dela de l'ecran. */
.game-layout > * { min-width: 0; }
.bet-panel > *, .stage-wrap > * { max-width: 100%; }

@media (max-width: 780px) {
  .games-btn .gb-txt { display: none; }
  .games-btn { padding-inline: .6rem; }

  /* deux vignettes par ligne plutot qu'une seule, enorme */
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .game-card .name { font-size: .88rem; }
  .game-card .rtp { font-size: .58rem; }
  .game-card .fair { font-size: .5rem; padding: .16rem .38rem; }
  .game-card .go { display: none; }

  .hero { padding: 1.4rem 1.1rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero .cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hero .cta .btn:first-child { grid-column: 1 / -1; }
  .hero-stats { gap: .9rem 1.4rem; }

  .stage { min-height: 260px; padding: 1rem; }
  .stage-wrap { padding: .7rem; }
  .bet-panel { padding: .85rem; }

  .topbar { padding: 0 .7rem; gap: .45rem; }
  .balance-pill .k { display: none; }

  /* cibles tactiles : rien en dessous de 40 px de haut */
  .avatar, .burger, #user-btn { width: 40px; height: 40px; }
  .chips .chip { min-height: 38px; padding-inline: .8rem; }
  .tile { border-radius: 9px; }
  .minefield { width: 100%; gap: .38rem; }

  .modal { width: 100%; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .overlay { align-items: end; padding: 0; }

  .menu-card { grid-template-columns: 58px 1fr 20px; gap: .7rem; }
  .menu-art { width: 58px; height: 58px; }
}

/* Le flux des paris tient sur un ecran etroit : on retire les colonnes
   secondaires plutot que de laisser la table deborder. */
@media (max-width: 620px) {
  .feed th:nth-child(2), .feed td:nth-child(2),
  .feed th:nth-child(3), .feed td:nth-child(3) { display: none; }
  .feed table { font-size: .78rem; }
  .feed-head { padding: .7rem; gap: .5rem; }
}

@media (max-width: 780px) {
  /* les messages ne doivent pas passer sous la barre du bas */
  #toasts {
    right: .7rem;
    left: .7rem;
    bottom: calc(4.9rem + env(safe-area-inset-bottom));
  }
  #toasts .toast { width: 100%; }
}

@media (max-width: 420px) {
  .game-grid { gap: .5rem; }
  .hero h1 { font-size: 1.35rem; }
  .readout { font-size: 2.6rem; }
  .felt { max-width: 100%; }
  .road { height: 220px; }
}

/* ==================================================================
   Matière
   ================================================================== */

/**
 * Un grain très fin sur toute la page.
 *
 * Les dégradés parfaitement lisses sont ce qui trahit le plus vite une
 * maquette sortie d'un gabarit : rien, dans un lieu réel, n'est aussi propre.
 * Le bruit casse les bandes de dégradé et donne au noir une texture de feutre.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
.shell, .gate { position: relative; z-index: 2; }

/* Filet doré sous la barre du haut : le détail d'encadrement qu'on trouve sur
   une carte de jeu, absent de toutes les maquettes plates. */
.topbar { border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(201, 162, 39, .22); }

/* ==================================================================
   Ligne de mise
   ================================================================== */

/**
 * Remplace les tuiles grises du panneau de jeu.
 *
 * Trois encadrés à fond gris et libellé minuscule en capitales, c'est la
 * grammaire d'un tableau de bord, pas d'une table de jeu. Ici : un libellé, un
 * filet, un chiffre — la mise en page d'une addition.
 */
.bet-lines { margin: 0 0 1rem; display: grid; gap: 0; }
.bet-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.bet-lines > div:last-child { border-bottom: 0; }
.bet-lines dt { color: var(--dim); font-size: .82rem; }
.bet-lines dd {
  margin: 0;
  font: 700 1.05rem var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.bet-lines dd.good { color: var(--gold); }

/* Les tuiles qui restent ailleurs perdent leur boîte : filet seul. */
.stat {
  padding: .55rem 0 .5rem;
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.stat:hover { transform: none; border-color: var(--line); }
.stat .v { font-size: 1.08rem; }
.grid.cards .stat { padding-inline: 0; }

/* Champs éditables posés dans une ligne de mise : ils doivent se comporter
   comme du texte, pas comme un formulaire. Le liseré n'apparaît qu'au focus. */
.inline-num {
  width: 5.4ch;
  padding: .1rem .18rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inline-num:hover { border-color: var(--line); }
.inline-num:focus {
  outline: none;
  border-color: rgba(201, 162, 39, .7);
  background: rgba(201, 162, 39, .1);
}
.bet-lines .unit { opacity: .55; margin: 0 .1rem; }
.bet-lines dt label { cursor: text; }

/* ==================================================================
   Récompenses
   ================================================================== */

.rank-head { display: flex; align-items: center; gap: 1.3rem; padding: 1.4rem 1.5rem; }
.rank-mark { flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.rank-txt { min-width: 0; flex: 1; }
.rank-k {
  font: 700 .6rem var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.rank-head h1 { margin: .12rem 0 .3rem; font-size: 1.9rem; }
.rank-bar {
  margin-top: .7rem;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 240, 220, .09);
  overflow: hidden;
}
.rank-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #a8791a, #f0d375);
}

.claim { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.claim .montant { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }

table.ranks td, table.ranks th { padding: .5rem 1rem; text-align: left; }
table.ranks th { font: 700 .6rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
table.ranks td { border-top: 1px solid var(--line); font-size: .86rem; }
table.ranks .nom { font-family: var(--serif); font-size: 1rem; }
table.ranks tr.a-venir td { color: var(--faint); }
table.ranks tr.ici td {
  background: rgba(201, 162, 39, .1);
  box-shadow: inset 2px 0 0 var(--gold);
}

/* ==================================================================
   Cibles tactiles
   ================================================================== */

/**
 * Sur téléphone, tout ce qui se tape fait au moins 44 px.
 *
 * C'est la taille d'une pulpe de pouce, et la recommandation d'Apple comme de
 * Google. En dessous, on rate la cible une fois sur trois — le menu et le
 * sélecteur de devise étaient à 40 et 31.
 */
@media (max-width: 780px) {
  .avatar, .burger, #user-btn, #rail-toggle { width: 44px; height: 44px; }
  .games-btn { min-width: 44px; min-height: 44px; }
  .balance-pill .cur { min-height: 44px; padding-inline: .7rem; }
  #open-wallet { min-height: 44px; }
  .modal-close { width: 44px; height: 44px; }
  .tabbar button { min-height: 52px; }
  .chips .chip { min-height: 40px; }

  /* la zone tapable dépasse le dessin sans décaler la mise en page */
  .reveal { position: relative; }
  .reveal::after { content: ''; position: absolute; inset: -10px; }
}

/* ==================================================================
   Trésorerie (back-office)
   ================================================================== */

/** Le calcul se lit comme une addition : chaque ligne dit d'où vient le chiffre. */
.tr-calcul { display: grid; gap: 0; margin: .3rem 0 0; }
.tr-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .52rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
}
.tr-ligne span { color: var(--dim); }
.tr-ligne b { font-size: 1rem; }
.tr-ligne.total {
  border-bottom: 0;
  border-top: 2px solid var(--line-strong);
  margin-top: .2rem;
  padding-top: .7rem;
}
.tr-ligne.total span { color: var(--text); font-weight: 600; }
.tr-ligne.total b { font-size: 1.35rem; }
.tr-ligne.intouchable {
  border-bottom: 0;
  padding-top: .2rem;
  font-size: .78rem;
  opacity: .65;
}

.check { display: flex; align-items: center; gap: .6rem; font-size: .86rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.field .hint { display: block; margin-top: .3rem; color: var(--faint); font-size: .74rem; font-style: normal; line-height: 1.5; }

/* --- Mode jetons sans valeur ------------------------------------------
   Bandeau permanent, en haut de la coque. Il n'est pas discret volontairement :
   un joueur qui croit pouvoir retirer ses gains a ete trompe, meme si personne
   ne le lui a dit. Il doit rester lisible partout, y compris au telephone. */
.bandeau-jetons {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: .5rem 1rem;
  background: linear-gradient(90deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .1));
  border-bottom: 1px solid var(--gold);
  color: var(--text);
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
}
.bandeau-jetons b { color: var(--gold); letter-spacing: .02em; }

@media (max-width: 640px) {
  .bandeau-jetons { font-size: .74rem; padding: .45rem .7rem; text-align: left; }
}
