/* ColorDiscord — même univers que la Salle de Jeux : verre holographique, néon, fond du site */
:root {
  --text: #EAF6FF; --muted: #9FC3CF; --holo: #5EE7F5; --holo-dim: rgba(94, 231, 245, .38); --holo-glass: rgba(10, 32, 46, .62);
  --pink: #E879F9; --danger: #FF5C7A; --gold: #F3D27A; --cut: 14px;
  --r: #E8323E; --y: #F6C431; --g: #25B04F; --b: #1E7BE3; --cur: #5EE7F5;
  --cw: 92px;   /* largeur d'une carte de la main */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text); font: 15px/1.45 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #0E0B1E;
  background: linear-gradient(180deg, rgba(10, 8, 24, .45), rgba(10, 8, 24, .88)), url(assets/fond.webp) center 35% / cover no-repeat fixed, #0E0B1E;
}
@media (max-width: 700px) { body { background-image: linear-gradient(180deg, rgba(10, 8, 24, .45), rgba(10, 8, 24, .9)), url(assets/fond-mobile.webp); } }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--holo); outline-offset: 2px; }
a { color: #9FEAF4; }

/* ───── Boutons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-weight: 700;
  padding: 11px 18px; border-radius: 6px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid var(--holo-dim); transition: filter .15s, transform .08s, box-shadow .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.btn.ghost { background: rgba(8, 24, 36, .55); }
.btn.danger { background: transparent; border-color: rgba(255, 92, 122, .7); color: #FF9AAE; font-family: 'Orbitron', sans-serif; font-size: 13px; }
.btn.crystal { font-family: 'Orbitron', 'Archivo', sans-serif; letter-spacing: .03em; border: 1px solid rgba(240, 190, 255, .75);
  background: linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, .22) 31% 33%, transparent 34% 60%, rgba(255, 255, 255, .14) 61% 62%, transparent 63%), linear-gradient(180deg, #B57CF2 0%, #8B46D9 50%, #6A2BB8 100%);
  box-shadow: 0 0 18px rgba(200, 120, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(40, 0, 80, .45); text-shadow: 0 0 8px rgba(255, 220, 255, .6); }
.btn.glass { font-family: 'Orbitron', 'Archivo', sans-serif; letter-spacing: .02em; font-size: 14px; border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(180deg, rgba(94, 231, 245, .32), rgba(20, 90, 110, .22) 50%, rgba(94, 231, 245, .2));
  box-shadow: 0 0 14px rgba(94, 231, 245, .4), inset 0 1px 0 rgba(255, 255, 255, .6); text-shadow: 0 0 8px rgba(190, 250, 255, .6); }
.btn.trash { padding: 8px; background: transparent; border-color: transparent; }
.btn.trash svg { width: 22px; height: 22px; fill: none; stroke: #FF6B8A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 80, 120, .6)); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--holo-dim); background: rgba(8, 24, 36, .6); cursor: pointer; font-size: 17px; font-weight: 700; }
.icon-btn.small { width: 30px; height: 30px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }
.spacer { flex: 1; }
.error { color: #FF9AAE; min-height: 1.3em; margin: 0; }
.hint { color: var(--muted); font-size: 13.5px; }

/* ───── Cadres holographiques ───── */
.hud {
  position: relative; border: 1px solid var(--holo-dim); border-radius: 0;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--holo) 50%, transparent calc(50% + 1px)) top left / var(--cut) var(--cut) no-repeat,
    linear-gradient(225deg, transparent calc(50% - 1px), var(--holo) 50%, transparent calc(50% + 1px)) top right / var(--cut) var(--cut) no-repeat,
    linear-gradient(45deg, transparent calc(50% - 1px), var(--holo) 50%, transparent calc(50% + 1px)) bottom left / var(--cut) var(--cut) no-repeat,
    linear-gradient(315deg, transparent calc(50% - 1px), var(--holo) 50%, transparent calc(50% + 1px)) bottom right / var(--cut) var(--cut) no-repeat,
    linear-gradient(180deg, rgba(40, 90, 120, .28), rgba(8, 20, 34, .2)) padding-box, var(--holo-glass);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  box-shadow: inset 0 0 0 1px rgba(94, 231, 245, .08), inset 0 0 24px rgba(94, 231, 245, .14), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hud::before, .hud::after { content: ''; position: absolute; height: 2px; pointer-events: none; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--holo), transparent); box-shadow: 0 0 8px var(--holo); opacity: .85; }
.hud::before { top: 0; left: 22%; right: 22%; }
.hud::after { bottom: 0; left: 34%; right: 34%; opacity: .6; }
.hud-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: 'Orbitron', 'Archivo', sans-serif; font-weight: 500; font-size: 20px; letter-spacing: .02em; color: #BDF6FF; text-shadow: 0 0 10px rgba(94, 231, 245, .55); }
.hud-title .ico { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--holo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--holo)); }
.hud-bar { padding: 12px 18px; margin-bottom: 12px; }
.panel { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.panel input:not([type=range]):not([type=checkbox]), .panel select { width: 100%; min-width: 0; }
label { display: grid; gap: 6px; color: #A8D9E3; font-size: 13.5px; font-weight: 600; }
input:not([type=range]):not([type=checkbox]), select { background: rgba(6, 22, 34, .78); border: 1px solid var(--holo-dim); border-radius: 6px; color: #E9FBFF; padding: 10px 12px; min-height: 44px; outline: none; font-size: 16px; box-shadow: inset 0 0 12px rgba(94, 231, 245, .08); }
input:focus, select:focus { border-color: var(--holo); box-shadow: 0 0 0 1px var(--holo); }
select option { background: #0B1C2A; }
.stake-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: center; margin-top: -4px; }
.stake-row input[type=range] { width: 100%; accent-color: var(--holo); }
.stake-row input { text-align: center; font-family: 'Orbitron', sans-serif; font-size: 15px; }

/* ───── Logo ───── */
.logo { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(34px, 7vw, 54px); letter-spacing: .01em; text-decoration: none; color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 14px rgba(94, 231, 245, .6); }
.logo span { background: linear-gradient(90deg, var(--r), var(--y) 33%, var(--g) 66%, var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .25)); }
.logo.small { font-size: 22px; }

/* ───── Écrans ───── */
.screen { min-height: 100dvh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.who { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(8, 24, 36, .7); border: 1px solid var(--holo-dim); font-size: 14px; }
.who b { color: #7FF0FF; font-family: 'Orbitron', sans-serif; }
.center-box { max-width: 460px; margin: 18vh auto 0; padding: 30px; text-align: center; display: grid; gap: 14px; }
.center-box p { color: var(--muted); margin: 0; }
.lobby { display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 6px 20px 30px; align-items: start; }
.game-list { display: grid; gap: 12px; }
.game-item { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; padding: 18px 20px; align-items: center; }
.game-item h3 { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 500; font-size: 18px; }
.game-item .meta { color: #7FE3F0; font-size: 13.5px; margin-top: 3px; }
.gi-side { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.ava-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--holo-dim); background: rgba(6, 22, 34, .4); }
.ring { width: 58px; height: 58px; }
.ring-bg { fill: rgba(6, 22, 34, .5); stroke: rgba(94, 231, 245, .18); stroke-width: 5; }
.ring-fg { fill: none; stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 3px rgba(232, 121, 249, .7)); }
.ring text { fill: #EAFBFF; font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; }
.foot { text-align: center; color: #8E9FB6; font-size: 12px; padding: 10px 20px 24px; opacity: .8; }

/* Avatars */
.ava { --a1: #8B6CF0; --a2: #2DD4E6; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 45%), linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 4px 10px rgba(0, 0, 0, .4); }
.ava.sm { width: 32px; height: 32px; font-size: 17px; }
.ava.lg { width: 52px; height: 52px; font-size: 27px; }
.avatars { display: flex; gap: 10px; flex-wrap: wrap; }
.avatars button { padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; }
.avatars button.sel { border-color: var(--holo); box-shadow: 0 0 12px rgba(94, 231, 245, .6); }
.avatars button:disabled { opacity: .3; cursor: default; }

/* Salle d'attente */
.room { max-width: 640px; margin: 10px auto 30px; }
.room h3 { margin: 6px 0 0; font-size: 14px; color: #A8D9E3; font-weight: 600; }
.seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seats li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(6, 22, 34, .55); border: 1px solid rgba(94, 231, 245, .2); border-radius: 6px; }
.seats li .nm { flex: 1; font-weight: 700; }
.seats .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--holo-dim); border-radius: 999px; padding: 1px 8px; }

/* ───── Partie ───── */
#screen-game { height: 100dvh; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; overflow: hidden; }
.gamebar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(6, 14, 26, .55); border-bottom: 1px solid rgba(94, 231, 245, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.g-title { display: grid; line-height: 1.15; min-width: 0; }
.g-title b { font-family: 'Orbitron', sans-serif; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-title small { color: var(--muted); }
.pot { font-family: 'Orbitron', sans-serif; font-size: 13px; color: var(--gold); border: 1px solid rgba(243, 210, 122, .5); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.table-wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; overflow: hidden; min-height: 0; padding: 8px 10px 0; gap: 6px; }

.opponents { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.opp { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 12px; min-width: 150px;
  background: rgba(8, 20, 34, .7); border: 1px solid rgba(94, 231, 245, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow .25s, border-color .25s, transform .25s; }
.opp .info { display: grid; line-height: 1.15; min-width: 0; }
.opp .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.opp .sc { font-size: 12px; color: var(--muted); }
.opp .cnt { display: flex; align-items: center; gap: 6px; margin-left: auto; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 15px; }
.opp .minis { position: relative; width: 30px; height: 30px; }
.opp .minis .cd-card { position: absolute; width: 20px; top: 0; left: 0; }
.opp.turn { border-color: var(--cur); box-shadow: 0 0 0 1px var(--cur), 0 0 22px color-mix(in srgb, var(--cur) 60%, transparent); transform: translateY(-2px); }
.opp.out { opacity: .4; }
.opp .badge { position: absolute; top: -9px; right: -6px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #fff; color: #111; }
.opp .badge.one { background: linear-gradient(90deg, var(--r), var(--y), var(--g), var(--b)); color: #fff; text-shadow: 0 1px 2px #000; animation: pulse 1s ease-in-out infinite; }
.opp .badge.bot { background: rgba(94, 231, 245, .9); }
.opp .catch { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); z-index: 3; font: 800 12px 'Orbitron', sans-serif; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #FF5C7A, #C2183A); border: 1px solid #FFB3C1; box-shadow: 0 0 14px rgba(255, 70, 110, .8); animation: pulse .7s ease-in-out infinite; white-space: nowrap; }
.opp .tring { position: absolute; inset: -3px; border-radius: 14px; pointer-events: none; }
.dealer-chip { font-size: 10px; font-weight: 800; background: var(--gold); color: #2a1a00; border-radius: 999px; padding: 0 5px; margin-left: 4px; }

.table { position: relative; align-self: center; justify-self: center; width: min(720px, 94vw, calc((100dvh - 400px) * 1.74)); aspect-ratio: 2 / 1.15; max-height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 60px);
  background: radial-gradient(ellipse at 50% 45%, rgba(40, 70, 110, .55), rgba(10, 18, 34, .75) 70%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cur) 70%, transparent), 0 0 40px color-mix(in srgb, var(--cur) 45%, transparent), inset 0 0 60px rgba(0, 0, 0, .5);
  transition: box-shadow .5s; }
.halo { position: absolute; inset: 18% 22%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cur) 35%, transparent), transparent 70%); pointer-events: none; transition: background .5s; }
.dir { position: absolute; top: 3%; bottom: 3%; left: 50%; aspect-ratio: 1; transform: translateX(-50%); color: color-mix(in srgb, var(--cur) 70%, #fff); opacity: .38; pointer-events: none; transition: transform .6s; }
.dir svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.table .pile { z-index: 1; }
.dir.ccw { transform: translateX(-50%) scaleX(-1); }
@keyframes spin { to { transform: rotate(360deg); } }
.pile { position: relative; width: clamp(calc(var(--cw) * .9), 17%, calc(var(--cw) * 1.35)); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; }
.pile .cd-card, .pile img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.deck { cursor: pointer; }
.deck .stack { position: absolute; inset: 0; }
.deck .stack .cd-card:nth-child(1) { transform: translate(4px, 4px); }
.deck .stack .cd-card:nth-child(2) { transform: translate(2px, 2px); }
.deck.can .stack .cd-card:last-child { filter: drop-shadow(0 0 12px var(--holo)) drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.deck.can:hover { transform: translateY(-3px); }
.deck .count { position: absolute; bottom: -20px; white-space: nowrap; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }
.discard .cd-card { transition: transform .3s; }
.color-tag { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); font: 700 12px 'Orbitron', sans-serif; letter-spacing: .08em; padding: 3px 12px; border-radius: 999px;
  background: var(--cur); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); box-shadow: 0 0 14px var(--cur); }
.status { text-align: center; min-height: 26px; font-weight: 700; font-size: 15px; color: #DFF8FF; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.status.mine { color: #fff; font-family: 'Orbitron', sans-serif; font-size: 15px; text-shadow: 0 0 12px var(--cur); }

.me-bar { position: relative; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.timer { height: 4px; margin: 0 auto 8px; max-width: 520px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--holo), var(--pink)); }
.timer i.warn { background: linear-gradient(90deg, #FFB347, #FF5C7A); }
.actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 8px; }
.call-btn { width: 86px; height: 86px; border-radius: 50%; cursor: pointer; font: 900 15px 'Orbitron', sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  border: 3px solid rgba(255, 255, 255, .85); background: conic-gradient(var(--r) 0 25%, var(--b) 0 50%, var(--g) 0 75%, var(--y) 0); box-shadow: 0 0 18px rgba(255, 255, 255, .25); transition: transform .15s, filter .2s; }
.call-btn:disabled { filter: grayscale(.85) brightness(.55); cursor: default; }
.call-btn:not(:disabled) { animation: callPulse .9s ease-in-out infinite; }
.call-btn.done { filter: none; box-shadow: 0 0 0 4px #fff, 0 0 30px #fff; animation: none; }
@keyframes callPulse { 50% { transform: scale(1.08); box-shadow: 0 0 34px rgba(255, 255, 255, .7); } }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.08); } }
.opp .badge.one { animation-name: pulseB; }
@keyframes pulseB { 50% { transform: scale(1.12); } }

.hand { display: flex; justify-content: center; align-items: flex-end; min-height: calc(var(--cw) * 1.5 + 18px); padding: 14px 8px 0; overflow-x: auto; overflow-y: visible; scrollbar-width: thin; }
.hand .hc { position: relative; flex: none; width: var(--cw); margin-left: var(--ov, -30px); padding: 0; border: 0; background: none; cursor: default; transition: transform .18s, filter .18s, margin .2s; }
.hand .hc:first-child { margin-left: 0; }
.hand .hc .cd-card { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55)); }
.hand.myturn .hc { filter: brightness(.5) saturate(.6); }
.hand.myturn .hc.ok { filter: none; cursor: pointer; transform: translateY(-14px); }
.hand.myturn .hc.ok .cd-card { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.hand.myturn .hc.ok:hover { transform: translateY(-26px) scale(1.04); z-index: 5; }
.hand .hc.new { animation: drawIn .6s ease-out both; }
@keyframes drawIn { from { transform: translateY(-120px) scale(.6) rotate(-8deg); opacity: 0; } }

/* Journal */
.log { position: fixed; right: 10px; top: 60px; bottom: 10px; width: min(340px, calc(100vw - 20px)); z-index: 30; display: flex; flex-direction: column;
  background: rgba(8, 18, 30, .94); border: 1px solid var(--holo-dim); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.log-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(94, 231, 245, .2); }
.log ol { list-style: none; margin: 0; padding: 8px 12px; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 4px; font-size: 13.5px; }
.menu-pop { position: fixed; right: 10px; top: 56px; z-index: 31; padding: 12px; display: grid; gap: 8px; min-width: 240px; }

/* Fenêtres */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 14, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-box { width: min(440px, 100%); padding: 22px; display: grid; gap: 14px; text-align: center; background-color: rgba(10, 26, 40, .96); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-box.wide { width: min(640px, 100%); }
.modal h2 { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 500; color: #BDF6FF; text-shadow: 0 0 10px rgba(94, 231, 245, .5); }
.modal p { margin: 0; }
.rules ul { text-align: left; margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; }
.color-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp { height: 82px; border-radius: 10px; cursor: pointer; font: 700 16px 'Orbitron', sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); border: 2px solid rgba(255, 255, 255, .6); transition: transform .12s; }
.cp:hover { transform: scale(1.04); }
.cp.r { background: var(--r); box-shadow: 0 0 18px var(--r); } .cp.y { background: var(--y); box-shadow: 0 0 18px var(--y); }
.cp.g { background: var(--g); box-shadow: 0 0 18px var(--g); } .cp.b { background: var(--b); box-shadow: 0 0 18px var(--b); }
.scores { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.scores td, .scores th { padding: 7px 6px; border-bottom: 1px solid rgba(94, 231, 245, .15); vertical-align: middle; }
.scores th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.scores .num { text-align: right; font-family: 'Orbitron', sans-serif; white-space: nowrap; }
.scores tr.win td { color: #fff; background: rgba(94, 231, 245, .1); }
.minihand { display: flex; flex-wrap: wrap; gap: 2px; }
.minihand .cd-card { width: 24px; height: auto; }
.reveal { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.reveal .cd-card { width: 44px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; padding: 10px 16px; border-radius: 10px; background: rgba(12, 28, 44, .97); border: 1px solid var(--holo-dim); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: calc(100vw - 30px); }
.toast.err { border-color: var(--danger); }

/* Effets */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
.fly { position: fixed; width: var(--cw); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s; will-change: transform; }
.fly .cd-card, .fly img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.burst { position: fixed; transform: translate(-50%, -50%); font: 900 clamp(26px, 6vw, 46px) 'Orbitron', sans-serif; color: #fff; white-space: nowrap;
  text-shadow: 0 0 6px #000, 0 0 22px var(--c, #5EE7F5); animation: burst 1.3s ease-out forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1); opacity: 0; } }

/* ───── Téléphone ───── */
@media (max-width: 860px) {
  .lobby { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --cw: 64px; }
  .topbar { padding: 10px 14px; }
  .lobby { padding: 4px 12px 20px; }
  .game-item { grid-template-columns: 1fr; }
  .gi-side { justify-content: space-between; }
  .stake-row { grid-template-columns: 1fr 110px; }
  .opponents { gap: 6px; }
  .opp { min-width: 0; flex: 0 1 calc(33.3% - 6px); padding: 4px 7px 4px 4px; gap: 5px; border-radius: 10px; }
  .opp .cnt { font-size: 13px; }
  .opp .badge { font-size: 9.5px; padding: 0 5px; }
  .g-title small { font-size: 11.5px; }
  .call-btn { letter-spacing: -.02em; }
  .opp .ava { width: 28px; height: 28px; font-size: 15px; }
  .opp .nm { font-size: 11.5px; max-width: 64px; }
  .opp .sc { display: none; }
  .opp .minis { display: none; }
  .table { width: 96vw; }
  .call-btn { width: 68px; height: 68px; font-size: 11.5px; }
  .actions .btn { padding: 10px 12px; font-size: 13px; }
  .gamebar .icon-btn { width: 34px; height: 34px; }
  .pot { display: none; }
}
@media (max-height: 700px) and (min-width: 601px) { :root { --cw: 76px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
