/* Le drill 60 secondes : univers fête foraine, style autocollant. */
body {
  background-color: var(--creme);
  background-image: repeating-linear-gradient(90deg, rgba(249, 168, 212, .18) 0 40px, transparent 40px 80px);
}
.jeu-zone { max-width: 720px; }
.fanions { height: 34px; margin: -6px 0 6px; }
.fanions svg { width: 100%; height: 34px; }
.jeu-carte { margin-bottom: 18px; }
.jeu-carte h2 { font-size: 1.45rem; }

.bienvenue { flex-direction: row; text-align: left; gap: 18px; }
.chapiteau { flex: 0 0 110px; }
.chapiteau svg { width: 110px; height: 110px; }
.note-apercu { margin: 8px 0 0; font-size: .9rem; font-weight: 800; color: #8A5A00; }

/* Attractions */
.attractions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.attraction { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px 14px; border: var(--trait) solid var(--encre); border-radius: 22px; background: var(--fond, var(--papier)); box-shadow: 5px 5px 0 var(--encre); cursor: pointer; text-align: center; transition: transform .08s, box-shadow .08s; }
.attraction:hover { transform: translate(-1px, -2px) rotate(-.5deg); box-shadow: 6px 7px 0 var(--encre); }
.attraction:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.attraction svg { width: 84px; height: 84px; }
.attraction strong { font-family: var(--police-titre); font-size: 1.12rem; line-height: 1.2; }
.attraction .compte { font-weight: 800; font-size: .95rem; }
.mini-tickets { display: flex; gap: 3px; }
.mini-tickets i { width: 12px; height: 12px; border: 2px solid var(--encre); border-radius: 3px; background: var(--papier); }
.mini-tickets i.ok { background: #F2B705; }

/* Une attraction */
.attraction-tete { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.attraction-dessin svg { width: 72px; height: 72px; }
.att-progres { margin: 4px 0 0; font-weight: 800; opacity: .7; }
.tickets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; }
.ticket { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 74px; padding: 6px 4px; border: var(--trait) solid var(--encre); border-radius: 12px; background: var(--papier); box-shadow: 3px 3px 0 var(--encre); cursor: pointer; font-family: var(--police-titre); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: var(--trait) solid var(--encre); border-radius: 50%; background: var(--creme); }
.ticket::before { left: -8px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -8px; clip-path: inset(0 50% 0 0); }
.ticket .n { font-size: 1.5rem; line-height: 1; }
.ticket .etat { font-family: var(--police); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.ticket svg { width: 18px; height: 18px; }
.ticket.gagne { background: #FFE38A; }
.ticket.gagne svg { color: #D99A00; }
.ticket.ouvert { background: var(--pc); animation: brille 1.6s ease-in-out infinite; }
.ticket.ferme { background: var(--gris); opacity: .65; cursor: default; box-shadow: none; }
@keyframes brille { 50% { transform: translateY(-3px); } }

/* Préparer un niveau */
.etiquette-niveau { margin: 0; padding: 4px 14px; border: var(--trait) solid var(--encre); border-radius: 99px; background: var(--pc); font-weight: 800; }
.exemple { margin: 0; font-family: var(--police-titre); font-size: 1.6rem; padding: 8px 18px; border: 3px dashed var(--encre); border-radius: 16px; background: var(--creme); }
.boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-lien { box-shadow: none; border-color: transparent; background: transparent; text-decoration: underline; padding: 6px 10px; }
.btn-lien:hover { box-shadow: none; transform: none; }

/* Partie */
.chrono { display: flex; align-items: center; gap: 10px; width: 100%; }
.chrono-barre { flex: 1; height: 20px; border: var(--trait) solid var(--encre); border-radius: 99px; background: var(--creme); overflow: hidden; }
.chrono-barre span { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(45deg, var(--pc) 0 12px, #fff 12px 20px); transition: width .25s linear; }
.chrono-texte { min-width: 52px; font-family: var(--police-titre); font-size: 1.2rem; }
.chrono.sans .chrono-barre span { width: 100% !important; background: var(--menthe); }
.pastilles { display: flex; gap: 6px; }
.pastilles i { width: 18px; height: 18px; border: 2px solid var(--encre); border-radius: 50%; background: var(--papier); }
.pastilles i.juste { background: var(--vert); }
.pastilles i.rate { background: var(--rose); }
.pastilles i.encours { background: var(--jaune); }
.calcul { margin: 0; font-family: var(--police-titre); font-size: clamp(2rem, 9vw, 3rem); white-space: nowrap; }
.saisie { display: flex; gap: 10px; justify-content: center; align-items: center; width: 100%; }
.saisie .champ { width: min(200px, 60%); }
.champ.flash-ok { background: #CFF3D6; }
.champ.flash-non { background: #FFD6E4; }
.pave { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(320px, 100%); }
.pave .btn { padding: 10px 0; font-size: 1.3rem; font-family: var(--police-titre); box-shadow: 3px 3px 0 var(--encre); }
.pave .btn.ok { background: var(--vert); }

/* Résultat */
.revoir { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.revoir-titre { width: 100%; margin: 0; font-weight: 800; }
.revoir span { padding: 4px 10px; border: 2px solid var(--encre); border-radius: 10px; background: #FFE9F2; font-weight: 800; }

@media (max-width: 520px) {
  body { padding: 12px; }
  .bienvenue { flex-direction: column; text-align: center; }
  .chapiteau svg { width: 90px; height: 90px; }
  .attractions { grid-template-columns: 1fr 1fr; gap: 12px; }
  .attraction { padding: 12px 8px; }
  .attraction svg { width: 64px; height: 64px; }
  .attraction strong { font-size: 1rem; }
  .tickets { gap: 8px; }
  .ticket { min-height: 62px; }
  .ticket .n { font-size: 1.25rem; }
  .ticket .etat { font-size: .58rem; }
  .chapiteau { flex: 0 0 auto; }
  .jeu-carte { padding: 22px 14px; }
}
