/* tir.css — Tir de Noël (canvas plein écran, portrait) */
.tir { position: absolute; inset: 0; background: #0b1730; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); }
.tir__canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.tir__aide {
  position: absolute; left: 16px; right: 16px; top: 42%; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--police-titre); font-weight: 700; font-size: 17px; color: var(--encre); background: rgba(255,255,255,.92); border-radius: 14px; padding: 10px 14px; transition: opacity .3s ease; box-shadow: var(--ombre);
}
.tir__aide--cachee { opacity: 0; }
.tir__fin {
  position: absolute; left: 16px; right: 16px; top: 40%; z-index: 4; text-align: center; pointer-events: none;
  font-family: var(--police-titre); font-weight: 800; font-size: clamp(24px, 7.5vw, 34px); color: var(--primaire); background: rgba(255,255,255,.95); border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre);
  animation: mc-pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.tir__fin[hidden] { display: none; }
/* v2 : bandeau de vague et flash rouge quand on touche un piège */
.tir__bandeau { position: absolute; left: 0; right: 0; top: 34%; z-index: 4; text-align: center; pointer-events: none; font-family: var(--police-titre); font-weight: 800; font-size: clamp(30px, 10vw, 46px); color: #ffd84a; text-shadow: 0 3px 0 #7a4a00, 0 0 24px rgba(255,216,74,.6); }
.tir__bandeau[hidden] { display: none; }
.tir__bandeau--on { animation: tir-bandeau 1.4s ease-out forwards; }
@keyframes tir-bandeau { 0% { transform: scale(.4); opacity: 0; } 18% { transform: scale(1.12); opacity: 1; } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.tir__flash { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(circle, rgba(255,60,40,.0) 40%, rgba(255,40,40,.55)); opacity: 0; }
.tir__flash--on { animation: tir-flash .5s ease-out; }
@keyframes tir-flash { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tir__fin, .tir__bandeau--on, .tir__flash--on { animation: none; } .tir__bandeau--on { opacity: 1; } }
/* 09/11 : objectif de la vague (Leeroy : « est-ce qu'il y a un peu de challenge ? ») : jauge dorée sous la barre, à gauche (la pastille du sponsor est à droite) */
.tir__objectif { position: absolute; left: 10px; top: calc(60px + env(safe-area-inset-top)); width: 46%; max-width: 190px; height: 24px; z-index: 4; pointer-events: none; border-radius: 999px; background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1.5px rgba(242,196,90,.65), 0 2px 6px rgba(0,0,0,.35); overflow: hidden; }
.tir__objectif i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(180deg, #ffe08a, #e0a52a); transition: width .25s ease; }
.tir__objectif span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--police-titre); font-weight: 800; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.75); white-space: nowrap; }
.tir__objectif--ok i { background: linear-gradient(180deg, #8ef0b0, #1f9a4c); }
.tir__objectif[hidden] { display: none; }
.tir__bandeau small { display: block; font-size: clamp(15px, 4.6vw, 20px); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); margin-top: 2px; letter-spacing: .02em; }
