/* Teck-Teck — ce qui est propre au jeu (le style commun est dans ../commun/theme.css) */
:root{ --p1:#f28c28; --p2:#21a35b; --p1t:#b85500; --p2t:#137a3c; }
html,body{height:100%;overflow:hidden;-webkit-user-select:none;user-select:none}

/* Tableau de bord */
.team{gap:5px}
.goals{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ink-2)}
.team.right .goals{flex-direction:row-reverse}
.pips{display:flex;gap:4px}
.pip{width:12px;height:12px;border-radius:50%;border:2px solid var(--ink);background:#fff}
.t0 .pip.on{background:var(--p1)}
.t1 .pip.on{background:var(--p2)}
.center .label{font-size:12px;font-weight:700;color:var(--ink-2)}
.score{font-family:var(--font-d);font-size:32px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.score .s0{color:var(--p1t)} .score .s1{color:var(--p2t)} .score .sep{color:var(--ink-2);margin:0 4px}
.fmt{font-size:12px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.end-score{text-align:center;font-family:var(--font-d);font-size:46px;font-weight:800;margin:8px 0}
.seg.three{grid-template-columns:1fr 1fr 1fr}
@media (max-width:400px){
  .goals .glbl{display:none} .pips{gap:3px} .pip{width:10px;height:10px;border-width:1.5px}
  .fmt{white-space:normal;line-height:1.2} .score{font-size:27px}
}
.seg.forms{grid-template-columns:repeat(2,minmax(0,1fr))}
.seg.forms button{min-width:0;display:flex;align-items:center;gap:8px;text-align:left;padding:6px 8px}
.seg.forms svg{width:46px;height:34px;flex:none;border-radius:4px;background:#2f7d4a}
.seg.forms button[data-v=perso]{grid-column:1/-1;justify-content:center}
/* Éditeur de la défense « Perso » */
#persoField{display:block;width:100%;height:auto;margin-top:10px;border-radius:var(--r);outline:2.5px solid var(--ink);touch-action:none;-webkit-user-select:none;user-select:none}
#persoField .pcap{cursor:grab} #persoField .pcap:focus{outline:none} #persoField .pcap:focus-visible .pbody{stroke:#fff;stroke-width:8}
#persoMsg{min-height:2.8em;font-size:14px}
.logo span:nth-child(1){color:var(--p1t)} .logo span:nth-child(2){color:var(--ink-2)} .logo span:nth-child(3){color:var(--p2t)}

/* ---------- Écran de lancement ---------- */
#splash{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(ellipse at 50% 45%,#1f4a2f 0%,#0f1a14 62%);overflow:hidden;cursor:pointer;
  animation:spOut .45s ease-in 2.75s forwards}
#splash.gone{display:none}
.sp-pitch{position:absolute;inset:0;opacity:.08;pointer-events:none;
  background:repeating-linear-gradient(0deg,#fff 0 2px,transparent 2px 70px)}
.sp-title{display:flex;font-size:clamp(46px,15vw,104px);font-weight:900;letter-spacing:.02em;line-height:1}
.sp-title span{display:inline-block;opacity:0;transform:translateY(-60px) scale(.6);
  animation:drop .5s cubic-bezier(.3,1.6,.5,1) forwards;text-shadow:0 6px 0 rgba(0,0,0,.35)}
.sp-title .o{color:var(--p1)} .sp-title .w{color:#fff} .sp-title .g{color:var(--p2)}
.sp-track{position:relative;width:min(320px,80vw);height:70px;margin-top:18px}
.sp-cap{position:absolute;left:0;top:12px;width:46px;height:46px;border-radius:50%;
  background:
    radial-gradient(circle at 46% 46%,#ffc27e 0 12%,var(--p1) 28%,#9c520c 37%,#c3c9cf 40%,#e6e9ec 48%,#8a9198 55%,transparent 56%),
    repeating-conic-gradient(#ffb066 0 4deg,var(--p1) 4deg 9deg,#9c520c 9deg 17.14deg);
  box-shadow:0 6px 10px rgba(0,0,0,.45);
  animation:capIn .7s cubic-bezier(.2,.8,.3,1) forwards}
.sp-ball{position:absolute;left:calc(50% + 6px);top:22px;width:26px;height:26px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#cfd6d2);box-shadow:0 5px 8px rgba(0,0,0,.4);
  animation:ballGo .9s cubic-bezier(.15,.7,.3,1) .62s forwards}
.sp-ball::after{content:'';position:absolute;left:8px;top:8px;width:10px;height:10px;background:#1d2421;
  clip-path:polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%)}
.sp-sub{margin-top:10px;color:#a9c9b3;font-size:15px;letter-spacing:.3em;text-transform:uppercase;
  opacity:0;animation:fadeUp .6s ease 1.45s forwards}
.sp-flag{display:flex;margin-top:22px;height:6px;width:0;border-radius:3px;overflow:hidden;
  animation:grow .6s ease 1.7s forwards}
.sp-flag i{flex:1} .sp-flag i:nth-child(1){background:var(--p1)} .sp-flag i:nth-child(2){background:#fff}
.sp-flag i:nth-child(3){background:var(--p2)}
.sp-skip{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));font-size:12px;color:#5f7a6a;
  opacity:0;animation:fadeUp .4s ease 1s forwards}
@keyframes drop{to{opacity:1;transform:none}}
@keyframes capIn{0%{transform:translateX(-60vw) rotate(-540deg)}100%{transform:translateX(calc(min(320px,80vw)/2 - 46px)) rotate(0)}}
@keyframes ballGo{0%{transform:none}100%{transform:translateX(min(130px,34vw)) rotate(540deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes grow{to{width:min(180px,46vw)}}
@keyframes spOut{to{opacity:0;transform:scale(1.06);visibility:hidden}}
@media (prefers-reduced-motion:reduce){
  #splash,#splash *{animation-duration:.01s!important;animation-delay:0s!important}
  #splash{animation:spOut .3s ease 1.2s forwards!important}
}

@media (max-width:360px){ .seg.forms button{gap:5px;padding:6px 5px;font-size:13px} .seg.forms svg{width:34px;height:26px} }
