/* Trix Belote · style « Salon royal »
   tapis #0E5A3A · motifs #13704A · panneaux #0B2A1E · or #D4A62A · crème #F5EBD3 · rouge #B3261E
   Titres Lilita One, texte Poppins. Tout est mesuré en cqw : l'écran de jeu garde ses proportions. */
:root { --tapis: #0E5A3A; --motif: #13704A; --pan: #0B2A1E; --or: #D4A62A; --cr: #F5EBD3; --rg: #B3261E; }
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: manipulation; overscroll-behavior: none; }
/* le fond du tapis couvre tout l'écran : pas de bandes noires autour du jeu */
html { background: var(--motif) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%230f6440' font-size='30' font-family='Arial'%3E%3Ctext x='8' y='40'%3E%E2%99%A5%3C/text%3E%3Ctext x='68' y='40'%3E%E2%99%A0%3C/text%3E%3Ctext x='38' y='100'%3E%E2%99%A6%3C/text%3E%3Ctext x='98' y='100'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E"); background-size: 96px; }
body { background: transparent; }
body { display: grid; place-items: center; font-family: Poppins, system-ui, sans-serif; color: var(--cr);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent; user-select: none; }
h1, h2, h3 { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; line-height: 1.05; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: .3cqw solid #fff; outline-offset: .2cqw; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.stage { container-type: inline-size; position: relative; overflow: hidden;
  width: min(100vw, calc(100dvh * 740 / 360)); aspect-ratio: 740 / 360;
  background: var(--motif) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%230f6440' font-size='30' font-family='Arial'%3E%3Ctext x='8' y='40'%3E%E2%99%A5%3C/text%3E%3Ctext x='68' y='40'%3E%E2%99%A0%3C/text%3E%3Ctext x='38' y='100'%3E%E2%99%A6%3C/text%3E%3Ctext x='98' y='100'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 13cqw; }
.abs { position: absolute; }

/* Téléphone en portrait */
.turn-phone { display: none; position: fixed; inset: 0; background: var(--pan); place-items: center; z-index: 99; text-align: center; padding: 24px; }
.tp-card { max-width: 320px; }
.tp-ico { font-size: 64px; color: var(--or); animation: spin 2.4s ease-in-out infinite; }
.tp-card p { font-size: 18px; }
@keyframes spin { 50% { transform: rotate(90deg); } }
@media (orientation: portrait) and (max-width: 900px) { .turn-phone { display: grid; } }

/* Tapis */
.tbl { position: absolute; left: 17%; right: 17%; top: 25%; height: 47%; border-radius: 3.2cqw;
  background: radial-gradient(ellipse at 50% 40%, #137046, var(--tapis) 70%); border: .4cqw solid var(--or);
  box-shadow: inset 0 0 0 .6cqw rgba(0,0,0,.18), 0 2.2cqw 3cqw rgba(0,0,0,.35); transform: perspective(70cqw) rotateX(20deg); }

/* Cartes */
.cd { position: absolute; width: var(--w); aspect-ratio: 5/7; background: #FBF6EA; border: .12cqw solid #d6c8a8; border-radius: calc(var(--w) * .09);
  box-shadow: 0 .35cqw .8cqw rgba(0,0,0,.35); color: #1d1d1d; font-family: "Lilita One", sans-serif; transition: transform .15s, top .15s; padding: 0; }
.cd.r { color: var(--rg); }
.cd .k { position: absolute; left: 7%; top: 4%; font-size: calc(var(--w) * .22); line-height: .95; text-align: center; z-index: 1; }
.cd .k.b { left: auto; top: auto; right: 7%; bottom: 4%; transform: rotate(180deg); }
.cd .c { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .55); pointer-events: none; }
.cd .face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cd.fig .k { background: #FBF6EA; border-radius: calc(var(--w) * .04); padding: 0 1%; }
.cd.off { filter: brightness(.62) saturate(.6); }
.cd.ok { box-shadow: 0 0 0 .3cqw var(--or), 0 .6cqw 1.2cqw rgba(0,0,0,.4); cursor: pointer; }
.cd.ok:hover { transform: translateY(-1.2cqw) !important; }
/* Tableau des scores : points et matrice des contrats */
.sc2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2cqw; min-height: 0; flex: 1; }
.scol { display: flex; flex-direction: column; min-height: 0; }
.mxt { margin: .4cqw 0 .8cqw; font: 1.7cqw "Lilita One"; color: var(--or); font-weight: 400; }
.mx { display: grid; gap: .55cqw; align-content: start; }
.mxr { display: grid; grid-template-columns: 11cqw repeat(7, minmax(0, 1fr)) 3.4cqw; gap: .4cqw; align-items: center; font-size: 1.2cqw; padding: .25cqw .4cqw; }
.mxr.hd span { font-size: 1.02cqw; opacity: .75; text-align: center; white-space: nowrap; overflow: hidden; }
.mxr.hd span:first-child { text-align: left; }
.mxr.cur { background: rgba(212,166,42,.12); border-radius: 1cqw; }
.mxc { aspect-ratio: 1; border-radius: .7cqw; display: grid; place-items: center; font: 1.5cqw/1 "Lilita One"; position: relative; }
.mxc.done { background: var(--or); color: var(--pan); }
.mxc.done small { font: 600 .85cqw Poppins, sans-serif; position: absolute; bottom: .1cqw; right: .3cqw; }
.mxc.live { border: .22cqw solid var(--or); color: var(--or); animation: pulse 1.2s ease-in-out infinite; }
.mxc.todo { border: .15cqw dashed rgba(245,235,211,.4); }
.mxn { text-align: right; font: 1.4cqw "Lilita One"; }
.mxl { display: flex; align-items: center; gap: .6cqw; flex-wrap: wrap; font-size: 1.1cqw; opacity: .85; margin-top: .6cqw; }
.mxl .mxc { width: 2.2cqw; font-size: 1.1cqw; }
@keyframes pulse { 50% { opacity: .45; } }

/* Chat vocal : bouton « appuyer pour parler » à droite, joueur qui parle en vert */
.talk { position: absolute; right: 2%; top: 57%; z-index: 7; width: 7.4cqw; aspect-ratio: 1; border-radius: 50%; border: .3cqw solid var(--or); background: var(--pan);
  color: var(--cr); display: grid; place-items: center; align-content: center; gap: .1cqw; padding: 0; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; box-shadow: 0 .5cqw 1.2cqw rgba(0,0,0,.4); }
.talk svg { width: 3cqw; height: 3cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.talk span { font-size: 1.05cqw; font-weight: 700; pointer-events: none; }
.talk.on { background: #1F8A70; border-color: #7fe0b5; animation: talkp 1s ease-in-out infinite; }
@keyframes talkp { 50% { box-shadow: 0 0 0 1cqw rgba(127,224,181,.25), 0 .5cqw 1.2cqw rgba(0,0,0,.4); } }
.pl.spk .ring { background: #7fe0b5; box-shadow: 0 0 0 .5cqw rgba(127,224,181,.35); animation: talkp 1s ease-in-out infinite; }
.pl.spk .ring::after, .seat.spk .ring::after { content: ""; position: absolute; left: -.4cqw; bottom: -.2cqw; width: 2.8cqw; aspect-ratio: 1; border-radius: 50%;
  background: #1F8A70 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21'/%3E%3C/svg%3E") center / 62% no-repeat;
  border: .22cqw solid var(--cr); }
.seat.spk .ring { background: #7fe0b5; }

/* Contrat annoncé : grand au centre, puis il file vers le contrat du HUD (en haut à gauche) */
.annonce-bg { position: absolute; inset: 0; z-index: 14; background: radial-gradient(ellipse at 50% 42%, rgba(4,16,11,.55), rgba(4,16,11,.2) 70%);
  animation: abg 2.3s ease both; }
@keyframes abg { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }
.annonce { position: absolute; left: 50%; top: 44%; z-index: 15; display: grid; justify-items: center; gap: .6cqw; text-align: center; white-space: nowrap;
  background: var(--pan); border: .35cqw solid var(--or); border-radius: 2.4cqw; padding: 1.6cqw 4cqw 1.8cqw; box-shadow: 0 1.4cqw 3cqw rgba(0,0,0,.5);
  animation: annonce 2.3s cubic-bezier(.3,.7,.3,1) both; pointer-events: none; }
.annonce b { font: 6.4cqw/1 "Lilita One"; color: var(--or); font-weight: 400; text-shadow: 0 .4cqw 0 rgba(0,0,0,.35); letter-spacing: .03em; }
.annonce .asub { font-size: 1.3cqw; opacity: .8; }
.annonce .agoal { font-size: 1.6cqw; font-weight: 600; }
.annonce .afan { position: relative; width: 34cqw; height: 9.5cqw; margin-top: -6cqw; }
.annonce .afan .cd { box-shadow: 0 .5cqw 1cqw rgba(0,0,0,.45); }
@keyframes annonce {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  12% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  20%, 68% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% - 45cqw), calc(-50% - 17.4cqw)) scale(.2); opacity: .2; }
}
.hud.wait b { visibility: hidden; }

/* Réglages */
.sets { display: grid; gap: .5cqw; background: var(--pan); border: .2cqw solid var(--or); border-radius: 1.4cqw; padding: .8cqw; min-width: 22cqw; box-shadow: 0 .6cqw 1.4cqw rgba(0,0,0,.4); }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 1.2cqw; background: rgba(245,235,211,.06); border: 0; border-radius: .9cqw;
  padding: .7cqw 1cqw; font-size: 1.4cqw; text-align: left; min-height: 4.4cqw; }
.srow b { font-size: 1.2cqw; background: rgba(245,235,211,.15); border-radius: 99px; padding: .2cqw .9cqw; }
.srow b.on { background: var(--or); color: var(--pan); }
.srow:disabled { opacity: .55; cursor: default; }

/* Serveur pas à jour */
.stale { position: absolute; left: 50%; top: 1.5%; transform: translateX(-50%); z-index: 30; background: var(--rg); color: #fff; border: .2cqw solid var(--cr);
  border-radius: 1cqw; padding: .6cqw 1.4cqw; font-size: 1.3cqw; font-weight: 600; max-width: 70%; text-align: center; box-shadow: 0 .6cqw 1.4cqw rgba(0,0,0,.4); }

/* Dernier pli et plis joués */
.plis { position: absolute; left: 1.6%; top: 13.5%; width: 24%; background: rgba(11,42,30,.9); border: .2cqw solid rgba(212,166,42,.7); border-radius: 1.4cqw;
  padding: .7cqw 1cqw; display: grid; gap: .5cqw; z-index: 8; }
.plis .pt { font-size: 1.2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plis .pt { opacity: .8; }
.pwin { display: flex; align-items: center; gap: .6cqw; font-size: 1.35cqw; white-space: nowrap; }
.pwin b { color: var(--or); font: 1.7cqw "Lilita One"; font-weight: 400; }
.pwin .ra { width: 3cqw; height: 3cqw; }
.plis .pa { font-size: 1.1cqw; text-decoration: underline; opacity: .85; }
.mcs { display: flex; gap: .4cqw; }
.mc { width: 3.3cqw; aspect-ratio: 5/7; background: #FBF6EA; border-radius: .35cqw; color: #1d1d1d; font: 1.35cqw/1 "Lilita One"; display: grid;
  place-items: center; align-content: center; box-shadow: 0 .15cqw .3cqw rgba(0,0,0,.3); }
.mc i { font-style: normal; font-size: 1.2cqw; }
.mc.r { color: var(--rg); }
.plist { display: grid; gap: .5cqw; max-height: 26cqw; overflow-y: auto; border-top: .1cqw solid rgba(245,235,211,.2); padding-top: .5cqw; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: .6cqw; }
.prow .pw { font-size: 1.1cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .mc { width: 2.6cqw; font-size: 1.05cqw; }
.prow .mc i { font-size: .95cqw; }

/* Récapitulatif de fin de manche */
.pnl.recap { left: 4%; top: 4%; width: 92%; height: 92%; z-index: 10; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1cqw; padding: 1.4cqw 2cqw; }
.rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; font-size: 1.3cqw; }
.rhead h3 { display: flex; align-items: center; gap: 1cqw; }
.rhead .chip { font-family: Poppins, sans-serif; }
.rbody { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6cqw; min-height: 0; }
.rtab { display: grid; align-content: start; gap: .5cqw; }
.rr { display: grid; grid-template-columns: 13cqw minmax(0, 1fr) 5cqw 5cqw 2.6cqw; align-items: center; gap: .8cqw; padding: .55cqw .8cqw; border-radius: 1cqw;
  background: rgba(245,235,211,.06); font-size: 1.3cqw; }
.rr.hd { background: none; font-size: 1.1cqw; opacity: .7; padding-block: 0; }
.rr .r { text-align: right; }
.rr.me { box-shadow: inset 0 0 0 .15cqw rgba(212,166,42,.7); }
.rn { display: flex; align-items: center; gap: .6cqw; font-weight: 600; white-space: nowrap; min-width: 0; }
.rnm { overflow: hidden; text-overflow: ellipsis; }
.ra { width: 3.4cqw; height: 3.4cqw; flex: none; }
.ra .av { border-width: .2cqw; }
.rb.rbs { position: static; width: 2.1cqw; font-size: 1.3cqw; border-width: .18cqw; flex: none; }
.rd { display: flex; flex-wrap: wrap; gap: .4cqw; }
.ri { background: rgba(212,166,42,.16); border: .1cqw solid rgba(212,166,42,.5); border-radius: 99px; padding: .1cqw .7cqw; font-size: 1.15cqw; white-space: nowrap; }
.rp, .rt { text-align: right; font: 1.9cqw "Lilita One"; }
.rp.pos { color: #ff9d8f; }
.rp.neg { color: #7fe0b5; }
.rt .lose { color: #fff; background: var(--rg); border-radius: .7cqw; padding: 0 .6cqw; }
.rk { color: #7fe0b5; font-weight: 700; text-align: right; }
.rplis { overflow-y: auto; display: grid; align-content: start; gap: .45cqw; padding: .6cqw .9cqw; border-radius: 1cqw; background: rgba(245,235,211,.05); }
.rplis h4 { margin: 0 0 .2cqw; font: 1.6cqw "Lilita One"; color: var(--or); font-weight: 400; }
.rplis .prow .pw { font-size: 1.2cqw; }
.rplis .mc { width: 2.9cqw; font-size: 1.2cqw; }
.mc.win { box-shadow: 0 0 0 .22cqw var(--or); }
.rfoot { display: flex; justify-content: space-between; align-items: center; gap: 1.4cqw; }

/* Animations : distribution, carte posée, pli ramassé */
.cd.deal { animation: deal .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes deal { from { transform: translate(var(--dx), var(--dy)) rotate(-8deg) scale(.5); opacity: 0; } 25% { opacity: 1; } }
.cd.deal-b { animation: dealb .34s cubic-bezier(.2,.7,.3,1) both; pointer-events: none; }
@keyframes dealb { from { transform: translate(var(--dx), var(--dy)); } 85% { transform: none; opacity: 1; } to { transform: none; opacity: 0; } }
.cd.fly { animation: fly .4s cubic-bezier(.2,.75,.3,1) both; z-index: 4; }
@keyframes fly { from { transform: translate(var(--dx), var(--dy)) rotate(-12deg) scale(.75); } 70% { transform: scale(1.06); } }
.cd.collect { animation: collect .45s ease-in both; }
@keyframes collect { to { transform: translate(var(--cx), var(--cy)) scale(.35); opacity: 0; } }
.bk { background: repeating-linear-gradient(45deg, #1B2A4A 0 .5cqw, #22355c .5cqw 1cqw); border: .2cqw solid var(--cr);
  box-shadow: inset 0 0 0 .25cqw var(--or), 0 .2cqw .5cqw rgba(0,0,0,.35); }
.slot { position: absolute; width: var(--w); aspect-ratio: 5/7; border: .2cqw dashed rgba(245,235,211,.55); border-radius: calc(var(--w) * .09);
  display: grid; place-items: center; text-align: center; font-size: 1.1cqw; line-height: 1.2; color: rgba(245,235,211,.8); }

/* Joueurs */
.pl { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .4cqw; transform: translateX(-50%); }
.ring { position: relative; width: 8.6cqw; aspect-ratio: 1; border-radius: 50%; padding: .42cqw; background: conic-gradient(var(--or) calc(var(--p) * 1%), rgba(245,235,211,.18) 0); }
.av { display: block; width: 100%; height: 100%; border-radius: 50%; background: #1d4d36; border: .3cqw solid var(--cr); overflow: hidden; }
.pl.grey .ring { filter: grayscale(1) brightness(.7); }
.rb { position: absolute; top: -.2cqw; right: -.4cqw; width: 3cqw; aspect-ratio: 1; border-radius: 50%; background: var(--or); color: var(--pan);
  font: 2cqw/1 "Lilita One"; display: grid; place-items: center; border: .28cqw solid var(--cr); box-shadow: 0 .3cqw .6cqw rgba(0,0,0,.4); }
.nm { background: rgba(11,42,30,.92); border: .15cqw solid rgba(212,166,42,.6); border-radius: 99px; padding: .25cqw 1cqw; font-size: 1.35cqw; font-weight: 600;
  white-space: nowrap; display: flex; gap: .7cqw; align-items: baseline; max-width: 16cqw; }
.nm span { overflow: hidden; text-overflow: ellipsis; }
.nm b { font: 1.6cqw "Lilita One"; color: var(--or); font-weight: 400; }
.bks { display: flex; align-items: center; gap: .4cqw; }
.bks i { display: block; width: 2.1cqw; aspect-ratio: 5/7; border-radius: .3cqw; margin-left: -1.2cqw; }
.bks i:first-child { margin-left: 0; }
.bks span { font-size: 1.2cqw; font-weight: 600; }
.chip { font-size: 1.15cqw; font-weight: 600; background: var(--rg); color: #fff; border-radius: 99px; padding: .15cqw .8cqw; white-space: nowrap; }
.chip.g { background: var(--or); color: var(--pan); }
.chip.v { background: #1F8A70; }

/* HUD */
.hud { position: absolute; left: 1.6%; top: 3.5%; max-width: 34%; background: rgba(11,42,30,.9); border: .22cqw solid var(--or); border-radius: 1.6cqw;
  padding: .8cqw 1.5cqw; display: grid; gap: .2cqw; box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.3); }
.hud b { font: 2.3cqw/1.05 "Lilita One"; color: var(--or); font-weight: 400; }
.hud span { font-size: 1.2cqw; }
.hbs { position: absolute; right: 1.6%; top: 4%; display: grid; gap: 1.1cqw; justify-items: end; z-index: 7; }
.hb { width: 5.2cqw; aspect-ratio: 1; border-radius: 50%; background: var(--pan); border: .25cqw solid var(--or); color: var(--cr); display: grid; place-items: center;
  padding: 0; box-shadow: 0 .4cqw .8cqw rgba(0,0,0,.35); }
.hb svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.hb.on, .hb:hover { background: var(--or); color: var(--pan); }
.quit { display: flex; gap: .6cqw; align-items: center; background: var(--pan); border: .2cqw solid var(--or); border-radius: 99px; padding: .4cqw .6cqw .4cqw 1.2cqw; font-size: 1.3cqw; white-space: nowrap; }
.ban { position: absolute; left: 50%; transform: translateX(-50%); background: var(--pan); border: .3cqw solid var(--or); border-radius: 99px;
  padding: .55cqw 1cqw .55cqw 2.4cqw; font: 2.5cqw/1 "Lilita One"; white-space: nowrap; display: flex; align-items: center; gap: 1.4cqw;
  box-shadow: 0 .6cqw 1.4cqw rgba(0,0,0,.4); letter-spacing: .02em; z-index: 5; pointer-events: none; }
.ban em { font-style: normal; background: var(--or); color: var(--pan); border-radius: 99px; padding: .35cqw 1cqw; font-size: 2cqw; min-width: 5.4cqw; text-align: center; }
.pnl { position: absolute; background: rgba(11,42,30,.95); border: .25cqw solid var(--or); border-radius: 2cqw; padding: 1.6cqw 2cqw; box-shadow: 0 1cqw 2.4cqw rgba(0,0,0,.45); z-index: 6; }
.pnl h3 { font-size: 2.6cqw; color: var(--or); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .8cqw; border-radius: 99px; font: 2cqw/1 "Lilita One"; padding: 1cqw 2.4cqw;
  border: .25cqw solid var(--or); background: var(--or); color: var(--pan); white-space: nowrap; letter-spacing: .02em; box-shadow: 0 .45cqw 0 #8f6c12; }
.btn:active { transform: translateY(.3cqw); box-shadow: 0 .15cqw 0 #8f6c12; }
.btn.o { background: transparent; color: var(--cr); box-shadow: none; }
.btn.red { background: var(--rg); border-color: var(--rg); color: #fff; box-shadow: 0 .45cqw 0 #6e150f; }
.btn:disabled { opacity: .5; box-shadow: none; cursor: default; }
.btn.sm { font-size: 1.6cqw; padding: .7cqw 1.6cqw; }
.lnk { font-size: 1.4cqw; color: var(--cr); text-decoration: underline; text-underline-offset: .3cqw; background: none; border: 0; padding: .4cqw; }
.toast { position: absolute; left: 50%; transform: translateX(-50%); background: rgba(245,235,211,.96); color: var(--pan); border-radius: 99px;
  padding: .4cqw 1.4cqw; font-size: 1.35cqw; font-weight: 600; white-space: nowrap; z-index: 8; animation: fade 2.6s forwards; pointer-events: none; }
.toast.err { background: var(--rg); color: #fff; }
@keyframes fade { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
.pop { position: absolute; font: 2.6cqw/1 "Lilita One"; color: var(--pan); background: var(--or); border: .25cqw solid var(--cr); border-radius: 99px;
  padding: .4cqw 1.1cqw; white-space: nowrap; box-shadow: 0 .5cqw 1cqw rgba(0,0,0,.4); transform: translateX(-50%); z-index: 7; animation: rise .5s ease-out; }
.pop.neg { background: #1F8A70; color: #fff; }
.pop.big { background: var(--rg); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 1.5cqw); } }
.dim { position: absolute; inset: 0; background: rgba(4,16,11,.62); z-index: 9; }

/* Accueil et menus */
.field { display: block; width: 100%; margin-top: .4cqw; background: var(--cr); color: var(--pan); border-radius: 1cqw; padding: .7cqw 1.1cqw;
  font: 600 1.8cqw Poppins, sans-serif; border: .25cqw solid var(--or); }
.codebox { width: 100%; text-align: center; letter-spacing: 1.2cqw; text-transform: uppercase; font: 4.4cqw "Lilita One"; padding: .6cqw; }
.agrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4cqw 0; justify-items: center; }
.agrid button { background: none; border: 0; padding: 0; width: 10cqw; }
.seat { position: absolute; top: 24%; width: 20%; height: 50%; display: grid; justify-items: center; align-content: center; gap: 1cqw; padding: 1cqw; }
.empty { width: 9cqw; aspect-ratio: 1; border-radius: 50%; border: .3cqw dashed rgba(245,235,211,.6); display: grid; place-items: center; font: 4cqw "Lilita One"; opacity: .7; }

/* Scores */
.sgrid { display: grid; grid-template-columns: 3cqw 1.6fr repeat(4, 1fr); gap: .25cqw 1cqw; font-size: 1.4cqw; align-items: center; }
.sgrid .n { text-align: right; font-variant-numeric: tabular-nums; }
.sgrid .h { font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgrid hr { grid-column: 1 / -1; width: 100%; border: 0; height: .1cqw; background: rgba(245,235,211,.18); margin: 0; }
.sgrid hr.t { height: .25cqw; background: var(--or); margin: .4cqw 0; }
.sgrid .tot { text-align: right; font: 2.2cqw "Lilita One"; }
.sgrid .lose { justify-self: end; color: #fff; background: var(--rg); border-radius: .8cqw; padding: .1cqw .8cqw; }
.scroll { overflow-y: auto; scrollbar-width: thin; }

/* Règles */
.rules { font-size: 1.35cqw; line-height: 1.5; user-select: text; }
.rules h3 { margin-bottom: .6cqw; }
.rules p, .rules ul { margin: 0 0 .8cqw; }
.rules ul { padding-left: 2cqw; }
.rules b { color: var(--or); }
.tabs { display: grid; gap: .5cqw; align-content: start; font-size: 1.45cqw; }
.tabs button { text-align: left; background: none; border: 0; padding: .4cqw .9cqw; border-radius: 99px; }
.tabs button.on { background: var(--or); color: var(--pan); font-weight: 700; }
