/* Black Jack — ambiance casino : tapis vert, bois verni, or et velours */
:root {
  --bg: #07130d; --bg2: #0d1f16; --card: #12291d; --line: #2a4a38;
  --text: #f7f2e3; --muted: #a9bfae; --accent: #e6be55; --accent2: #c8314a; --ok: #3ddc97; --bad: #ff5d6c;
  --felt: #0e5a37; --felt2: #0a4329; --gold: #e6be55; --wood: #5a2f17;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(900px 500px at 15% -10%, #3b1d7a 0%, transparent 60%), radial-gradient(800px 500px at 110% 10%, #1b3d7a 0%, transparent 55%), var(--bg);
  overflow: hidden; height: 100dvh;
}
[hidden] { display: none !important; }
button, input { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.big { font-size: 20px; font-weight: 800; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.scroll { overflow-y: auto; }
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 90px; display: flex; flex-direction: column; gap: 14px; }
.hero { text-align: center; margin: 6px 0 2px; }
.logo { font-size: 50px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
h1 { margin: 8px 0 4px; font-size: 36px; font-weight: 900; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; }

.box { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.boxtitle { font-weight: 800; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.boxtitle.small { font-size: 14px; margin-top: 14px; color: var(--muted); }
.pill { background: #1e3a2b; border-radius: 999px; padding: 2px 9px; font-size: 13px; }
.lbl { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.lbl:first-child { margin-top: 0; }
input { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #06100b; color: var(--text); font-size: 16px; padding: 0 14px; outline: none; }
input:focus { border-color: var(--accent); }
.code-in { text-transform: uppercase; letter-spacing: 6px; font-weight: 900; text-align: center; flex: 1; }
.check { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); flex: none; }
.err { color: var(--bad); font-weight: 700; min-height: 1em; margin: 8px 0 0; text-align: center; }

.btn { min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--text); background: #1e3a2b; box-shadow: 0 3px 0 #091a11; white-space: nowrap; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #091a11; }
.btn.main { color: #1b1300; background: linear-gradient(180deg, #ffd56b, var(--accent)); box-shadow: 0 3px 0 #b27d00; }
.btn.red { color: #fff; background: linear-gradient(180deg, #ff6b8f, #e0456b); box-shadow: 0 3px 0 #8f2440; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn:disabled { opacity: .45; }
.btn.wide { width: 100%; margin-top: 10px; }
.big-btn { min-height: 58px; font-size: 19px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > .btn { flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #173024; color: var(--text); font-size: 18px; cursor: pointer; flex: none; }

.seg { display: flex; gap: 6px; background: #06100b; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; cursor: pointer; }
.seg button.sel { background: linear-gradient(180deg, #ffd56b, var(--accent)); color: #1b1300; }
.seg.locked button { cursor: default; }
.seg.locked button:not(.sel) { opacity: .5; }

.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.avatars button { height: 44px; font-size: 24px; border-radius: 12px; border: 2px solid transparent; background: #06100b; cursor: pointer; }
.avatars button.sel { border-color: var(--accent); background: #1e3a2b; }
.avatars button:disabled { opacity: .25; }

/* salon */
.code { font-size: 52px; font-weight: 900; letter-spacing: 10px; margin: 2px 0 12px; color: var(--accent); }
.plist { display: flex; flex-direction: column; gap: 6px; }
.pl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #0f2219; border-left: 4px solid var(--c, #888); }
.pl .av { font-size: 26px; width: 34px; text-align: center; }
.pl .nm { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .tag { font-size: 12px; color: var(--muted); }
.pl.off { opacity: .45; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 2px; }

/* salon : équipes, robots, règles */
.pl .team { font-size: 16px; }
.pl .kick { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }
.pl .tsw { border: 0; background: #1e3a2b; color: var(--text); border-radius: 8px; font-size: 14px; padding: 4px 6px; cursor: pointer; }
.teampick { margin-top: 10px; }
.aidbox { margin-top: 4px; }
.pl .aidtag { font-size: 14px; }
.teampick .btn.sel { outline: 3px solid var(--accent); outline-offset: -3px; }
.botbox { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.botbox .btn { flex: 1 1 auto; }
.small-seg { flex: 1 1 200px; }
.small-seg button { min-height: 36px; font-size: 13px; }
.rules summary { font-weight: 800; cursor: pointer; }
.rules ul, .rules-sheet ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.rules li, .rules-sheet li { margin-bottom: 6px; }
.rules b, .rules-sheet b { color: var(--text); }
.rules-sheet { max-height: 80dvh; overflow-y: auto; }
.seg button { white-space: normal; line-height: 1.15; padding: 4px; }

/* fin */
.endtitle { font-size: 28px; margin: 6px 0 0; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 200px; }
.pod { flex: 1; max-width: 140px; text-align: center; }
.pod .av { font-size: 40px; }
.pod .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .sc { color: var(--accent); font-weight: 900; }
.pod .step { margin-top: 6px; border-radius: 12px 12px 0 0; font-size: 28px; font-weight: 900; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.pod.p1 .step { height: 110px; background: linear-gradient(180deg, #ffd56b, #c99112); color: #3b2a00; }
.pod.p2 .step { height: 80px; background: linear-gradient(180deg, #e3e6f0, #9aa0b5); color: #2a2d3a; }
.pod.p3 .step { height: 60px; background: linear-gradient(180deg, #f0b27a, #a8642c); color: #3a1f08; }
.er { display: flex; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.er:last-child { border-bottom: 0; }
.er .rk { font-weight: 900; width: 28px; color: var(--muted); padding-top: 3px; }
.er .av { font-size: 26px; }
.er .info { flex: 1; min-width: 0; }
.er .nm { font-weight: 800; }
.er .cm { color: var(--muted); font-size: 14px; margin-top: 2px; }
.er .sc { font-weight: 900; color: var(--accent); }
.er .st { font-size: 12px; color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 3.2s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* menu */
.sheet-bg { position: fixed; inset: 0; background: rgba(2,8,5,.6); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; background: var(--bg2); border-radius: 20px 20px 0 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border: 1px solid var(--line); }

/* chat */
.chat-btn { position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 15; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: #1e3a2b; font-size: 24px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent2); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.chat-feed { position: fixed; right: 14px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px); z-index: 14; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; max-width: 75vw; }
.chat-feed > div { background: rgba(6,18,12,.92); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; animation: pop .25s ease; }
.chat-feed .gif { max-height: 90px; }
.chat-feed .mini .gif { max-height: 44px; }
.chat-panel { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: min(72dvh, 560px); max-width: 520px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { font-size: 15px; line-height: 1.35; word-wrap: break-word; }
.msg b { margin-right: 6px; }
.msg .gif { display: block; max-width: 200px; max-height: 160px; border-radius: 10px; margin-top: 4px; }
.emojis { display: flex; gap: 4px; padding: 6px 10px; overflow-x: auto; border-top: 1px solid var(--line); }
.emojis button { font-size: 22px; background: #06100b; border: 0; border-radius: 10px; min-width: 42px; height: 40px; cursor: pointer; }
.emojis .gif-btn { font-size: 13px; font-weight: 900; color: var(--accent); }
.chat-form { display: flex; gap: 6px; padding: 8px 10px; }
.chat-form input { flex: 1; }
.gif-picker { border-top: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; max-height: 46%; }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; overflow-y: auto; }
.gif-grid button { padding: 0; border: 0; background: #06100b; border-radius: 8px; overflow: hidden; height: 80px; cursor: pointer; }
.gif-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-grid .hint { grid-column: 1 / -1; }
.gif-credit { font-size: 11px; color: var(--muted); text-align: right; }
.hint { color: var(--muted); font-size: 14px; }

.toast { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translate(-50%, -250%); visibility: hidden; background: #1e3a2b; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 40; transition: transform .25s; max-width: 90vw; text-align: center; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.conn { position: fixed; left: 0; right: 0; top: 0; background: var(--bad); color: #fff; text-align: center; font-weight: 800; padding: 6px; z-index: 50; font-size: 14px; }


/* ======================================================================== casino */
body { background: radial-gradient(700px 420px at 50% -8%, #6d1424 0%, transparent 62%), radial-gradient(900px 600px at 50% 120%, #0b3a24 0%, transparent 60%), var(--bg); }
h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 1px; background: linear-gradient(180deg, #fff2c2, #e6be55 55%, #a87b1f); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.endtitle { font-family: Georgia, "Times New Roman", serif; color: var(--gold); }
.box { box-shadow: inset 0 1px 0 rgba(230,190,85,.12); }
.btn.main { color: #2a1a00; background: linear-gradient(180deg, #ffe08a, #e6be55 60%, #c99a2e); box-shadow: 0 3px 0 #7d5a12; }
.seg button.sel { background: linear-gradient(180deg, #ffe08a, #e6be55); color: #2a1a00; }
.code { font-family: Georgia, serif; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.logo { display: flex; justify-content: center; gap: 0; height: 74px; align-items: center; }
.mini-card { width: 46px; height: 64px; border-radius: 7px; background: #fbf8ef; color: #161616; font: 900 22px Georgia, serif; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 6px 16px rgba(0,0,0,.45); transform: rotate(-10deg) translateX(8px); }
.mini-card i { font-style: normal; font-size: 24px; }
.mini-card.red { color: #c8202f; transform: rotate(10deg) translateX(-8px) translateY(4px); }

/* ---- haut de l'écran ---- */
.topbar { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 10px 8px; background: linear-gradient(180deg, #2a0d13, #1a080c); border-bottom: 2px solid #6b4d16; flex: none; }
.qnum { font-weight: 900; font-size: 14px; background: #3d1119; border: 1px solid #6b4d16; color: var(--gold); border-radius: 9px; padding: 6px 9px; white-space: nowrap; }
.qnum small { color: var(--muted); font-weight: 700; }
.turn { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .iconbtn { background: #3d1119; border-color: #6b4d16; }
.timer { height: 5px; background: #06100b; flex: none; }
#gBar { height: 100%; width: 0; background: linear-gradient(90deg, #e6be55, #ffe08a); transition: width .25s linear; }
#gBar.low { background: linear-gradient(90deg, #ff5d6c, #ff9a7a); }

/* ---- la table ---- */
.stage { flex: 1; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; background: #2b160b; }
.felt { position: absolute; inset: 6px 6px 0; border-radius: 30px 30px 46% 46% / 30px 30px 26% 26%;
  background: radial-gradient(ellipse at 50% 30%, #18784b 0%, var(--felt) 45%, var(--felt2) 100%);
  border: 9px solid var(--wood); border-bottom-width: 12px;
  box-shadow: inset 0 0 0 2px rgba(230,190,85,.35), inset 0 0 60px rgba(0,0,0,.55), 0 0 0 2px #2a1408, 0 10px 30px rgba(0,0,0,.6);
  background-clip: padding-box; overflow: hidden; }
.felt::before { content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 3px 3px; }
.lamp { position: absolute; left: 50%; top: -30%; width: 140%; height: 90%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255,240,190,.16), transparent 60%); pointer-events: none; }
.felt-text { position: absolute; left: 4%; width: 92%; pointer-events: none; opacity: .9; }
.felt-text .ft1 { font: 900 17px Georgia, serif; fill: #e6be55; letter-spacing: 2px; }
.felt-text .ft2 { font: 600 10.5px Georgia, serif; fill: rgba(247,242,227,.62); letter-spacing: .5px; }

.shoe { position: absolute; right: 10px; top: 10px; width: 46px; height: 58px; border-radius: 6px 12px 6px 6px; background: linear-gradient(160deg, #3a2a1e, #1a120c); box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(230,190,85,.3); z-index: 2; }
.shoe-cards { position: absolute; left: 6px; right: 6px; top: 6px; height: 30px; border-radius: 3px; background: repeating-linear-gradient(90deg, #7a1424 0 3px, #a8263a 3px 4px); transform: skewX(-8deg); }
.shoe small { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 10px; font-weight: 800; color: var(--gold); }
.rack { position: absolute; left: 12px; top: 12px; display: flex; gap: 2px; padding: 4px; border-radius: 6px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(230,190,85,.25); z-index: 1; }
.rack i { width: 8px; height: 30px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--c) 0 3px, rgba(255,255,255,.75) 3px 4px); }
.rack i:nth-child(1) { --c: #2b67d1; } .rack i:nth-child(2) { --c: #219a5b; } .rack i:nth-child(3) { --c: #c8202f; } .rack i:nth-child(4) { --c: #222; } .rack i:nth-child(5) { --c: #7a3fc8; }

.dealer { position: absolute; left: 0; right: 0; top: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.dlabel { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(230,190,85,.35); }
.croupier { font-size: 18px; }

/* ---- cartes ---- */
.cards { position: relative; height: calc(var(--cw) * 1.4); }
.card { position: absolute; top: 0; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * .1); background: linear-gradient(160deg, #ffffff, #f1ece0); color: #151515;
  box-shadow: 0 2px 5px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.12); font-family: Georgia, "Times New Roman", serif; overflow: hidden; will-change: transform; }
.card.red { color: #c8202f; }
.card .ix { position: absolute; left: 7%; top: 4%; font-weight: 900; font-size: calc(var(--cw) * .34); line-height: .95; text-align: center; letter-spacing: -1px; }
.card .ix i { display: block; font-style: normal; font-size: calc(var(--cw) * .3); letter-spacing: 0; }
.card .pip { position: absolute; right: 8%; bottom: 4%; font-size: calc(var(--cw) * .62); line-height: 1; }
.card.face .pip { font-size: calc(var(--cw) * .5); bottom: 6%; }
.card.face::after { content: ''; position: absolute; inset: 22% 14% 10% 34%; border: 1px solid currentColor; border-radius: 3px; opacity: .25; }
.card.back { background: repeating-linear-gradient(45deg, #8d1a2c 0 4px, #a8263a 4px 8px); box-shadow: 0 2px 5px rgba(0,0,0,.45), inset 0 0 0 2px #f7f2e3, inset 0 0 0 4px #8d1a2c; }
.card.back::after { content: '♠'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(230,190,85,.75); font-size: calc(var(--cw) * .5); }
.card.flip { animation: flip .45s ease; }
@keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }

.tot { display: inline-block; min-width: 26px; text-align: center; font-size: 13px; font-weight: 900; padding: 2px 7px; border-radius: 999px; background: #06100b; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.tot.bust { background: #8f1d2c; }
.tot.bj { background: linear-gradient(180deg, #ffe08a, #c99a2e); color: #2a1a00; }

/* ---- places des joueurs ---- */
#seats { position: absolute; inset: 0; }
.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; transition: left .4s, top .4s; z-index: 2; }
.seat.out { opacity: .45; }
.hands { display: flex; gap: 6px; align-items: flex-end; justify-content: center; }
.hand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 10px; padding: 3px; transition: transform .2s; }
.hand.active { background: rgba(230,190,85,.18); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(230,190,85,.55); }
.hand .meta { display: flex; align-items: center; gap: 4px; }
.res { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%) rotate(-8deg); white-space: nowrap; font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 8px; z-index: 5; animation: stamp .35s ease; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.res.win { background: #1d9a5c; color: #fff; }
.res.bj { background: linear-gradient(180deg, #ffe08a, #c99a2e); color: #2a1a00; font-size: 13px; }
.res.push { background: #4a5a70; color: #fff; }
.res.lose { background: #4a1820; color: #ffb3bd; }
.res.bust { background: #c8202f; color: #fff; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } }
.who { display: flex; align-items: center; gap: 4px; max-width: 120px; background: rgba(0,0,0,.42); border-radius: 999px; padding: 2px 8px 2px 3px; border: 2px solid var(--c, transparent); }
.who .av { font-size: 17px; }
.who .nm { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62px; }
.who .ch { font-size: 11px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.seat.me .who { background: rgba(60,40,0,.75); border-color: var(--gold); }
.seat.turn .who { animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 14px 3px rgba(230,190,85,.8); } }
.seat .tag { font-size: 10px; font-weight: 800; color: var(--muted); background: rgba(0,0,0,.35); border-radius: 6px; padding: 1px 6px; }
.seat .ok { color: #7dffb8; }

/* ---- jetons ---- */
.stack { position: relative; display: flex; flex-direction: column; align-items: center; }
.pile { position: relative; width: 26px; height: 26px; }
.tok { position: absolute; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 4px dashed rgba(255,255,255,.85); box-shadow: 0 2px 3px rgba(0,0,0,.6), inset 0 0 0 2px var(--c); }
.tok::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); }
.amt { font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; margin-top: 1px; }
.stack.new .pile { animation: slidein .35s ease; }
@keyframes slidein { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- le panneau du bas ---- */
.panel { flex: none; background: linear-gradient(180deg, #1a080c, #12050a); border-top: 2px solid #6b4d16; padding: 8px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.pbox { display: flex; flex-direction: column; gap: 6px; }
.ptext { text-align: center; font-weight: 800; font-size: 15px; min-height: 22px; }
.chips-row { display: flex; justify-content: center; gap: 6px; }
.chipbtn { width: 50px; height: 50px; border-radius: 50%; border: 5px dashed rgba(255,255,255,.9); background: var(--c); color: #fff; font-weight: 900; font-size: 13px; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.5), inset 0 0 0 3px var(--c), inset 0 0 0 4px rgba(255,255,255,.55); text-shadow: 0 1px 2px rgba(0,0,0,.7); padding: 0; }
.chipbtn:active { transform: translateY(2px); }
.chipbtn:disabled { opacity: .3; }
.betline { align-items: center; flex-wrap: nowrap; }
.betline .btn { flex: 0 1 auto; }
.betval { flex: 1; font-weight: 800; font-size: 15px; white-space: nowrap; }
.betval b { color: var(--gold); font-size: 20px; }
.btn.sm { min-height: 38px; font-size: 13px; padding: 0 10px; }
.panel .btn.wide { margin-top: 0; }
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.btn.mv { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62px; font-size: 22px; padding: 2px; }
.btn.mv span { font-size: 13px; }
.btn.mv[data-m="hit"] { background: linear-gradient(180deg, #2fbf74, #1d9a5c); box-shadow: 0 3px 0 #0e5a33; }
.btn.mv[data-m="stand"] { background: linear-gradient(180deg, #e0485e, #b82a40); box-shadow: 0 3px 0 #6e1424; }
.btn.mv[data-m="double"] { background: linear-gradient(180deg, #ffe08a, #e6be55); color: #2a1a00; box-shadow: 0 3px 0 #7d5a12; }
.btn.mv[data-m="split"] { background: linear-gradient(180deg, #5b8def, #3a66c4); box-shadow: 0 3px 0 #1d3a7a; }
.btn.mv:disabled { filter: grayscale(.8); opacity: .35; }
.pfoot { min-height: calc(46px + env(safe-area-inset-bottom)); padding: 4px 78px env(safe-area-inset-bottom) 50px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; text-align: center; }
.pfoot .gold { color: var(--gold); font-size: 17px; }
.pfoot .plus { color: #7dffb8; } .pfoot .minus { color: #ff9aa6; }
.hostbar { position: absolute; left: 0; right: 0; top: 112px; display: flex; justify-content: center; z-index: 6; pointer-events: none; }
.hostbar .btn { pointer-events: auto; min-height: 36px; font-size: 13px; background: rgba(6,18,12,.85); border: 1px solid var(--line); }

.spect-badge { position: absolute; left: 14px; bottom: 10px; font-size: 12px; font-weight: 800; background: rgba(6,18,12,.8); color: var(--muted); padding: 4px 12px; border-radius: 999px; z-index: 3; }
.banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(90%, 440px); text-align: center; z-index: 7; pointer-events: none;
  font: 900 22px Georgia, "Times New Roman", serif; color: #fff2c2; padding: 12px 16px; border-radius: 16px; background: rgba(20,4,8,.86); border: 2px solid var(--gold); box-shadow: 0 10px 34px rgba(0,0,0,.6); animation: popc .35s ease; }
.banner small { display: block; font: 700 14px system-ui, sans-serif; color: var(--muted); margin-top: 4px; }
.banner.big { font-size: 30px; }
@keyframes popc { from { transform: translate(-50%, -50%) scale(.8); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.coins { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.coins i { position: absolute; font-style: normal; font-size: 22px; animation: coin 1.4s ease-in forwards; }
@keyframes coin { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(70vh) rotate(540deg); opacity: 0; } }
.chat-btn { background: #3d1119; border-color: #6b4d16; }
.er .sc { white-space: nowrap; }
#seats.tight .who { max-width: 96px; padding-right: 6px; }
#seats.tight .who .nm { max-width: 40px; font-size: 11px; }
#seats.tight .who .av { font-size: 15px; }
#seats.tight .tag { font-size: 9px; }
