* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
.player-body {
    font-family: system-ui, "Segoe UI", Roboto, sans-serif;
    background: #0e1117; color: #e8edf2;
    display: flex; justify-content: center; min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}
.phone { width: 100%; max-width: 480px; padding: 18px; display: flex; flex-direction: column; min-height: 100vh; }

/* Connexion */
.join-screen h1 { text-align: center; }
.pform { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.pform label { font-size: .9rem; color: #95a3b3; }
.pform input {
    background: #161b24; border: 1px solid #2a3340; color: #fff;
    border-radius: 10px; padding: 14px; font-size: 1.1rem;
}
.code-input { text-transform: uppercase; letter-spacing: 6px; text-align: center; font-size: 1.6rem; }
.pbtn {
    background: #7CFC00; color: #07210a; border: none; border-radius: 12px;
    padding: 16px; font-size: 1.1rem; font-weight: 800; cursor: pointer; margin-top: 8px;
}
.err { color: #e63946; text-align: center; }

/* Écran de jeu */
.pheader { display: flex; justify-content: center; align-items: center; }
.pnick { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.pdot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--accent); }
.pscores { display: flex; justify-content: space-around; margin: 12px 0; color: #95a3b3; }
.pscores strong { color: #7CFC00; font-size: 1.3rem; }
.pstatus { text-align: center; color: #95a3b3; margin-top: 40px; font-size: 1.1rem; }
.hidden { display: none !important; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; flex: 1; }
.calc {
    background: #161b24; border: 2px solid #2a3340; color: #fff;
    border-radius: 16px; font-size: clamp(1.6rem, 9vw, 2.6rem); font-weight: 800;
    cursor: pointer; min-height: 110px; transition: transform .08s, background .1s;
}
.calc:active { transform: scale(.95); background: #243042; border-color: var(--accent, #7CFC00); }

.feedback { text-align: center; min-height: 32px; margin: 10px 0; font-weight: 800; font-size: 1.2rem; opacity: 0; transition: opacity .15s; }
.feedback.show { opacity: 1; }
.feedback.good { color: #7CFC00; }
.feedback.bad { color: #e63946; }

.endcard { text-align: center; margin-top: 30px; }
.endcard h2 { font-size: 2rem; }
.end-scores { list-style: none; padding: 0; }
.end-scores li { background: #161b24; border-radius: 8px; padding: 10px; margin: 6px 0; display: flex; align-items: center; gap: 8px; }
.end-scores b { margin-left: auto; color: #7CFC00; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
