/* equilibre.css — L'Équilibre : complète course.css (palette bleu nuit / turquoise). */
body.eq {
  --c-accent: #5ee0c2;
  --c-accent2: #8ab4ff;
  background: radial-gradient(1200px 700px at 15% -10%, rgba(94, 224, 194, .16), transparent 60%),
              radial-gradient(1000px 600px at 90% 110%, rgba(138, 180, 255, .18), transparent 60%),
              linear-gradient(170deg, #07101f, #0f1f3d);
}
body.eq .ch-btn, body.eq .cp-btn, body.eq .ch-opt.on, body.eq .ch-step .pl { background: linear-gradient(160deg, #a8f0e0, #5ee0c2); color: #062a22; }
body.eq .ch-btn.ghost, body.eq .cp-btn.ghost { background: transparent; color: var(--c-ink); }
body.eq .ch-code { color: #5ee0c2; }

/* Plateau : fond animé (vent) derrière le tableau des joueurs */
#wind { position: fixed; inset: 0; width: 100vw; height: 100dvh; pointer-events: none; opacity: 0; transition: opacity 1s; }
body.eq.round #wind { opacity: 1; }

.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; width: 100%; max-width: 1100px; }
.eq-card { position: relative; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 22px; padding: 16px 14px 14px; text-align: center; box-shadow: var(--c-shadow); transition: transform .3s, opacity .4s; overflow: hidden; }
.eq-card.alive { border-color: color-mix(in srgb, var(--pc) 60%, transparent); }
.eq-card.fallen { opacity: .55; transform: scale(.96); }
.eq-card.winner { border-color: #ffd54a; box-shadow: 0 0 0 2px rgba(255, 213, 74, .6), var(--c-shadow); }
.eq-card .av { font-size: 2.6rem; line-height: 1; display: block; }
.eq-card .nm { font-weight: 900; margin-top: 6px; font-size: 1.05rem; }
.eq-card .tm { font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 900; margin-top: 4px; color: var(--pc); }
.eq-card .st { color: var(--c-muted); font-size: .85rem; margin-top: 2px; min-height: 1.2em; }
.eq-card .plate { width: 64px; height: 64px; margin: 8px auto 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .25), rgba(255, 255, 255, .04)); position: relative; }
.eq-card .ball { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--pc) 60%, #000 140%); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.eq-card.alive .ball { animation: eq-wobble 1.1s ease-in-out infinite alternate; }
@keyframes eq-wobble { 0% { transform: translate(-70%, -40%); } 50% { transform: translate(-30%, -60%); } 100% { transform: translate(-55%, -30%); } }
.eq-card .pop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; animation: eq-pop .9s ease-out forwards; pointer-events: none; }
@keyframes eq-pop { 0% { transform: scale(.3); opacity: 0; } 30% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.eq-top { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1100px; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.eq-top .tt { font-weight: 900; font-size: 1.3rem; }
.eq-top .lv { color: var(--c-muted); font-size: 1rem; }
.eq-wind { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; width: min(360px, 60vw); border: 1px solid var(--c-line); }
.eq-wind > div { height: 100%; background: linear-gradient(90deg, #5ee0c2, #ffd54a, #ff5e7e); transition: width .5s linear; }

/* Téléphone */
.eq-arena { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 62dvh; margin: 6px auto 0; }
.eq-arena canvas { width: 100%; height: 100%; display: block; touch-action: none; border-radius: 28px; }
.eq-hud { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.eq-hud .t { font-size: 2.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.eq-hud .g { color: var(--c-muted); font-size: .95rem; text-align: right; }
.eq-fell { text-align: center; padding: 28px 0 10px; }
.eq-fell .big { font-size: 4rem; line-height: 1; }
.eq-fell .pl { font-size: 1.8rem; font-weight: 900; margin-top: 8px; }
.eq-fell .sub { color: var(--c-muted); margin-top: 6px; }
