:root {
  --bg: #0a0e17;
  --bg2: #111827;
  --panel: #141b2b;
  --panel2: #1b2438;
  --line: #2a3550;
  --text: #e6ebf5;
  --muted: #8b97b0;
  --accent: #f0b429;
  --accent2: #8b5cf6;
  --good: #34d399;
  --bad: #f87171;
  --me: #38bdf8;
  --opp: #fb7185;
  --cw: 84px;
  --ch: calc(var(--cw) * 1.4);
  --fury: #e0443e; --calm: #3fae5a; --mind: #3d8ee0; --body: #e8892f; --chaos: #9b59d0; --order: #e5c13a; --any: #cbd5e1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: radial-gradient(1200px 600px at 50% -10%, #1a2340 0%, var(--bg) 60%); color: var(--text); font: 14px/1.4 Inter, system-ui, sans-serif; }
button { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: linear-gradient(180deg, #7c4dff, #5b34d6); border-color: #8b5cf6; font-weight: 700; }
button.warn { background: #3a2412; border-color: #b45309; }
button.big { width: 100%; padding: 12px; font-size: 16px; margin-top: 12px; }
input, select, textarea { font: inherit; color: var(--text); background: #0d1322; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
textarea { width: 100%; min-height: 200px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.error { color: var(--bad); margin-top: 10px; white-space: pre-wrap; }
.row { display: flex; gap: 8px; margin-top: 8px; } .row input { flex: 1; }
[hidden] { display: none !important; }

/* Lobby */
.screen { min-height: 100%; }
#lobby { padding: 28px 32px; max-width: 1400px; margin: 0 auto; }
.lobby-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.logo { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, #f0b429, #b7791f); display: grid; place-items: center; font: 700 36px Rajdhani, sans-serif; color: #1a1205; box-shadow: 0 0 24px #f0b42955; }
.eyebrow { color: var(--me); letter-spacing: .2em; font-size: 11px; font-weight: 700; }
h1 { margin: 2px 0; font: 700 32px Rajdhani, sans-serif; }
h2 { margin: 0 0 12px; font: 700 18px Rajdhani, sans-serif; letter-spacing: .04em; }
.lobby-grid { display: grid; grid-template-columns: 340px 1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.seg { display: flex; gap: 4px; background: #0d1322; padding: 4px; border-radius: 10px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: transparent; font-size: 12px; padding: 8px 4px; }
.seg button.on { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--accent); }
.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin: 8px 0; }
.deck-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.deck-item { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; }
.deck-item.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.deck-item img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; background: #000; }
.deck-item .dn { font-weight: 700; } .deck-item .dl { font-size: 11px; color: var(--muted); }
details summary { cursor: pointer; color: var(--muted); margin: 6px 0; }
.deck-check { font-size: 12px; margin-top: 6px; white-space: pre-wrap; }
.deck-check.ok { color: var(--good); } .deck-check.ko { color: var(--bad); }

/* Partie */
#game { display: flex; flex-direction: column; height: 100vh; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #0b1120cc; border-bottom: 1px solid var(--line); }
.turn-info { flex: 1; font-weight: 600; }
.turn-info .phase { color: var(--accent); }
.turn-info .who-me { color: var(--me); } .turn-info .who-opp { color: var(--opp); }
.scores { display: flex; gap: 10px; }
.score { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-weight: 700; }
.score .pips { display: flex; gap: 2px; } .score .pip { width: 8px; height: 14px; border-radius: 2px; background: #2a3550; } .score .pip.on { background: var(--accent); }
.score.me { border-color: var(--me); } .score.opp { border-color: var(--opp); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.speed { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.table { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
.board { overflow: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.side { border-left: 1px solid var(--line); background: #0d1322; display: flex; flex-direction: column; min-height: 0; }

.prow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; background: #0f1626aa; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.prow.me { border-color: #1e4b66; } .prow.opp { border-color: #5a2433; }
.prow.active { box-shadow: 0 0 0 1px var(--accent), 0 0 18px #f0b42922; }
.ident { display: flex; gap: 6px; }
.zone { position: relative; min-height: calc(var(--ch) + 6px); border-radius: 10px; border: 1px dashed #2a3550; padding: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.zone.drop { border-color: var(--good); background: #34d39911; cursor: pointer; }
.zone .zlabel { position: absolute; top: -9px; left: 8px; font-size: 10px; color: var(--muted); background: var(--bg2); padding: 0 4px; border-radius: 4px; letter-spacing: .08em; text-transform: uppercase; }
.piles { display: flex; gap: 6px; }
.pile { width: calc(var(--cw) * .8); height: calc(var(--ch) * .8); border-radius: 8px; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, #1b2438, #1b2438 6px, #172036 6px, #172036 12px); display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--muted); cursor: pointer; position: relative; overflow: hidden; }
.pile b { display: block; font-size: 18px; color: var(--text); }
.pile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.pile span { position: relative; }
.runes { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.rune { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; cursor: pointer; border: 2px solid #0008; box-shadow: inset 0 0 0 2px #fff3; transition: transform .15s, opacity .15s; }
.rune.ex { opacity: .35; transform: rotate(90deg) scale(.9); }
.rune:hover { outline: 2px solid var(--accent); }
.pool { display: flex; gap: 6px; align-items: center; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #0d1322; border: 1px solid var(--line); }
.dom { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; color: #111; font-weight: 800; }
.d-fury { background: var(--fury); } .d-calm { background: var(--calm); } .d-mind { background: var(--mind); } .d-body { background: var(--body); } .d-chaos { background: var(--chaos); } .d-order { background: var(--order); } .d-any { background: linear-gradient(135deg, var(--fury), var(--calm), var(--mind), var(--chaos)); }
.energy { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; color: #111; font-size: 11px; font-weight: 800; padding: 0 4px; }
.subrow { display: flex; gap: 10px; align-items: center; margin-top: 6px; }

/* Champs de bataille */
.bfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.bf { border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #2a0f1a33, #0b1120 45%, #0b1120 55%, #0f2a3a33); padding: 8px; display: grid; grid-template-rows: 1fr auto 1fr; gap: 6px; position: relative; }
.bf.ctl-me { box-shadow: inset 0 0 0 2px var(--me); } .bf.ctl-opp { box-shadow: inset 0 0 0 2px var(--opp); }
.bf.showdown { box-shadow: 0 0 0 2px var(--accent), 0 0 30px #f0b42944; }
.bf .mid { display: flex; align-items: center; gap: 10px; }
.bf .bfcard { width: calc(var(--cw) * 1.55); height: calc(var(--cw) * 1.1); border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; background: #111; }
.bf .bfcard img { width: 100%; height: 100%; object-fit: cover; }
.bf .bfinfo { flex: 1; font-size: 12px; }
.bf .bfinfo .nm { font-weight: 700; font-size: 14px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 4px; }
.b-me { background: #0c4a6e; color: #bae6fd; } .b-opp { background: #6b1d2e; color: #fecdd3; } .b-neutral { background: #334155; } .b-warn { background: #78350f; color: #fde68a; }
.facedowns { display: flex; gap: 4px; }
.might-sum { font-weight: 800; font-size: 13px; }

/* Cartes */
/* --ch recalculé sur chaque carte : une carte agrandie localement (--cw) garde ses proportions. */
.card, .stack { --ch: calc(var(--cw) * 1.4); }
.card { width: var(--cw); height: var(--ch); border-radius: 8px; position: relative; background: #151c2c; border: 1px solid #33405e; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; flex-shrink: 0; user-select: none; }
.card img.art { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; }
.card .fb { position: absolute; inset: 0; padding: 4px; font-size: 9px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; border-radius: 7px; background: linear-gradient(180deg, #23304d, #121a2c); }
.card .fb .n { font-weight: 700; font-size: 10px; line-height: 1.1; }
.card .fb .t { color: var(--muted); font-size: 8px; line-height: 1.15; overflow: hidden; }
.card.has-img .fb { display: none; }
/* Carte traduite : illustration recadrée + nom et texte français (quand l'image n'existe qu'en anglais). */
.card.tr img.art { object-position: 50% 16%; }
.card.tr .trf { position: absolute; left: 0; right: 0; bottom: 0; top: 35%; border-radius: 0 0 7px 7px; padding: 3px 4px; background: linear-gradient(180deg, #0b1120cc, #0b1120f5 30%); display: flex; flex-direction: column; gap: 1px; overflow: hidden; pointer-events: none; }
.card.tr .tn { font-weight: 800; font-size: calc(var(--cw) * .105); line-height: 1.1; color: #f8fafc; }
.card.tr .tt { font-size: calc(var(--cw) * .078); line-height: 1.15; color: #cbd5e1; overflow: hidden; white-space: pre-line; }
.card.tr .tcost { position: absolute; right: 3px; top: -14px; display: flex; gap: 1px; transform: scale(.8); transform-origin: right; }
.card.mini.tr .tt, .opp-hand .card.tr .trf { display: none; }
.preview img.pv-art { height: 140px; object-fit: cover; object-position: 50% 6%; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px #000a; z-index: 3; }
.card.ex { transform: rotate(12deg) scale(.94); opacity: .78; }
.card.ex:hover { transform: rotate(12deg) scale(.98); }
.card.sel { box-shadow: 0 0 0 3px var(--accent), 0 0 18px #f0b42988; }
.card.cand { box-shadow: 0 0 0 3px var(--good), 0 0 16px #34d39999; animation: pulse 1.2s infinite; }
.card.chosen { box-shadow: 0 0 0 3px #f472b6, 0 0 16px #f472b6aa; }
.card.playable { box-shadow: 0 0 0 2px #34d39988; }
.card.opp-own { border-color: #7f1d1d; } .card.me-own { border-color: #0e7490; }
.card.back { background: repeating-linear-gradient(45deg, #2b1d4d, #2b1d4d 6px, #22173e 6px, #22173e 12px); border-color: #4c3a80; }
.card.back::after { content: 'R'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px Rajdhani; color: #8b5cf6aa; }
.card.mini { --cw: 60px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px var(--good), 0 0 4px #34d39955; } }
.card .mt { position: absolute; right: -6px; bottom: -6px; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; background: #0b1120; border: 2px solid #94a3b8; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.card .mt.up { border-color: var(--good); color: var(--good); } .card .mt.down { border-color: var(--bad); color: var(--bad); }
.card .dmg { position: absolute; left: -6px; bottom: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: #b91c1c; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 2px solid #0b1120; }
.card .dmg.lethal { background: #000; color: var(--bad); }
.card .tags { position: absolute; left: 2px; top: 2px; right: 2px; display: flex; flex-wrap: wrap; gap: 2px; }
.card .tag { font-size: 8px; font-weight: 800; padding: 1px 3px; border-radius: 3px; background: #000c; color: #fde68a; text-transform: uppercase; }
.card .tag.stun { background: #1d4ed8; color: #fff; } .card .tag.buff { background: #15803d; color: #fff; } .card .tag.att { background: #b91c1c; color: #fff; } .card .tag.def { background: #1e40af; color: #fff; }
.card .cost { position: absolute; left: -5px; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #111; font-weight: 800; font-size: 12px; display: grid; place-items: center; border: 2px solid #0b1120; }
.card .manual { position: absolute; right: 2px; top: 2px; font-size: 10px; }

.hand { position: sticky; bottom: -10px; z-index: 5; display: flex; gap: 6px; padding: 8px; border-radius: 12px; background: #0f1626f2; border: 1px solid var(--line); min-height: calc(var(--ch) + 20px); align-items: flex-end; flex-wrap: wrap; box-shadow: 0 -8px 24px #000a; }
.hand .card { --cw: 92px; }
.hand-label { font-size: 11px; color: var(--muted); }
.opp-hand { display: flex; gap: 3px; }
.opp-hand .card { --cw: 34px; }

/* Barre latérale */
.side section { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.side h3 { margin: 0 0 8px; font: 700 13px Rajdhani, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.side .actions button { flex: 1 1 auto; }
.chain-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: var(--panel2); border-left: 3px solid var(--line); margin-bottom: 6px; font-size: 12px; cursor: default; }
.chain-item.top { background: #1d2440; box-shadow: 0 0 0 1px var(--accent), 0 0 16px #f0b42933; animation: chainIn .25s ease-out; }
@keyframes chainIn { from { transform: translateX(14px); opacity: 0; } }
.chain-item .chain-card { width: 78px; height: 109px; flex-shrink: 0; cursor: zoom-in; }
.chain-item .chain-card.big { width: 132px; height: 185px; }
.chain-item .chain-card.tr .tn { font-size: 11px; }
.chain-item .chain-card.tr .tt { font-size: 8px; }
.chain-item .chain-card.big.tr .tn { font-size: 13px; }
.chain-item .chain-card.big.tr .tt { font-size: 9.5px; }
.chain-item .chain-card:hover { transform: none; }
.chain-info { flex: 1; min-width: 0; }
.chain-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chain-item.top .chain-kind { color: var(--accent); }
.chain-title { font-weight: 700; font-size: 13px; margin: 2px 0; }
.chain-ab { color: #cbd5e1; font-size: 11px; line-height: 1.3; }
.chain-tg { margin-top: 4px; font-size: 11px; color: #fda4af; }
.chain-item.me { border-left-color: var(--me); } .chain-item.opp { border-left-color: var(--opp); }
.chain-item.cand { box-shadow: 0 0 0 2px var(--good); cursor: pointer; }
.prompt { background: #1f1a0d; border: 1px solid #a16207; border-radius: 10px; padding: 10px; }
.prompt .title { font-weight: 700; margin-bottom: 6px; }
.prompt .text { font-style: italic; margin-bottom: 8px; color: #fde68a; }
.prompt .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.logbox { flex: 1; overflow: auto; font-size: 12px; padding: 8px 12px; }
.logbox div { padding: 2px 0; border-bottom: 1px solid #1a2236; }
.logbox .l-me { color: #bae6fd; } .logbox .l-opp { color: #fecdd3; } .logbox .l-sys { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.opt-line { display: flex; gap: 6px; align-items: center; margin: 4px 0; font-size: 12px; }
.waiting { color: var(--accent); font-weight: 600; }

/* Aperçu, menus, modales */
.preview { position: fixed; z-index: 50; width: 300px; pointer-events: none; background: #0b1120f2; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 10px 40px #000c; }
.preview img { width: 100%; border-radius: 10px; display: block; margin-bottom: 8px; }
.preview .pn { font-weight: 700; font-size: 15px; }
.preview .pt { white-space: pre-wrap; font-size: 12px; color: #cbd5e1; margin-top: 6px; }
.preview .pm { font-size: 11px; color: var(--muted); margin-top: 6px; }
.ctx { position: fixed; z-index: 60; background: #0f172a; border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 200px; box-shadow: 0 10px 30px #000c; }
.ctx .h { font-size: 11px; color: var(--muted); padding: 4px 8px; text-transform: uppercase; letter-spacing: .06em; }
.ctx button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.ctx button:hover { background: var(--panel2); }
.ctx .sep { height: 1px; background: var(--line); margin: 4px 0; }
.lobby-sound { margin-left: auto; font-size: 20px; }
.sound-panel { width: 280px; padding: 10px; }
.snd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; margin: 6px 0; }
.snd-row input[type=range] { width: 150px; accent-color: var(--accent); }
.snd-row.check { justify-content: flex-start; color: var(--muted); font-size: 12px; }
.snd-now { font-size: 12px; color: var(--accent); margin: 8px 0; }
.sound-panel .actions { display: flex; gap: 6px; }
.sound-panel .actions button { flex: 1; font-size: 12px; }
.modal { position: fixed; inset: 0; z-index: 70; background: #000a; display: grid; place-items: center; }
.modal .box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: min(1000px, 94vw); max-height: 88vh; overflow: auto; }
.modal .cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.modal .cards .card { --cw: 120px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #7f1d1d; border: 1px solid #f87171; padding: 10px 16px; border-radius: 10px; z-index: 80; font-weight: 600; }
.toast.info { background: #0c4a6e; border-color: #38bdf8; }
.banner { padding: 8px 12px; border-radius: 10px; background: #2a1f05; border: 1px solid #a16207; font-weight: 600; text-align: center; }
.gameover { font: 700 28px Rajdhani; text-align: center; }

@media (max-height: 1100px) { :root { --cw: 72px; } .hand .card { --cw: 80px; } .bf .mid { gap: 6px; } .bf .bfcard { height: calc(var(--cw) * .95); } }
@media (max-height: 820px) { :root { --cw: 60px; } .hand .card { --cw: 68px; } }
@media (max-width: 1300px) { :root { --cw: 70px; } .lobby-grid { grid-template-columns: 1fr; } .table { grid-template-columns: 1fr 290px; } }
@media (max-width: 900px) { :root { --cw: 54px; } .table { grid-template-columns: 1fr; } .side { max-height: 45vh; } .bfs { grid-template-columns: 1fr; } }

/* Mise en place : choix du champ de bataille, premier joueur */
.bf-choices { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 16px 0 4px; }
.bf-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; background: transparent; border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; color: inherit; font: inherit; transition: transform .15s, border-color .15s; }
.bf-choice:hover { transform: translateY(-4px); border-color: var(--accent, #c8aa6e); }
.bf-choice small { max-width: 260px; font-size: 12px; line-height: 1.35; opacity: .85; text-align: center; }
.bf-choice .card { --cw: 260px; pointer-events: none; }
.first-info { margin: 6px 0 10px; padding: 8px 12px; border-radius: 10px; background: #ffffff10; }
.first-info .die { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 7px; background: #f4ecd8; color: #222; font-weight: 700; margin: 0 2px; box-shadow: inset 0 -2px 0 #0003; }

/* Capacités activables et effets optionnels */
.card.activatable { box-shadow: 0 0 0 2px #a855f7, 0 0 14px #a855f799; cursor: pointer; }
.ability-btn { text-align: left; white-space: normal; line-height: 1.35; }
.ability-text { font-size: 12px; opacity: .85; margin: 4px 0 6px; }
.prompt.confirm { border-color: #c8aa6e; background: #2a2210; }
.prompt.confirm .text { font-size: 12.5px; margin: 6px 0; opacity: .9; }
.prompt.confirm .opts button:first-child { background: #c8aa6e; color: #1a1408; font-weight: 600; }

/* Équipements attachés : sous l'unité, décalés vers le bas (on lit leur texte) ; au survol ils passent devant. */
.stack { position: relative; flex-shrink: 0; isolation: isolate; width: var(--cw); padding-bottom: calc(var(--ch) * .6 * var(--n)); }
.stack > .card { position: relative; z-index: 3; }
.stack .equip-slot { position: absolute; left: 0; top: calc(var(--ch) * .6 * var(--i)); z-index: calc(3 - var(--i)); }
.stack .equip-slot:hover { z-index: 6; }
.stack .equip-slot .card { box-shadow: 0 -4px 10px #0008; }
.stack .equip-slot .card::after { content: '⚙'; position: absolute; left: 3px; bottom: 3px; font-size: 10px; background: #000c; border-radius: 3px; padding: 0 3px; }
.card .att { position: absolute; left: 3px; bottom: 3px; top: auto; font-size: 9px; background: #000c; padding: 1px 4px; border-radius: 4px; transform: none; z-index: 2; }

/* Salons en ligne */
.online-box { margin: 10px 0; padding: 10px; border: 1px solid var(--accent); border-radius: 10px; }
.online-box #createRoomBtn { flex: 1; }
.room-box { margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--accent); }
.room-code { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.room-code b { font-family: Rajdhani, sans-serif; font-size: 34px; letter-spacing: 6px; }
.room-box .actions { margin-top: 8px; }

/* Mulligan : cartes en grand pour lire leur texte en entier (taille limitée par la largeur et la hauteur de l'écran). */
.modal .mull-box { max-width: 96vw; }
.modal .mull-cards { justify-content: center; gap: 14px; }
.modal .mull-cards .card { --cw: max(110px, min(240px, 19vw, calc((88vh - 260px) / 1.4))); }
.modal .mull-cards .card.chosen { transform: translateY(-6px); }
