:root {
  --felt: #0b5d2e;
  --felt-dark: #073d1e;
  --line: rgba(255, 255, 255, 0.75);
  --red: #c0392b;
  --black: #1c1c1c;
  --green: #138a3a;
  --gold: #e8c15a;
  --text: #f4f1e8;
  --bg: #0d1a12;
  --cell-h: 58px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, rgba(24, 64, 42, 0.9), transparent 60%),
    radial-gradient(ellipse at bottom, #2a0d12, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Projecteurs qui balaient la salle, et vignette sombre sur les bords */
body::before, body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 193, 90, 0.13), transparent 28%),
    radial-gradient(circle at 80% 60%, rgba(192, 57, 43, 0.12), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(52, 152, 219, 0.08), transparent 30%);
  animation: spotlights 18s ease-in-out infinite alternate;
}
body::after { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55)); }
@keyframes spotlights {
  33% { transform: translate(6%, 4%) scale(1.1); }
  66% { transform: translate(-5%, -3%) scale(0.95); }
  100% { transform: translate(3%, -6%) scale(1.05); }
}
.topbar, main { position: relative; z-index: 1; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid var(--gold);
}
.topbar h1 {
  margin: 0; font-size: 1.4rem; color: #ffe9a8; letter-spacing: 0.04em;
  text-shadow: 0 0 4px #fff3, 0 0 10px var(--gold), 0 0 22px #e8c15a99, 0 0 40px #c0392b66;
  animation: neon 7s infinite;
}
/* néon qui grésille de temps en temps */
@keyframes neon {
  0%, 18%, 20%, 54%, 56%, 100% { opacity: 1; }
  19%, 55% { opacity: 0.55; text-shadow: none; }
}

.name-field { display: flex; flex-direction: column; }
.name-field input {
  font: inherit; width: 150px; padding: 5px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: var(--text);
}
.name-field input:focus { outline: 2px solid var(--gold); border-color: transparent; }

.stats { display: flex; gap: 18px; }
.stat { display: flex; flex-direction: column; align-items: flex-end; }
.stat .label, .name-field .label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; }
.stat .value { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#balance { color: var(--gold); transition: color 0.3s, text-shadow 0.3s; }
#balance.up { color: #7dff9e; text-shadow: 0 0 12px #7dff9e; }
#balance.down { color: #ff9a8a; }

.bank-btn {
  background: linear-gradient(#f0cf6e, #c99a2e);
  color: #2a1c00; font-weight: 800; border-color: #8a6a1c;
  box-shadow: 0 0 12px rgba(232, 193, 90, 0.4);
}
.bank-btn:hover:not(:disabled) { background: linear-gradient(#ffe08a, #d8a838); }

.toggles { display: flex; gap: 4px; }
.toggle { display: grid; place-items: center; padding: 7px; line-height: 0; }
.toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toggle.off { opacity: 0.4; }
.toggle.off svg { stroke: #ff9a8a; }

.conn { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); }
.conn::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #888; }
.conn.on::before { background: #4cff7a; box-shadow: 0 0 6px #4cff7a; }
.conn.off::before { background: #ff6b5b; }

main { max-width: 1080px; margin: 0 auto; padding: 16px; }

/* ---------- Arène : roue + joueurs ---------- */
.arena {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}
.arena .wheel-zone { flex: 1 1 520px; }

/* ---------- Roue ---------- */
.wheel-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.wheel-wrap { position: relative; width: 340px; max-width: 100%; aspect-ratio: 1; }
#wheel { width: 100%; height: 100%; display: block; position: relative; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7)); }

/* Ampoules autour de la roue */
.lights { position: absolute; inset: -12px; pointer-events: none; }
.bulb {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #ffe9a8; box-shadow: 0 0 6px #ffd76a, 0 0 12px #e8c15a;
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.37s);
}
@keyframes twinkle { 50% { opacity: 0.35; box-shadow: none; } }
.lights[data-mode="chase"] .bulb {
  animation: chase 0.7s linear infinite;
  animation-delay: calc(var(--i) * -0.7s / var(--n));
}
@keyframes chase { 0%, 70% { opacity: 0.2; box-shadow: none; } 80% { opacity: 1; background: #fff; } }
.lights[data-mode="win"] .bulb { animation: party 0.25s steps(1) infinite; }
.lights[data-mode="win"] .bulb:nth-child(odd) { animation-delay: -0.125s; }
@keyframes party { 50% { background: #ff5b4a; box-shadow: 0 0 10px #ff5b4a, 0 0 18px #c0392b; } }

/* Réactions qui s'envolent au-dessus de la roue */
.fx-emoji {
  position: absolute; bottom: 10%; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  animation: float-up 3.2s ease-out forwards;
}
.fx-emoji span { font-size: 2.2rem; filter: drop-shadow(0 2px 4px #000); }
.fx-emoji small { font-size: 0.7rem; font-weight: 700; text-shadow: 0 1px 2px #000; white-space: nowrap; }
@keyframes float-up {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  15% { transform: translateY(-20px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-260px) scale(1); opacity: 0; }
}
.pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 22px; text-shadow: 0 2px 4px #000;
}
.side { flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }

.phase { display: flex; flex-direction: column; gap: 6px; }
.phase-line { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; color: var(--gold); }
.bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.bar > div { height: 100%; width: 100%; background: linear-gradient(90deg, #c99a2e, var(--gold)); transition: width 0.2s linear; }
.bar > div.urgent { background: linear-gradient(90deg, #a31d12, #ff5b4a); }
.timer.urgent { color: #ff5b4a; animation: pulse 1s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* ---------- Joueurs ---------- */
.players {
  flex: 0 1 240px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(232, 193, 90, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
}
.players h2 { font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; margin: 0 0 8px; }
.online { font-weight: 400; text-transform: none; opacity: 0.7; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.player-list li {
  display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center;
  padding: 4px 6px; border-radius: 6px; font-size: 0.92rem;
}
.player-list li.me { background: rgba(232, 193, 90, 0.18); }
.player-list .dot { width: 10px; height: 10px; border-radius: 50%; }
.player-list .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-list .pstake { color: #ffd76a; font-weight: 700; font-variant-numeric: tabular-nums; }
.player-list .pbal { opacity: 0.75; font-variant-numeric: tabular-nums; }

/* ---------- Salon ---------- */
.lounge-title { margin-top: 14px !important; }
.feed {
  list-style: none; margin: 0; padding: 6px; height: 190px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(0, 0, 0, 0.3); border-radius: 6px; font-size: 0.82rem;
}
.feed li { line-height: 1.3; overflow-wrap: anywhere; animation: feed-in 0.3s ease-out; }
.feed li:first-child { margin-top: auto; }
.feed .ev-join, .feed .ev-reset, .feed .ev-topup { opacity: 0.7; font-style: italic; }
.feed .ev-win { color: #ffe08a; }
@keyframes feed-in { from { opacity: 0; transform: translateX(-8px); } }
.reactions { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0; }
.react-btn { padding: 3px 5px; font-size: 1.1rem; line-height: 1; background: none; border-color: transparent; }
.react-btn:hover:not(:disabled) { transform: scale(1.25); background: none; }
.chat-form { display: flex; gap: 4px; }
.chat-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.85rem; padding: 6px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: var(--text);
}
.chat-form input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.chat-form button { padding: 6px 10px; }

.result {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 800;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}
.result.empty { background: #333; opacity: 0.6; }
.result.red { background: var(--red); }
.result.black { background: var(--black); }
.result.green { background: var(--green); }
.result.pop { transform: scale(1.15); }
.result.dim { opacity: 0.5; }

.table.locked { filter: saturate(0.7); }

.message { min-height: 2.6em; font-size: 1.05rem; }
.message.win { color: #7dff9e; font-weight: 700; }
.message.lose { color: #ff9a8a; }

.history h2 { font-size: 0.8rem; text-transform: uppercase; opacity: 0.7; margin: 0 0 6px; }
.history-list { display: flex; flex-wrap: wrap; gap: 4px; }
.history-list span {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.history-list span.red { background: var(--red); }
.history-list span.black { background: var(--black); }
.history-list span.green { background: var(--green); }

/* ---------- Contrôles ---------- */
/* Collés en bas de l'écran tant que le tapis est visible : jetons et tapis toujours à portée */
.controls {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  margin: 20px -10px 12px;
  padding: 10px;
  position: sticky; bottom: 0; z-index: 6;
  background: rgba(7, 24, 15, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 193, 90, 0.3);
  border-radius: 12px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.85);
  color: #fff; font-weight: 800; font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.chip-btn:hover { transform: translateY(-2px); }
.chip-btn.selected { transform: translateY(-5px) scale(1.08); outline: 3px solid var(--gold); outline-offset: 2px; }
.chip-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
button {
  font: inherit;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}
button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.primary {
  background: linear-gradient(#f0cf6e, #c99a2e);
  color: #2a1c00; font-weight: 800; border-color: #8a6a1c;
  padding: 9px 26px;
}
button.primary:hover:not(:disabled) { background: linear-gradient(#ffe08a, #d8a838); }

/* ---------- Tapis ---------- */
.table-scroll { overflow-x: auto; padding-bottom: 8px; }
.table {
  position: relative;
  display: grid;
  grid-template-columns: 1fr repeat(12, 1fr) 1.1fr;
  grid-template-rows: repeat(3, var(--cell-h)) 46px 46px;
  min-width: 680px;
  background: var(--felt);
  border: 3px solid var(--gold);
  border-radius: 10px;
  padding: 10px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 0 40px var(--felt-dark), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.table.locked { pointer-events: none; }
.table.locked .cell, .table.locked .hotspot { cursor: default; }

.cell {
  position: relative;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  margin: -0.5px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: filter 0.1s, box-shadow 0.1s;
}
.cell:hover { filter: brightness(1.25); }
.cell.num > b {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
}
.cell.red > b { background: var(--red); }
.cell.black > b { background: var(--black); }
.cell.zero { background: var(--green); border-radius: 40px 0 0 40px; font-size: 1.4rem; }
.cell.outside { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cell .diamond { width: 22px; height: 22px; transform: rotate(45deg); border-radius: 3px; }
.cell .diamond.red { background: var(--red); }
.cell .diamond.black { background: var(--black); border: 1px solid #777; }
.cell.highlight { box-shadow: inset 0 0 0 3px var(--gold); filter: brightness(1.3); }
.cell.winner { animation: blink 0.6s ease-in-out 5; box-shadow: inset 0 0 0 4px #fff; }
@keyframes blink { 50% { background-color: rgba(255, 255, 255, 0.45); } }

.overlay {
  grid-column: 2 / 14;
  grid-row: 1 / 4;
  position: relative;
  pointer-events: none;
  z-index: 2;
}
.hotspot {
  position: absolute;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
}
.hotspot:hover { background: rgba(232, 193, 90, 0.55); box-shadow: 0 0 0 2px var(--gold); }

/* jetons posés */
.chip {
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 800; color: #fff;
  border: 3px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), 0 -2px 0 rgba(0, 0, 0, 0.25) inset;
  pointer-events: none;
  z-index: 3;
  animation: drop 0.15s ease-out;
}
.chip.won { box-shadow: 0 0 0 3px #7dff9e, 0 0 14px #7dff9e; }
.chip.mine { outline: 2px solid var(--gold); outline-offset: 2px; }
@keyframes drop { from { transform: translate(-50%, -80%) scale(1.3); opacity: 0; } }

.c-1 { background: #9aa4ad; }
.c-5 { background: #c0392b; }
.c-10 { background: #2f6fd1; }
.c-25 { background: #1e8a46; }
.c-100 { background: #222; }
.c-500 { background: #7b3fb0; }
.c-1000 { background: #c98a12; }
.c-5000 { background: #d1477a; }
.c-10000 { background: linear-gradient(135deg, #1abc9c, #0e6655); }

/* ---------- Banque ---------- */
.bank {
  border: 2px solid var(--gold); border-radius: 14px; padding: 0;
  background: linear-gradient(#173a26, #0d1a12); color: var(--text);
  box-shadow: 0 0 40px rgba(232, 193, 90, 0.35); width: min(380px, calc(100vw - 32px));
}
.bank::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
.bank-inner { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.bank h2 { margin: 0; color: var(--gold); }
.bank-note { margin: 0; opacity: 0.75; font-size: 0.9rem; }
.bank-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bank-amounts button { font-weight: 800; font-size: 1.05rem; padding: 12px; }
.bank-amounts button:hover:not(:disabled) { background: rgba(232, 193, 90, 0.25); border-color: var(--gold); }
.bank-custom { display: flex; gap: 8px; }
.bank-custom input {
  flex: 1; min-width: 0; font: inherit; padding: 8px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: var(--text);
}
.bank hr { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 2px 0; }
.reset-btn { border-color: #ff9a8a66; }
.bank-close { align-self: flex-end; }

/* ---------- Effets ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

.fx-banner {
  position: fixed; left: 50%; top: 38%; z-index: 60; pointer-events: none;
  transform: translate(-50%, -50%); text-align: center;
  animation: banner 2.9s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.fx-banner-title {
  font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 900; letter-spacing: 0.04em; color: #ffe9a8;
  text-shadow: 0 0 10px var(--gold), 0 0 30px #e8c15a, 0 4px 0 #8a6414, 0 8px 20px #000;
}
.fx-banner-sub { font-size: clamp(1.2rem, 4vw, 1.8rem); font-weight: 800; color: #7dff9e; text-shadow: 0 2px 8px #000; }
.fx-banner.big .fx-banner-title {
  background: linear-gradient(90deg, #ffe9a8, #ff5b4a, #ffe9a8, #7dff9e, #ffe9a8);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbow 1s linear infinite;
  text-shadow: none; filter: drop-shadow(0 0 12px #e8c15a) drop-shadow(0 6px 10px #000);
}
@keyframes rainbow { to { background-position: 300% 0; } }
@keyframes banner {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(0.9); opacity: 0; }
}

body.shake main { animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px); }
  40%, 60% { transform: translate(7px, -3px); }
}

.fx-toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; gap: 8px; max-width: min(320px, calc(100vw - 32px));
}
.fx-toast {
  padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  background: rgba(20, 12, 0, 0.92); border: 1px solid var(--gold); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: toast 4.5s ease forwards;
}
@keyframes toast {
  0% { transform: translateX(120%); }
  8%, 88% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .topbar h1, .bulb, .timer.urgent { animation: none !important; }
}

/* ---------- Aide ---------- */
.help { margin-top: 20px; }
.help summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.help table { border-collapse: collapse; margin: 10px 0; }
.help th, .help td { border: 1px solid rgba(255, 255, 255, 0.2); padding: 4px 10px; text-align: left; }

@media (max-width: 600px) {
  .topbar h1 span { display: none; }
  .stats { gap: 12px; }
  .stat .value { font-size: 1.05rem; }
  .wheel-wrap { width: 280px; }
  .result { width: 72px; height: 72px; font-size: 2rem; }
  .chip-btn { width: 44px; height: 44px; font-size: 0.75rem; }
  .controls { justify-content: center; }
  .name-field input { width: 110px; }
  .players { flex-basis: 100%; min-width: 0; }
  .player-list { max-height: 160px; }
  .feed { height: 140px; }
  .bank-btn { padding: 8px 10px; }
}

/* ---------- Jetons : pose plus vivante ---------- */
.chip.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 50% { transform: translate(-50%, -50%) scale(1.25); } }
.chip.ghost {
  left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none;
  transition: opacity 0.12s; animation: none; outline: none;
}
.chip.ghost.on { opacity: 0.7; }
.table.locked .chip.ghost { display: none; }
@media (hover: hover) { .table:not(.locked) .cell, .table:not(.locked) .hotspot { cursor: copy; } }

kbd {
  display: inline-block; padding: 1px 6px; border-radius: 4px; font: 700 0.75em system-ui, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.35); color: inherit;
}

/* ---------- Annonces à la française ---------- */
.announces { margin-top: 18px; padding: 12px; border: 1px solid rgba(232, 193, 90, 0.3); border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.announces.locked { opacity: 0.6; pointer-events: none; }
.announces-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.announces-head h2 { margin: 0; font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.announces-head small { text-transform: none; font-weight: 400; color: var(--text); opacity: 0.7; letter-spacing: 0; }
.announces-hint { font-size: 0.8rem; opacity: 0.7; }
.table-scroll + .announces { overflow-x: auto; }
.racetrack {
  display: grid; grid-template-columns: repeat(19, minmax(30px, 1fr)); grid-template-rows: 36px 44px 36px;
  min-width: 640px; padding: 6px; border: 3px solid var(--gold); border-radius: 60px;
  background: var(--felt); box-shadow: inset 0 0 30px var(--felt-dark);
}
.rt-num {
  padding: 0; border-radius: 0; border: 1px solid rgba(255, 255, 255, 0.6); margin: -0.5px;
  font-weight: 800; font-size: 0.85rem; color: #fff;
}
.rt-num.red { background: var(--red); }
.rt-num.black { background: var(--black); }
.rt-num.green { background: var(--green); border-radius: 0 50px 50px 0; font-size: 1.1rem; }
.rt-num:hover:not(:disabled), .rt-num.highlight { filter: brightness(1.45); box-shadow: inset 0 0 0 3px var(--gold); background-image: none; }
.rt-num.red:hover, .rt-num.red.highlight { background: #e0503f; }
.rt-num.black:hover, .rt-num.black.highlight { background: #444; }
.racetrack > .rt-num:nth-child(35) { border-radius: 40px 0 0 0; }  /* 5, en haut à gauche */
.racetrack > .rt-num:nth-child(36) { border-radius: 0 0 0 40px; }  /* 10, en bas à gauche */
.rt-end { border-left: 1px solid rgba(255, 255, 255, 0.6); }
.rt-zone {
  border-radius: 0; margin: 0 -0.5px; border: 1px solid rgba(255, 255, 255, 0.6); border-width: 0 1px;
  background: rgba(0, 0, 0, 0.12); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.rt-zone:hover:not(:disabled) { background: rgba(232, 193, 90, 0.35); }
.announce-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 10px; }
.announce-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.announce-btn { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; line-height: 1.2; }
.announce-btn small { opacity: 0.7; font-size: 0.72rem; }
.announce-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(232, 193, 90, 0.2); }
.finales { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.finales > span { opacity: 0.8; }
.finale-list { display: flex; gap: 3px; }
.finale-btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-weight: 800; }
.finale-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(232, 193, 90, 0.25); }

/* ---------- Salle de jeu : la page occupe l'écran ; les jeux s'ouvrent dans un panneau incrusté ---------- */
body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { flex: none; }

/* Fenêtre du jeu, ancrée sur le côté (par défaut), en bas, ou en plein écran ; on tire son bord pour la redimensionner */
.panel {
  position: absolute; z-index: 6; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(10, 24, 16, 0.92), rgba(4, 10, 7, 0.96)); backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 193, 90, 0.5); box-shadow: 0 0 50px rgba(0, 0, 0, 0.65);
}
.panel.dock-side {
  top: 0; right: 0; bottom: 0; width: 46%; min-width: 360px; border-width: 0 0 0 1px; border-radius: 0;
  animation: panel-side 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.panel.dock-bottom {
  left: 0; right: 0; bottom: 0; height: 62%; border-width: 1px 0 0; border-radius: 18px 18px 0 0;
  animation: panel-bottom 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.panel.dock-full { inset: 0; border: 0; border-radius: 0; animation: panel-fade 0.25s ease-out; }
@keyframes panel-side { from { transform: translateX(40%); opacity: 0; } }
@keyframes panel-bottom { from { transform: translateY(40%); opacity: 0; } }
@keyframes panel-fade { from { opacity: 0; } }
.panel.collapsed { bottom: auto; height: auto; min-width: 0; width: auto; left: auto; border-radius: 0 0 0 14px; border-width: 0 0 1px 1px; }
.panel.collapsed .panel-body { display: none; }
.panel-head {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid rgba(232, 193, 90, 0.25); background: rgba(0, 0, 0, 0.25);
}
.panel-head .game-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-switch { display: flex; padding: 2px; gap: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.15); }
.dock-switch button { padding: 4px 6px; border: 0; background: none; line-height: 0; border-radius: 6px; }
.dock-switch button[aria-pressed="true"] { background: rgba(232, 193, 90, 0.3); }
.dock-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; container-type: inline-size; }
.game-view { max-width: none; width: 100%; padding: 12px 16px 16px; }
.panel .wheel-wrap { width: 280px; }
.leave-btn { font-weight: 700; border-color: rgba(232, 193, 90, 0.6); }
.game-title { font-weight: 800; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.9rem; }

/* Accès rapides dans la salle */
.quick-travel {
  position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
  max-width: calc(100% - 24px);
}
.quick-travel span { font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; text-shadow: 0 1px 3px #000; }
.quick-travel button {
  padding: 7px 12px; font-size: 0.85rem; font-weight: 700; border-color: rgba(232, 193, 90, 0.5);
  background: rgba(6, 18, 11, 0.85); backdrop-filter: blur(4px);
}
.quick-travel button:hover:not(:disabled) { background: rgba(232, 193, 90, 0.25); }

/* Hall du casino */
.stage { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden; background: #050a07; }
#world { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: pointer; }
.prompt {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 3;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  background: linear-gradient(#f0cf6e, #c99a2e); color: #2a1c00; border-color: #8a6a1c;
  box-shadow: 0 0 20px rgba(232, 193, 90, 0.6); animation: prompt-in 0.25s ease-out;
}
.prompt:hover:not(:disabled) { background: linear-gradient(#ffe08a, #d8a838); }
.prompt kbd { border-color: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.12); }
@keyframes prompt-in { from { transform: translate(-50%, 12px); opacity: 0; } }
.controls-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  font-size: 0.8rem; opacity: 0.75; white-space: nowrap; pointer-events: none;
  padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.5);
}
@media (hover: none) { .controls-hint { display: none; } }
.hall-hud { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: flex; gap: 6px; }
.hud-btn {
  padding: 7px 12px; font-size: 0.85rem; font-weight: 700; border-color: rgba(232, 193, 90, 0.5);
  background: rgba(6, 18, 11, 0.85); backdrop-filter: blur(4px);
}
.hud-btn[aria-pressed="true"] { background: linear-gradient(#ff7ac3, #c2185b); border-color: #ff9ad2; }
.stage.seated .quick-travel, .stage.seated .controls-hint, .stage.seated .hall-hud { display: none; }
.stage.seated .salon.floating { top: 12px; right: 12px; left: auto; bottom: auto; }
.chat-form svg, .shop-turn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Salon : dans la colonne des joueurs à table, flottant dans le hall */
.lounge-title {
  display: flex; align-items: center; gap: 6px; width: 100%; margin: 14px 0 8px; padding: 0;
  border: 0; background: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; opacity: 0.8; cursor: default;
}
.lounge-title:hover:not(:disabled) { background: none; }
.unread { background: #e74c3c; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 0.7rem; }
.salon.floating {
  position: absolute; left: 12px; bottom: 12px; z-index: 4; width: min(310px, calc(100% - 24px));
  padding: 8px 10px; border-radius: 12px; background: rgba(6, 18, 11, 0.88); backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 193, 90, 0.4); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.salon.floating .lounge-title { margin: 0 0 6px; cursor: pointer; opacity: 1; }
.salon.floating .feed { height: 150px; }
.salon.floating.collapsed .salon-body { display: none; }
.salon.floating.collapsed .lounge-title { margin: 0; }
.salon-chevron { display: none; }
.salon.floating .salon-chevron {
  display: inline-block; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; opacity: 0.8;
}
.salon.floating.collapsed .salon-chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.salon.floating.collapsed { padding: 6px 12px; cursor: pointer; }

/* Écran d'accueil */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(24, 64, 42, 0.92), rgba(5, 10, 7, 0.97));
}
.splash-card { width: min(560px, 100%); text-align: center; display: flex; flex-direction: column; gap: 16px; }
.splash-title {
  font: 900 clamp(2.6rem, 10vw, 4.4rem) "Brush Script MT", "Segoe Script", cursive, system-ui;
  color: #ffe9a8; text-shadow: 0 0 10px var(--gold), 0 0 30px #c0392b, 0 4px 0 #8a6414;
  animation: neon 7s infinite;
}
.splash-sub { margin: -8px 0 0; opacity: 0.8; }
.splash-name { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 0.85rem; text-transform: uppercase; opacity: 0.9; }
.splash-name input {
  font: inherit; font-size: 1.1rem; text-transform: none; text-align: center; width: min(260px, 100%);
  padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(232, 193, 90, 0.6); background: rgba(0, 0, 0, 0.35); color: var(--text);
}
.splash-name input:focus { outline: 2px solid var(--gold); }
.splash-enter { align-self: center; font-size: 1.15rem; padding: 14px 34px; border-radius: 999px; box-shadow: 0 0 22px rgba(232, 193, 90, 0.5); }
.splash-help { margin: 0; font-size: 0.85rem; opacity: 0.75; }


@media (max-width: 600px) {
  .topbar { gap: 6px 10px; padding: 8px 12px; }
  .topbar h1 { font-size: 1.1rem; }
  .name-field, .stat:nth-child(3), .conn { display: none; }
  .toggle { padding: 5px 7px; }
  .bank-btn { padding: 7px 10px; font-size: 0.9rem; }
  .dock-switch [data-dock="side"] { display: none; }
  .panel-head { padding: 6px 10px; gap: 6px; }
  .game-view { padding: 10px; }
  .hall-hud { top: 10px; bottom: auto; right: 10px; }
  .hud-btn { padding: 6px 9px; font-size: 0.8rem; }
  .hud-btn kbd { display: none; }
  .leave-btn { padding: 7px 10px; font-size: 0.9rem; }
  .leave-btn kbd { display: none; }
  .quick-travel { top: auto; bottom: 10px; left: 10px; right: 10px; justify-content: center; max-width: none; }
  .quick-travel span { display: none; }
  .quick-travel button { padding: 6px 9px; font-size: 0.8rem; }
  .salon.floating { top: 10px; bottom: auto; left: 10px; }
  .salon.floating .feed { height: 120px; }
  .prompt { bottom: 56px; }
}
.salon.floating.collapsed { width: auto; }

/* ---------- Jeux à une colonne + panneau latéral (salon) ---------- */
.game-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.game-main { flex: 1 1 560px; min-width: 0; }
.side-panel:not(.players) {
  flex: 0 1 260px; min-width: 220px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(232, 193, 90, 0.35);
}
.side-panel:not(.players) .lounge-title { margin-top: 0; }
.small-btn { padding: 5px 10px; font-size: 0.82rem; }

/* ---------- Blackjack ---------- */
.bj-felt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 16px 18px; border: 3px solid var(--gold); border-radius: 18px 18px 200px 200px / 18px 18px 60px 60px;
  background: radial-gradient(ellipse at 50% 35%, #138a45, var(--felt) 55%, var(--felt-dark));
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 400px;
}
.bj-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; display: flex; align-items: center; gap: 8px; }
.bj-rules {
  font: italic 600 0.85rem Georgia, "Times New Roman", serif; color: #ffe9a8; opacity: 0.8; text-align: center;
  padding: 4px 18px; border-top: 1px solid rgba(232, 193, 90, 0.5); border-bottom: 1px solid rgba(232, 193, 90, 0.5);
}
.bj-hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; min-height: 150px; }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 2px solid transparent; }
.bj-hand.active { border-color: rgba(232, 193, 90, 0.7); background: rgba(232, 193, 90, 0.08); }
.bj-hand-info { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 0.85rem; }
.bj-hand-bet { opacity: 0.8; }
.bj-empty { align-self: center; opacity: 0.7; font-style: italic; }
.bj-score {
  display: inline-block; min-width: 28px; padding: 2px 9px; border-radius: 999px; text-align: center;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.35); font-weight: 800; font-size: 0.85rem; text-transform: none; letter-spacing: 0;
}
.bj-score.bust, .bj-score.outcome.bust, .bj-score.outcome.lose { border-color: #ff9a8a; color: #ffb3a7; }
.bj-score.outcome.win, .bj-score.outcome.blackjack { border-color: #7dff9e; color: #7dff9e; background: rgba(20, 80, 40, 0.7); }
.bj-score.outcome.blackjack { border-color: var(--gold); color: #ffe9a8; box-shadow: 0 0 12px rgba(232, 193, 90, 0.6); }
.bj-message { text-align: center; min-height: 1.6em; }
.cards { display: flex; justify-content: center; min-height: 112px; padding-left: 34px; }
.card {
  position: relative; width: 78px; height: 112px; margin-left: -34px; border-radius: 8px;
  background: #fdfbf5; border: 1px solid #c9c2b0; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  font-family: Georgia, "Times New Roman", serif; user-select: none;
}
.card.red { color: #c0392b; }
.card.black { color: #1a1a1a; }
.card .corner { position: absolute; top: 5px; left: 7px; font-size: 0.95rem; font-weight: 700; line-height: 1; }
.card .corner.bottom { top: auto; left: auto; bottom: 5px; right: 7px; transform: rotate(180deg); }
.card .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; }
.card.back {
  background: repeating-linear-gradient(45deg, #8e1b25 0 6px, #a8232f 6px 12px);
  border: 4px solid #fdfbf5; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 2px var(--gold);
}
.card.dealt { animation: deal 0.32s cubic-bezier(0.2, 0.8, 0.3, 1); }
.card.flip { animation: flip 0.4s ease-out; }
@keyframes deal { from { transform: translate(120px, -160px) rotate(-20deg); opacity: 0; } }
@keyframes flip { from { transform: rotateY(90deg); } }
.bj-controls { position: static; margin: 16px 0 12px; }
.bj-bet-zone { display: flex; flex-direction: column; gap: 8px; }
.bj-bet-line { display: flex; align-items: center; gap: 10px; }
.bj-bet-line .label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.75; }
.bj-bet { font-size: 1.3rem; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 60px; }
.bj-actions button { font-weight: 700; }
.bj-actions kbd, .slot-buttons kbd { margin-left: 4px; }

/* ---------- Machine à sous ---------- */
.slot-machine {
  --cell: 92px;
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px;
  background: linear-gradient(160deg, #5a0d14, #2a0509 60%, #4a0a12);
  border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(232, 193, 90, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.5);
}
.slot-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.slot-brand {
  font: 900 1.7rem "Brush Script MT", "Segoe Script", cursive, system-ui; color: #ffe9a8;
  text-shadow: 0 0 8px var(--gold), 0 0 22px #c0392b;
}
.slot-top { font-size: 0.85rem; font-weight: 700; color: #ffe9a8; text-transform: uppercase; letter-spacing: 0.06em; }
.slot-window {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: 14px;
  background: #111; border: 3px solid #8a6414; box-shadow: inset 0 0 20px #000;
}
.slot-window.won { animation: slot-won 0.3s steps(1) 4; }
@keyframes slot-won { 50% { box-shadow: inset 0 0 20px #000, 0 0 0 4px #ffe066, 0 0 30px #ffe066; } }
.reel {
  position: relative; height: calc(var(--cell) * 3); overflow: hidden; border-radius: 8px;
  background: linear-gradient(#cfc8b8, #fffdf6 30%, #fffdf6 70%, #cfc8b8);
}
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.45), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.45)); }
.strip { will-change: transform; }
.sym { height: var(--cell); display: grid; place-items: center; font-size: calc(var(--cell) * 0.55); line-height: 1; }
.sym-bar span {
  font: 900 calc(var(--cell) * 0.26) system-ui, sans-serif; color: #ffe9a8; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 6px; background: #151515; border: 3px solid var(--gold);
}
.sym-seven span { font: italic 900 calc(var(--cell) * 0.7) Georgia, serif; color: #c0392b; text-shadow: 2px 2px 0 #7a1010, 0 0 2px #000; }
.sym.win span { animation: sym-win 0.5s ease-in-out 3; display: inline-block; }
@keyframes sym-win { 50% { transform: scale(1.18); filter: drop-shadow(0 0 10px #ffe066); } }
.payline {
  position: absolute; left: 4px; right: 4px; top: 50%; height: 0; border-top: 3px solid rgba(232, 60, 50, 0.85);
  box-shadow: 0 0 8px rgba(255, 80, 60, 0.9); pointer-events: none;
}
.slot-message { text-align: center; min-height: 1.5em; }
.slot-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.slot-bet { display: flex; flex-direction: column; gap: 6px; }
.slot-bet .label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.75; }
.slot-bet .chip-btn { width: 44px; height: 44px; font-size: 0.75rem; }
.slot-bet .chip-btn.selected { transform: translateY(-4px) scale(1.06); outline: 3px solid var(--gold); outline-offset: 2px; }
.slot-buttons { display: flex; align-items: center; gap: 10px; }
.spin-btn { font-size: 1.15rem; padding: 14px 30px; border-radius: 999px; box-shadow: 0 0 18px rgba(232, 193, 90, 0.5); }
#slot-auto[aria-pressed="true"] { border-color: #ff9a8a; color: #ffb3a7; }
.paytable-note { margin: 6px 0; font-size: 0.85rem; opacity: 0.8; }
.paytable td { vertical-align: middle; }
.pay-combo { display: flex; gap: 6px; align-items: center; }
.sym.mini { --cell: 30px; width: 34px; height: 30px; font-size: 20px; }
.sym.mini.sym-bar span { padding: 1px 3px; border-width: 1px; font-size: 9px; }
.sym.mini.sym-seven span { font-size: 22px; text-shadow: 1px 1px 0 #7a1010; }
.sym-any { width: 34px; text-align: center; font-size: 0.7rem; opacity: 0.6; }
.pay-mult { font-weight: 800; color: var(--gold); text-align: right; }

@media (max-width: 600px) {
  .slot-machine { --cell: 70px; padding: 12px; }
  .card { width: 62px; height: 90px; margin-left: -28px; }
  .cards { min-height: 90px; padding-left: 28px; }
  .card .pip { font-size: 1.9rem; }
  .bj-felt { min-height: 360px; padding: 16px 10px; }
  .spin-btn { padding: 12px 22px; }
}

/* ---------- Poker ---------- */
.poker-board-zone { padding: 10px 14px; border-radius: 14px; border: 2px dashed rgba(232, 193, 90, 0.35); }
.poker-board { display: flex; gap: 8px; min-height: 112px; }
.poker-board .card { margin-left: 0; }
.card.best { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(232, 193, 90, 0.8); }
@media (max-width: 600px) {
  .poker-board { gap: 4px; min-height: 90px; }
  .poker-board .card { width: 54px; height: 78px; }
  .poker-board .card .pip { font-size: 1.5rem; }
  .poker-board .card .corner { font-size: 0.8rem; }
}

/* ---------- Bar ---------- */
.bar-round { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.bar-round input { accent-color: var(--gold); width: 18px; height: 18px; }
#bar-guests { opacity: 0.7; }
.bar-menu { display: flex; flex-direction: column; gap: 6px; }
.bar-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; }
.bar-item:hover:not(:disabled) { background: rgba(232, 193, 90, 0.2); border-color: var(--gold); }
.bar-glyph { font-size: 1.5rem; }
.bar-name { font-weight: 700; }
.bar-price { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.bar-price::after { content: ' jetons'; font-weight: 400; font-size: 0.8em; opacity: 0.8; }

/* ---------- Texas Hold'em ---------- */
.he-table { position: relative; height: 330px; margin: 6px 40px 10px; }
.he-felt {
  position: absolute; inset: 30px 40px; border-radius: 160px;
  background: radial-gradient(ellipse at center, #2471c4, #123d73 70%);
  border: 10px solid #5a3416; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
  display: grid; place-items: center;
}
.he-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.he-board { min-height: 0; }
.he-board .card, .card.slot { width: 52px; height: 74px; margin: 0; }
.card.slot { border: 2px dashed rgba(255, 255, 255, 0.25); background: none; box-shadow: none; border-radius: 8px; }
.he-board .card .pip { font-size: 1.6rem; }
.he-board .card .corner { font-size: 0.8rem; }
.he-pot { font-weight: 800; color: #ffe9a8; text-shadow: 0 1px 3px #000; }
.he-status { font-size: 0.85rem; opacity: 0.9; text-align: center; max-width: 320px; }
.he-status.lose { color: #ffb3a7; }
.he-seat {
  position: absolute; transform: translate(-50%, -50%); width: 128px; padding: 6px 8px 8px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.72); border: 2px solid rgba(255, 255, 255, 0.15); text-align: center; font-size: 0.8rem;
}
.he-seat.empty { opacity: 0.45; font-style: italic; padding: 14px 8px; }
.he-seat.me { border-color: var(--gold); }
.he-seat.acting { border-color: #7dff9e; box-shadow: 0 0 16px rgba(125, 255, 158, 0.5); }
.he-seat.folded { opacity: 0.5; }
.he-seat.winner { border-color: var(--gold); box-shadow: 0 0 20px rgba(232, 193, 90, 0.8); }
.he-cards { display: flex; justify-content: center; gap: 3px; min-height: 46px; margin-top: -26px; }
.card.mini { width: 32px; height: 46px; margin: 0; border-radius: 5px; }
.card.mini .pip { font-size: 1rem; }
.card.mini .corner { font-size: 0.62rem; top: 2px; left: 3px; }
.card.mini .corner.bottom { display: none; }
.card.mini.back { border-width: 2px; }
.he-name { display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.he-name b { overflow: hidden; text-overflow: ellipsis; }
.he-name .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.he-bot { font-size: 0.65rem; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.he-stack { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.he-action { margin-top: 2px; font-size: 0.72rem; opacity: 0.85; }
.he-action.win { color: #7dff9e; font-weight: 800; opacity: 1; }
.he-bet {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px;
  background: #c98a12; color: #fff; font-weight: 800; font-size: 0.75rem; border: 2px dashed rgba(255, 255, 255, 0.8);
}
.he-dealer {
  position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111;
  font-weight: 900; font-size: 0.75rem; display: grid; place-items: center; box-shadow: 0 2px 4px #000;
}
.he-timer { position: absolute; left: 6px; bottom: 3px; height: 3px; border-radius: 2px; background: #7dff9e; max-width: calc(100% - 12px); }
.he-controls, .he-join { position: static; margin: 10px 0; }
.he-raise { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.he-raise input[type="range"] { width: 200px; accent-color: var(--gold); }
.he-raise input[type="number"], .he-buyin input, .he-rebuy input {
  width: 100px; font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3); color: var(--text);
}
.he-presets { display: flex; gap: 4px; }
.he-join-text { display: flex; flex-direction: column; gap: 2px; }
.he-join-text span { font-size: 0.85rem; opacity: 0.8; }
.he-buyin { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.he-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; font-size: 0.85rem; }
.he-bots, .he-rebuy { display: flex; align-items: center; gap: 6px; }
.he-bots small { opacity: 0.65; }
@media (max-width: 600px) {
  .he-table { height: 300px; margin: 4px 0 10px; }
  .he-felt { inset: 34px 26px; }
  .he-seat { width: 92px; font-size: 0.7rem; padding: 4px; }
  .he-board .card, .card.slot { width: 34px; height: 50px; }
  .he-board .card .pip { font-size: 1.1rem; }
  .card.mini { width: 24px; height: 34px; }
  .he-cards { min-height: 34px; margin-top: -20px; }
}

/* ---------- Lieux (bar, lounge, VIP, salle secrète) ---------- */
.bar-note { display: block; font-weight: 400; font-size: 0.78rem; opacity: 0.7; }

/* ---------- Boutique ---------- */
.shop-dialog { width: min(860px, calc(100vw - 24px)); }
.shop-inner { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 18px; }
.shop-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#shop-canvas {
  width: 220px; height: 260px; border-radius: 14px; border: 1px solid rgba(232, 193, 90, 0.4);
  background: radial-gradient(ellipse at 50% 70%, #3a1420, #120609);
}
.shop-turn { display: flex; gap: 6px; }
.shop-trying { margin: 0; font-size: 0.85rem; color: #ffe9a8; min-height: 1.2em; }
.shop-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shop-main h2 { margin: 0; color: var(--gold); }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-tab { padding: 6px 10px; font-size: 0.85rem; font-weight: 700; }
.shop-tab[aria-selected="true"] { background: linear-gradient(#f0cf6e, #c99a2e); color: #2a1c00; border-color: #8a6a1c; }
.shop-content { max-height: 52vh; overflow-y: auto; }
.shop-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.shop-row .label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.75; }
.shop-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-swatch { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); }
.shop-swatch[aria-pressed="true"], .shop-style[aria-pressed="true"] { outline: 3px solid var(--gold); outline-offset: 2px; }
.shop-hint { font-size: 0.8rem; opacity: 0.7; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.shop-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); text-align: center; font-size: 0.85rem;
}
.shop-item:hover { border-color: var(--gold); }
.shop-item.trying { border-color: #7dff9e; box-shadow: 0 0 12px rgba(125, 255, 158, 0.4); }
.shop-thumb { width: 90px; height: 90px; }
.shop-worn { color: #7dff9e; font-weight: 700; }
@media (max-width: 640px) {
  .shop-inner { grid-template-columns: 1fr; }
  #shop-canvas { width: 160px; height: 180px; }
}
.panel .bj-felt { min-height: 0; }

/* ---------- Poignée de redimensionnement (bord gauche sur le côté, bord haut en bas) ---------- */
.panel-grip { position: absolute; z-index: 2; touch-action: none; }
.panel-grip::before { content: ''; position: absolute; border-radius: 3px; background: rgba(232, 193, 90, 0.6); }
.dock-side > .panel-grip { left: -8px; top: 0; bottom: 0; width: 16px; cursor: ew-resize; }
.dock-side > .panel-grip::before { left: 6px; top: 50%; width: 5px; height: 64px; transform: translateY(-50%); }
.dock-bottom > .panel-grip { top: -8px; left: 0; right: 0; height: 16px; cursor: ns-resize; }
.dock-bottom > .panel-grip::before { top: 6px; left: 50%; width: 64px; height: 5px; transform: translateX(-50%); }
.panel-grip:hover::before, .panel-grip:focus-visible::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dock-full > .panel-grip, .panel.collapsed > .panel-grip { display: none; }
.panel.resizing { user-select: none; }
.stage.seated.docked-side .salon.floating { left: 12px; right: auto; }

/* Contenu adapté à la largeur du panneau */
@container (max-width: 720px) {
  .arena { gap: 12px; }
  .wheel-zone { gap: 12px; }
  .panel .wheel-wrap { width: 220px; }
  .side { flex-basis: 220px; }
  .players { flex-basis: 100%; }
  .he-table { margin: 4px 0 10px; }
  .wheel-layout { flex-direction: column; }
  .bac-hands { gap: 16px; }
  .game-view { padding: 10px; }
}
@container (max-width: 520px) {
  .he-seat { width: 96px; font-size: 0.72rem; }
  .bac-zone { min-width: 96px; padding: 8px; }
  .race-row { grid-template-columns: 24px 1fr auto auto; }
  .race-total, .race-mine { display: none; }
  .cases-view { --cs-card: 104px; }
}

/* ---------- Baccarat ---------- */
.bac-felt { background: radial-gradient(ellipse at 50% 35%, #a52a3a, #6d1424 60%, #3a0a14); }
.bac-hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.bac-hand { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 200px; }
.bac-zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bac-zone {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 130px; padding: 10px 16px;
  border: 2px solid rgba(232, 193, 90, 0.6); border-radius: 14px; background: rgba(0, 0, 0, 0.25);
}
.bac-zone b { font-size: 1.05rem; color: #ffe9a8; }
.bac-zone small { opacity: 0.75; }
.bac-zone.tie { border-color: rgba(125, 255, 158, 0.6); }
.bac-zone.has-bet { box-shadow: 0 0 14px rgba(232, 193, 90, 0.6); background: rgba(232, 193, 90, 0.15); }
.bac-amount { min-height: 1.2em; font-weight: 800; color: var(--gold); }

/* ---------- Roue de la fortune ---------- */
.wheel-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
#wheel-canvas { width: min(320px, 80vw); aspect-ratio: 1; }
.wheel-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.wheel-bets { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.wof-zone {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px;
  border: 2px solid var(--sym); background: color-mix(in srgb, var(--sym) 25%, transparent);
}
.wof-zone b { font-size: 1.3rem; }
.wof-zone small { opacity: 0.8; }
.wof-zone.has-bet { box-shadow: 0 0 12px var(--sym); }
.wb-amount { min-height: 1.1em; font-weight: 800; color: var(--gold); font-size: 0.85rem; }

/* ---------- Courses de chevaux ---------- */
.race-head { text-align: center; color: #ffe9a8; margin-bottom: 6px; }
#race-canvas { display: block; width: 100%; height: 220px; border-radius: 12px; border: 3px solid #e8c15a; }
.race-horses { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.race-row {
  display: grid; grid-template-columns: 28px 1.4fr 0.8fr 1fr 1fr auto; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05);
}
.race-row.winner { background: rgba(125, 255, 158, 0.18); box-shadow: inset 0 0 0 2px #7dff9e; }
.race-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.race-odds { color: #7dff9e; font-weight: 700; }
.race-total, .race-mine { font-size: 0.82rem; opacity: 0.85; }
.race-mine { color: var(--gold); opacity: 1; }
.race-history-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; }
.race-history { display: flex; flex-wrap: wrap; gap: 4px; }
.race-hist { padding: 2px 8px; border-radius: 999px; border: 2px solid; }
@media (max-width: 600px) {
  .race-row { grid-template-columns: 24px 1fr auto auto; }
  .race-total, .race-mine { display: none; }
}

/* ---------- Salle des caisses CS2 ---------- */
.cases-view { --cs-card: 120px; }
.cs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cs-tab { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-color: var(--case); }
.cs-tab small { opacity: 0.8; }
.cs-tab[aria-selected="true"] { background: color-mix(in srgb, var(--case) 30%, transparent); box-shadow: 0 0 12px var(--case); }
.cs-window {
  position: relative; overflow: hidden; height: 132px; border-radius: 12px; background: #0b0d10;
  border: 2px solid #2a2f36; box-shadow: inset 0 0 30px #000;
}
.cs-strip { display: flex; gap: 8px; padding: 6px 0; will-change: transform; }
.cs-marker {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: #ffcf3f; box-shadow: 0 0 10px #ffcf3f;
}
.cs-card {
  flex: none; width: var(--cs-card); height: 118px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px; border-radius: 8px; background: linear-gradient(180deg, #2a2f36, #1a1d22 70%, color-mix(in srgb, var(--rarity) 45%, #1a1d22));
  border-bottom: 4px solid var(--rarity); position: relative;
}
.cs-art { width: 100%; height: 56px; }
.cs-name { display: flex; flex-direction: column; line-height: 1.15; font-size: 0.72rem; }
.cs-name small { opacity: 0.7; font-size: 0.65rem; }
.cs-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-card.big { width: 220px; height: 170px; box-shadow: 0 0 30px var(--rarity); }
.cs-card.big .cs-art { height: 100px; }
.cs-card.big .cs-name { font-size: 0.9rem; }
.cs-reveal {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 10px; padding: 12px; border-radius: 12px;
  background: radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--rarity) 35%, transparent), rgba(0, 0, 0, 0.3));
  border: 1px solid var(--rarity); animation: reveal-in 0.4s ease-out;
}
@keyframes reveal-in { from { transform: scale(0.9); opacity: 0; } }
.cs-reveal-info { display: flex; flex-direction: column; gap: 4px; }
.cs-reveal-name { font-size: 1.15rem; color: var(--rarity); }
.cs-reveal-value { color: var(--gold); font-weight: 800; }
.cs-reveal-actions { display: flex; gap: 6px; margin-top: 6px; }
.cs-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0; }
.cs-title { margin: 14px 0 4px; font-size: 0.9rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.cs-odds { margin: 0 0 8px; font-size: 0.78rem; opacity: 0.75; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cs-card), 1fr)); gap: 8px; }
.cs-grid .cs-card { width: auto; }
.cs-card.inv { height: auto; gap: 4px; }
.cs-card.wielded { box-shadow: 0 0 0 2px var(--gold), 0 0 12px var(--gold); }
.cs-value { color: var(--gold); font-weight: 700; font-size: 0.72rem; }
.cs-inv-actions { display: flex; gap: 4px; }
.cs-inv-actions button { flex: 1; padding: 3px 4px; font-size: 0.7rem; }
.cs-inv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-inv-head select { font: inherit; font-size: 0.82rem; padding: 4px; border-radius: 6px; background: rgba(0, 0, 0, 0.4); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.3); }

/* ---------- Piano ---------- */
.piano-intro { margin: 0 0 10px; opacity: 0.85; }
.piano-keys { position: relative; height: 190px; max-width: 640px; margin: 0 auto; user-select: none; touch-action: none; }
.pk { position: absolute; top: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pk.white { width: 12.5%; height: 100%; background: linear-gradient(#fff, #e8e4da); color: #222; border: 1px solid #999; border-radius: 0 0 8px 8px; padding-bottom: 8px; }
.pk.black { width: 7%; height: 60%; background: linear-gradient(#333, #0d0d0d); color: #ddd; border: 1px solid #000; border-radius: 0 0 6px 6px; z-index: 1; padding-bottom: 6px; }
.pk span { font-size: 0.72rem; }
.pk kbd { font-size: 0.65rem; }
.pk.white:hover:not(:disabled) { background: linear-gradient(#fff, #f5e9c8); }
.pk.down.white { background: linear-gradient(#ffe9a8, #e8c15a); }
.pk.down.black { background: linear-gradient(#6a4a10, #3a2508); }
.piano-songs { font-size: 0.85rem; }

/* ---------- Succès ---------- */
.ach-dialog { width: min(620px, calc(100vw - 24px)); }
.ach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 60vh; overflow-y: auto; }
.ach {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.6;
}
.ach.got { opacity: 1; border-color: rgba(232, 193, 90, 0.6); background: rgba(232, 193, 90, 0.1); }
.ach-icon { grid-row: 1 / 3; font-size: 1.5rem; text-align: center; }
.ach small { opacity: 0.75; font-size: 0.78rem; }

/* ---------- Caisses CS2 : vraies images ---------- */
.cs-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.cs-tab { flex: none; width: 112px; align-items: center; text-align: center; gap: 2px; padding: 6px; border-color: rgba(255, 255, 255, 0.15); scroll-snap-align: start; }
.cs-tab b { font-size: 0.78rem; line-height: 1.15; }
.cs-case-img { width: 84px; height: 62px; object-fit: contain; }
.cs-tab[aria-selected="true"] { border-color: #ff9a1a; background: rgba(255, 154, 26, 0.15); box-shadow: 0 0 12px rgba(255, 154, 26, 0.5); }
img.cs-art { width: 100%; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
.cs-card.big img.cs-art { height: 110px; }
.cs-card.rare { background: linear-gradient(180deg, #3a2e12, #1a1610 70%, #6a4e14); }
.cs-card.mystery { align-items: center; justify-content: center; }
.cs-star { font-size: 2.6rem; color: #e4ae39; text-shadow: 0 0 14px #e4ae39; line-height: 1; }

/* ---------- Caisses : plusieurs ouvertures, mode instantané ---------- */
.cs-strips { display: flex; flex-direction: column; gap: 6px; }
.cs-strips:empty { display: none; }
.cs-window.compact { height: 98px; }
.cs-window.compact .cs-card { width: 88px; height: 84px; padding: 4px; }
.cs-window.compact img.cs-art { height: 42px; }
.cs-window.compact .cs-name { font-size: 0.62rem; }
.cs-window.compact .cs-star { font-size: 1.8rem; }
.cs-bar { justify-content: flex-start; }
.cs-bar .spin-btn { margin-left: auto; }
.cs-count { display: flex; gap: 3px; }
.cs-count [aria-checked="true"] { background: linear-gradient(#f0cf6e, #c99a2e); color: #2a1c00; border-color: #8a6a1c; font-weight: 800; }
.cs-fast { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.cs-fast input { accent-color: var(--gold); width: 16px; height: 16px; }
.cs-reveal.multi { flex-direction: column; align-items: stretch; }
.cs-reveal.multi .cs-grid { --cs-card: 112px; }
.cs-multi-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Bandeau des derniers drops (gauche de la salle) ---------- */
.live-drops {
  position: absolute; z-index: 5; left: 0; top: 0; bottom: 0; width: 86px; display: flex; flex-direction: column;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.92), rgba(8, 10, 14, 0.78)); border-right: 1px solid rgba(255, 154, 26, 0.35);
  backdrop-filter: blur(6px); transition: width 0.2s;
}
.live-drops.closed { width: 40px; background: none; border: 0; backdrop-filter: none; }
.live-drops.closed .ld-list { display: none; }
.ld-toggle {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.live-drops.closed .ld-toggle { border-radius: 0 8px 8px 0; background: rgba(8, 10, 14, 0.85); }
.live-drops.closed .ld-title { display: none; }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: ld-pulse 1.4s infinite; }
@keyframes ld-pulse { 50% { opacity: 0.35; } }
.ld-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: visible; scrollbar-width: none; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.ld-list::-webkit-scrollbar { display: none; }
.ld-card {
  position: relative; flex: none; height: 60px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(40, 44, 52, 0.9), color-mix(in srgb, var(--rarity) 40%, #1a1d22));
  border-left: 3px solid var(--rarity); cursor: default; outline: none;
}
.ld-card.fresh { animation: ld-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes ld-in { from { transform: translateX(-100%); opacity: 0; } }
.ld-card.rare { box-shadow: inset 0 0 14px rgba(228, 174, 57, 0.5); }
.ld-card img { width: 70px; height: 50px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); pointer-events: none; }
/* fiche du gagnant au survol */
.ld-info {
  position: fixed; z-index: 30; display: none; flex-direction: column; gap: 2px; min-width: 190px; max-width: 260px;
  padding: 8px 10px; border-radius: 8px; background: rgba(10, 12, 16, 0.97); border: 1px solid var(--rarity);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); font-size: 0.8rem; pointer-events: none;
}
.ld-card:hover .ld-info, .ld-card:focus .ld-info { display: flex; }
.ld-name { font-weight: 700; color: var(--rarity); }
.ld-info small { opacity: 0.7; }
.stage.with-drops .salon.floating { left: 98px; }
.stage.with-drops.seated.docked-side .salon.floating { left: 98px; }
.stage.with-drops .controls-hint { margin-left: 43px; }
@media (max-width: 700px) {
  .live-drops { width: 62px; }
  .ld-card { height: 46px; }
  .ld-card img { width: 52px; height: 38px; }
  .stage.with-drops .salon.floating { left: 72px; }
}

/* ---------- Armurier et grenades ---------- */
.armory-dialog { width: min(900px, calc(100vw - 24px)); }
.arm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.arm-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 10px; text-align: center;
  background: linear-gradient(180deg, rgba(40, 44, 52, 0.85), color-mix(in srgb, var(--rarity, #555) 30%, #1a1d22));
  border-bottom: 3px solid var(--rarity, #ff9a1a); font-size: 0.82rem;
}
.arm-card small { opacity: 0.7; }
.arm-card.nade { --rarity: #ff9a1a; }
.arm-img { width: 100%; height: 70px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.arm-icon { font-size: 2rem; }
.arm-stock { color: var(--gold); font-weight: 700; }
.nade-bar { position: absolute; z-index: 4; right: 12px; bottom: 58px; display: flex; gap: 4px; }
.nade-btn {
  position: relative; width: 44px; height: 44px; padding: 0; border-radius: 10px; font-size: 1.3rem;
  background: rgba(6, 18, 11, 0.85); border-color: rgba(255, 154, 26, 0.6);
}
.nade-btn small { position: absolute; right: 3px; bottom: 1px; font-size: 0.65rem; font-weight: 800; color: var(--gold); }
.nade-btn[aria-pressed="true"] { background: rgba(255, 154, 26, 0.35); box-shadow: 0 0 12px #ff9a1a; }
.stage.seated .nade-bar { display: none; }
.flash-overlay { position: absolute; inset: 0; z-index: 20; background: #fff; opacity: 0; pointer-events: none; }
.ld-list:empty::after {
  content: 'Les plus belles prises (Covert et ★) apparaîtront ici'; display: block; padding: 10px 4px;
  font-size: 0.62rem; line-height: 1.3; text-align: center; opacity: 0.55;
}
@media (max-width: 600px) { .nade-bar { bottom: auto; top: 54px; } }

/* ---------- Joueurs, profils, échanges ---------- */
.players-dialog { width: min(520px, calc(100vw - 24px)); }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pl-row { display: grid; grid-template-columns: 12px 1fr auto auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.pl-row .dot { width: 10px; height: 10px; border-radius: 50%; }
.pl-bal { font-size: 0.8rem; opacity: 0.75; }
.pl-empty { opacity: 0.7; font-style: italic; }
.profile-dialog #profile-canvas { width: 200px; height: 230px; border-radius: 14px; border: 1px solid rgba(232, 193, 90, 0.4); background: radial-gradient(ellipse at 50% 70%, #3a1420, #120609); }
.profile-grid { --cs-card: 108px; max-height: 46vh; overflow-y: auto; }
.cs-card.small { height: auto; gap: 2px; }
.cs-card.small img.cs-art { height: 48px; }
.cs-card.clickable { cursor: pointer; }
.cs-card.clickable:hover { outline: 2px solid rgba(255, 255, 255, 0.4); }
.cs-card.picked { outline: 3px solid #7dff9e; box-shadow: 0 0 12px rgba(125, 255, 158, 0.5); }
.trade-dialog { width: min(920px, calc(100vw - 24px)); }
.trade-dialog h3 { margin: 4px 0; font-size: 0.9rem; color: var(--gold); }
.trade-dialog h3 small { color: var(--text); opacity: 0.7; font-weight: 400; }
.trade-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-offer {
  --cs-card: 96px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; min-height: 90px;
  max-height: 220px; overflow-y: auto; padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(232, 193, 90, 0.35);
}
.trade-chips-tag { grid-column: 1 / -1; color: var(--gold); font-weight: 800; }
.trade-chips { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.85rem; }
.trade-chips input { width: 120px; font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: var(--text); }
.trade-status { margin: 6px 0 0; font-size: 0.85rem; opacity: 0.8; }
.trade-status.ok { color: #7dff9e; opacity: 1; font-weight: 700; }
.trade-inventory { --cs-card: 96px; max-height: 30vh; overflow-y: auto; }
.trade-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
@media (max-width: 640px) { .trade-sides { grid-template-columns: 1fr; } }

/* ---------- Barre d'emplacements (armes 1-5, grenades 6-0, inventaire) ---------- */
.hotbar {
  position: absolute; z-index: 4; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: calc(100% - 24px);
}
.hotbar-hint { font-size: 0.78rem; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hotbar-row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.hotbar-slots {
  display: flex; gap: 4px; padding: 5px; border-radius: 12px; overflow-x: auto; scrollbar-width: none;
  background: rgba(6, 10, 14, 0.82); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(6px);
}
.hb-slot {
  position: relative; flex: none; width: 52px; height: 52px; padding: 0; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(50, 55, 64, 0.9), color-mix(in srgb, var(--rarity, #333) 35%, #15181c));
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.hb-slot img { width: 46px; height: 34px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 3px #000); }
.hb-slot kbd { position: absolute; left: 3px; top: 2px; padding: 0 3px; font-size: 0.6rem; border: 0; background: rgba(0, 0, 0, 0.55); }
.hb-slot.empty { opacity: 0.55; }
.hb-slot.active { border-color: #ffcf3f; box-shadow: 0 0 12px rgba(255, 207, 63, 0.7); transform: translateY(-3px); }
.hb-plus { font-size: 1.3rem; opacity: 0.6; }
.hb-icon { font-size: 1.35rem; }
.hb-count { position: absolute; right: 4px; bottom: 2px; font-size: 0.68rem; font-weight: 800; color: var(--gold); }
.hb-sep { flex: none; width: 2px; margin: 4px 2px; background: rgba(255, 255, 255, 0.15); border-radius: 1px; }
.hb-inv { flex: none; padding: 9px 12px; font-weight: 700; background: rgba(6, 10, 14, 0.85); border-color: rgba(255, 154, 26, 0.6); }
.stage.seated .hotbar { display: none; }
.controls-hint { display: none; }
.prompt { bottom: 104px; }
.salon.floating { bottom: 96px; }
/* boutons de la salle : en colonne sur le bord droit */
.hall-hud { top: 50%; bottom: auto; right: 10px; transform: translateY(-50%); flex-direction: column; align-items: stretch; }
.inv-dialog { width: min(860px, calc(100vw - 24px)); }
.inv-grid { --cs-card: 112px; max-height: 56vh; overflow-y: auto; }
.inv-nades { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-nade { padding: 3px 9px; border-radius: 999px; background: rgba(255, 154, 26, 0.15); border: 1px solid rgba(255, 154, 26, 0.4); font-weight: 700; }
@media (max-width: 700px) {
  .hb-slot { width: 40px; height: 40px; }
  .hb-slot img { width: 36px; height: 26px; }
  .hb-inv { padding: 7px 8px; font-size: 0.8rem; }
  .hb-inv kbd { display: none; }
  .hotbar-hint { font-size: 0.7rem; }
  .quick-travel { top: 10px; bottom: auto; left: 72px; right: 10px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .salon.floating { top: 56px; bottom: auto; }
  .prompt { bottom: 96px; }
  .hall-hud { top: 50%; }
}
/* notifications en haut au centre : la barre d'emplacements occupe le bas */
.fx-toasts { top: 132px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); align-items: center; }
.inv-grid { --cs-card: 150px; }
.inv-grid .cs-inv-actions button { font-size: 0.72rem; padding: 4px 3px; }
@media (max-width: 700px) {
  .quick-travel button { white-space: nowrap; }
  .fx-toasts { top: 100px; }
}

/* ---------- Confort : aide, réglages, mini-carte, joystick ---------- */
.top-tools { display: flex; gap: 4px; }
.top-tools .toggle svg { width: 18px; height: 18px; }
.minimap {
  position: absolute; z-index: 4; right: 12px; top: 132px; width: 210px; height: 112px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(232, 193, 90, 0.5); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); background: #1a0a0e;
}
.minimap-zoom { position: absolute; z-index: 4; right: 16px; top: 250px; display: flex; gap: 4px; }
.minimap-zoom button { width: 30px; padding: 3px 0; font-weight: 800; background: rgba(6, 10, 14, 0.85); }
.stage.seated .minimap, .stage.seated .minimap-zoom, .stage.seated .joystick { display: none; }
.hall-hud { top: auto; bottom: 108px; transform: none; }
.joystick {
  position: absolute; z-index: 5; left: 78px; bottom: 100px; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18)); border: 2px solid rgba(255, 255, 255, 0.3);
  touch-action: none;
}
.joy-knob {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(232, 193, 90, 0.75); box-shadow: 0 0 12px rgba(232, 193, 90, 0.6); pointer-events: none; transition: transform 0.05s;
}
.settings-dialog { width: min(480px, calc(100vw - 24px)); }
.set-group { display: flex; flex-direction: column; gap: 8px; }
.set-group h3 { margin: 6px 0 0; font-size: 0.85rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.set-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.set-row input[type="range"] { flex: 1; accent-color: var(--gold); }
.set-row input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.set-row select { flex: 1; font: inherit; padding: 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.4); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.3); }
.help-dialog { width: min(760px, calc(100vw - 24px)); }
.help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-cols h3 { margin: 6px 0 4px; font-size: 0.85rem; color: var(--gold); text-transform: uppercase; }
.help-cols ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.help-cols kbd { margin-right: 2px; }
@media (max-width: 700px) {
  .minimap { top: 54px; width: 130px; height: 70px; }
  .minimap-zoom { top: 130px; }
  .help-cols { grid-template-columns: 1fr; }
  .hall-hud { bottom: 100px; }
}

/* ---------- Craps ---------- */
.craps-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 10px; }
.craps-puck {
  display: grid; place-items: center; min-width: 64px; height: 40px; padding: 0 10px; border-radius: 999px;
  background: #111; color: #fff; font-weight: 900; letter-spacing: 0.05em; border: 2px solid #444;
}
.craps-puck.on { background: #fff; color: #111; border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 193, 90, 0.6); }
.craps-phase { flex: 1; color: #ffe9a8; }
.craps-dice { display: flex; gap: 10px; }
.die {
  width: 52px; height: 52px; padding: 7px; border-radius: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  background: linear-gradient(145deg, #e0263a, #9b0f1d); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.die .pip { border-radius: 50%; }
.die .pip.on { background: #fff; box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.3); }
.die.rolling { animation: die-roll 0.18s linear infinite; }
@keyframes die-roll { 50% { transform: rotate(12deg) translateY(-4px); } }
.craps-felt {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 30%, #138a45, var(--felt) 60%, var(--felt-dark));
  border: 3px solid var(--gold); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}
.craps-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 70px; padding: 8px 6px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(0, 0, 0, 0.12);
  text-align: center;
}
.craps-zone b { font-family: Georgia, serif; font-size: 1rem; color: #fff; }
.craps-zone small { font-size: 0.7rem; opacity: 0.8; }
.craps-zone.field { grid-column: 1 / -1; border-color: rgba(255, 233, 168, 0.8); }
.craps-zone.dont { grid-column: 1 / -1; min-height: 48px; }
.craps-zone.pass { grid-column: 1 / -1; min-height: 56px; border-color: var(--gold); }
.craps-zone.prop b { color: #ffe9a8; }
.craps-zone.point-on { box-shadow: inset 0 0 0 3px #fff; }
.craps-zone.has-bet { background: rgba(232, 193, 90, 0.18); }
.craps-zone:hover:not(:disabled) { background: rgba(232, 193, 90, 0.25); }
.cz-mine { min-height: 1em; font-weight: 800; color: var(--gold); }
.cz-others { position: absolute; right: 6px; top: 4px; font-size: 0.62rem; opacity: 0.7; }
.craps-history { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-roll { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; background: rgba(255, 255, 255, 0.1); }
.ch-roll.seven { background: #c0392b; }
.ch-roll.craps { background: #6b3fa0; }
@container (max-width: 520px) {
  .craps-felt { grid-template-columns: repeat(2, 1fr); }
  .craps-zone.prop:last-of-type { grid-column: 1 / -1; }
}

/* ---------- Mini-jeux (sauna, pinces, karaoké, bonneteau, crochetage) ---------- */
.bank.mini-dialog { width: min(480px, calc(100vw - 32px)); }
.mini-canvas { display: block; width: 100%; height: 230px; border-radius: 12px; border: 2px solid var(--gold); background: #000; touch-action: manipulation; }
.mini-status { min-height: 1.4em; margin: 8px 0 4px; text-align: center; font-weight: 700; }
.mini-status.win { color: #7dff9e; }
.mini-status.lose { color: #ff8a80; }
.mini-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.mini-btn.big { font-size: 1.05rem; padding: 10px 20px; }
.mini-btn.primary { background: linear-gradient(#f3d27a, #c99a2e); color: #2a1a00; font-weight: 800; border-color: #ffe9a8; }

/* Descente de police */
.raid-hud {
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; max-width: calc(100% - 24px);
  padding: 8px 14px; border-radius: 12px; background: rgba(20, 6, 8, 0.9); border: 2px solid #e74c3c;
  box-shadow: 0 0 24px rgba(231, 76, 60, 0.5); animation: raid-pulse 0.6s ease-in-out infinite alternate;
}
.raid-hud b { font-size: 1.05rem; letter-spacing: 0.02em; }
.raid-hud small { opacity: 0.85; }
.raid-hud button { padding: 4px 12px; }
@keyframes raid-pulse { to { border-color: #2a6bff; box-shadow: 0 0 24px rgba(42, 107, 255, 0.5); } }

/* Roulette dans le panneau : une grande roue, et à côté des informations compactes (phase, numéro sorti, historique).
   La liste des joueurs reste accessible par le bouton « Joueurs » de la salle. */
.result-row { display: flex; align-items: center; gap: 12px; }
.panel #table-view .players { display: none; }
.panel .wheel-zone { flex-wrap: nowrap; gap: 18px; align-items: center; }
.panel .wheel-wrap { width: min(420px, 60cqw); }
.panel .side { flex: 1 1 0; min-width: 150px; gap: 10px; }
.panel .result { width: 56px; height: 56px; font-size: 1.6rem; border-width: 3px; flex: none; }
.panel .message { min-height: 0; font-size: 0.95rem; }
@container (max-width: 520px) {
  .panel .wheel-zone { flex-wrap: wrap; }
  .panel .wheel-wrap { width: min(360px, 92cqw); }
  .panel .side { flex-basis: 100%; }
}

/* Caisse ouverte : une ligne compacte (vignette, nom, valeur, actions) au lieu d'un grand cadre */
.cs-reveal:not(.multi) { flex-wrap: nowrap; gap: 12px; padding: 8px 12px; margin-top: 8px; }
.cs-reveal:not(.multi) .cs-card.big { flex: none; width: 104px; height: 74px; padding: 4px; box-shadow: 0 0 14px var(--rarity); }
.cs-reveal:not(.multi) .cs-card.big img.cs-art { height: 62px; }
.cs-reveal:not(.multi) .cs-card.big .cs-name { display: none; }
.cs-reveal:not(.multi) .cs-reveal-info { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; align-items: center; }
.cs-reveal:not(.multi) .cs-reveal-name { font-size: 1rem; grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-reveal:not(.multi) .cs-reveal-info > span { grid-column: 1; font-size: 0.8rem; }
.cs-reveal:not(.multi) .cs-reveal-value { font-size: 0.9rem; }
.cs-reveal:not(.multi) .cs-reveal-actions { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; margin: 0; }
@container (max-width: 520px) {
  .cs-reveal:not(.multi) .cs-reveal-info { grid-template-columns: 1fr; }
  .cs-reveal:not(.multi) .cs-reveal-actions { grid-column: 1; grid-row: auto; flex-direction: row; }
}

/* Blackjack à plusieurs : cinq places en arc sous la banque */
.bj-phase { text-align: center; font-weight: 700; color: #ffe9a8; margin-bottom: 4px; }
.bj-phase.urgent { color: #ff6b5b; animation: pulse 1s ease-in-out infinite; }
.bj-seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; align-items: start; }
.bj-seat {
  min-height: 120px; padding: 6px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 6px; align-items: center; transition: box-shadow 0.2s;
}
.bj-seat:nth-child(1), .bj-seat:nth-child(5) { margin-top: 0; }
.bj-seat:nth-child(2), .bj-seat:nth-child(4) { margin-top: 18px; }
.bj-seat:nth-child(3) { margin-top: 28px; }
.bj-seat.empty { justify-content: center; opacity: 0.5; }
.bj-seat.me { border-style: solid; border-color: var(--gold); background: rgba(232, 193, 90, 0.1); }
.bj-seat.turn { box-shadow: 0 0 0 2px #7dff9e, 0 0 18px rgba(125, 255, 158, 0.5); }
.bj-seat-head { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; max-width: 100%; }
.bj-seat-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bj-seat-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bj-seat-head small { opacity: 0.75; }
.bj-seat-head .bj-ready { color: #7dff9e; opacity: 1; }
.bj-seat-free, .bj-seat-bet { font-size: 0.75rem; opacity: 0.8; text-align: center; }
.bj-seat .bj-hand { padding: 0; gap: 4px; align-items: center; }
.bj-seat .cards { justify-content: center; flex-wrap: nowrap; }
.bj-seat .cards .card { width: 40px; height: 56px; font-size: 0.8rem; margin-left: -8px; }
.bj-seat .cards .card:first-child { margin-left: 0; }
.bj-seat .bj-hand-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; font-size: 0.72rem; }
.bj-seat .bj-score { font-size: 0.72rem; padding: 1px 6px; }
@container (max-width: 560px) {
  .bj-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bj-seat:nth-child(n) { margin-top: 0; }
}

/* Baccarat et roue communs : mises de la table, historique */
.bac-zone, .wof-zone { position: relative; }
.bac-others, .wb-others { position: absolute; top: 4px; right: 6px; font-size: 0.62rem; opacity: 0.75; }
.bac-history { display: flex; flex-wrap: wrap; gap: 4px; }
.bac-past { min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; background: rgba(255, 255, 255, 0.12); }
.bac-past.player { background: #1f4fd1; }
.bac-past.banker { background: #c0392b; }
.bac-past.tie { background: #2e8b57; }

/* Piano : octave et mode guidé */
.piano-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.piano-octave { min-width: 64px; text-align: center; color: var(--gold); }
.piano-lesson { margin-left: auto; font-size: 0.85rem; color: #7dff9e; }
.piano-songs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.pk.next { box-shadow: inset 0 -10px 0 #7dff9e, 0 0 12px #7dff9e; }

/* ---------- Échecs ---------- */
.chess-lobby h3 { margin: 6px 0 8px; color: var(--gold); font-size: 1rem; }
.chess-lobby h3 + .buttons { margin-bottom: 14px; }
.chess-duel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chess-duel select { padding: 6px 8px; border-radius: 8px; background: #10251a; color: var(--text); border: 1px solid rgba(232, 193, 90, 0.5); }
.chess-received {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 8px 10px;
  border-radius: 10px; background: rgba(232, 193, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(232, 193, 90, 0.5);
}
.chess-received span { flex: 1 1 200px; }
.chess-game { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chess-player { align-self: stretch; max-width: 480px; margin: 0 auto; width: 100%; padding: 4px 10px; border-radius: 8px; font-weight: 600; opacity: 0.75; }
.chess-player.to-move { opacity: 1; background: rgba(125, 255, 158, 0.12); box-shadow: inset 3px 0 0 #7dff9e; }
.chess-board {
  /* minmax(0, 1fr) : une pièce ne doit jamais élargir sa colonne ni sa rangée */
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr));
  width: min(100%, 480px); aspect-ratio: 1;
  border: 6px solid #4a2a14; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.chess-sq {
  position: relative; padding: 0; margin: 0; border: 0; border-radius: 0; min-width: 0; min-height: 0;
  display: grid; place-items: center; cursor: default; line-height: 1; overflow: hidden;
  /* taille des pièces proportionnelle à la largeur du panneau (plateau de 480 px au plus) */
  font-size: clamp(16px, min(7.2cqi, 46px), 46px);
}
.chess-board .chess-sq.light { background: #efd9b0; }
.chess-board .chess-sq.dark { background: #a8794c; }
.chess-sq.movable { cursor: pointer; }
.chess-board .chess-sq.last.light { background: #f2e27a; }
.chess-board .chess-sq.last.dark { background: #c9a84a; }
.chess-sq.sel { box-shadow: inset 0 0 0 4px #2e8bff; }
.chess-sq.target { cursor: pointer; }
.chess-sq.target::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(20, 60, 30, 0.45); }
.chess-sq.capture { cursor: pointer; box-shadow: inset 0 0 0 4px rgba(192, 57, 43, 0.75); }
.chess-board .chess-sq.check { background: radial-gradient(circle, #ff5a4a 0%, #c0392b 55%, transparent 80%), #a8794c; }
.chess-piece { pointer-events: none; width: 82%; height: 82%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
.chess-piece path { stroke-width: 1.6; stroke-linejoin: round; }
.chess-piece.white path { fill: #fbf6ea; stroke: #1a1a1a; }
.chess-piece.black path { fill: #1d1d1d; stroke: #d8d8d8; }
.chess-rank, .chess-file { position: absolute; font-size: 10px; font-weight: 700; color: rgba(0, 0, 0, 0.5); pointer-events: none; }
.chess-rank { top: 2px; left: 3px; }
.chess-file { bottom: 1px; right: 3px; }
.chess-actions { justify-content: center; align-items: center; }
.chess-promo { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; }
.chess-promo select { padding: 4px 6px; border-radius: 6px; background: #10251a; color: var(--text); }
.chess-moves {
  width: min(100%, 480px); max-height: 140px; overflow-y: auto; margin: 4px 0 0; padding: 6px 6px 6px 34px;
  columns: 3; column-gap: 12px; font: 0.85rem ui-monospace, monospace; background: rgba(0, 0, 0, 0.25); border-radius: 8px;
}
.chess-moves li { white-space: pre; }
.chess-board .chess-sq.movable:hover, .chess-board .chess-sq.target:hover { filter: brightness(1.08); }

/* Plusieurs caisses : une ligne de résumé, sans grille */
.cs-reveal.multi { flex-direction: row; align-items: center; padding: 8px 12px; }
.cs-multi-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; font-size: 0.9rem; }
.cs-multi-head .small-btn { margin-left: auto; }
/* plusieurs bandes : sur deux colonnes, plus basses */
.cs-strips.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; }
.cs-strips.multi .cs-window.compact { height: 72px; }
.cs-strips.multi .cs-window.compact .cs-card { height: 62px; }
.cs-strips.multi .cs-window.compact img.cs-art { height: 34px; }

/* ---------- Combats clandestins ---------- */
.fight-ring {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; padding: 14px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 40%, #3a3f46, #15171a 75%); border: 3px solid #c0141f; box-shadow: inset 0 0 0 6px #e8e8e8, inset 0 0 0 9px #c0141f;
}
.fight-corner { --fc: #555; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border-top: 5px solid; transition: transform 0.12s; }
.fight-corner.red { border-color: #e74c3c; }
.fight-corner.blue { border-color: #3498db; }
.fight-glyph { font-size: 3rem; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--fc); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.fight-name { font-family: Georgia, serif; font-size: 1.05rem; text-align: center; }
.fight-odds { color: var(--gold); font-weight: 800; }
.fight-hp { width: 100%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.fight-hp > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e74c3c, #f1c40f, #2ecc71); transition: width 0.25s; }
.fight-corner small { min-height: 1em; font-size: 0.75rem; opacity: 0.85; }
.fight-corner.punch { transform: translateY(-6px) scale(1.04); }
.fight-corner.hurt { transform: translateX(4px) rotate(-2deg); filter: brightness(1.5) saturate(0.5); }
.fight-corner.ko { opacity: 0.45; transform: rotate(-6deg); }
.fight-vs { align-self: center; font-family: Impact, system-ui; font-size: 2rem; color: #ffe066; text-shadow: 0 2px 0 #c0141f; }
@container (max-width: 480px) { .fight-ring { grid-template-columns: 1fr; } .fight-vs { justify-self: center; } }

.tag-input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; font-weight: 700; }

/* Menu « Aller à », classé par quartier */
.qt-menu { position: relative; }
.qt-menu > summary {
  list-style: none; cursor: pointer; padding: 7px 14px; border-radius: 10px; font-weight: 700;
  background: rgba(6, 18, 11, 0.88); border: 1px solid rgba(232, 193, 90, 0.5); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.qt-menu > summary::-webkit-details-marker { display: none; }
.qt-menu[open] > summary { border-color: var(--gold); }
.qt-groups {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 14px; width: min(760px, calc(100vw - 40px)); max-height: 70vh; overflow-y: auto; padding: 12px;
  border-radius: 12px; background: rgba(6, 18, 11, 0.96); border: 1px solid rgba(232, 193, 90, 0.5); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.qt-group { display: flex; flex-direction: column; gap: 4px; }
.qt-group b { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 2px; }
.qt-group button { text-align: left; padding: 5px 8px; font-size: 0.85rem; }
.quick-travel:has(.qt-menu[open]) { z-index: 15; }
.qt-groups { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bank-status { margin: 0; font-weight: 700; color: var(--gold); }

/* ---------- Mot mystère ---------- */
.words-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.words-choice > div { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(232, 193, 90, 0.3); display: flex; flex-direction: column; gap: 6px; }
.words-duel { display: flex; flex-wrap: wrap; gap: 6px; }
.words-duel select { flex: 1 1 120px; }
.words-board { display: flex; gap: 16px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.wd-grid { display: flex; flex-direction: column; gap: 6px; }
.wd-row { display: flex; gap: 6px; }
.wd-cell {
  width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 6px;
  font-size: 1.6rem; font-weight: 800; text-transform: uppercase; background: rgba(0, 0, 0, 0.25);
}
.wd-cell.typed { border-color: rgba(255, 255, 255, 0.6); }
.wd-cell.mg, .wd-key.mg, .wd-mini i.mg { background: #2e8b57; border-color: #2e8b57; }
.wd-cell.my, .wd-key.my, .wd-mini i.my { background: #c9a227; border-color: #c9a227; }
.wd-cell.mx, .wd-key.mx, .wd-mini i.mx { background: #3a3f4a; border-color: #3a3f4a; }
.wd-cell.mg, .wd-cell.my, .wd-cell.mx { animation: wd-flip 0.4s ease both; }
@keyframes wd-flip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.wd-rival { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 0.85rem; }
.wd-mini { display: flex; flex-direction: column; gap: 3px; }
.wd-mini i { display: block; width: 14px; height: 14px; border-radius: 3px; }
.wd-keys { display: flex; flex-direction: column; gap: 5px; align-items: center; margin: 8px 0; }
.wd-krow { display: flex; gap: 4px; }
.wd-key { min-width: 34px; padding: 10px 6px; font-weight: 800; border-radius: 6px; }
.wd-key.wide { min-width: 64px; }
@container (max-width: 480px) { .wd-cell { width: 42px; height: 42px; font-size: 1.3rem; } .wd-key { min-width: 26px; padding: 8px 3px; } }

/* ---------- Batailles de caisses ---------- */
.cs-modes { display: flex; gap: 6px; margin-bottom: 10px; }
.cs-mode { flex: 1; padding: 8px; font-weight: 700; }
.cs-mode.active { background: rgba(232, 193, 90, 0.25); border-color: var(--gold); }
.cases-view.battle-mode > :not(.cs-modes):not(#cs-battles) { display: none !important; }
.cs-battle-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.bt-list { display: flex; flex-direction: column; gap: 10px; }
.bt-battle { border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 10px; background: rgba(0, 0, 0, 0.2); }
.bt-battle.mine { border-color: var(--gold); }
.bt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.bt-status { margin-left: auto; color: var(--gold); font-weight: 700; }
.bt-arena { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.bt-seat { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); min-height: 70px; }
.bt-seat.empty { align-items: center; justify-content: center; opacity: 0.5; font-size: 0.8rem; }
.bt-seat.me { box-shadow: inset 0 0 0 1px rgba(232, 193, 90, 0.6); }
.bt-seat.winner { background: rgba(46, 204, 113, 0.18); box-shadow: inset 0 0 0 2px #2ecc71; }
.bt-seat.lost { opacity: 0.6; }
.bt-total { font-size: 0.8rem; color: var(--gold); }
.bt-drops { display: flex; flex-direction: column; gap: 4px; }
.bt-card { width: 100% !important; height: 64px !important; padding: 3px !important; animation: reveal-in 0.4s ease-out; }
.bt-card img.cs-art { height: 34px !important; }
.bt-card .cs-name { font-size: 0.6rem; }

/* ---------- Niveau et missions ---------- */
.missions-btn b { color: var(--gold); }
.pg-bar, .pg-mbar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pg-bar > i, .pg-mbar > i { display: block; height: 100%; background: linear-gradient(90deg, #c99a2e, #ffe066); }
.pg-mbar { height: 5px; grid-column: 1 / -1; }
.pg-missions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-missions li { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 4px 8px; align-items: center; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
.pg-missions li.done { opacity: 0.7; }
.pg-missions li.done .pg-mbar > i { background: #2ecc71; }
.pg-check { color: #2ecc71; font-weight: 800; }
.pg-count { font-size: 0.8rem; opacity: 0.8; }
.pg-reward { color: var(--gold); }

/* ---------- Roue de la fortune (refonte) : grande roue au centre, tableau des mises en une rangée ---------- */
.wheel-view { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wheel-phase { font-size: 1.05rem; }
.wheel-stage { position: relative; width: min(720px, 98cqi, 78vh); aspect-ratio: 1; }
.wheel-stage #wheel-canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6)); }
.wheel-result {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 26%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding: 6px; font: 900 clamp(1.6rem, 7cqi, 3rem) system-ui; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sym) 60%, #fff), var(--sym) 70%);
  border: 4px solid #fff6c0; box-shadow: 0 0 30px var(--sym), 0 6px 20px rgba(0, 0, 0, 0.6); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.wheel-result.pop { animation: wheel-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes wheel-pop { from { transform: translate(-50%, -50%) scale(0.2); opacity: 0; } }
.wheel-message { text-align: center; min-height: 1.4em; }
.wheel-view .wheel-bets { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wheel-view .wof-zone { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; min-height: 104px; border-radius: 12px; border: 2px solid var(--sym); background: linear-gradient(180deg, color-mix(in srgb, var(--sym) 35%, transparent), rgba(0, 0, 0, 0.25)); }
.wheel-view .wof-zone .wb-glyph { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 900 1.2rem system-ui; color: #fff; background: var(--sym); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.wheel-view .wof-zone b { font-size: 0.85rem; text-align: center; line-height: 1.1; }
.wheel-view .wof-zone small { font-size: 0.68rem; opacity: 0.8; text-align: center; }
.wheel-view .wof-zone .wb-amount { min-height: 1em; font-weight: 800; color: var(--gold); }
.wheel-view .wof-zone.has-bet { box-shadow: 0 0 14px var(--sym), inset 0 0 0 1px #fff; }
.wheel-view .wof-zone:disabled { opacity: 0.75; }
.wheel-view .controls { width: 100%; }
@container (max-width: 560px) { .wheel-view .wheel-bets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Thèmes de la roue : sélecteur, liste du contenu */
.wheel-themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wheel-themes button.active { background: rgba(232, 193, 90, 0.3); border-color: var(--gold); color: #fff; }
.wheel-result { background-size: cover; background-position: center; }
.wheel-legend { width: 100%; }
.wl-tier { margin: 8px 0; }
.wl-tier > b { display: block; margin-bottom: 4px; color: var(--gold); }
.wl-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 10px; }
.wl-entry { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: 0.82rem; }
.wl-entry i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 0.62rem system-ui; color: #fff; font-style: normal; border: 2px solid rgba(255, 255, 255, 0.8); }
.wl-entry small { opacity: 0.7; font-size: 0.7rem; }

/* ---------- UNO : salon, table, main du joueur ---------- */
.uno-view { display: flex; flex-direction: column; gap: 10px; }
.uno-lobby { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.uno-seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.uno-seat {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; text-align: center;
}
.uno-seat.me { border-color: var(--gold); }
.uno-seat.empty { opacity: 0.55; border-style: dashed; }
.uno-seat .dot, .uno-player-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.uno-seat small { font-size: 0.72rem; opacity: 0.8; }
.uno-seat small.bj-ready { color: #7dff9e; opacity: 1; }
.uno-settings { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.uno-settings label { display: flex; gap: 6px; align-items: center; font-size: 0.9rem; }
.uno-settings select { background: #10261a; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; padding: 4px 6px; }
.uno-lobby .cs-odds { text-align: center; margin: 0; }

.uno-play { display: flex; flex-direction: column; gap: 10px; }
.uno-opponents { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.uno-player {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; padding: 6px 8px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem;
}
.uno-player.me { border-color: rgba(232, 193, 90, 0.6); }
.uno-player.turn { border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 193, 90, 0.6); }
.uno-player.out { opacity: 0.45; }
.uno-player.winner { border-color: #7dff9e; box-shadow: 0 0 14px rgba(125, 255, 158, 0.6); }
.uno-player-head { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.uno-backs { display: flex; height: 22px; }
.uno-mini {
  width: 14px; height: 21px; margin-left: -7px; border-radius: 3px; border: 1px solid #fff;
  background: linear-gradient(135deg, #111 40%, #c0392b 40% 60%, #111 60%);
}
.uno-mini:first-child { margin-left: 0; }
.uno-count { opacity: 0.8; }
.uno-badge { font-weight: 800; color: #ffd43b; text-shadow: 0 0 6px rgba(255, 212, 59, 0.7); font-size: 0.78rem; }
.uno-catch-btn { background: #c0392b; color: #fff; animation: uno-blink 0.6s infinite alternate; }
.uno-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 140px; }

.uno-center {
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px; border-radius: 50% / 40%;
  background: radial-gradient(ellipse at center, #b22222 0%, #7a1414 75%); border: 3px solid #4a2a14;
}
.uno-info { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; }
.uno-color { font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; text-align: center; }
.uno-dir, .uno-pot { opacity: 0.9; }
.uno-log { list-style: none; margin: 0; padding: 6px 10px; font-size: 0.78rem; max-height: 7.5em; overflow: auto;
  background: rgba(0, 0, 0, 0.25); border-radius: 8px; }
.uno-log li { opacity: 0.7; }
.uno-log li:last-child { opacity: 1; font-weight: 600; }

/* cartes */
.uno-card {
  position: relative; flex: none; width: 58px; height: 86px; padding: 0; border-radius: 8px; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; cursor: default;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); font-family: system-ui, sans-serif;
}
.uno-card .uno-oval {
  display: flex; align-items: center; justify-content: center; width: 80%; height: 62%; border-radius: 50%;
  background: #fff; transform: rotate(-25deg); font-size: 1.35rem; text-shadow: none;
}
.uno-card .uno-corner { position: absolute; top: 2px; left: 4px; font-size: 0.7rem; color: #fff; }
.uno-r { background: #d63031; }
.uno-y { background: #f1c40f; }
.uno-g { background: #27ae60; }
.uno-b { background: #2e86de; }
.uno-w { background: #111; }
.uno-r .uno-oval { color: #d63031; }
.uno-y .uno-oval { color: #c79a00; }
.uno-g .uno-oval { color: #1e8449; }
.uno-b .uno-oval { color: #2e86de; }
.uno-w .uno-oval { background: conic-gradient(#d63031 0 25%, #2e86de 0 50%, #f1c40f 0 75%, #27ae60 0); color: #fff;
  text-shadow: 0 0 3px #000, 0 0 3px #000; }
.uno-back { background: #111; cursor: pointer; }
.uno-back .uno-oval { background: #d63031; color: #ffd43b; font-size: 0.85rem; font-style: italic; }
.uno-back:disabled { cursor: default; opacity: 0.85; }
.uno-card.top { width: 70px; height: 104px; }
.uno-card.top .uno-oval { font-size: 1.7rem; }
.uno-card.fresh { animation: uno-drop 0.35s ease-out; }
.uno-card.tiny { width: 18px; height: 27px; border-width: 1px; border-radius: 3px; box-shadow: none; }
.uno-card.tiny .uno-oval { font-size: 0.5rem; }
.uno-card.tiny .uno-corner { display: none; }

.uno-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px 0 2px; }
.uno-hand .uno-card.ok { cursor: pointer; transition: transform 0.12s; }
.uno-hand .uno-card.ok:hover, .uno-hand .uno-card.ok:focus-visible { transform: translateY(-8px); }
.uno-hand .uno-card.no { filter: brightness(0.55) saturate(0.7); }
.uno-hand .uno-card.drawn { outline: 3px solid var(--gold); outline-offset: 2px; }
.uno-hand .uno-card.picking { transform: translateY(-10px); outline: 3px solid #fff; }
.uno-picker { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.uno-pick { color: #fff; font-weight: 700; border: 2px solid #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.uno-pick.uno-y { color: #222; }
#uno-call.armed { background: #ffd43b; color: #222; }

@keyframes uno-drop { from { transform: translateY(-30px) rotate(-12deg) scale(1.15); opacity: 0.3; } }
@keyframes uno-blink { to { filter: brightness(1.4); } }

@container (max-width: 520px) {
  .uno-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uno-card { width: 46px; height: 68px; }
  .uno-card .uno-oval { font-size: 1.05rem; }
}

/* ---------- Plan du casino : réaménagement en direct, aperçu d'un plan ---------- */
.layout-banner {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 60; display: flex; gap: 12px; align-items: center;
  max-width: min(92vw, 760px); padding: 10px 14px; border-radius: 10px; background: rgba(20, 16, 6, 0.95);
  border: 1px solid var(--gold); color: var(--text); font-size: 0.88rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.layout-banner .small-btn { flex: none; }
