/* Billes — ce qui est propre au jeu (le style commun est dans ../commun/theme.css) */
:root{ --p1:#f28c28; --p2:#21a35b; --p3:#3b8fe6; --p4:#a66be8; }
html,body{height:100%;overflow:hidden;-webkit-user-select:none;user-select:none}

/* Tableau de bord */
.tval{display:flex;align-items:baseline;gap:6px;font-size:13px;font-weight:700;color:var(--ink-2)}
.team.right .tval{flex-direction:row-reverse}
.tval b{font-family:var(--font-d);font-size:24px;line-height:1;color:var(--ink)}
.icons{display:flex;flex-wrap:wrap;gap:3px;min-height:0;max-width:100%;overflow:hidden;max-height:24px}
.team.right .icons{justify-content:flex-end}
.icons:empty{display:none}
.hud.multi .team.right .tval{flex-direction:row}
.hud.multi .team.right .icons{justify-content:flex-start}
.hud.multi .tval b{font-size:20px}
.hud.multi .mini{width:7px;height:7px}
@media (max-width:440px){ .hud.multi .tval>span{display:none} .hud.multi .icons{gap:2px;max-height:18px} }
.mini{width:9px;height:9px;border-radius:50%;border:1px solid var(--ink);
  background:radial-gradient(circle at 35% 30%,#fff 0 18%,#7ab8ff 30%,#2a5fb0)}
.icons span{font-size:12px;font-weight:800;color:var(--ink-2)}
.note{font-size:12px;color:var(--err);font-weight:800}
.note:empty{display:none}
.ctitle{font-family:var(--font-d);font-size:18px;font-weight:800;line-height:1.1}
.csub{font-size:12px;font-weight:600;color:var(--ink-2);margin-top:3px;max-width:120px}
.chip{display:inline-block;margin:2px;padding:1px 7px;border:1.5px solid var(--ink);border-radius:6px;font-weight:800;color:var(--ink-2);background:#fff}
.chip.on{background:var(--ac);color:var(--ink)}
.logo span:nth-child(1){color:#d62839} .logo span:nth-child(2){color:#1f6fd6} .logo span:nth-child(3){color:#1e9a5a}
.logo span:nth-child(4){color:#d99a00} .logo span:nth-child(5){color:#6a2bd9} .logo span:nth-child(6){color:#e46a00}

/* ---------- Écran de lancement Billes ---------- */
#splash{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;
  overflow:hidden;cursor:pointer;animation:out .5s ease-in 3s forwards;
  background:
    radial-gradient(circle at 20% 30%,rgba(0,0,0,.08) 0 2px,transparent 3px) 0 0/22px 22px,
    radial-gradient(circle at 70% 60%,rgba(255,255,255,.07) 0 2px,transparent 3px) 0 0/30px 30px,
    radial-gradient(ellipse at 50% 55%,#c79a62 0%,#9c6b38 55%,#4a2e16 100%)}
#splash.gone{display:none}
.sp-marble{--c:#2a7fff;position:absolute;width:34px;height:34px;border-radius:50%;
  background:
    radial-gradient(circle at 32% 28%,rgba(255,255,255,.95) 0 9%,rgba(255,255,255,0) 11%),
    conic-gradient(from 30deg,transparent 0 18%,rgba(255,255,255,.4) 24%,transparent 31% 58%,rgba(0,0,0,.22) 66%,transparent 74%),
    radial-gradient(circle at 40% 35%,color-mix(in srgb,var(--c) 55%,#fff),var(--c) 55%,color-mix(in srgb,var(--c) 55%,#000));
  box-shadow:0 6px 8px rgba(0,0,0,.45),inset 0 -2px 4px rgba(0,0,0,.25)}
.sp-title{display:flex;font-size:clamp(56px,17vw,120px);font-weight:900;line-height:1;margin-bottom:28px}
.sp-title span{display:inline-block;opacity:0;transform:translateY(-70px) scale(.5);
  animation:drop .55s cubic-bezier(.3,1.7,.5,1) forwards;text-shadow:0 6px 0 rgba(0,0,0,.35)}
.sp-stage{position:relative;width:min(320px,86vw);height:170px}
.sp-ring{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;
  border:3px solid rgba(255,255,255,.7);transform:scale(0);animation:ring .5s ease-out .1s forwards}
.sp-cluster .sp-marble{left:50%;top:50%}
.sp-shooter{--c:#7b2ff7;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;
  animation:shoot .75s cubic-bezier(.25,.9,.4,1) .25s both}
.sp-scatter{animation:scatter .9s cubic-bezier(.15,.75,.3,1) .95s forwards}
.sp-sub{margin-top:24px;color:#2a1a0d;font-weight:800;letter-spacing:.3em;text-transform:uppercase;font-size:14px;
  opacity:0;animation:fade .5s ease 1.6s forwards}
.sp-skip{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));font-size:12px;color:rgba(42,26,13,.85);
  opacity:0;animation:fade .4s ease 1s forwards}
@keyframes drop{to{opacity:1;transform:none}}
@keyframes ring{to{transform:scale(1)}}
@keyframes shoot{0%{transform:translate(-62vw,70px) rotate(-720deg)}100%{transform:translate(-28px,0) rotate(0)}}
@keyframes scatter{to{transform:translate(var(--dx),var(--dy))}}
@keyframes fade{to{opacity:1}}
@keyframes out{to{opacity:0;visibility:hidden}}
@media (prefers-reduced-motion:reduce){
  #splash,#splash *{animation-duration:.01s!important;animation-delay:0s!important}
  #splash{animation:out .3s ease 1.2s forwards!important}
}
@media (max-width:400px){
  .tname{font-size:13px} .tval b{font-size:19px} .banner{font-size:14px} .csub{max-width:96px}
}

