/* ─────────────────────────────────────────────────────────────
   BLITZ — styles
   ───────────────────────────────────────────────────────────── */
:root {
  --tint: #ff3b1f;
  --tint-light: #ff9a3c;
  --tint-dark: #5a0a04;
  --cw: 120px;           /* largeur carte sur la table */
  --ch: 180px;
  --hw: 128px;           /* largeur carte en main */
  --hh: 192px;
  --font-title: 'Lilita One', 'Arial Black', Impact, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, Segoe UI, sans-serif;
  --glass: rgba(20, 8, 30, .55);
  --line: rgba(255, 255, 255, .14);
  --gold: #ffd23f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120408; color: #fff; font-family: var(--font); user-select: none; -webkit-user-select: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input { font-family: inherit; user-select: text; }
.hidden { display: none !important; }
.muted { opacity: .6; font-size: .8em; font-family: var(--font); }
kbd { font-family: var(--font); font-size: 11px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); margin-left: 6px; opacity: .8; }

/* ── fond animé ─────────────────────────────────────────── */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 58%, var(--tint-light) 0%, var(--tint) 32%, var(--tint-dark) 78%, #0c0204 100%);
  transition: background 0s; }
#bg::before { content: ''; position: absolute; inset: 0; background: inherit; }
#bg .rays { position: absolute; left: 50%; top: 58%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 7deg, rgba(255,255,255,0) 7deg 18deg);
  animation: spin 90s linear infinite; mix-blend-mode: overlay; }
#bg .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 45%, rgba(0,0,0,.65) 100%); }
#bg .sparks { position: absolute; inset: 0; background-image:
  radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5), transparent 60%),
  radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,.4), transparent 60%),
  radial-gradient(1.5px 1.5px at 85% 70%, rgba(255,255,255,.5), transparent 60%),
  radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,.4), transparent 60%),
  radial-gradient(2px 2px at 45% 85%, rgba(255,255,255,.3), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate; }
.tint-fade #bg { transition: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateY(-30px) scale(1.05); } }

.screen { position: fixed; inset: 0; z-index: 1; }
.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }

/* ── boutons ────────────────────────────────────────────── */
.btn { border: 0; border-radius: 14px; padding: 11px 18px; font-weight: 900; font-size: 15px; letter-spacing: .3px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 0 rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.25);
  transition: transform .12s, filter .12s, box-shadow .12s; }
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.35); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-big { padding: 15px 26px; font-size: 18px; border-radius: 16px; }
.btn-primary { background: linear-gradient(180deg, #ffe066, #ffb703 55%, #fb8500); color: #3b1700; text-shadow: 0 1px 0 rgba(255,255,255,.5);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 5px 0 #a34a00, 0 10px 24px rgba(251,133,0,.45); }
.btn-primary:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 #a34a00; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.btn-danger { background: linear-gradient(180deg, #ff6b6b, #d62828); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-size: 20px; }

/* ── accueil ────────────────────────────────────────────── */
#home { display: grid; place-items: center; padding: 20px; }
.home-card { width: min(520px, 94vw); padding: 34px 34px 22px; text-align: center; position: relative; }
.logo { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-title); font-size: 92px; line-height: 1;
  transform: rotate(-4deg); filter: drop-shadow(0 8px 0 rgba(0,0,0,.35)); }
.logo .word { background: linear-gradient(180deg, #fff 0%, #ffe680 45%, #ffae00 60%, #ff7b00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px #3a0d00; letter-spacing: 2px; }
.logo .bolt { font-size: 74px; animation: zap 2.4s ease-in-out infinite; display: inline-block; }
@keyframes zap { 0%,100% { transform: rotate(-8deg) scale(1); } 45% { transform: rotate(8deg) scale(1.15); } 50% { transform: rotate(-4deg) scale(.95); filter: brightness(2); } 55% { transform: rotate(4deg) scale(1.1); } }
.tagline { margin: 8px 0 6px; opacity: .85; font-weight: 800; }
.home-cards { height: 120px; position: relative; margin: 6px 0 14px; }
.home-cards .card { position: absolute; left: 50%; top: 10px; width: 70px; height: 105px; margin-left: -35px; transition: transform .4s cubic-bezier(.2,1.4,.4,1); animation: float 3s ease-in-out infinite; }
.home-cards:hover .card { animation-play-state: paused; }
@keyframes float { 50% { margin-top: -6px; } }
.field { display: block; text-align: left; margin: 12px 0; }
.field > span { display: block; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; opacity: .75; margin-bottom: 6px; }
.field input, .join-row input { width: 100%; padding: 13px 15px; border-radius: 14px; border: 2px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: #fff; font-size: 17px; font-weight: 800; outline: none; transition: border-color .2s; }
.field input:focus, .join-row input:focus { border-color: var(--gold); }
.avatar-picker { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.avatar-picker button { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; background: rgba(0,0,0,.25); font-size: 22px; transition: transform .15s; padding: 0; }
.avatar-picker button:hover { transform: scale(1.15); }
.avatar-picker button.sel { border-color: var(--gold); background: rgba(255,210,63,.2); transform: scale(1.1); }
.home-actions { display: grid; gap: 12px; margin-top: 18px; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.join-row input { text-transform: uppercase; text-align: center; letter-spacing: 8px; font-family: var(--font-title); font-size: 24px; }
.conn-state { margin-top: 14px; font-size: 12px; opacity: .6; }
.conn-state.ok { color: #8f8; }

/* ── salon ──────────────────────────────────────────────── */
#lobby { display: grid; place-items: center; padding: 20px; overflow: auto; }
.lobby-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; width: min(1180px, 96vw); }
.lobby-main, .lobby-rules { padding: 26px; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.lobby-head-actions { display: flex; gap: 10px; }
.label { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; opacity: .7; margin-bottom: 8px; }
.room-code { font-family: var(--font-title); font-size: 64px; letter-spacing: 12px; line-height: 1; color: var(--gold); text-shadow: 0 4px 0 #7a3b00, 0 0 30px rgba(255,210,63,.4); }
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.member { position: relative; padding: 16px 10px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid var(--line); text-align: center; animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.member .av { font-size: 44px; line-height: 1.1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.member .nm { font-weight: 900; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .tag { font-size: 11px; font-weight: 900; opacity: .7; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.member.me { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,210,63,.3); }
.member.off { opacity: .45; }
.member .crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 22px; }
.member .kick { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.4); font-size: 13px; opacity: .6; }
.member .kick:hover { opacity: 1; background: #d62828; }
.member.empty { border-style: dashed; opacity: .4; display: grid; place-items: center; font-weight: 800; animation: none; min-height: 118px; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.lobby-bottom { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.wait-host { font-weight: 800; opacity: .75; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.rules-title { font-family: var(--font-title); font-size: 28px; margin-bottom: 12px; }
.rules-list { display: grid; gap: 8px; max-height: calc(100vh - 180px); overflow: auto; padding-right: 4px; }
.rule { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.rule.on { background: rgba(255,210,63,.13); border-color: rgba(255,210,63,.35); }
.rule .t { font-weight: 900; }
.rule .d { font-size: 12.5px; opacity: .7; margin-top: 2px; line-height: 1.35; }
.rule .sect { grid-column: 1/-1; }
.rules-sect { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; opacity: .6; margin: 10px 0 2px; }
.toggle { position: relative; width: 52px; height: 30px; border-radius: 30px; background: rgba(0,0,0,.4); border: 0; padding: 0; transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.toggle.on { background: linear-gradient(180deg, #ffd23f, #fb8500); }
.toggle.on::after { transform: translateX(22px); }
.toggle:disabled, .seg:disabled { cursor: default; }
.segs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.seg { border: 0; border-radius: 9px; padding: 6px 10px; font-weight: 900; font-size: 13px; background: rgba(0,0,0,.35); }
.seg.on { background: linear-gradient(180deg, #ffd23f, #fb8500); color: #3b1700; }
.locked .toggle, .locked .seg { pointer-events: none; }

/* ── table 3D ───────────────────────────────────────────── */
#stage { position: absolute; inset: 0; overflow: hidden; }
#scene { position: absolute; left: 50%; top: 44%; width: 1400px; height: 900px; margin: -450px 0 0 -700px; perspective: 1500px; perspective-origin: 50% 20%; transform: scale(var(--s, 1)); }
#table { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(50deg); }
.felt { position: absolute; left: 50%; top: 50%; width: 1500px; height: 1060px; margin: -530px 0 0 -750px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.10), rgba(0,0,0,.06) 55%, transparent 70%); }
.ring { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 10px solid rgba(255,255,255,.18);
  box-shadow: 0 0 40px rgba(255,255,255,.25), inset 0 0 50px rgba(255,255,255,.18); }
.ring::after { content: ''; position: absolute; inset: 70px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.18); }
.ring-glow { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, transparent 52%, var(--tint-light) 60%, transparent 70%); opacity: .55; filter: blur(8px); }
.arrows { position: absolute; inset: 22px; border-radius: 50%; animation: spin 14s linear infinite; transition: animation-duration .3s; }
.arrows.ccw { animation-direction: reverse; }
.arrows.fast { animation-duration: .9s; }
.arrows i { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%; }
.arrows i::before { content: ''; position: absolute; left: -110px; top: -6px; width: 220px; height: 36px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55)); clip-path: polygon(0 35%, 82% 35%, 82% 0, 100% 50%, 82% 100%, 82% 65%, 0 65%); border-radius: 4px; }
.arrows.ccw i::before { transform: scaleX(-1); }
.color-wave { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; opacity: 0; pointer-events: none; }
.color-wave.go { animation: wave .9s ease-out; }
@keyframes wave { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(7); opacity: 0; } }

.card { width: var(--cw); height: var(--ch); position: absolute; border-radius: 10px; }
.card svg { width: 100%; height: 100%; display: block; border-radius: 10px; }
.card { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

.draw-pile { position: absolute; left: calc(50% - 230px); top: calc(50% - 90px); width: var(--cw); height: var(--ch); cursor: default; transform-style: preserve-3d; }
.draw-pile .card { left: 0; top: 0; transition: transform .2s; }
.draw-pile.can { cursor: pointer; }
.draw-pile.can .card:last-child { animation: glowPulse 1.2s ease-in-out infinite; }
.draw-pile.can:hover .card:last-child { transform: translate3d(0, 0, 14px) !important; }
.draw-pile.shake { animation: shake .5s; }
.draw-pile .count { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); font-weight: 900; font-size: 22px; opacity: .75; white-space: nowrap; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
@keyframes glowPulse { 50% { filter: drop-shadow(0 0 18px #fff) drop-shadow(0 0 6px var(--gold)); } }
.discard { position: absolute; left: calc(50% - 40px); top: calc(50% - 90px); width: var(--cw); height: var(--ch); transform-style: preserve-3d; }
.discard .card { left: 0; top: 0; }
.discard .card:last-child { filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.discard .halo { position: absolute; inset: -40px; border-radius: 30px; background: radial-gradient(ellipse, var(--tint-light), transparent 65%); opacity: .7; filter: blur(6px); transform: translateZ(-1px); }

.opp { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.opp .fan { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.opp .fan .card { left: calc(var(--cw) / -2); top: calc(var(--ch) / -2); transition: transform .35s cubic-bezier(.2,1.2,.4,1); }
.opp.turn .fan .card { filter: drop-shadow(0 0 10px rgba(255,255,255,.7)); }
.opp .more { position: absolute; left: 0; top: 0; transform: translate(-50%, 70px); font-family: var(--font-title); font-size: 28px; }
.anchor { position: absolute; width: 2px; height: 2px; }

/* ── sièges / avatars ───────────────────────────────────── */
#seats { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; transition: left .4s, top .4s; pointer-events: auto; }
.seat .nameplate { background: linear-gradient(180deg, #2bb3ff, #1574d4); color: #fff; font-weight: 900; font-size: 15px; padding: 4px 14px; border-radius: 8px 8px 0 0;
  box-shadow: 0 3px 0 rgba(0,0,0,.25); white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.seat.me .nameplate { background: linear-gradient(180deg, #ffd23f, #fb8500); color: #3b1700; }
.seat .body { display: flex; align-items: center; gap: 6px; }
.seat .portrait { position: relative; width: 74px; height: 74px; border-radius: 14px; background: linear-gradient(160deg, #b86cff, #6a2fd1); display: grid; place-items: center; font-size: 46px;
  border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.45); transition: transform .3s; }
.seat.turn .portrait { transform: scale(1.12); box-shadow: 0 0 0 4px var(--gold), 0 0 30px var(--gold), 0 6px 16px rgba(0,0,0,.45); animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: scale(1.12) translateY(-4px); } }
.seat .count { min-width: 36px; height: 44px; padding: 0 6px; border-radius: 7px; background: #fff; color: #222; font-family: var(--font-title); font-size: 24px; display: grid; place-items: center;
  box-shadow: 3px 3px 0 #ddd, 6px 6px 0 #bbb, 0 6px 14px rgba(0,0,0,.4); position: relative; }
.seat .count.low { background: var(--gold); animation: pulse 0.8s infinite; }
.seat .score { font-size: 12px; font-weight: 900; margin-top: 4px; opacity: .85; background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 8px; }
.seat.off .portrait { filter: grayscale(1) brightness(.6); }
.seat .offline { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
.seat .timer { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; }
.seat .timer circle { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }
.seat .timer.hurry circle { stroke: #ff3b3b; }
.seat .catch { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 5;
  border: 0; border-radius: 12px; padding: 8px 14px; font-family: var(--font-title); font-size: 18px; color: #fff; background: linear-gradient(180deg, #ff5f5f, #c1121f); box-shadow: 0 4px 0 #6a040f, 0 0 24px rgba(255,60,60,.8); animation: wiggle .4s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: translateX(-50%) rotate(-4deg); } 50% { transform: translateX(-50%) rotate(4deg) scale(1.07); } }
.seat .uno-tag { position: absolute; top: -18px; right: -26px; background: var(--gold); color: #3b1700; font-family: var(--font-title); font-size: 14px; padding: 2px 8px; border-radius: 8px; transform: rotate(10deg); box-shadow: 0 3px 0 #a34a00; }

/* ── ma main ────────────────────────────────────────────── */
.hand { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; z-index: 4; }
.hand .card { width: var(--hw); height: var(--hh); left: calc(var(--hw) / -2); top: 0; cursor: pointer; transform-origin: 50% 100%;
  transition: transform .28s cubic-bezier(.2,1.3,.4,1), filter .2s, opacity .2s; will-change: transform; }
.hand .card.dim { filter: brightness(.55) saturate(.6) drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.hand .card.ok { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.hand.myturn .card.ok { filter: drop-shadow(0 0 12px rgba(255,255,255,.85)) drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.hand .card.drawn { filter: drop-shadow(0 0 16px var(--gold)) drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.hand .card.nope { animation: nope .35s; }
.hand .card.dragging { transition: none; z-index: 100 !important; filter: drop-shadow(0 30px 30px rgba(0,0,0,.5)); }
.hand .card.new { animation: cardIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes cardIn { from { opacity: 0; } }
@keyframes nope { 20% { margin-left: -10px; } 40% { margin-left: 10px; } 60% { margin-left: -6px; } 80% { margin-left: 6px; } }

/* ── HUD ────────────────────────────────────────────────── */
.status { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 5; font-family: var(--font-title); font-size: 26px; padding: 8px 26px; border-radius: 40px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px); border: 1px solid var(--line); white-space: nowrap; transition: all .3s; pointer-events: none; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.status.mine { background: linear-gradient(180deg, #ffe066, #fb8500); color: #3b1700; text-shadow: 0 1px 0 rgba(255,255,255,.5); font-size: 30px; box-shadow: 0 0 40px rgba(255,190,0,.6); animation: statusPop .5s cubic-bezier(.2,1.6,.4,1); }
.status.danger { background: linear-gradient(180deg, #ff6b6b, #c1121f); color: #fff; }
@keyframes statusPop { from { transform: translateX(-50%) scale(.6); } }
.topbar { position: absolute; left: 16px; top: 16px; z-index: 6; display: flex; gap: 10px; align-items: center; }
.code-pill { padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); font-weight: 800; font-size: 14px; }
.code-pill b { color: var(--gold); letter-spacing: 2px; }
.menu { position: absolute; left: 16px; top: 70px; z-index: 30; padding: 8px; display: grid; min-width: 250px; }
.menu-item { text-align: left; border: 0; background: transparent; padding: 11px 14px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.menu-item:hover { background: rgba(255,255,255,.1); }
.menu-item.danger { color: #ff8a8a; }
.ticker { position: absolute; left: 16px; top: 80px; z-index: 2; display: flex; flex-direction: column; gap: 6px; pointer-events: none; max-width: 330px; }
.ticker div { padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.32); font-weight: 800; font-size: 14px; animation: tickIn .35s ease-out; transition: opacity 1s; backdrop-filter: blur(6px); }
.ticker div.old { opacity: .35; }
.ticker .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px; vertical-align: middle; border: 1.5px solid #fff; }
@keyframes tickIn { from { transform: translateX(-30px); opacity: 0; } }

.actions { position: absolute; right: 28px; bottom: 28px; z-index: 6; display: flex; align-items: flex-end; gap: 12px; }
.act { font-size: 17px; padding: 14px 20px; }
.act-warn { background: linear-gradient(180deg, #ffd166, #f77f00); color: #3b1700; }
.act-danger { background: linear-gradient(180deg, #ff6b6b, #c1121f); }
.uno-btn { width: 128px; height: 128px; border-radius: 50%; border: 0; position: relative; padding: 0;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #e8352b 45%, #8a0f08 100%);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.25), inset 0 6px 0 rgba(255,255,255,.35), 0 8px 0 #4a0603, 0 14px 30px rgba(0,0,0,.5);
  transition: transform .1s, filter .2s; filter: grayscale(.75) brightness(.8); }
.uno-btn span { font-family: var(--font-title); font-size: 30px; color: #fff; display: inline-block; transform: rotate(-12deg); -webkit-text-stroke: 1.5px #4a0603; text-shadow: 0 3px 0 #4a0603; }
.uno-btn::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.4); }
.uno-btn.ready { filter: none; animation: unoReady .7s ease-in-out infinite; }
.uno-btn:active { transform: translateY(6px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 6px 0 rgba(255,255,255,.35), 0 2px 0 #4a0603; }
@keyframes unoReady { 50% { transform: scale(1.08) rotate(3deg); box-shadow: inset 0 -8px 0 rgba(0,0,0,.25), inset 0 6px 0 rgba(255,255,255,.35), 0 8px 0 #4a0603, 0 0 50px #ff3b2f; } }

/* ── effets ─────────────────────────────────────────────── */
.fx { position: fixed; inset: 0; z-index: 20; pointer-events: none; perspective: 1400px; }
.fly { position: fixed; left: 0; top: 0; width: var(--cw); height: var(--ch); transform-style: preserve-3d; will-change: transform; }
.card.flip { position: absolute; inset: 0; width: 100%; height: 100%; transform-style: preserve-3d; filter: none; }
.card.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.card.flip .face svg { width: 100%; height: 100%; display: block; }
.card.flip .rear { transform: rotateY(180deg); }
.pop { position: fixed; transform: translate(-50%, -50%); font-family: var(--font-title); white-space: nowrap; text-align: center; color: #fff; z-index: 25;
  -webkit-text-stroke: 2px #2a0a00; text-shadow: 0 5px 0 rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.4); animation: popUp 1.4s cubic-bezier(.2,1.5,.4,1) forwards; }
.pop.big { font-size: 96px; }
.pop.mid { font-size: 52px; }
.pop.small { font-size: 30px; }
@keyframes popUp { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  80% { opacity: 1; transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(.9); } }
.bubble { position: fixed; transform: translate(-50%, -100%); padding: 10px 18px; border-radius: 18px; background: #fff; color: #c1121f; font-family: var(--font-title); font-size: 34px; z-index: 25;
  box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 0 40px rgba(255,255,255,.6); animation: bubble 1.6s cubic-bezier(.2,1.6,.4,1) forwards; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -12px; margin-left: -10px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes bubble { 0% { transform: translate(-50%, -100%) scale(0); } 12% { transform: translate(-50%, -100%) scale(1.2); } 22% { transform: translate(-50%, -100%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -130%) scale(.9); } }
.float-emoji { position: fixed; font-size: 46px; z-index: 26; transform: translate(-50%, -50%); animation: floatUp 2.2s ease-out forwards; }
@keyframes floatUp { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 15% { transform: translate(-50%, -80%) scale(1.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(1); opacity: 0; } }
.flash { position: fixed; inset: 0; z-index: 19; pointer-events: none; opacity: 0; }
.flash.go { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .65; } 100% { opacity: 0; } }
.shake-screen #stage, .shake-screen #hand, .shake-screen #seats { animation: shake .55s; }
.shake-big #stage, .shake-big #hand, .shake-big #seats { animation: shakeBig .75s; }
@keyframes shakeBig { 10%, 90% { transform: translate(-4px, 2px) rotate(-.3deg); } 20%, 80% { transform: translate(10px, -6px) rotate(.4deg); } 30%, 50%, 70% { transform: translate(-18px, 8px) rotate(-.6deg); } 40%, 60% { transform: translate(18px, -8px) rotate(.6deg); } }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -3px); } 30%, 50%, 70% { transform: translate(-9px, 4px); } 40%, 60% { transform: translate(9px, -4px); } }
.confetti { position: fixed; top: -20px; width: 12px; height: 18px; z-index: 40; pointer-events: none; will-change: transform; }
.banner { position: fixed; left: 0; right: 0; top: 40%; z-index: 24; text-align: center; font-family: var(--font-title); font-size: 72px; pointer-events: none;
  padding: 14px 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.55) 20%, rgba(0,0,0,.55) 80%, transparent); -webkit-text-stroke: 2px #2a0a00; text-shadow: 0 5px 0 rgba(0,0,0,.4);
  animation: banner 1.5s cubic-bezier(.2,1,.3,1) forwards; }
@keyframes banner { 0% { transform: translateX(-100%) skewX(-20deg); } 20% { transform: translateX(0) skewX(-6deg); } 80% { transform: translateX(0) skewX(-6deg); opacity: 1; } 100% { transform: translateX(100%) skewX(-20deg); opacity: 0; } }

/* ── overlays ───────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.picker-title { font-family: var(--font-title); font-size: 40px; text-align: center; margin-bottom: 18px; text-shadow: 0 4px 0 rgba(0,0,0,.4); }
.wheel-wrap { perspective: 900px; }
.wheel { position: relative; width: 380px; height: 380px; transform: rotateX(38deg); transform-style: preserve-3d; animation: wheelIn .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes wheelIn { from { transform: rotateX(38deg) rotateZ(-180deg) scale(.2); opacity: 0; } }
.wheel button { position: absolute; width: 50%; height: 50%; border: 5px solid rgba(255,255,255,.9); transition: transform .2s cubic-bezier(.2,1.6,.4,1), filter .2s;
  box-shadow: inset 0 0 40px rgba(255,255,255,.25), 0 14px 0 rgba(0,0,0,.3); padding: 0; }
.wheel button:hover, .wheel button:focus-visible { transform: translateZ(40px) scale(1.06); filter: brightness(1.2); outline: none; }
.wheel .q0 { left: 0; top: 0; border-radius: 100% 0 0 0; }
.wheel .q1 { right: 0; top: 0; border-radius: 0 100% 0 0; }
.wheel .q2 { right: 0; bottom: 0; border-radius: 0 0 100% 0; }
.wheel .q3 { left: 0; bottom: 0; border-radius: 0 0 0 100%; }
.wheel .lbl { font-family: var(--font-title); font-size: 22px; color: #fff; -webkit-text-stroke: 1px rgba(0,0,0,.5); text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.wheel kbd { display: block; width: fit-content; margin: 4px auto 0; }
.picker-hint { text-align: center; opacity: .7; margin-top: 26px; font-weight: 800; }
.target-list { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.target-list button { border: 0; border-radius: 20px; padding: 18px 22px; min-width: 140px; background: var(--glass); border: 2px solid var(--line); transition: transform .2s, border-color .2s; }
.target-list button:hover { transform: translateY(-6px) scale(1.05); border-color: var(--gold); }
.target-list .av { font-size: 56px; }
.target-list .nm { font-weight: 900; font-size: 17px; }
.target-list .ct { opacity: .75; font-weight: 800; }
.dialog { padding: 30px; width: min(760px, 94vw); max-height: 90vh; overflow: auto; animation: popIn .35s cubic-bezier(.2,1.4,.4,1); }
.dialog h2 { font-family: var(--font-title); font-weight: normal; font-size: 44px; margin: 0 0 6px; text-align: center; }
.dialog .sub { text-align: center; opacity: .8; font-weight: 800; margin-bottom: 18px; }
.score-table { display: grid; gap: 8px; margin: 10px 0 20px; }
.score-row { display: grid; grid-template-columns: 34px 46px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.07); }
.score-row.win { background: linear-gradient(90deg, rgba(255,210,63,.35), rgba(255,210,63,.08)); border: 1px solid rgba(255,210,63,.5); }
.score-row .rk { font-family: var(--font-title); font-size: 24px; opacity: .8; text-align: center; }
.score-row .av { font-size: 34px; }
.score-row .nm { font-weight: 900; font-size: 17px; }
.score-row .mini { display: flex; margin-top: 4px; flex-wrap: wrap; }
.score-row .mini .card { position: relative; width: 26px; height: 39px; margin-right: -9px; filter: none; }
.score-row .pts { font-weight: 900; opacity: .7; }
.score-row .tot { font-family: var(--font-title); font-size: 26px; color: var(--gold); min-width: 60px; text-align: right; }
.dialog-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-weight: 700; }
.kv b { color: var(--gold); }

/* ── chat ───────────────────────────────────────────────── */
.chat { position: fixed; right: 16px; top: 16px; z-index: 8; width: 320px; border-radius: 18px; transition: transform .3s cubic-bezier(.3,1.2,.5,1); display: flex; flex-direction: column; }
.chat.collapsed { transform: translateX(calc(100% - 0px)); background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.chat.collapsed .chat-body { visibility: hidden; }
.chat-toggle { position: absolute; left: -58px; top: 0; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-size: 20px; }
.badge { position: absolute; top: -6px; right: -6px; background: #e8352b; border-radius: 10px; font-size: 11px; font-weight: 900; padding: 2px 6px; }
.chat-body { display: flex; flex-direction: column; height: min(440px, 60vh); padding: 12px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; font-size: 14px; user-select: text; }
.chat-log .m b { color: var(--gold); }
.chat-log .sys { opacity: .6; font-style: italic; font-size: 13px; }
.react-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.react-bar button { border: 0; background: rgba(255,255,255,.08); border-radius: 10px; font-size: 20px; padding: 4px 6px; transition: transform .15s; }
.react-bar button:hover { transform: scale(1.25); background: rgba(255,255,255,.18); }
.chat-form input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: #fff; font-weight: 700; outline: none; }
.chat-form input:focus { border-color: var(--gold); }
#lobby ~ .chat:not(.collapsed) { }

.toasts { position: fixed; left: 50%; bottom: 250px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 14px; background: rgba(20,0,0,.85); border: 1px solid rgba(255,120,120,.5); font-weight: 800; animation: toast 2.8s forwards; }
.toast.info { border-color: rgba(255,255,255,.3); background: rgba(0,0,0,.75); }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* animations réduites */
.lowfx #bg .rays, .lowfx #bg .sparks { animation: none; }
.lowfx .arrows { animation-duration: 40s; }

@media (max-width: 900px) {
  .lobby-wrap { grid-template-columns: 1fr; }
  .room-code { font-size: 48px; }
  .logo { font-size: 70px; }
}

/* fin de manche : calque dédié, jamais écrasé par un autre menu */
.round-layer { z-index: 45; }
.round-over { position: relative; }
.ro-min { position: absolute; top: 14px; right: 14px; border: 0; background: rgba(255,255,255,.1); border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: 13px; }
.ro-min:hover { background: rgba(255,255,255,.2); }
.score-pill { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 44; border: 0; border-radius: 30px; padding: 12px 24px;
  font-family: var(--font-title); font-size: 22px; color: #3b1700; background: linear-gradient(180deg, #ffe066, #fb8500); box-shadow: 0 5px 0 #a34a00, 0 0 30px rgba(255,190,0,.6); animation: pulse 1.6s ease-in-out infinite; }

/* ═══════ v2 : confort, animations, social ═══════ */
#cam { position: absolute; inset: 0; transition: transform 1.1s cubic-bezier(.3,.8,.3,1); }
#seats.follow .seat { transition: none; }
.ph { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.seat .portrait { overflow: visible; }
.seat .portrait .emo { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 11px; overflow: hidden; cursor: pointer; }
.seat.me .portrait .emo { cursor: default; }
.seat .portrait:hover .emo { filter: brightness(1.1); }
.seat.next .portrait { box-shadow: 0 0 0 3px #4dd2ff, 0 0 18px rgba(77,210,255,.7), 0 6px 16px rgba(0,0,0,.45); }
.seat .next-tag { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); background: #1a9fd8; color: #fff; font-weight: 900; font-size: 12px; padding: 2px 10px; border-radius: 10px; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.seat.me .next-tag { bottom: auto; top: -46px; }
.seat .take { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); white-space: nowrap; border: 0; border-radius: 12px; padding: 7px 12px; font-weight: 900; font-size: 14px; background: linear-gradient(180deg, #7cf29c, #1f9d55); color: #05301a; box-shadow: 0 3px 0 #0b5a2e; z-index: 6; }
.seat.hit .portrait { animation: hit .45s; }
@keyframes hit { 20% { transform: scale(.85) rotate(-8deg); } 50% { transform: scale(1.1) rotate(6deg); } }
.stain { position: absolute; inset: -6px; display: grid; place-items: center; font-size: 54px; pointer-events: none; animation: stain 2.6s forwards; filter: blur(.3px); }
@keyframes stain { 0% { transform: scale(1.6); opacity: .95; } 15% { transform: scale(1.1); } 80% { opacity: .85; } 100% { opacity: 0; transform: scale(1.05) translateY(14px); } }
.throw { position: fixed; left: 0; top: 0; font-size: 44px; z-index: 27; will-change: transform; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.throw-menu { position: fixed; z-index: 35; padding: 10px 12px; border-radius: 16px; }
.tm-h { font-weight: 900; font-size: 13px; opacity: .8; margin-bottom: 6px; text-align: center; }
.tm-row { display: flex; gap: 4px; }
.tm-row button { border: 0; background: rgba(255,255,255,.08); border-radius: 10px; font-size: 26px; width: 44px; height: 44px; transition: transform .15s; padding: 0; }
.tm-row button:hover { transform: scale(1.25) rotate(-8deg); background: rgba(255,255,255,.2); }
.particle { position: fixed; z-index: 22; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.bolt { position: fixed; left: 0; top: 0; z-index: 23; pointer-events: none; filter: drop-shadow(0 0 10px #fff6a8) drop-shadow(0 0 30px #ffd23f); animation: boltFade .38s forwards; }
@keyframes boltFade { 0%, 40% { opacity: 1; } 50% { opacity: .2; } 60% { opacity: 1; } 100% { opacity: 0; } }
.swirl { position: fixed; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; z-index: 21; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.7), transparent 30%, rgba(255,255,255,.5), transparent 60%, rgba(255,255,255,.7), transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%, #000 60%, transparent 62%); mask: radial-gradient(circle, transparent 40%, #000 42%, #000 60%, transparent 62%);
  animation: swirl 1s cubic-bezier(.2,.7,.3,1) forwards; }
.swirl.ccw { animation-name: swirlCcw; }
@keyframes swirl { from { transform: scale(.3) rotate(0); opacity: 1; } to { transform: scale(2.4) rotate(540deg); opacity: 0; } }
@keyframes swirlCcw { from { transform: scale(.3) rotate(0); opacity: 1; } to { transform: scale(2.4) rotate(-540deg); opacity: 0; } }
.slowmo #bg .vignette { background: radial-gradient(ellipse at 50% 55%, transparent 25%, rgba(0,0,0,.85) 100%); transition: background .4s; }
.slowmo #stage { filter: saturate(1.4) contrast(1.08); transition: filter .3s; }

/* adversaires vivants */
.opp.turn .fan .card { animation: oppAlive 1.6s ease-in-out infinite; }
.opp.turn .fan .card.think { animation: oppThink 1.3s ease-in-out infinite; }
@keyframes oppAlive { 50% { translate: 0 -5px; } }
@keyframes oppThink { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 -34px; } }

/* compteur de cumul */
.stack { position: fixed; z-index: 15; transform: translate(-50%, -100%) scale(var(--k, 1)); font-family: var(--font-title); font-size: 72px; color: #fff; pointer-events: none;
  -webkit-text-stroke: 3px #5a0000; text-shadow: 0 6px 0 #5a0000, 0 0 40px #ff2a2a, 0 0 80px #ff2a2a; animation: stackPulse .9s ease-in-out infinite; }
.stack.bump { animation: stackBump .5s cubic-bezier(.2,1.8,.4,1), stackPulse .9s ease-in-out .5s infinite; }
@keyframes stackPulse { 50% { filter: brightness(1.3); transform: translate(-50%, -100%) scale(calc(var(--k, 1) * 1.08)); } }
@keyframes stackBump { 0% { transform: translate(-50%, -100%) scale(calc(var(--k, 1) * 2.2)) rotate(-10deg); } 100% { transform: translate(-50%, -100%) scale(var(--k, 1)); } }

/* aide au survol */
.tip { position: fixed; z-index: 30; transform: translate(-50%, -100%); max-width: 280px; padding: 10px 14px; border-radius: 14px; background: rgba(15,5,25,.92); border: 1px solid rgba(255,255,255,.2);
  font-size: 13.5px; font-weight: 700; line-height: 1.35; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); text-align: center; }
.tip b { font-family: var(--font-title); font-weight: normal; font-size: 18px; display: block; margin-bottom: 2px; color: var(--gold); }
.tip .st { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.15); font-weight: 900; }

/* rappel BLITZ */
.uno-btn.alarm { filter: none !important; animation: unoAlarm .3s ease-in-out 8 !important; }
@keyframes unoAlarm { 0%, 100% { transform: scale(1.15) rotate(-6deg); box-shadow: 0 0 0 6px #fff, 0 0 60px #ff3b2f, 0 8px 0 #4a0603; } 50% { transform: scale(1.3) rotate(6deg); box-shadow: 0 0 0 10px #ffd23f, 0 0 90px #ff3b2f, 0 8px 0 #4a0603; } }

/* historique, ticker cliquable */
.ticker { pointer-events: auto; cursor: pointer; }
.ticker:hover div { opacity: 1 !important; background: rgba(0,0,0,.5); }
.hist { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; font-weight: 700; }
.hist div { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.hist .sep { background: none; text-align: center; font-weight: 900; opacity: .6; margin-top: 6px; }
.hist .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px; vertical-align: middle; border: 1.5px solid #fff; }
.menu-sep { height: 1px; background: rgba(255,255,255,.12); margin: 4px 8px; }
.menu { max-height: calc(100vh - 90px); overflow: auto; }

/* titres de fin */
.titles { margin: 0 0 18px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); display: grid; gap: 6px; }
.titles-h { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 1.3px; opacity: .7; margin-bottom: 2px; }
.title-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: center; font-weight: 800; font-size: 14.5px; }
.title-row .tw { display: flex; align-items: center; gap: 6px; }
.title-row .tw .ph, .score-row .av .ph { width: 30px; height: 30px; border-radius: 8px; }
.title-row .tv { opacity: .7; font-size: 13px; text-align: right; }

/* présets */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.preset { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; text-align: left; transition: transform .15s, background .2s; }
.preset:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.preset b { display: block; font-size: 15px; }
.preset span { font-size: 12px; opacity: .7; }
.preset.on { border-color: var(--gold); background: rgba(255,210,63,.15); }
.preset:disabled { cursor: default; }

/* avatars & cadres */
.avatar-picker .cam { font-size: 20px; overflow: hidden; }
.avatar-picker .cam img { width: 100%; height: 100%; object-fit: cover; }
.frame-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.frame-picker .fr { width: 40px; height: 40px; border-radius: 12px; border: 3px solid transparent; padding: 0; transition: transform .15s; }
.frame-picker .fr:hover { transform: scale(1.12); }
.frame-picker .fr.sel { border-color: #fff; transform: scale(1.12); box-shadow: 0 0 14px rgba(255,255,255,.6); }
.member .av .ph { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto; }
.member.framed { border-color: var(--frame); box-shadow: inset 0 0 30px color-mix(in srgb, var(--frame) 35%, transparent); }
.target-list .av .ph { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; }

/* tuto */
.tuto { text-align: center; max-width: 620px; }
.tuto-step { font-weight: 900; opacity: .6; font-size: 13px; letter-spacing: 1px; }
.tuto-cards { display: flex; justify-content: center; gap: 10px; margin: 14px 0; height: 120px; }
.tuto-cards .card { position: relative; width: 76px; height: 114px; animation: popIn .45s cubic-bezier(.2,1.6,.4,1) backwards; }
.tuto-p { font-size: 17px; line-height: 1.55; font-weight: 700; margin: 10px 0 22px; }
.tuto-p b { color: var(--gold); }

/* pause */
.pause-layer { position: fixed; inset: 0; z-index: 46; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); animation: fadeIn .3s; }
.pz-title { font-family: var(--font-title); font-size: 110px; -webkit-text-stroke: 3px #2a0a00; text-shadow: 0 8px 0 rgba(0,0,0,.4); animation: pulse 2s ease-in-out infinite; }
.pz-sub { font-weight: 800; opacity: .8; font-size: 18px; }

.act-catch { background: linear-gradient(180deg, #ff5f5f, #c1121f); color: #fff; font-size: 19px; animation: catchPulse .55s ease-in-out infinite; box-shadow: 0 5px 0 #6a040f, 0 0 34px rgba(255,60,60,.85); }
@keyframes catchPulse { 50% { transform: scale(1.07) rotate(-2deg); } }

/* survol de la main : seul le visuel bouge, la zone de survol reste fixe (pas de tremblement) */
.hand .card > svg { transition: transform .22s cubic-bezier(.2,1.3,.4,1); transform-origin: 50% 100%; }
.hand .card.hov > svg { transform: translateY(calc(var(--hh) * -0.24)) scale(1.1); }
.hand .card.dragging > svg { transform: none; }

.ver { margin-top: 4px; font-size: 11px; opacity: .45; }
.menu-ver { font-size: 11px; opacity: .45; text-align: center; padding: 6px; }
