/* Téléphones des joueurs */
body.joueur { --eq: #ff4f7b; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.entete { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1rem; min-height: 3.6rem; }
.entete .logo { font-size: 1.05rem; }
.entete .score-equipe { font-family: var(--titre); font-size: 1.15rem; color: var(--or); white-space: nowrap; }
.entete .pastille-equipe { font-size: .95rem; max-width: 70vw; overflow: hidden; }
.entete .pastille-equipe .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran { flex: 1; display: flex; flex-direction: column; padding: .4rem 1rem 1rem; min-height: 0; }
.pied { text-align: center; padding: .4rem 1rem 1rem; color: var(--doux); font-size: .85rem; }
.pied button { background: none; border: 0; color: inherit; text-decoration: underline; padding: .2rem; }

.centre { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem; }
.centre h1 { font-size: 1.9rem; margin: 0; line-height: 1.15; }
.centre p { margin: 0; color: var(--doux); font-size: 1.1rem; line-height: 1.4; max-width: 22rem; }
.discret { color: var(--doux); }
.grand-logo { font-size: 2rem; }
.gros-emoji { font-size: 5rem; line-height: 1; }
.flotte { animation: flotter 2.4s ease-in-out infinite; display: inline-block; }
.notes { font-size: 2rem; letter-spacing: .6rem; opacity: .8; }
.notes span { display: inline-block; animation: flotter 2s ease-in-out infinite; }
.notes span:nth-child(2) { animation-delay: -.6s; }
.notes span:nth-child(3) { animation-delay: -1.2s; }

/* choix du prénom */
.bienvenue { text-align: center; padding: .6rem 0 1rem; }
.bienvenue h1 { font-family: var(--titre); font-weight: 400; font-size: 1.7rem; margin: .5rem 0 .2rem; line-height: 1.1; }
.bienvenue p { margin: 0; font-size: 1.25rem; font-weight: 600; }
.grille-noms { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.nom-btn { padding: 1rem .6rem; border-radius: 16px; border: 2px solid var(--bord); background: var(--verre); font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.nom-btn:active { transform: scale(.96); background: var(--pale); }
.nom-btn .tel { font-size: .85rem; opacity: .7; }

/* équipe tirée */
.splash { flex: 1; margin: -.4rem -1rem -1rem; padding: 1.5rem 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem;
  background: var(--eq); /* vieux navigateurs sans color-mix() */
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--eq) 70%, #fff) 0%, var(--eq) 45%, color-mix(in srgb, var(--eq) 50%, #13062c) 100%); color: #1a0b33; }
.splash .gros-emoji { font-size: 6.5rem; animation: surgir .7s cubic-bezier(.2, .9, .3, 1.3) both, flotter 2.4s 1s ease-in-out infinite; }
.splash .petit { font-size: 1.2rem; font-weight: 600; }
.splash h1 { font-family: var(--titre); font-weight: 400; font-size: 2.1rem; line-height: 1.05; margin: 0; }
.splash .coequipiers { font-size: 1.05rem; font-weight: 600; max-width: 22rem; }
.splash .coequipiers span { display: inline-block; background: rgba(255, 255, 255, .45); padding: .2rem .6rem; border-radius: 999px; margin: .15rem; }

/* annonce */
.annonce-tel .num { font-family: var(--titre); font-size: 3.4rem; line-height: 1; }
.annonce-tel .consigne-tel { font-size: 1.6rem; font-weight: 700; }
.annonce-tel .consigne-tel b { color: var(--or); }
.or-tel { font-family: var(--titre); background: linear-gradient(90deg, #ffb020, #ffe27a, #ffb020); color: #3a2200; padding: .4rem .9rem; border-radius: 12px; animation: pulser 1.2s ease-in-out infinite; }
.ecoute { font-size: 3.6rem; animation: pulser 1s ease-in-out infinite; }

/* question : artiste et titre tapés */
.chrono-tel { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: .2rem 0 .8rem; flex: none; }
.chrono-tel i { display: block; height: 100%; width: 100%; background: var(--vert); border-radius: 999px; transform-origin: left; }
.chrono-tel.urgent i { background: var(--rouge); }
.consigne-q { text-align: center; font-weight: 700; font-size: 1.25rem; margin: 0 0 .7rem; }
.saisies { display: flex; flex-direction: column; gap: .9rem; }
.champ-rep { display: flex; flex-direction: column; gap: .35rem; padding: .8rem; border-radius: 18px; background: var(--verre); border: 2px solid var(--bord); animation: monter .35s both; }
.champ-rep + .champ-rep { animation-delay: .06s; }
.champ-rep label { font-weight: 700; font-size: 1.05rem; }
/* 18 px minimum : en dessous, l'iPhone zoome sur le champ */
.champ-rep input { width: 100%; font-size: 18px; padding: .8rem .9rem; border-radius: 12px; border: 0; background: #fff; color: #1a0b33; font-weight: 600;
  -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; }
.champ-rep input:focus { outline: 3px solid var(--eq); outline-offset: 2px; }
.champ-rep input::placeholder { color: #8d84a3; font-weight: 500; }
.champ-rep.verrouille { border-color: var(--eq); background: color-mix(in srgb, var(--eq) 18%, transparent); animation: surgir .4s both; }
.verrou { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.verrou small { display: block; font-size: .85rem; font-weight: 500; color: var(--doux); margin-top: .15rem; }
.saisies .envoyer { width: 100%; margin-top: .2rem; }
.lien-fini { background: none; border: 0; color: var(--doux); text-decoration: underline; font-size: 1rem; padding: .3rem; }
.aide-rep { text-align: center; color: var(--doux); font-size: .9rem; line-height: 1.4; margin: .8rem 0 0; }
.aide-rep b { color: var(--or); }
.envoye { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; text-align: center; }
.envoye h2 { margin: 0; font-size: 1.8rem; }
.envoye p { margin: 0; color: var(--doux); font-size: 1.05rem; }
.recap-envoi { width: 100%; max-width: 22rem; display: grid; gap: .5rem; }
.ligne-envoi { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; background: var(--verre); border: 2px solid var(--bord); text-align: left; }
.ligne-envoi b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 1.1rem; }
.ligne-envoi small { color: var(--doux); font-size: .8rem; }

/* résultat */
.resultat { flex: 1; margin: -.4rem -1rem -1rem; padding: 1.5rem 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem; }
.resultat.juste { background: radial-gradient(circle at 50% 30%, #4af2b0, #12a36b 70%); color: #06331f; }
.resultat.faux { background: radial-gradient(circle at 50% 30%, #ff7b93, #c0183d 75%); }
.resultat.vide { background: radial-gradient(circle at 50% 30%, #6b5a9a, #2a1a55 75%); }
.resultat.partiel { background: radial-gradient(circle at 50% 30%, #ffd166, #e0891a 75%); color: #3a2200; }
.lignes-res { width: 100%; max-width: 24rem; display: grid; gap: .4rem; }
.ligne-res { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: 14px; background: rgba(0, 0, 0, .2); color: #fff; text-align: left; font-weight: 600; }
.ligne-res .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ligne-res .pts { font-family: var(--titre); white-space: nowrap; }
.ligne-res.ok .pts { color: #7dffc4; }
.ligne-res.ko .pts { color: #ffb3c0; }
.ligne-res.bonus { background: rgba(255, 255, 255, .28); color: inherit; }
.ligne-res.bonus .pts { color: inherit; }
.ligne-res.info { background: transparent; border: 1px dashed rgba(255, 255, 255, .45); font-weight: 500; font-size: .92rem; opacity: .9; }
.resultat .gros-emoji { animation: surgir .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.resultat h1 { font-family: var(--titre); font-weight: 400; font-size: 2rem; margin: 0; }
.resultat .points { font-family: var(--titre); font-size: 3.2rem; line-height: 1; animation: surgir .6s .25s both; }
.resultat .serie { font-weight: 700; font-size: 1.15rem; }
.resultat .morceau { display: flex; align-items: center; gap: .8rem; background: rgba(0, 0, 0, .22); color: #fff; padding: .6rem .8rem; border-radius: 16px; max-width: 24rem; text-align: left; }
.resultat .morceau img, .resultat .morceau .sans { width: 3.6rem; height: 3.6rem; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--r2); font-size: 1.8rem; }
.resultat .morceau b { display: block; font-size: 1.05rem; }
.resultat .morceau span { font-size: .95rem; opacity: .85; }

/* classement */
.mon-rang { font-family: var(--titre); font-size: 4.2rem; line-height: 1; }
.mini-classement { width: 100%; max-width: 24rem; display: grid; gap: .45rem; margin-top: .6rem; }
.mini-ligne { --c: #a3e635; display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 2px solid transparent; font-weight: 600; text-align: left; }
.mini-ligne.moi { border-color: var(--c); background: rgba(255, 255, 255, .16); background: color-mix(in srgb, var(--c) 22%, transparent); }
.mini-ligne .r { width: 1.8rem; font-family: var(--titre); }
.mini-ligne .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ligne .s { font-family: var(--titre); color: var(--or); }
