:root {
  /* Thème « Fremont » : enseignes au néon de Las Vegas */
  --felt: #14081A;      /* fond */
  --felt-2: #1F0F27;    /* panneaux */
  --ink: #0D0511;       /* le plus sombre */
  --brass: #FF4F9A;     /* néon rose : accent principal */
  --brass-hi: #FFB547;  /* néon ambre : montants, gains */
  --cyan: #3DE0F0;      /* néon cyan : accent secondaire */
  --ivory: #F6EFFA;     /* texte */
  --ivory-dim: #B9A8C2; /* texte secondaire */
  --red: #D7264F;
  --green: #1FA36A;
  --line: rgba(246, 239, 250, 0.12);
  --up: #5CF2A0;
  --down: #FF5C6C;
  --glow-pink: 0 0 10px rgba(255, 79, 154, .75), 0 0 28px rgba(255, 79, 154, .45);
  --glow-amber: 0 0 10px rgba(255, 181, 71, .8), 0 0 30px rgba(255, 181, 71, .45);
  --radius-sm: 8px;
  --radius: 16px;
  --display: 'Bungee', Impact, sans-serif;
  --logo: 'Monoton', 'Bungee', cursive;
  --body: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ivory);
  background: var(--ink);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "top top" "rail main";
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-family: var(--display);
  font-size: 30px;
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.me { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--felt-2); display: grid; place-items: center;
  font-weight: 600; object-fit: cover; flex: none;
}
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.linkbtn { background: none; border: 0; color: var(--ivory-dim); cursor: pointer; padding: 4px; text-decoration: underline; }

/* Le jeton Raskoin : l'élément signature */
.chip {
  --size: 44px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle, var(--felt) 0 54%, transparent 55%),
    repeating-conic-gradient(var(--brass) 0 15deg, var(--ivory) 15deg 30deg);
  box-shadow: inset 0 0 0 3px var(--brass), 0 2px 0 #00000055;
  display: grid; place-items: center;
  font-family: var(--display);
  color: var(--brass-hi);
  font-size: calc(var(--size) * 0.42);
}
.chip.sm { --size: 22px; box-shadow: inset 0 0 0 2px var(--brass); }
.balance { display: flex; align-items: center; gap: 10px; }
.balance .amount { font-family: var(--display); font-size: 26px; color: var(--ivory); line-height: 1; }
.balance .unit { font-size: 13px; color: var(--ivory-dim); }
.balance.bump .amount { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.12); color: var(--brass-hi); } }

/* ---------- Rail ---------- */
.rail {
  grid-area: rail;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  position: sticky; top: 69px; align-self: start;
  height: calc(100vh - 69px);
}
.rail a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ivory-dim);
}
.rail a:hover { color: var(--ivory); background: rgba(246,239,250,.05); }
.rail a.active { color: var(--ink); background: var(--brass); font-weight: 600; }
.rail .ico { width: 22px; text-align: center; }

/* ---------- Zone principale ---------- */
main {
  grid-area: main;
  padding: 28px clamp(16px, 4vw, 48px) 64px;
  background: radial-gradient(ellipse at 50% 0%, var(--felt-2), var(--felt) 70%);
  min-width: 0;
}
main:focus { outline: none; }
h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 6px; color: var(--ivory); }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.lede { color: var(--ivory-dim); margin: 0 0 28px; max-width: 62ch; }
.muted { color: var(--ivory-dim); }

.table {
  background: rgba(31, 15, 39, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 920px;
}
.stack { display: grid; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Contrôles ---------- */
.btn {
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 26px; font-weight: 600; text-decoration: none; display: inline-block;
  background: var(--brass); color: var(--ink);
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brass-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ivory-dim); }
.btn.big { padding: 15px 34px; font-size: 18px; }
.btn.discord { background: #5865F2; color: #fff; }
.btn.discord:hover { background: #6d78f5; }

.bet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bet label { color: var(--ivory-dim); margin-right: 4px; }
.input {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; width: 130px;
}
.input:focus { border-color: var(--brass); outline: none; }
.mini {
  border: 1px solid var(--line); background: transparent; border-radius: var(--radius-sm);
  padding: 9px 11px; cursor: pointer; color: var(--ivory-dim);
}
.mini:hover { color: var(--ivory); border-color: var(--ivory-dim); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--ivory-dim); }
.seg button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); font-weight: 600; }

.result { min-height: 28px; font-weight: 600; }
.result.win { color: var(--brass-hi); }
.result.lose { color: var(--ivory-dim); }

/* ---------- Accueil ---------- */
.lobby { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1000px; }
.daily .big { font-family: var(--display); font-size: 44px; color: var(--brass-hi); line-height: 1.1; }
.streak { display: flex; gap: 6px; margin: 14px 0 18px; }
.streak span { width: 26px; height: 8px; border-radius: 4px; background: var(--line); }
.streak span.on { background: var(--brass); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.stats dt { color: var(--ivory-dim); font-size: 14px; }
.stats dd { margin: 0; font-size: 22px; font-weight: 600; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; max-width: 1000px; }
.games a {
  text-decoration: none; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(31,15,39,.4);
  display: grid; gap: 6px;
}
.games a:hover { border-color: var(--brass); }
.games .ico { font-size: 30px; }

/* succès */
.ach { max-width: 1000px; margin-top: 20px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line); opacity: .45; }
.ach-item span { font-size: 24px; filter: grayscale(1); }
.ach-item b { font-size: 14px; }
.ach-item small { color: var(--ivory-dim); font-size: 12px; line-height: 1.3; }
.ach-item.on { opacity: 1; border: 1px solid var(--brass); background: color-mix(in srgb, var(--brass) 10%, transparent); }
.ach-item.on span { filter: none; }

/* ---------- Connexion ---------- */
.landing { max-width: 640px; margin: 8vh auto 0; text-align: center; }
.landing .marquee { font-family: var(--display); font-size: clamp(48px, 10vw, 96px); color: var(--brass); line-height: 1; margin: 0 0 16px; }
.landing p { color: var(--ivory-dim); margin: 0 auto 32px; max-width: 46ch; }
.landing .chip { --size: 96px; margin: 0 auto 28px; }
.devform { margin-top: 28px; display: flex; gap: 8px; justify-content: center; }

/* ---------- Machine à sous ---------- */
.slots-machine {
  display: flex; gap: 12px; justify-content: center;
  padding: 18px; border-radius: var(--radius);
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--brass);
  width: fit-content; margin: 0 auto;
}
.reel {
  width: 110px; height: 120px; border-radius: 10px;
  background: var(--ivory); display: grid; place-items: center;
  font-size: 64px; overflow: hidden;
}
.reel.spinning span { animation: blur .09s linear infinite; }
@keyframes blur { 50% { transform: translateY(-6px); filter: blur(1.5px); } }
.reel.landed { animation: land .25s ease-out; }
@keyframes land { 0% { transform: translateY(-8px); } 60% { transform: translateY(3px); } }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.paytable div { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; justify-content: space-between; }
.bigwin { font-family: var(--display); font-size: 34px; color: var(--brass-hi); text-align: center; min-height: 44px; }

/* ---------- Jackpot ---------- */
.jp-pot { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--ink); box-shadow: inset 0 0 0 3px var(--brass); display: grid; gap: 4px; }
.jp-amount { font-family: var(--display); font-size: clamp(44px, 9vw, 84px); color: var(--brass-hi); line-height: 1.05; }
.jp-share { text-align: center; margin: 0; color: var(--ivory-dim); }
.jp-share b { color: var(--brass-hi); }
.jp-ticket { display: grid; justify-items: center; gap: 4px; }
.jp-ticket b { font-family: var(--display); font-weight: 400; font-size: 44px; letter-spacing: .12em; padding: 6px 22px; border-radius: 10px; background: var(--ivory); color: var(--ink); }
.jp-ticket.won b { background: var(--brass-hi); }
.jp-ticket.lost b { opacity: .7; }

/* ---------- Roulette ---------- */
.wheel-out { display: flex; align-items: center; gap: 16px; }
.pocket {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 32px;
  box-shadow: inset 0 0 0 4px var(--brass);
  background: var(--ink);
}
.pocket.red, .last .red { background: var(--red); }
.pocket.black, .last .black { background: #151515; }
.pocket.green, .last .green { background: var(--green); }
.last { display: flex; gap: 6px; flex-wrap: wrap; }
.last span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.board-wrap { overflow-x: auto; padding-bottom: 6px; }
.board {
  display: grid;
  grid-template-columns: 48px repeat(12, minmax(40px, 1fr)) 56px;
  grid-auto-rows: 46px;
  gap: 3px;
  min-width: 660px;
}
.cell {
  position: relative; border: 0; border-radius: 4px; cursor: pointer;
  font-weight: 600; color: var(--ivory); background: var(--felt-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cell:hover { box-shadow: inset 0 0 0 2px var(--brass); }
.cell.red { background: var(--red); }
.cell.black { background: #151515; }
.cell.green { background: var(--green); }
.cell.hit { box-shadow: inset 0 0 0 3px var(--brass-hi); }
.cell .stake {
  position: absolute; top: -6px; right: -4px; z-index: 1;
  min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
  background: var(--brass); color: var(--ink); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 1px 0 #0008;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--ink);
  background: repeating-conic-gradient(var(--ivory) 0 20deg, var(--ivory-dim) 20deg 40deg);
  box-shadow: inset 0 0 0 7px transparent;
}
.chips button span { display: grid; place-items: center; width: 34px; height: 34px; margin: auto; border-radius: 50%; background: var(--ivory); }
.chips button[aria-pressed="true"] { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Cartes ---------- */
.hand { display: flex; gap: 10px; min-height: 120px; flex-wrap: wrap; }
.card {
  width: 78px; height: 112px; border-radius: 8px;
  background: var(--ivory); color: #1a1a1a;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px 8px; font-weight: 700; font-size: 20px;
  box-shadow: 0 3px 0 #0006;
  animation: deal .25s ease-out;
}
.card .mid { text-align: center; font-size: 32px; }
.card .bot { transform: rotate(180deg); }
.card.redsuit { color: var(--red); }
.card.back { background: repeating-linear-gradient(45deg, var(--red), var(--red) 6px, #7d2222 6px, #7d2222 12px); box-shadow: inset 0 0 0 4px var(--ivory), 0 3px 0 #0006; }
@keyframes deal { from { transform: translateY(-14px) rotate(-4deg); opacity: 0; } }
.hand-label { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.score { background: var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 600; }

/* ---------- Crash ---------- */
.crash-screen { position: relative; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.crash-screen canvas { display: block; width: 100%; height: 280px; }
.crash-mult {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 64px; pointer-events: none;
}
.crash-mult.busted { color: var(--red); }
.crash-mult.cashed { color: var(--brass-hi); }

/* ---------- Dés ---------- */
.track { position: relative; height: 14px; border-radius: 7px; background: var(--red); overflow: visible; }
.track .win-zone { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 7px 0 0 7px; }
.track .marker {
  position: absolute; top: -34px; transform: translateX(-50%);
  background: var(--ivory); color: var(--ink); font-weight: 700; padding: 3px 9px; border-radius: 6px;
  transition: left .6s cubic-bezier(.2,.8,.2,1);
}
input[type="range"] { width: 100%; accent-color: var(--brass); }
.roll-big { font-family: var(--display); font-size: 56px; text-align: center; line-height: 1; }

/* ---------- Pile ou face ---------- */
.coin-stage { perspective: 800px; display: grid; place-items: center; height: 180px; }
.coin { width: 140px; height: 140px; position: relative; transform-style: preserve-3d; }
.coin .face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden;
  display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: var(--ink);
  background: radial-gradient(circle, var(--brass-hi), var(--brass) 70%);
  box-shadow: inset 0 0 0 8px #a8853a;
}
.coin .face.back { transform: rotateY(180deg); }
.coin.flip-pile { animation: flipPile 1.4s cubic-bezier(.3,.6,.2,1) forwards; }
.coin.flip-face { animation: flipFace 1.4s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes flipPile { from { transform: rotateY(0); } to { transform: rotateY(1800deg); } }
@keyframes flipFace { from { transform: rotateY(0); } to { transform: rotateY(1980deg); } }

/* ---------- Double ou rien ---------- */
.st-table { max-width: 820px; }
.st-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.st-step { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink); }
.st-step b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.st-step span:last-child:not(.muted) { font-size: 13px; color: var(--ivory-dim); }
.st-step.done { border-color: var(--up); background: color-mix(in srgb, var(--up) 18%, var(--ink)); }
.st-step.next { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.st-msg { text-align: center; }
.pfc-duel { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 10px 0; }
.pfc-duel div { display: grid; justify-items: center; gap: 4px; }
.pfc-duel b { font-size: 76px; line-height: 1.1; }
.pfc-duel .vs { font-family: var(--display); color: var(--brass); font-size: 22px; }
.pfc-duel b.shake { animation: shake .3s ease-in-out 3; }
@keyframes shake { 50% { transform: translateY(-14px); } }
@media (max-width: 760px) { .st-step b { font-size: 17px; } .pfc-duel b { font-size: 54px; } .st-scale .muted { font-size: 11px; } }

/* ---------- Duels ---------- */
.duel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; max-width: 1100px; }
.duel-grid .table { max-width: none; align-content: start; }
.dl-card { display: grid; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.dl-row .muted { flex: 1; font-size: 14px; }

/* ---------- Donner / admin ---------- */
.give-form { max-width: 520px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; }
.field span { color: var(--ivory-dim); }
.input.wide { width: 100%; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ivory-dim) 50%), linear-gradient(135deg, var(--ivory-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.admin-title { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--brass); margin-top: 16px; }

/* ---------- Bourse ---------- */
.up { color: var(--up); }
.down { color: var(--down); }
.bx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; max-width: 1100px; }
.bx-head .lede { margin-bottom: 18px; }
.bx-clock { display: grid; justify-items: end; gap: 2px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(31,15,39,.55); }
.bx-clock b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ivory); }
.bx-open { color: var(--up); font-size: 14px; font-weight: 600; }
.bx-ticker { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin-bottom: 14px; max-width: 1100px; scrollbar-width: thin; }
.tk-item { flex: none; border: 1px solid var(--line); background: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-item.on { border-color: var(--brass); }
.tk-item b { color: var(--brass-hi); margin-right: 4px; }
.tk-item span { margin-left: 6px; font-weight: 600; }
.tk-badge { --tk: var(--brass); width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--tk) 22%, var(--ink)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tk) 70%, transparent); }
.tk-badge.lg { width: 64px; height: 64px; font-size: 34px; border-radius: 14px; }
.bx-flash { display: flex; gap: 16px; align-items: center; max-width: 1100px; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--radius);
  background: rgba(31,15,39,.6); border-left: 4px solid var(--up); }
.bx-flash.down { border-left-color: var(--down); }
.bx-flash-tag { flex: none; font-family: var(--display); font-size: 18px; color: var(--ink); background: var(--up); padding: 6px 12px; border-radius: 6px; }
.bx-flash.down .bx-flash-tag { background: var(--down); }
.bx-flash p { margin: 2px 0 0; color: var(--ivory-dim); }
.bx-tabs { margin-bottom: 18px; }
.bx-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--brass); color: var(--ink); font-size: 12px; font-weight: 700; margin-left: 4px; }
.bx-count:empty { display: none; }
#bx-body { max-width: 1100px; display: grid; gap: 18px; }
.bx-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bx-card, .bx-hold { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(31,15,39,.45); }
.bx-card:hover, .bx-hold:hover { border-color: var(--ivory-dim); }
.bx-card.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.bx-card-t { display: grid; min-width: 0; flex: 1; }
.bx-card-t .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-card-p { display: grid; justify-items: end; font-weight: 600; }
.bx-card-p span { font-size: 13px; font-weight: 500; }
.bx-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bx-name { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; line-height: 1.1; }
.bx-price { margin-left: auto; display: grid; justify-items: end; }
.bx-price b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.bx-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.bx-chart { position: relative; height: 300px; border-radius: var(--radius-sm); background: var(--ink); }
.bx-chart canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.bx-tip { position: absolute; top: 8px; transform: translateX(-50%); background: var(--ivory); color: var(--ink); padding: 4px 10px; border-radius: 6px; font-size: 13px; pointer-events: none; white-space: nowrap; }
.bx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 20px; margin-top: 16px; }
.bx-stats div { display: grid; }
.bx-stats .muted { font-size: 13px; }
.risk-calme { color: var(--up); } .risk-modere { color: var(--brass-hi); } .risk-agite { color: #F09A4A; } .risk-extreme { color: var(--down); }
.bx-trade { display: grid; gap: 14px; max-width: 560px; }
.bx-side { width: 100%; }
.bx-side button { flex: 1; }
.bx-side button[data-side="buy"][aria-pressed="true"] { background: var(--up); color: var(--ink); }
.bx-side button[data-side="sell"][aria-pressed="true"] { background: var(--down); color: var(--ink); }
.bx-trade-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bx-trade-row.big b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--brass-hi); }
.bx-qty { display: grid; grid-template-columns: 52px 1fr 52px; gap: 6px; }
.bx-qty .input { width: 100%; text-align: center; font-size: 20px; font-weight: 600; }
.bx-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bx-go { width: 100%; background: var(--up); }
.bx-go:hover { background: #7BE0A5; }
.bx-go.sell { background: var(--down); }
.bx-go.sell:hover { background: #F08880; }
.bx-note { font-size: 13px; margin: 0; text-align: center; }
.bx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bx-tiles .table { padding: 18px; display: grid; gap: 4px; max-width: none; }
.bx-tiles b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.bx-book, .bx-tiles + .table { max-width: none; }
#bx-body .table { max-width: none; }
.bx-holdings { display: grid; gap: 8px; }
.bx-activity { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.bx-news { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bx-news p { margin: 2px 0 0; color: var(--ivory-dim); }
@media (max-width: 760px) {
  .bx-clock { justify-items: start; width: 100%; grid-template-columns: auto auto; align-items: center; }
  .bx-clock b { font-size: 26px; }
  .bx-name { font-size: 26px; }
  .bx-price b { font-size: 30px; }
  .bx-chart { height: 230px; }
  .bx-picker { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .bx-picker .bx-card { flex: 0 0 210px; }
  .bx-flash { flex-direction: column; align-items: flex-start; }
}

/* ordres automatiques */
.bx-auto { border-top: 1px solid var(--line); padding-top: 12px; }
.bx-auto summary { cursor: pointer; font-weight: 600; color: var(--brass-hi); }
.bx-auto[open] { display: grid; gap: 12px; }
.bx-auto p { margin: 0; }
.bx-auto-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bx-otype { width: 100%; }
.bx-otype button { flex: 1; }
.bx-olist { display: grid; gap: 4px; }
.bx-sub { font-size: 14px; font-weight: 500; margin: 16px 0 4px; }

/* classement hebdo */
.wk-head { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-bottom: 16px; }
.wk-head div { display: grid; }
.wk-head b { font-size: 18px; }

/* ---------- Économie ---------- */
.eco-tiles { max-width: 1100px; margin-bottom: 18px; }
.eco-tiles .table { gap: 2px; }
.eco-tiles span:last-child:not(.muted) { font-size: 14px; }
.eco-block { max-width: 1100px; margin-bottom: 18px; }
.eco-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.eco-head h2 { margin: 0; }
.eco-chart { position: relative; height: 240px; background: var(--ink); border-radius: var(--radius-sm); }
.eco-chart canvas { display: block; }
.eco-bars { display: grid; gap: 6px; margin-bottom: 18px; }
.eco-bar { display: grid; grid-template-columns: 190px 1fr 130px; align-items: center; gap: 12px; }
.eco-name { font-size: 14px; }
.eco-track { position: relative; height: 18px; background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
.eco-fill { position: absolute; top: 2px; bottom: 2px; width: var(--w); border-radius: 4px; }
.eco-fill.pos { left: 50%; background: var(--up); border-radius: 0 4px 4px 0; }
.eco-fill.neg { right: 50%; background: var(--down); border-radius: 4px 0 0 4px; }
.eco-val { text-align: right; font-weight: 600; font-size: 14px; }
.eco-note { font-size: 13px; margin: 12px 0 0; }
.eco-sum td { border-top: 1px solid var(--ivory-dim); }
@media (max-width: 760px) { .eco-bar { grid-template-columns: 1fr 90px; } .eco-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Boutique ---------- */
.shop-sec { max-width: 1100px; margin-bottom: 18px; }
.shop-sec h2 { margin-bottom: 2px; }
.shop-sec > .muted { margin: 0 0 14px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.shop-item { display: grid; gap: 6px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(31,15,39,.45); }
.shop-item.owned { border-color: var(--brass); }
.shop-swatch { --sw: var(--brass); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--sw) 28%, var(--ink)); box-shadow: inset 0 0 0 1.5px var(--sw); }
.shop-item .btn { padding: 8px 18px; }
.shop-ok { color: var(--up); font-weight: 600; }
.plink { text-decoration: none; display: inline-grid; line-height: 1.2; }
.plink:hover .pname { text-decoration: underline; }
.ptitle { color: var(--brass-hi); font-size: 12px; font-style: italic; }

/* ---------- Loterie ---------- */
.lot-table { max-width: 900px; }
.lot-tiles .table { padding: 14px; }
.lot-tiles b { font-size: 22px; }
.lot-table .field .input { width: 140px; }

/* ---------- Profil ---------- */
.me-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pf-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 1100px; margin-bottom: 20px; }
.pf-head h1 { margin: 0; }
.pf-head p { margin: 2px 0 0; }
.pf-av { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--felt-2); font-family: var(--display); font-size: 40px; box-shadow: 0 0 0 3px var(--brass); object-fit: cover; }
.pf-title { font-size: 16px; }
.pf-edit { margin-left: auto; }
.pf-tiles { max-width: 1100px; margin-bottom: 18px; }
.pf-tiles .table { gap: 2px; }
.pf-tiles .muted:last-child { font-size: 13px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; max-width: 1100px; }
.pf-grid .table { max-width: none; align-content: start; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-badge { border: 1px solid var(--brass); border-radius: 999px; padding: 4px 10px; font-size: 13px; }

/* ---------- Tableaux ---------- */
.tabs { margin-bottom: 18px; }
table.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-weight: 500; color: var(--ivory-dim); font-size: 14px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.list td { padding: 10px; border-bottom: 1px solid var(--line); }
.list td.num, .list th.num { text-align: right; }
.list tr.mine td { background: rgba(201,162,74,.12); }
.who { display: flex; align-items: center; gap: 10px; }
.rank { font-family: var(--display); color: var(--brass); width: 34px; }
.pos { color: var(--brass-hi); }
.neg { color: var(--ivory-dim); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; }
.toast {
  background: var(--ivory); color: var(--ink); padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 6px 20px #0008; max-width: 340px; font-weight: 500;
  animation: toast .25s ease-out;
}
.toast.error { background: var(--red); color: var(--ivory); }
@keyframes toast { from { transform: translateY(10px); opacity: 0; } }

body.guest { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
.rail[hidden] { display: none; }
.rail a[hidden] { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { grid-template-columns: 1fr; grid-template-areas: "top" "rail" "main"; }
  .topbar { padding: 10px 16px; }
  .logo { font-size: 22px; }
  .balance .amount { font-size: 20px; }
  .chip { --size: 34px; }
  .me .name, .me .linkbtn { display: none; }
  .rail {
    flex-direction: row; overflow-x: auto; height: auto; position: sticky; top: 57px; z-index: 9;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; background: var(--ink);
  }
  .rail a { white-space: nowrap; padding: 8px 12px; }
  h1 { font-size: 30px; }
  .table { padding: 16px; }
  .input { width: 96px; }
  .reel { width: 84px; height: 96px; font-size: 48px; }
  .crash-mult { font-size: 44px; }
}

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


/* =====================================================================
   Fremont : touches néon (par-dessus les styles de base)
   ===================================================================== */
body { background: var(--felt); }
main { background: radial-gradient(ellipse at 50% -10%, #2A0F33, var(--felt) 60%); }
.topbar { border-bottom: 2px solid var(--brass); box-shadow: 0 6px 24px rgba(255, 79, 154, .22); }
.logo { font-family: var(--logo); font-size: 34px; color: var(--brass); text-shadow: var(--glow-pink); letter-spacing: 0; text-transform: uppercase; }
h1 { font-weight: 400; letter-spacing: .01em; }
.landing .marquee { font-family: var(--logo); color: var(--brass); text-shadow: var(--glow-pink); text-transform: uppercase; }

/* solde : jeton ambre */
.chip { background: radial-gradient(circle, var(--ink) 0 54%, transparent 55%), repeating-conic-gradient(var(--brass-hi) 0 15deg, #6B3A12 15deg 30deg); box-shadow: inset 0 0 0 3px var(--brass-hi), 0 0 14px rgba(255, 181, 71, .45); color: var(--brass-hi); }
.balance .amount { color: var(--brass-hi); text-shadow: 0 0 8px rgba(255, 181, 71, .55); }

/* menu : contour néon sur l'onglet actif */
.rail { background: transparent; }
.rail a { font-family: var(--display); font-size: 13px; letter-spacing: .02em; border: 2px solid transparent; }
.rail a.active { background: transparent; color: var(--brass); border-color: var(--brass); text-shadow: 0 0 8px rgba(255, 79, 154, .7); box-shadow: 0 0 12px rgba(255, 79, 154, .35), inset 0 0 10px rgba(255, 79, 154, .15); }

/* boutons */
.btn { background: var(--brass); color: var(--ink); box-shadow: 0 0 16px rgba(255, 79, 154, .55); font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.btn:hover { background: #FF7BB3; }
.btn.ghost { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 12px rgba(61, 224, 240, .25); color: var(--cyan); background: transparent; }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(61, 224, 240, .45); }
.btn.discord { box-shadow: 0 0 16px rgba(88, 101, 242, .6); font-family: var(--body); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--brass); color: var(--ink); box-shadow: 0 0 12px rgba(255, 79, 154, .5); }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(61, 224, 240, .35); }

/* panneaux */
.table { background: rgba(31, 15, 39, .85); border-color: #3A2245; }
.games a, .bx-card, .bx-hold, .shop-item, .ach-item { background: #1F0F27; border-color: #3A2245; }
.games a:hover, .bx-card:hover, .bx-hold:hover { border-color: var(--brass); box-shadow: 0 0 14px rgba(255, 79, 154, .3); }
.bx-card.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass), 0 0 14px rgba(255, 79, 154, .35); }

/* gros montants en néon ambre */
.daily .big, .bigwin, .bx-tiles b, .bx-trade-row.big b, .jp-amount { color: var(--brass-hi); text-shadow: var(--glow-amber); }
.result.win { color: var(--brass-hi); text-shadow: 0 0 8px rgba(255, 181, 71, .5); }

/* cagnottes : cadre d'ampoules de chapiteau */
.jp-pot { position: relative; padding: 26px 16px; border-radius: 18px; background: radial-gradient(circle, var(--brass-hi) 3px, transparent 3.6px) 0 0 / 20px 20px, #3A1A12; box-shadow: 0 0 30px rgba(255, 181, 71, .35); }
.jp-pot::before { content: ""; position: absolute; inset: 10px; border-radius: 10px; background: #1A0920; }
.jp-pot > * { position: relative; }
.jp-ticket b { background: var(--ivory); }
.jp-ticket.won b { background: var(--brass-hi); box-shadow: var(--glow-amber); }

/* machine à sous et roulette */
.slots-machine { background: #1A0920; box-shadow: inset 0 0 0 3px var(--brass), 0 0 26px rgba(255, 79, 154, .4); }
.pocket { box-shadow: inset 0 0 0 4px var(--brass-hi), 0 0 18px rgba(255, 181, 71, .45); }
.cell.black, .pocket.black, .last .black { background: #0D0511; }
.chips button[aria-pressed="true"] { outline-color: var(--brass); box-shadow: 0 0 14px rgba(255, 79, 154, .6); }

/* pièce dorée */
.coin .face { background: radial-gradient(circle, #FFD98A, var(--brass-hi) 70%); box-shadow: inset 0 0 0 8px #C98A1E, 0 0 22px rgba(255, 181, 71, .5); color: #3A1A05; }

/* blackjack */
.card.back { background: repeating-linear-gradient(45deg, var(--brass), var(--brass) 6px, #B0306A 6px, #B0306A 12px); }

/* bourse */
.tk-item { background: #1A0920; border-color: #3A2245; }
.tk-item b { color: var(--brass); }
.bx-clock b { color: var(--brass-hi); text-shadow: 0 0 8px rgba(255, 181, 71, .5); }
.bx-chart, .crash-screen, .eco-chart { background: #0D0511; box-shadow: inset 0 0 0 1px #3A2245; }
.bx-flash-tag { font-family: var(--display); font-size: 14px; }

/* double ou rien */
.st-step { background: #1A0920; border-color: #3A2245; }
.st-step.done { border-color: var(--up); background: color-mix(in srgb, var(--up) 14%, #1A0920); box-shadow: 0 0 12px rgba(92, 242, 160, .3); }
.st-step.next { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass), 0 0 14px rgba(255, 79, 154, .4); }
.st-step b, .pfc-duel .vs { color: var(--brass-hi); }

/* classements, profil, boutique */
.rank { color: var(--brass); text-shadow: 0 0 8px rgba(255, 79, 154, .5); }
.list tr.mine td { background: rgba(255, 79, 154, .1); }
.pf-av { box-shadow: 0 0 0 3px var(--brass), 0 0 22px rgba(255, 79, 154, .55); }
.ptitle { color: var(--cyan); }
.pf-badge { border-color: var(--brass-hi); }
.shop-item.owned { border-color: var(--brass-hi); box-shadow: 0 0 12px rgba(255, 181, 71, .25); }
.ach-item.on { border-color: var(--brass-hi); background: color-mix(in srgb, var(--brass-hi) 10%, #1F0F27); }
.admin-title { font-family: var(--display); color: var(--brass); text-shadow: var(--glow-pink); }

/* toasts */
.toast { background: #1F0F27; color: var(--ivory); border: 2px solid var(--cyan); box-shadow: 0 0 18px rgba(61, 224, 240, .35); }
.toast.error { background: #2A0812; border-color: var(--down); box-shadow: 0 0 18px rgba(255, 92, 108, .35); }

/* Fremont sur mobile (après les touches néon, pour qu'elles ne regrossissent pas tout) */
@media (max-width: 760px) {
  .logo { font-size: 19px; }
  .topbar { gap: 10px; }
  .balance .amount { font-size: 18px; }
  .chip { --size: 32px; }
  .rail a { font-size: 12px; }
  h1 { font-size: 26px; }
  .bx-name { font-size: 22px; }
  .landing .marquee { font-size: clamp(34px, 12vw, 64px); }
  .seg.tabs { flex-wrap: wrap; border-radius: 16px; }
  .seg.tabs button { padding: 7px 12px; }
}

/* ---------- Panneau admin ---------- */
.adm-tabs { flex-wrap: wrap; border-radius: 16px; margin-bottom: 22px; }
.adm-body { max-width: 1100px; }
.adm-body .table { max-width: none; }
.adm-body h3 { margin: 0 0 14px; font-size: 18px; }
.adm-body h4 { margin: 18px 0 6px; color: var(--ivory-dim); font-weight: 500; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.adm-bar .input { width: min(320px, 100%); }
.adm-scroll { overflow-x: auto; }
.adm-list { min-width: 720px; }
.adm-row { cursor: pointer; }
.adm-row:hover td, .adm-row:focus td { background: rgba(255, 79, 154, .08); }
.adm-row:focus { outline: none; }
.adm-sort { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.adm-sort:hover { color: var(--ivory); }
.adm-who { display: inline-flex; gap: 10px; align-items: center; }
.adm-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ivory-dim); vertical-align: middle; }
.adm-tag.admin { color: var(--cyan); border-color: var(--cyan); }
.adm-tag.ban { color: var(--down); border-color: var(--down); }
.adm-tag.hid { color: var(--brass-hi); border-color: var(--brass-hi); }
.adm-head { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; }
.adm-head h2 { margin: 0 0 4px; }
.adm-head p { margin: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; box-shadow: 0 0 0 3px var(--brass), 0 0 22px rgba(255, 79, 154, .45); }
.adm-alert { color: var(--down); font-weight: 600; margin-top: 6px !important; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.adm-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-inline .input { flex: 1 1 180px; width: auto; }
.adm-inline.sm { justify-content: flex-end; flex-wrap: nowrap; }
.adm-inline.sm .input { flex: 0 0 110px; width: 110px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.adm-actions .input { flex: 1 1 180px; width: auto; }
.adm-form { display: grid; gap: 12px; }
.adm-form .input { width: 100%; }
.adm-form textarea.input { resize: vertical; min-height: 110px; }
.adm-form .btn { justify-self: start; }
.adm-reset { display: grid; gap: 10px; }
.adm-reset .input { width: 100%; }
.adm-check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.adm-check input { accent-color: var(--brass); width: 18px; height: 18px; }
.adm-small { font-size: 13px; margin: 10px 0 0; }
.adm-big { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--brass-hi); text-shadow: var(--glow-amber); }
.adm-ul { margin: 0 0 12px; padding-left: 18px; }
.adm-more { text-align: center; margin: 12px 0 0; }
.adm-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-toggle { border: 1px dashed var(--line); background: transparent; color: var(--ivory-dim); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.adm-toggle:hover { border-color: var(--ivory-dim); }
.adm-toggle[aria-pressed="true"] { border-style: solid; border-color: var(--brass-hi); color: var(--ivory); background: rgba(255, 181, 71, .1); }
.adm-set { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.adm-set:last-child { border-bottom: 0; }
.adm-set.changed b { color: var(--brass-hi); }
.btn.danger { background: var(--down); color: #1a0509; }
.btn.danger:hover { background: #ff7a87; }
.btn.danger.ghost { background: transparent; color: var(--down); box-shadow: inset 0 0 0 1px var(--down); }
.adm-danger { border-color: rgba(255, 92, 108, .45) !important; }
.site-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: #2A0812; border: 2px solid var(--down); color: var(--ivory); box-shadow: 0 0 18px rgba(255, 92, 108, .35); font-weight: 500; text-align: center; }
@media (max-width: 760px) {
  .adm-set { flex-direction: column; align-items: stretch; }
  .adm-inline.sm { justify-content: flex-start; flex-wrap: wrap; }
  .adm-head { align-items: flex-start; }
  .avatar.lg { width: 52px; height: 52px; font-size: 22px; }
  .adm-grid { grid-template-columns: 1fr; }
}
.adm-body [hidden], .adm-more [hidden] { display: none !important; }
.adm-form textarea.input { font-family: var(--body); }
.adm-set .adm-inline.sm .input { flex-basis: 170px; width: 170px; }
@media (max-width: 760px) {
  .site-banner { border-radius: 14px; bottom: 10px; font-size: 13px; padding: 8px 12px; }
  .adm-body .eco-tiles { grid-template-columns: 1fr 1fr; }
  .adm-body .eco-tiles b { font-size: 22px; }
  .adm-set .adm-inline.sm .input { flex: 1 1 140px; }
}

/* ---------- Niveaux ---------- */
.lvbar { height: 6px; border-radius: 999px; background: rgba(246, 239, 250, .1); overflow: hidden; min-width: 60px; }
.lvbar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--brass), var(--brass-hi)); box-shadow: 0 0 8px rgba(255, 79, 154, .6); border-radius: inherit; }
.lvbar.sat i { background: var(--sat, var(--up)); box-shadow: 0 0 8px var(--sat, var(--up)); }
.lvl { display: grid; gap: 4px; text-decoration: none; color: var(--ivory); font-size: 13px; font-weight: 600; min-width: 74px; }
.lvl:hover span { color: var(--brass-hi); }
.ptier { margin-right: 4px; }
.lobby-lv { display: grid; gap: 6px; margin-bottom: 16px; }
.lobby-lv .lvbar { height: 8px; }
.holo { background: linear-gradient(90deg, #FF4F9A, #FFB547, #5CF2A0, #3DE0F0, #C3A0F5, #FF4F9A); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: holo 6s linear infinite; }
@keyframes holo { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .holo { animation: none; } }

/* ---------- Happy hour ---------- */
.hh-banner { margin-left: auto; margin-right: 18px; z-index: 40; padding: 8px 18px; border-radius: 999px; background: #0F2A1E; border: 2px solid var(--up); color: var(--ivory); text-decoration: none; box-shadow: 0 0 18px rgba(92, 242, 160, .4); font-size: 14px; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.hh-banner b { color: var(--up); }
.games a.hh { border-color: var(--up); box-shadow: 0 0 16px rgba(92, 242, 160, .35); position: relative; }
.hh-tag { position: absolute; top: 8px; right: 8px; background: var(--up); color: #062014; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }

/* ---------- Vol ---------- */
.rob-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 1100px; margin-bottom: 18px; }
.rob-top .table, .crate-grid .table, .bank-grid .table { max-width: none; }
.rob-me h2 { margin-top: 0; }
.rob-me p { margin: 6px 0; }
.rob-result { text-align: center; display: grid; place-content: center; gap: 4px; }
.rob-result h2 { margin: 0; }
.rob-result.win { border-color: var(--up); box-shadow: 0 0 22px rgba(92, 242, 160, .25); }
.rob-result.lose { border-color: var(--down); box-shadow: 0 0 22px rgba(255, 92, 108, .25); }
.rob-big { font-size: 56px; line-height: 1; }
.rob-result.pending .rob-big { animation: wiggle .4s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.rob-list { min-width: 560px; }
.rob-list a, #rob-feed a { color: var(--ivory); }
#rob-feed .dl-row { flex-wrap: nowrap; }
#rob-feed .dl-row > span:nth-child(2) { flex: 1; }

/* ---------- Banque ---------- */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 1100px; }
.bank-card h2 { margin-top: 0; }
.bank-big { font-family: var(--display); font-size: 40px; color: var(--brass-hi); text-shadow: var(--glow-amber); line-height: 1.1; }
.bank-card .lvbar { height: 10px; margin: 12px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips .btn { padding: 8px 14px; }

/* ---------- Caisses ---------- */
.crate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1100px; }
.crate { text-align: center; display: grid; gap: 8px; justify-items: center; }
.crate h2 { margin: 0; }
.crate-ico { font-size: 64px; line-height: 1; filter: drop-shadow(0 0 14px rgba(255, 181, 71, .45)); }
.crate-price { font-family: var(--display); font-size: 24px; color: var(--brass-hi); margin: 0; }
.crate-price small { font-family: var(--body); font-size: 13px; color: var(--ivory-dim); }
.crate-or { border-color: rgba(255, 181, 71, .55); }
.crate-argent { border-color: rgba(61, 224, 240, .45); }
.crate details { width: 100%; text-align: left; }
.crate summary { cursor: pointer; color: var(--ivory-dim); text-align: center; }
.loot { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 14px; }
.loot li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(246, 239, 250, .04); border-left: 3px solid var(--rc, var(--line)); }
.r-commun { --rc: #B9A8C2; } .r-rare { --rc: #3DE0F0; } .r-epique { --rc: #C3A0F5; } .r-legendaire { --rc: #FFB547; }
b.r-commun, b.r-rare, b.r-epique, b.r-legendaire { color: var(--rc); }
.crate-stage { max-width: 1100px; margin-bottom: 18px; overflow: hidden; }
.crate-reel { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--ink); padding: 10px 0; }
.reel-strip { display: flex; gap: 8px; will-change: transform; padding-left: 8px; }
.reel-item { flex: 0 0 120px; height: 120px; border-radius: 10px; background: #1F0F27; border: 2px solid var(--rc); display: grid; place-content: center; text-align: center; gap: 4px; padding: 6px; box-shadow: inset 0 -30px 40px -30px var(--rc); }
.reel-item span { font-size: 38px; }
.reel-item small { font-size: 11px; line-height: 1.2; color: var(--ivory-dim); }
.reel-item.won { transform: scale(1.06); box-shadow: 0 0 24px var(--rc), inset 0 -30px 40px -30px var(--rc); transition: transform .3s, box-shadow .3s; }
.reel-mark { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--brass); box-shadow: var(--glow-pink); }
.crate-res { text-align: center; font-size: 18px; margin: 14px 0 0; min-height: 1.4em; }

/* ---------- Mascotte ---------- */
.pet-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 1000px; margin-bottom: 18px; }
.pet-opt { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 20px 14px; border-radius: var(--radius); border: 1px solid #3A2245; background: #1F0F27; cursor: pointer; }
.pet-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pet-opt:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass), 0 0 16px rgba(255, 79, 154, .35); }
.pet-opt:has(input:focus-visible) { outline: 2px solid var(--cyan); }
.pet-emoji { font-size: 54px; line-height: 1; }
.pet-name { max-width: 520px; }
.pet-card { display: flex; gap: 28px; align-items: center; max-width: 900px; margin-bottom: 18px; }
.pet-face { font-size: 110px; line-height: 1; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 181, 71, .35)); }
.pet-card.sad .pet-face { animation: none; filter: grayscale(.7); opacity: .75; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pet-face, .rob-result.pending .rob-big { animation: none; } }
.pet-info { flex: 1; display: grid; gap: 8px; }
.pet-info h2 { margin: 0; }
.pet-info p { margin: 0; }
.pet-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; }
.pet-row .lvbar { height: 10px; }
.pf-pet { display: flex; gap: 16px; align-items: center; max-width: 1100px; margin-bottom: 18px; }
.pf-pet > div { flex: 1; }
.pf-pet-face { font-size: 44px; }
.pf-pet.sad .pf-pet-face { filter: grayscale(.7); }
.pf-tiles .lvbar { margin: 4px 0; }

@media (max-width: 760px) {
  .lvl { min-width: 0; font-size: 11px; }
  .lvl .lvbar { min-width: 40px; }
  .hh-banner { display: none; }
  .pet-card { flex-direction: column; text-align: center; gap: 10px; }
  .pet-face { font-size: 84px; }
  .pet-row { grid-template-columns: 70px 1fr auto; text-align: left; }
  .reel-item { flex-basis: 96px; height: 100px; }
  .reel-item span { font-size: 30px; }
  .bank-big { font-size: 30px; }
}

.eco-head .input[type=search] { width: 220px; }
@media (max-width: 760px) { .lvl { display: none; } }

/* ---------- Menu groupé ---------- */
.rail { overflow-y: auto; gap: 1px; padding: 12px 10px 24px; scrollbar-width: thin; }
.rail a { font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; padding: 7px 12px; border-width: 1px; }
.rail a.active { font-weight: 600; }
.rail .ico { font-size: 16px; }
.rail-h { margin: 14px 12px 4px; font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); opacity: .8; }
.rail-h[hidden] { display: none; }

/* ---------- Accueil ---------- */
.lobby-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1100px; }
.lobby-top .table { max-width: none; }
.lobby-top h2 { margin-top: 0; }
.lobby-me .lvbar { height: 8px; margin: 6px 0; }
.lobby-me .stats { margin: 14px 0; }
.lobby-me .stats dd { font-size: 20px; }
.live-row { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ivory); border: 1px solid transparent; }
.live-row:hover { background: rgba(246, 239, 250, .05); border-color: var(--line); }
.live-row > span:first-child { font-size: 20px; width: 26px; text-align: center; }
.live-row b { color: var(--brass-hi); }
.live-row.hh { border-color: var(--up); background: rgba(92, 242, 160, .08); }
.live-row.warn { border-color: rgba(255, 92, 108, .5); }
.lobby-sec { max-width: 1100px; margin-top: 30px; }
.lobby-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.lobby-sec-h h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--brass); text-shadow: 0 0 10px rgba(255, 79, 154, .5); }
.lobby-sec .games { margin-top: 0; max-width: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lobby-sec .games a { gap: 2px; padding: 16px; position: relative; }
.lobby-sec .games .ico { font-size: 28px; margin-bottom: 6px; }
.lobby-sec .games b { font-size: 16px; color: var(--ivory); }
.lobby-sec .games small { color: var(--ivory-dim); font-size: 13px; line-height: 1.3; }

@media (max-width: 760px) {
  .rail { overflow-y: hidden; padding: 6px 10px; gap: 4px; }
  .rail a { font-size: 13px; padding: 6px 10px; }
  .rail-h { margin: 6px 4px; font-size: 0; width: 1px; min-width: 1px; background: var(--line); opacity: 1; align-self: stretch; }
  .lobby-sec .games { grid-template-columns: 1fr 1fr; }
  .lobby-sec .games a { padding: 12px; }
}
.pf-tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pf-badge.locked { opacity: .45; border-style: dashed; border-color: var(--line); }

/* Mes actions en haut de la Bourse */
.bx-mine { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .06); max-width: 1100px; }
.bx-mine-sum { display: grid; gap: 0; min-width: 120px; }
.bx-mine-sum b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--brass-hi); text-shadow: var(--glow-amber); line-height: 1.1; }
.bx-mine-sum span:last-child { font-size: 13px; }
.bx-mine-list { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.bx-mine-chip { display: flex; gap: 8px; align-items: center; text-align: left; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid #3A2245; background: #1F0F27; color: var(--ivory); cursor: pointer; font: inherit; font-size: 13px; line-height: 1.3; }
.bx-mine-chip:hover, .bx-mine-chip.on { border-color: var(--brass-hi); }
.bx-card { position: relative; }
.bx-card.held { border-color: rgba(255, 181, 71, .55); }
.bx-held { position: absolute; top: -8px; right: 8px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--brass-hi); color: #2A1400; }
textarea.input, .input { color: var(--ivory); caret-color: var(--brass); }
.input::placeholder { color: var(--ivory-dim); opacity: .7; }
::selection { background: var(--brass); color: var(--ink); }
