
:root {
    --navy: #102C3A;
    --yellow: #F6C453;
    --coral: #E45D43;
    --cream: #F7F4ED;
    --white: #FFFFFF;
    --muted: #68777C;
    --text: #52636A;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    color: var(--navy);
    font-family: "Nunito Sans", sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

[hidden] {
    display: none !important;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 7%;
}

.logo {
    color: var(--navy);
    text-decoration: none;
    font-family: "Fredoka", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-align: center;
    white-space: nowrap;
}

.logo span {
    color: var(--coral);
    margin-left: 5px;
}

.logo:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 5px;
    border-radius: 4px;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 55px 7%;
}

.hero {
    width: 100%;
    max-width: 760px;
    text-align: center;
    animation: appear 0.7s ease-out both;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.7;
}

h1 {
    font-family: "Fredoka", sans-serif;
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -2px;
}

h1 span {
    color: var(--coral);
}

.hero-description {
    max-width: 490px;
    margin: 30px auto;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.8;
}

.start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 60px;
    padding: 17px 28px;
    border: 2px solid var(--navy);
    border-radius: 16px;
    background: var(--navy);
    color: var(--white);
    font-family: "Nunito Sans", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button-label {
    line-height: 1.4;
}

.button-icon {
    flex-shrink: 0;
    color: var(--yellow);
    transition: transform 0.2s ease;
}

.start-button:hover:not(:disabled) {
    background: var(--coral);
    border-color: var(--coral);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(16, 44, 58, 0.12);
}

.start-button:hover .button-icon {
    transform: scale(1.15);
}

.start-button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 5px;
}

.start-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.hero-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.8;
}

.hero-note span {
    margin: 0 5px;
    color: var(--coral);
}

.footer {
    padding: 22px 7%;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================================
   INSCRIPTION DES JOUEURS
========================================= */

.players-screen,
.duos-screen {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    animation: appear 0.4s ease-out both;
}

.back-button {
    margin-bottom: 30px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.back-button:hover {
    color: var(--coral);
}

.screen-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.screen-title span {
    color: var(--coral);
}

.screen-description {
    margin: 20px 0 30px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 900;
}

.player-input-row {
    display: flex;
    gap: 10px;
}

.player-input-row input {
    min-width: 0;
    flex: 1;
    padding: 15px;
    border: 2px solid #DEDCD4;
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    outline: none;
}

.player-input-row input:focus {
    border-color: var(--coral);
}


/* Bouton Ajouter un joueur */

/* Bouton circulaire Ajouter */
.add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;

    border: 2px solid #102C3A;
    border-radius: 50%;

    background: #102C3A;
    color: #F6C453;

    font-family: "Nunito Sans", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;

    cursor: pointer;
    flex-shrink: 0;

    box-shadow: 0 4px 0 #0A1E27;
    transition: all 0.2s ease;
}

.add-button:hover {
    background: #F6C453;
    color: #102C3A;
    border-color: #F6C453;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #D9A936;
}

.add-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #D9A936;
}

.add-button:focus-visible {
    outline: 3px solid #E45D43;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .add-button {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 29px;
    }
}




.form-message {
    min-height: 24px;
    margin-top: 8px;
    color: var(--coral);
    font-size: 0.85rem;
    font-weight: 800;
}

.players-list-section {
    margin-top: 25px;
}

.players-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.players-list-heading h2 {
    font-family: "Fredoka", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.player-count {
    padding: 6px 12px;
    border-radius: 20px;
    background: #E9E5DA;
    font-size: 0.8rem;
    font-weight: 900;
}

.players-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #E5E0D5;
    border-radius: 12px;
    background: var(--white);
}

.player-name {
    overflow-wrap: anywhere;
    font-weight: 800;
}

.remove-player {
    flex-shrink: 0;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: #FBE5DF;
    color: #A33324;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
}

.players-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.continue-button {
    width: 100%;
    margin-top: 28px;
}

.continue-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================
   RÉVÉLATION DES DUOS
========================================= */

.duos-screen {
    text-align: center;
}

.duos-screen .eyebrow {
    margin-bottom: 18px;
}

.duo-card {
    position: relative;
    overflow: hidden;
    margin: 32px 0 26px;
    padding: 28px 22px;
    border: 1px solid rgba(246, 196, 83, 0.5);
    border-radius: 26px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 14px 35px rgba(16, 44, 58, 0.14);
}

.duo-number {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.duo-names {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 28px 0;
}

.duo-names span:not(.duo-ampersand) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 112px;
    padding: 14px 8px;
    border: 1px solid rgba(16, 44, 58, 0.08);
    border-radius: 18px;
    background: var(--cream);
    color: var(--navy);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.duo-names .duo-ampersand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--coral);
    color: var(--white);
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.duo-message {
    color: #E6E9E7;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.duo-card.reveal {
    animation: duoReveal 0.55s ease-out both;
}

.all-duos {
    margin-top: 35px;
    text-align: left;
    animation: appear 0.5s ease-out both;
}

.all-duos h2 {
    margin-bottom: 15px;
    font-family: "Fredoka", sans-serif;
    font-size: 1.6rem;
}

#all-duos-list {
    display: grid;
    gap: 12px;
    list-style: none;
}

#all-duos-list li {
    position: relative;
    padding: 17px 18px 17px 22px;
    border: 1px solid #E5E0D5;
    border-left: 5px solid var(--coral);
    border-radius: 14px;
    background: var(--white);
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.6;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 12px rgba(16, 44, 58, 0.04);
}

#all-duos-list li:nth-child(even) {
    border-left-color: var(--yellow);
}

/* =========================================
   SAISIE DES MOTS
========================================= */

#words-screen {
    width: min(100% - 32px, 560px);
    margin: 0 auto;
    padding: 32px 0 48px;
}

#words-screen .section-heading {
    margin-bottom: 28px;
    text-align: center;
}

#words-screen .eyebrow {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

#words-screen .section-heading h1 {
    margin: 10px 0;
    color: var(--navy);
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.08;
}

#word-private-screen,
#next-player-screen,
#words-finished-screen {
    padding: clamp(22px, 6vw, 36px);
    border: 1px solid rgba(16, 44, 58, 0.08);
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 16px 45px rgba(16, 44, 58, 0.08);
}

.word-lock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
}

#word-player-name,
#next-player-screen h2,
#words-finished-screen h2 {
    margin: 20px 0 8px;
    color: var(--navy);
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 1.2;
}

#word-private-screen > p,
#next-player-screen p,
#words-finished-screen p {
    color: #64727A;
    line-height: 1.65;
}

#words-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

#word-inputs {
    display: grid;
    gap: 12px;
}

#word-inputs .word-input {
    width: 100%;
    min-height: 56px;
    padding: 0 17px;
    border: 1.5px solid #E5E5DF;
    border-radius: 15px;
    outline: none;
    background: var(--cream);
    color: var(--navy);
    font: inherit;
    font-size: 1rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

#word-inputs .word-input::placeholder {
    color: #899398;
}

#word-inputs .word-input:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(228, 93, 67, 0.12);
}

#words-count {
    margin: 0;
    color: #64727A;
    font-size: 0.88rem;
    font-weight: 700;
}

#words-form .button,
#next-player-screen .button,
#words-finished-screen .button {
    width: 100%;
    min-height: 54px;
    border-radius: 15px;
    font: inherit;
    font-weight: 800;
}

#add-word-button {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px dashed #D4D6D0;
    border-radius: 14px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#add-word-button:hover:not(:disabled) {
    border-color: var(--coral);
    background: #FFF8F5;
}

#add-word-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

#words-message {
    margin: 0;
    color: #C33F31;
    font-size: 0.9rem;
    font-weight: 700;
}

#next-player-screen,
#words-finished-screen {
    text-align: center;
}

#next-player-screen h2,
#words-finished-screen h2 {
    margin-top: 0;
}

#ready-button,
#prepare-salad-button {
    margin-top: 20px;
}

/* =========================================
   ÉCRAN DE JEU
========================================= */

.game-screen {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
    animation: appear 0.4s ease-out both;
}

.game-screen .eyebrow {
    margin-bottom: 16px;
}

.game-title {
    color: var(--navy);
    font-size: clamp(2.4rem, 8vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -1px;
}

.game-title span {
    color: var(--coral);
}

.game-description {
    margin: 16px 0 26px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
}

.game-card {
    min-width: 0;
    padding: clamp(22px, 6vw, 34px);
    border: 1px solid rgba(246, 196, 83, 0.45);
    border-radius: 28px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 16px 40px rgba(16, 44, 58, 0.14);
}

.game-mimer-label {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#game-mimer-name {
    margin-top: 10px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.game-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    margin: 24px auto 8px;
    border: 5px solid var(--yellow);
    border-radius: 50%;
    background: var(--cream);
    color: var(--navy);
    font-family: "Fredoka", sans-serif;
    font-size: 3.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.game-timer.timer-warning {
    border-color: var(--coral);
    color: var(--coral);
    animation: timerPulse 0.8s ease-in-out infinite alternate;
}

.game-timer-caption {
    color: #D9E0E1;
    font-size: 0.82rem;
    font-weight: 700;
}

.game-word-container {
    margin-top: 26px;
    padding: 20px 16px;
    border-radius: 18px;
    background: var(--cream);
    color: var(--navy);
}

.game-word-container > p {
    color: var(--coral);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.game-word {
    margin-top: 10px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.8rem, 7vw, 2.7rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.game-message {
    min-height: 28px;
    margin: 22px 0 18px;
    color: #E6E9E7;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.button-primary {
    background: var(--yellow);
    color: var(--navy);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
}

.game-card > #reveal-word-button {
    width: 100%;
}

.game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.game-actions .button {
    width: 100%;
}

.game-score {
    margin-top: 22px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
}

#next-turn-button {
    width: 100%;
    margin-top: 18px;
    background: var(--navy);
    color: var(--white);
}

/* =========================================
   BARRE DE SCORES — PRIORITÉ MOBILE
========================================= */

.score-board {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid var(--yellow);
    border-radius: 14px;
    background: var(--navy);
    color: var(--cream);
    box-shadow: 0 4px 12px rgba(16, 44, 58, 0.12);
}

.score-board[hidden] {
    display: none !important;
}

.score-board-title {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 800;
    text-align: left;
}

/* Défilement horizontal des équipes */
.score-board-list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) transparent;
    -webkit-overflow-scrolling: touch;
}

.score-board-list::-webkit-scrollbar {
    height: 4px;
}

.score-board-list::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--yellow);
}

.score-team {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: max-content;
    min-width: 115px;
    max-width: 175px;
    padding: 8px 10px;
    border: 1px solid rgba(247, 244, 237, 0.12);
    border-radius: 10px;
    background: rgba(247, 244, 237, 0.07);
}

.score-team-active {
    border-color: var(--yellow);
    background: rgba(246, 196, 83, 0.15);
}

.score-team-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.score-team-number {
    color: var(--yellow);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.score-team-names {
    max-width: 100px;
    color: var(--cream);
    font-size: 0.75rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.score-team-value {
    display: flex;
    flex-shrink: 0;
    align-items: baseline;
    gap: 3px;
}

.score-team-points {
    color: var(--yellow);
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.score-team-label {
    color: var(--cream);
    font-size: 0.65rem;
}

/* =========================================
   CLASSEMENT FINAL
========================================= */

.results-screen {
    width: min(100% - 32px, 620px);
    margin: 30px auto;
    padding: 32px 24px;
    background: var(--cream);
    border: 1px solid rgba(16, 44, 58, 0.10);
    border-radius: 28px;
    color: var(--navy);
    text-align: center;
    box-shadow: 0 18px 50px rgba(16, 44, 58, 0.09);
}

.results-screen .eyebrow {
    margin-bottom: 10px;
    color: var(--coral);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.results-screen .game-title {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
}

.results-screen .game-description {
    max-width: 420px;
    margin: 0 auto 28px;
    color: #58676C;
    line-height: 1.6;
}

/* Carte du duo gagnant */

.winner-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 32px;
    padding: 28px 20px;
    border-radius: 24px;
    background: var(--navy);
    color: var(--cream);
}

.winner-card::before,
.winner-card::after {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(246, 196, 83, 0.25);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.winner-card::before {
    top: -55px;
    right: -30px;
}

.winner-card::after {
    bottom: -65px;
    left: -30px;
}

.winner-label {
    position: relative;
    margin: 0 0 14px;
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.winner-names {
    position: relative;
    margin: 0 auto 14px;
    color: var(--white);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.winner-points {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 900;
}

/* Classement des équipes */

.results-screen .ranking-title {
    margin: 0 0 16px;
    text-align: left;
    font-family: "Fredoka", sans-serif;
    font-size: 1.4rem;
}

.results-ranking {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.results-ranking-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 14px;
    border: 1px solid #E6E2D8;
    border-radius: 16px;
    background: var(--white);
}

.results-ranking-item.results-ranking-winner {
    border-color: var(--yellow);
    background: #FFF9E9;
}

.ranking-position {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #E9EEF0;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 900;
}

.results-ranking-winner .ranking-position {
    background: var(--yellow);
}

.ranking-team {
    min-width: 0;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ranking-points {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

/* Boutons de fin de partie */

.results-screen .restart-button {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    margin: 8px 0 0;
    padding: 16px 24px;
    border: 0;
    border-radius: 16px;
    background: var(--coral);
    color: var(--white);
    font-family: "Nunito Sans", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.results-screen .restart-button:hover {
    background: #CB4932;
    box-shadow: 0 8px 20px rgba(228, 93, 67, 0.22);
    transform: translateY(-2px);
}

.results-screen .restart-button:active {
    transform: translateY(0);
}

.results-screen .restart-button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

/* =========================================
   BOUTON ARRÊTER LA PARTIE
========================================= */

.stop-game-button {
    display: flex;
    width: min(100% - 32px, 420px);
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 32px;
    padding: 14px 22px;
    border: 1px solid rgba(228, 93, 67, 0.35);
    border-radius: 16px;
    background: #FFF1ED;
    color: #B83B28;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stop-game-button::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 3px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.stop-game-button:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(228, 93, 67, 0.20);
    transform: translateY(-2px);
}

.stop-game-button:hover::before {
    transform: rotate(45deg);
}

.stop-game-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.stop-game-button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.stop-game-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes duoReveal {
    0% {
        opacity: 0.55;
        transform: translateY(10px) scale(0.97);
    }

    65% {
        opacity: 1;
        transform: translateY(-3px) scale(1.01);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes timerPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

/* =========================================
   RESPONSIVE — TABLETTES ET TÉLÉPHONES
========================================= */

@media (max-width: 600px) {
    .header {
        padding: 22px 6%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo span {
        margin-left: 4px;
    }

    main {
        padding: 35px 6%;
    }

    .eyebrow {
        max-width: 100%;
        margin-bottom: 24px;
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    h1 {
        font-size: clamp(3.7rem, 15vw, 5.5rem);
        letter-spacing: -1px;
    }

    .hero-description {
        margin: 26px auto;
        font-size: 1rem;
        line-height: 1.75;
    }

    .start-button {
        width: 100%;
        max-width: 340px;
        min-height: 60px;
        padding: 16px 20px;
    }

    .hero-note {
        font-size: 0.78rem;
    }

    .footer {
        padding: 20px 6%;
    }

    .players-screen,
    .duos-screen {
        max-width: 100%;
    }

    .screen-description {
        font-size: 0.95rem;
    }

    .player-input-row {
        gap: 8px;
    }

    .player-input-row input {
        padding: 13px 11px;
    }

.add-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;

    padding: 0 !important;
    border: 1px solid #102C3A;
    border-radius: 50% !important;

    background: #102C3A;
    color: #F6C453;

    font-family: "Nunito Sans", sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;

    flex: 0 0 36px;
    cursor: pointer;
    box-shadow: 0 3px 0 #0A1E27;

    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.add-button:hover {
    background: #F6C453;
    color: #102C3A;
    border-color: #F6C453;
    transform: translateY(-2px);
}

.add-button:active {
    transform: scale(0.9);
}

    .duo-card {
        padding: 25px 14px;
    }

    .duo-names {
        grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
        gap: 7px;
        margin: 25px 0;
    }

    .duo-names .duo-ampersand {
        width: 32px;
        height: 32px;
    }

    .duo-names span:not(.duo-ampersand) {
        min-height: 100px;
        padding: 10px 5px;
        font-size: clamp(1rem, 4vw, 1.35rem);
    }

    #words-screen {
        width: min(100% - 24px, 560px);
        padding-top: 22px;
    }

    #word-private-screen,
    #next-player-screen,
    #words-finished-screen {
        border-radius: 22px;
    }

    .game-card {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .game-timer {
        width: 108px;
        height: 108px;
        font-size: 3rem;
    }

    .game-actions {
        grid-template-columns: 1fr;
    }

    .score-board {
        padding: 9px 10px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .score-board-title {
        font-size: 0.8rem;
    }

    .score-team {
        min-width: 108px;
        max-width: 155px;
        padding: 8px;
        gap: 7px;
    }

    .score-team-names {
        max-width: 85px;
        font-size: 0.72rem;
    }

    .score-team-points {
        font-size: 1rem;
    }

    .results-screen {
        width: calc(100% - 20px);
        margin: 18px auto;
        padding: 24px 14px;
        border-radius: 22px;
    }

    .winner-card {
        padding: 24px 14px;
    }

    .results-ranking-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px 9px;
    }

    .ranking-position {
        width: 34px;
        height: 34px;
    }

    .ranking-team,
    .ranking-points {
        font-size: 0.8rem;
    }

    .stop-game-button {
        width: calc(100% - 24px);
        min-height: 48px;
        margin: 16px auto 24px;
        font-size: 0.9rem;
    }
}

/* =========================================
   TRÈ PETITS ÉCRANS
========================================= */

@media (max-width: 380px) {
    .logo {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .eyebrow {
        letter-spacing: 1.5px;
    }

    .duo-card {
        padding: 22px 10px;
    }

    .duo-names {
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
        gap: 5px;
    }

    .duo-names .duo-ampersand {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .duo-names span:not(.duo-ampersand) {
        min-height: 90px;
        font-size: 0.98rem;
    }

    .score-board {
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 11px;
    }

    .score-team {
        min-width: 100px;
        max-width: 140px;
        padding: 7px;
        gap: 6px;
    }

    .score-team-names {
        max-width: 75px;
        font-size: 0.68rem;
    }

    .score-team-points {
        font-size: 0.95rem;
    }

    .results-screen {
        padding: 22px 12px;
    }
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================
   SENEGAL CHALLENGE — SCOREBOARD PREMIUM
   ========================================= */

.score-board {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 22px;
    padding: 16px;
    overflow: hidden;

    background: #102C3A;
    color: #F7F4ED;

    border: 1px solid rgba(246, 196, 83, 0.35);
    border-radius: 22px;

    box-shadow:
        0 10px 24px rgba(16, 44, 58, 0.12),
        0 3px 8px rgba(16, 44, 58, 0.06);
}

.score-board[hidden] {
    display: none !important;
}

/* Titre du tableau */
.score-board h2,
.score-board h3,
.score-board > p:first-child {
    margin-top: 0;
}

/* Liste horizontale des équipes */
.score-board-list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 4px 2px 9px;
    margin: 0;

    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #F6C453 transparent;
}

/* Carte de chaque duo */
.score-team {
    position: relative;

    display: flex;
    flex: 0 0 155px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;

    min-width: 0;
    max-width: 190px;
    min-height: 108px;

    padding: 14px;
    overflow: hidden;

    background: #1A3542;
    color: #F7F4ED;

    border: 1px solid rgba(247, 244, 237, 0.09);
    border-radius: 17px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

/* Textes à l'intérieur des cartes */
.score-team span,
.score-team p {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Score plus visible */
.score-team strong {
    color: #F6C453;
    font-size: 1.35rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Petite interaction au toucher */
.score-team:active {
    transform: scale(0.98);
}

/* Mobile */
@media (max-width: 480px) {
    .score-board {
        padding: 13px;
        margin-bottom: 20px;
        border-radius: 19px;
    }

    .score-board-list {
        gap: 10px;
    }

    .score-team {
        flex-basis: 145px;
        min-height: 105px;
        padding: 12px;
        border-radius: 15px;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .score-team {
        transition: none;
    }
}


/* =====================================
   SENEGAL CHALLENGE — PLAYFUL SCOREBOARD
   ===================================== */

.score-board {
    border: 0;
    border-radius: 30px 30px 24px 24px;
    padding: 17px 15px 13px;
    background: #102C3A;
    box-shadow: 0 7px 0 #D8D0C1, 0 12px 22px rgba(16, 44, 58, 0.12);
}

/* Défilement des équipes */
.score-board-list {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 7px 4px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #F6C453 transparent;
    -webkit-overflow-scrolling: touch;
}

/* Cartes arrondies, ambiance jeu entre amis */
.score-team {
    position: relative;
    flex: 0 0 152px;
    min-height: 112px;
    padding: 15px 13px;
    gap: 9px;

    border: 2px solid rgba(247, 244, 237, 0.08);
    border-radius: 25px 25px 25px 12px;

    background: #244451;
    color: #F7F4ED;

    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.13);

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

/* Petit effet rebondi au toucher */
.score-team:active {
    transform: scale(0.96) rotate(-1deg);
}

/* Noms des équipes */
.score-team span,
.score-team p {
    overflow-wrap: anywhere;
    line-height: 1.25;
}

/* Gros score bien visible */
.score-team strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    min-height: 38px;
    padding: 5px 10px;

    border-radius: 15px 15px 15px 5px;
    background: #F6C453;
    color: #102C3A;

    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

/* Mobile */
@media (max-width: 480px) {
    .score-board {
        padding: 14px 12px 10px;
        border-radius: 27px 27px 22px 22px;
    }

    .score-board-list {
        gap: 10px;
    }

    .score-team {
        flex-basis: 143px;
        min-height: 106px;
        padding: 13px 11px;
        border-radius: 23px 23px 23px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .score-team {
        transition: none;
    }
}


/* =====================================
   BOUTON RETOUR — DESIGN MODERNE
   ===================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 46px;
    padding: 0 18px;

    background-color: #FFFFFF;
    color: #102C3A;

    border: 1px solid #E4E8E9;
    border-radius: 14px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    box-shadow: 0 3px 10px rgba(16, 44, 58, 0.06);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.back-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
    line-height: 1;
    font-weight: 500;

    transition: transform 0.2s ease;
}

.back-button:hover {
    background-color: #F7F4ED;
    border-color: #D7DCD9;
    box-shadow: 0 5px 14px rgba(16, 44, 58, 0.09);
}

.back-button:hover .back-button-icon {
    transform: translateX(-3px);
}

.back-button:active {
    transform: scale(0.97);
}

.back-button:focus-visible {
    outline: 3px solid #F6C453;
    outline-offset: 3px;
}

/* =====================================
   BOUTON RETOUR CIRCULAIRE
   ===================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;

    background: #FFFFFF;
    color: #102C3A;

    border: 1px solid #E4E8E9;
    border-radius: 50%;

    box-shadow: 0 3px 10px rgba(16, 44, 58, 0.07);

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.back-button svg {
    display: block;
    flex-shrink: 0;
}

.back-button:hover {
    background: #102C3A;
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(16, 44, 58, 0.16);
}

.back-button:active {
    transform: scale(0.92);
}

.back-button:focus-visible {
    outline: 3px solid #F6C453;
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 600px) {
    .back-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* Respecter les préférences d'animation */
@media (prefers-reduced-motion: reduce) {
    .back-button {
        transition: none;
    }
}


/* Titre de l'écran des joueurs */
.players-screen h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #102C3A;
    text-wrap: balance;
}

/* Sur téléphone */
@media (max-width: 600px) {
    .players-screen h1 {
        font-size: 1.85rem;
        letter-spacing: -0.7px;
        line-height: 1.2;
    }
}


/* ===== ÉCRAN JOUEURS : STYLE FUN ET MODERNE ===== */

.players-screen .players-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 26px 0 12px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #FFF0D0;
    color: #102C3A;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.players-eyebrow .eyebrow-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #E45D43;
    box-shadow: 0 0 0 4px rgba(228, 93, 67, 0.12);
}

.players-screen .screen-title {
    max-width: 560px;
    margin: 0 0 12px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.8px;
    color: #102C3A;
}

.players-screen .screen-title span {
    color: #E45D43;
}

.players-screen .screen-description {
    max-width: 420px;
    margin: 0 0 28px;
    color: #687780;
    font-size: 1rem;
    line-height: 1.65;
}

/* Adaptation mobile */
@media (max-width: 600px) {
    .players-screen .players-eyebrow {
        margin-top: 22px;
        margin-bottom: 12px;
        font-size: 0.66rem;
        letter-spacing: 0.8px;
    }

    .players-screen .screen-title {
        font-size: 2rem;
        line-height: 1.15;
        letter-spacing: -0.5px;
        margin-bottom: 10px;
    }

    .players-screen .screen-description {
        font-size: 0.93rem;
        line-height: 1.55;
        margin-bottom: 24px;
    }
}


/* Bouton Ajouter : moderne et dynamique */
.add-button {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: #F6C453;
    color: #102C3A;
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease,
                box-shadow 0.18s ease,
                background-color 0.18s ease;
}

.add-button:hover {
    background: #FFD36F;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(16, 44, 58, 0.12);
}

.add-button:active {
    transform: scale(0.96);
}

.add-button:focus-visible {
    outline: 3px solid #E45D43;
    outline-offset: 3px;
}

/* Adaptation téléphone */
@media (max-width: 600px) {
    .add-button {
        min-height: 46px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 0.88rem;
    }
}



/* Zone des participants */
.players-list-section {
    margin-top: 30px;
}

.players-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.players-list-heading h2 {
    margin: 0;
    color: #102C3A;
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Compteur des joueurs */
.player-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #FFF0D0;
    color: #102C3A;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

/* Liste */
.players-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Chaque joueur : adapte ce style aux éléments générés par ton JavaScript */
.players-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid #E7E8E4;
    border-radius: 15px;
    background: #FFFFFF;
    color: #102C3A;
    box-shadow: 0 3px 10px rgba(16, 44, 58, 0.035);
    transition: border-color 0.2s ease,
                transform 0.2s ease;
}

.players-list li:hover {
    border-color: #F6C453;
    transform: translateY(-1px);
}

/* Message d'aide */
.players-hint {
    margin-top: 14px;
    color: #687780;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Espacement sur mobile */
@media (max-width: 600px) {
    .players-list-section {
        margin-top: 24px;
    }

    .players-list-heading h2 {
        font-size: 1.15rem;
    }

    .players-list li {
        min-height: 50px;
        padding: 11px 13px;
        border-radius: 13px;
    }

    .players-hint {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .add-button,
    .players-list li {
        transition: none;
    }
}


/* Bouton supprimer : cercle avec une croix */
.players-list li button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;

    border: 1px solid #F5D5CE;
    border-radius: 50%;
    background: #FFF2EF;
    color: #E45D43;

    font-family: "Nunito Sans", sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    flex-shrink: 0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.players-list li button:hover {
    background: #E45D43;
    color: #FFFFFF;
    border-color: #E45D43;
    transform: rotate(90deg);
}

.players-list li button:active {
    transform: scale(0.9);
}

.players-list li button:focus-visible {
    outline: 3px solid #F6C453;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .players-list li button {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}


/* Ligne d'ajout des joueurs */
.player-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Champ du nom */
.player-input-row input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;

    border: 2px solid #E4E0D6;
    border-radius: 14px;

    background: #FFFFFF;
    color: #102C3A;

    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;

    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.player-input-row input::placeholder {
    color: #9A9A94;
}

.player-input-row input:focus {
    border-color: #F6C453;
    box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.2);
}

/* Bouton rond + */
.add-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid #102C3A;
    border-radius: 50%;

    background: #102C3A;
    color: #F6C453;

    font-family: "Nunito Sans", sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 3px 0 #0A1E27;
    transition: all 0.2s ease;
}

.add-button:hover {
    background: #F6C453;
    color: #102C3A;
    border-color: #F6C453;
    transform: translateY(-2px);
}

.add-button:active {
    transform: scale(0.9);
}


/* Liste des joueurs */
.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

/* Carte d'un joueur */
.players-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 14px;
    border: 1px solid #E8E3D8;
    border-radius: 16px;

    background: #FFFFFF;
    color: #102C3A;

    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 3px 0 rgba(16, 44, 58, 0.05);
}

/* Bouton rond × */
.players-list li button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;

    border: 1px solid #F5D5CE;
    border-radius: 50%;

    background: #FFF2EF;
    color: #E45D43;

    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;

    transition: all 0.2s ease;
}

.players-list li button:hover {
    background: #E45D43;
    color: #FFFFFF;
    border-color: #E45D43;
    transform: rotate(90deg);
}


/* ================================
   DUOS — AFFICHAGE CENTRÉ
================================ */

.duos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.duo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 340px;
    min-height: 160px;
    padding: 26px 20px;

    border: 1px solid rgba(246, 196, 83, 0.25);
    border-radius: 24px;

    background: var(--navy);
    color: var(--white);
    text-align: center;

    box-shadow: 0 12px 28px rgba(16, 44, 58, 0.12);
}

.duo-card h3 {
    margin: 0 0 22px;
    color: var(--yellow);
    font-family: "Fredoka", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
}

.duo-card p,
.duo-card .duo-players {
    width: 100%;
    margin: 0;
    padding: 0;

    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.duo-card .duo-players {
    list-style: none;
}

.duo-card .duo-players li {
    margin: 5px 0;
    text-align: center;
}

/* Bouton de navigation */

.next-button {
    width: 100%;
    max-width: 340px;
    min-height: 54px;
    margin: 24px auto 0;
    border-radius: 15px;
}

/* Téléphones */

@media (max-width: 600px) {
    .duos-container {
        gap: 16px;
    }

    .duo-card {
        max-width: 100%;
        min-height: 150px;
        padding: 24px 16px;
    }

    .duo-card h3 {
        margin-bottom: 18px;
    }

    .next-button {
        max-width: 100%;
        margin-top: 20px;
    }
}



/* Centrer les noms à l'intérieur de la carte des duos */
.duo-names {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
    text-align: center;
}

.duo-names > span {
    text-align: center;
}

.duo-names .duo-ampersand {
    color: var(--yellow);
    font-weight: 700;
}


/* =========================================
   SENEGAL CHALLENGE — SAISIE DES MOTS
========================================= */

#words-screen {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 24px;
}

/* En-tête */

#words-screen .section-heading {
    margin-bottom: 24px;
    text-align: center;
}

#words-screen .section-heading .eyebrow {
    margin-bottom: 12px;
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#words-screen .section-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    line-height: 1.15;
}

#words-screen .section-heading > p:last-child {
    max-width: 360px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.6;
}

/* Zone de saisie */

#word-private-screen {
    padding: 22px;
    border: 1px solid rgba(16, 44, 58, 0.07);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Badge privé */

#words-screen .word-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: fit-content;
    margin: 0 auto 22px;
    padding: 9px 14px;

    border: 1px solid rgba(246, 196, 83, 0.45);
    border-radius: 999px;
    background: var(--yellow-light);
    color: var(--navy);

    font-size: 0.85rem;
    font-weight: 800;
}

#word-private-screen > h2 {
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.45rem;
}

#word-private-screen > p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: center;
}

/* Liste des champs */

#words-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#word-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#word-inputs .word-input {
    width: 100%;
    min-height: 62px;
    padding: 14px 16px;

    border: 1.5px solid var(--border);
    border-radius: 15px;
    background: #FCFBF8;
    color: var(--navy);

    font-size: 1rem;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#word-inputs .word-input::placeholder {
    color: #9AA4A7;
    font-weight: 500;
}

#word-inputs .word-input:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 44, 58, 0.07);
    outline: none;
}

/* Boutons de la page */

#words-screen .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 52px;
    padding: 13px 18px;

    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#words-screen .button-primary {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 0 #081E28;
}

#words-screen .button-primary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #081E28;
}

#words-screen .button-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #081E28;
}

#words-screen .button-secondary {
    border: 1.5px dashed #D8D4CA;
    background: var(--cream);
    color: var(--navy);
}

#words-screen .button-secondary:hover {
    border-color: var(--yellow);
    background: var(--yellow-light);
}

/* Compteur et messages */

#words-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

#words-message {
    margin: 0;
    color: var(--coral);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

#words-message:empty {
    display: none;
}

/* Écrans après validation */

#next-player-screen,
#words-finished-screen {
    padding: 28px 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    text-align: center;
}

#next-player-screen h2,
#words-finished-screen h2 {
    margin-bottom: 12px;
}

#next-player-screen p,
#words-finished-screen p {
    margin-bottom: 22px;
    color: var(--muted);
    line-height: 1.6;
}

/* Téléphones */

@media (max-width: 600px) {
    #words-screen {
        padding-bottom: 16px;
    }

    #words-screen .section-heading {
        margin-bottom: 20px;
    }

    #word-private-screen {
        padding: 18px;
        border-radius: 21px;
    }

    #word-inputs .word-input {
        min-height: 58px;
    }

    #words-screen .button {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #word-inputs .word-input,
    #words-screen .button {
        transition: none;
    }
}


/* Page d'ajout des mots : design épuré */

#word-private-screen > h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

#word-private-screen > p {
    margin-bottom: 24px;
}

/* =========================================
   DUOS — VERSION FUN ET MODERNE
   À coller tout à la fin de style.css
========================================= */

/* ---------- Carte du duo (écran de révélation) ---------- */
.duo-card {
    position: relative;
    overflow: hidden;
    max-width: 380px;
    margin: 32px auto 26px;
    padding: 28px 20px 26px;
    border: 0;
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 18%, rgba(246, 196, 83, 0.20) 0 7px, transparent 8px),
        radial-gradient(circle at 88% 14%, rgba(228, 93, 67, 0.30) 0 5px, transparent 6px),
        radial-gradient(circle at 82% 86%, rgba(246, 196, 83, 0.16) 0 9px, transparent 10px),
        radial-gradient(circle at 8% 84%, rgba(247, 244, 237, 0.12) 0 4px, transparent 5px),
        var(--navy);
    box-shadow: 0 8px 0 #081E28, 0 18px 30px rgba(16, 44, 58, 0.18);
}

/* Pastille "DUO 1" */
.duo-card .duo-number {
    display: inline-block;
    width: auto;
    margin: 0 0 24px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    rotate: -2deg;
    box-shadow: 0 3px 0 #D9A936;
}

/* ---------- Les deux noms ---------- */
.duo-card .duo-names {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin: 0 0 22px;
}

.duo-card .duo-names > span:not(.duo-ampersand) {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 96px;
    padding: 14px 10px;
    border: 0;
    border-radius: 22px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.15rem, 5vw, 1.7rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.duo-card .duo-names > span:first-child {
    background: var(--yellow);
    color: var(--navy);
    rotate: -3deg;
    box-shadow: 0 5px 0 #D9A936;
}

.duo-card .duo-names > span:last-child {
    background: var(--coral);
    color: var(--white);
    rotate: 3deg;
    box-shadow: 0 5px 0 #B83B28;
}

/* Le "&" au centre, à cheval sur les deux bulles */
.duo-card .duo-names .duo-ampersand {
    position: relative;
    z-index: 2;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0 -14px;
    border: 3px solid var(--navy);
    background: var(--cream);
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 700;
}

.duo-card .duo-message {
    color: rgba(247, 244, 237, 0.85);
    font-size: 0.92rem;
}

/* Les bulles rebondissent quand le duo est révélé */
@keyframes tilePop {
    0%   { opacity: 0; transform: scale(0.5) translateY(14px); }
    70%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

.duo-card.reveal .duo-names > span {
    animation: tilePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.duo-card.reveal .duo-names > span:last-child {
    animation-delay: 0.14s;
}

.duo-card.reveal .duo-names .duo-ampersand {
    animation-delay: 0.22s;
}

/* ---------- Liste "Tous les duos" ---------- */
#all-duos-list li {
    border: 0;
    border-left: 8px solid var(--coral);
    border-radius: 18px;
    padding: 15px 18px 15px 20px;
    box-shadow: 0 4px 0 #E3DDCF;
    transition: transform 0.2s ease;
}

#all-duos-list li:hover {
    transform: translateY(-2px);
}

/* =========================================
   ÉCRAN DE JEU — NOM DU MIMEUR
========================================= */

#game-duo-label.game-description {
    display: inline-block;
    margin: 16px 0 24px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-family: "Fredoka", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    rotate: -2deg;
    box-shadow: 0 3px 0 #D9A936;
}

.game-player-card {
    position: relative;
    overflow: hidden;
    padding: 26px 18px 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 20%, rgba(246, 196, 83, 0.20) 0 7px, transparent 8px),
        radial-gradient(circle at 90% 16%, rgba(228, 93, 67, 0.30) 0 5px, transparent 6px),
        radial-gradient(circle at 84% 88%, rgba(246, 196, 83, 0.16) 0 9px, transparent 10px),
        var(--navy);
    box-shadow: 0 8px 0 #081E28, 0 18px 30px rgba(16, 44, 58, 0.16);
    text-align: center;
    animation: appear 0.4s ease-out both;
}

#game-mimer-label {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(247, 244, 237, 0.12);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#game-mimer-name {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 24px 10px;
    border-radius: 20px;
    background: var(--coral);
    color: var(--white);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
    rotate: -2deg;
    box-shadow: 0 5px 0 #B83B28;
}

/* Très petits écrans */
@media (max-width: 380px) {
    .duo-card .duo-names > span:not(.duo-ampersand) {
        min-height: 84px;
        padding: 10px 6px;
    }

    .duo-card .duo-names .duo-ampersand {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        margin: 0 -12px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .duo-card.reveal .duo-names > span,
    .game-player-card,
    #all-duos-list li {
        animation: none;
        transition: none;
    }
}t


/* =========================================
   SENEGAL CHALLENGE — STYLE FUN ET MODERNE
   À coller tout à la fin de style.css
========================================= */

/* Variables manquantes + nouvelles couleurs */
:root {
    --shadow-md: 0 12px 30px rgba(16, 44, 58, 0.10);
    --yellow-light: #FFF0D0;
    --border: #E4E0D6;
    --navy-light: #1A3F52;
    --mint: #3FBF94;
    --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Fond : pois + formes douces ---------- */
body {
    background-color: var(--cream);
    background-image: radial-gradient(rgba(16, 44, 58, 0.07) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    top: -90px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: var(--yellow);
    opacity: 0.22;
}

body::after {
    bottom: -110px;
    left: -90px;
    width: 280px;
    height: 280px;
    background: var(--coral);
    opacity: 0.14;
}

/* ---------- Logo ---------- */
.logo span {
    display: inline-block;
    padding: 0 10px 2px;
    border-radius: 10px;
    background: var(--coral);
    color: var(--white);
    rotate: -3deg;
    box-shadow: 0 3px 0 #B83B28;
}

/* ---------- Petites étiquettes ---------- */
.hero .eyebrow,
.duos-screen .eyebrow,
.game-screen .eyebrow,
#words-screen .eyebrow {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--yellow-light);
    color: var(--navy);
    letter-spacing: 2px;
}

/* ---------- Accueil ---------- */
.hero h1 span {
    display: inline-block;
    padding: 0 8px;
    background: linear-gradient(transparent 64%, var(--yellow) 64%);
    rotate: -2deg;
}

.hero-note {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 3px 0 #E3DDCF;
}

/* ---------- Boutons principaux ---------- */
.start-button {
    border-radius: 18px;
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
    box-shadow: 0 6px 0 #B83B28;
}

.start-button:hover:not(:disabled) {
    background: #F06A50;
    border-color: #F06A50;
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #B83B28;
}

.start-button:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #B83B28;
}

.continue-button {
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: 0 6px 0 #081E28;
}

.continue-button:hover:not(:disabled) {
    background: var(--navy-light);
    border-color: var(--navy-light);
    box-shadow: 0 9px 0 #081E28;
}

.continue-button:active:not(:disabled) {
    box-shadow: 0 2px 0 #081E28;
}

.continue-button:disabled {
    box-shadow: 0 6px 0 #081E28;
}

/* Le bouton de l'accueil frétille de temps en temps */
@keyframes wiggle {
    0%, 86%, 100% { rotate: 0deg; }
    90% { rotate: -2.5deg; }
    94% { rotate: 2.5deg; }
    98% { rotate: -1deg; }
}

#start-button {
    animation: wiggle 4s ease-in-out 1.5s infinite;
}

/* ---------- Inscription des joueurs ---------- */
.player-input-row input {
    height: 52px;
    border-width: 2.5px;
    border-radius: 16px;
    font-weight: 700;
}

.players-list li {
    border-left: 6px solid var(--yellow);
    box-shadow: 0 4px 0 #E3DDCF;
}

.players-list li:nth-child(4n+2) { border-left-color: var(--coral); }
.players-list li:nth-child(4n+3) { border-left-color: var(--mint); }
.players-list li:nth-child(4n+4) { border-left-color: var(--navy); }

.players-list li:hover {
    transform: translateY(-2px) rotate(-0.5deg);
}

/* ---------- Saisie des mots ---------- */
#word-private-screen,
#next-player-screen,
#words-finished-screen {
    border: 0;
    border-radius: 28px;
    box-shadow: 0 7px 0 #E3DDCF, 0 16px 30px rgba(16, 44, 58, 0.08);
}

#word-inputs .word-input {
    border-width: 2.5px;
    border-radius: 16px;
}

#word-inputs .word-input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(228, 93, 67, 0.15);
}

/* =========================================
   BOUTONS DU JEU
========================================= */

.button {
    border-radius: 16px;
    font-weight: 900;
}

.button-primary {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 5px 0 #D9A936;
}

.button-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #D9A936;
}

.button-primary:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #D9A936;
}

/* CORRECTION : bouton secondaire visible sur fond crème */
.button-secondary {
    border-color: var(--border);
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 5px 0 #E3DDCF;
}

.button-secondary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #E3DDCF;
}

.button-secondary:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #E3DDCF;
}

/* =========================================
   ÉCRAN DE JEU
========================================= */

/* Chrono : gros ballon */
.game-timer {
    width: 138px;
    height: 138px;
    border: 7px solid var(--yellow);
    background: var(--white);
    font-size: 3.8rem;
    box-shadow: 0 7px 0 #D9A936, 0 16px 26px rgba(16, 44, 58, 0.10);
}

.game-timer.timer-warning {
    border-color: var(--coral);
    box-shadow: 0 7px 0 #B83B28, 0 16px 26px rgba(228, 93, 67, 0.22);
}

#game-timer + p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Le mot à faire deviner : carte jaune penchée */
.game-word-container {
    margin: 26px 0 8px;
    padding: 22px 16px 26px;
    border-radius: 26px;
    background: var(--yellow);
    color: var(--navy);
    rotate: -1.5deg;
    box-shadow: 0 7px 0 #D9A936, 0 16px 26px rgba(16, 44, 58, 0.10);
}

.game-word-container:not([hidden]) {
    animation: wordPop 0.5s var(--pop) both;
}

.game-word-container > p {
    color: var(--navy);
    opacity: 0.7;
    font-size: 0.75rem;
    letter-spacing: 3px;
}

#game-word {
    margin-top: 10px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

@keyframes wordPop {
    0%   { opacity: 0; transform: scale(0.6) translateY(16px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* CORRECTION : message lisible sur fond crème (bulle blanche) */
.game-message {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 20px;
    padding: 12px 18px;
    border-radius: 18px;
    background: var(--white);
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.5;
    box-shadow: 0 4px 0 #E3DDCF;
}

.game-message:empty {
    display: none;
}

/* Boutons d'action */
#reveal-word-button,
#next-turn-button {
    width: 100%;
}

#next-turn-button {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 5px 0 #081E28;
}

#game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#guessed-button {
    border-color: var(--mint);
    background: var(--mint);
    color: var(--white);
    box-shadow: 0 5px 0 #2A9A74;
}

#guessed-button:hover:not(:disabled) {
    box-shadow: 0 8px 0 #2A9A74;
}

#guessed-button:active:not(:disabled) {
    box-shadow: 0 1px 0 #2A9A74;
}

#pass-button {
    color: var(--coral);
}

/* ---------- Tableau des scores : duo actif en jaune ---------- */
.score-team-active {
    border-color: var(--yellow);
    background: var(--yellow);
}

.score-team-active * {
    color: var(--navy);
}

/* ---------- Résultats ---------- */
.results-screen {
    border: 0;
    box-shadow: 0 8px 0 #E3DDCF, 0 18px 40px rgba(16, 44, 58, 0.08);
}

.winner-card {
    background:
        radial-gradient(circle at 12% 20%, rgba(246, 196, 83, 0.25) 0 7px, transparent 8px),
        radial-gradient(circle at 90% 18%, rgba(228, 93, 67, 0.35) 0 5px, transparent 6px),
        radial-gradient(circle at 84% 86%, rgba(246, 196, 83, 0.18) 0 9px, transparent 10px),
        var(--navy);
    box-shadow: 0 8px 0 #081E28;
}

.winner-points {
    rotate: -2deg;
    box-shadow: 0 3px 0 #D9A936;
}

.results-ranking-item {
    border: 0;
    box-shadow: 0 4px 0 #E3DDCF;
}

.results-ranking-item.results-ranking-winner {
    background: var(--yellow-light);
    box-shadow: 0 4px 0 #E9CC84;
}

.results-screen .restart-button {
    border-radius: 18px;
    box-shadow: 0 6px 0 #B83B28;
}

.results-screen .restart-button:hover {
    box-shadow: 0 9px 0 #B83B28;
}

.results-screen .restart-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #B83B28;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    #game-actions {
        grid-template-columns: 1fr;
    }

    .game-timer {
        width: 120px;
        height: 120px;
        font-size: 3.3rem;
    }

    body::before { width: 190px; height: 190px; }
    body::after  { width: 210px; height: 210px; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
    #start-button,
    .game-word-container:not([hidden]) {
        animation: none;
    }
}

/* =========================================
   BOUTONS DU JEU — PLUS DE CONTRASTE
========================================= */

/* "Révéler le mot" : marine foncé, texte blanc */
#reveal-word-button {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 6px 0 #081E28;
}

#reveal-word-button:hover:not(:disabled) {
    background: var(--navy-light);
    border-color: var(--navy-light);
    box-shadow: 0 9px 0 #081E28;
}

#reveal-word-button:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #081E28;
}

/* "Deviné !" : vert plus profond, texte blanc */
#guessed-button {
    border-color: #1F8F67;
    background: #1F8F67;
    color: var(--white);
    box-shadow: 0 5px 0 #146B4B;
}

#guessed-button:hover:not(:disabled) {
    box-shadow: 0 8px 0 #146B4B;
}

#guessed-button:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #146B4B;
}

/* "Passer" : bordure et texte plus marqués */
#pass-button {
    border-color: var(--coral);
    background: var(--white);
    color: #B83B28;
    box-shadow: 0 5px 0 #E3C2BA;
}