html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef2f7;
}

* {
    box-sizing: border-box;
}

.player-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 8px;
}

.player-top {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.player-top h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #111827;
}

.player-top p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.player-timer {
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.answer-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    min-height: 0;
}

/* GROS BOUTONS */
.answer-tile {
    border-radius: 22px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
    user-select: none;
    cursor: pointer;
    min-height: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255,255,255,0.18);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.18),
        inset 0 -4px 0 rgba(0,0,0,0.12);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.12s ease;
}

.answer-tile:hover {
    transform: translateY(-2px);
}

.answer-tile:active {
    transform: scale(0.985);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.16),
        inset 0 -2px 0 rgba(0,0,0,0.12);
}

.answer-shape {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}

.answer-label {
    flex: 1;
    word-break: break-word;
    color: inherit;
    font-size: 1.25rem;
}

.answer-tile.is-locked {
    pointer-events: none;
}

.answer-tile.is-muted {
    opacity: 0.28 !important;
}

.answer-tile.is-selected {
    opacity: 1 !important;
    border-color: #ffffff;
    box-shadow:
        0 0 0 5px rgba(255,255,255,0.35),
        0 12px 28px rgba(0,0,0,0.18),
        inset 0 -4px 0 rgba(0,0,0,0.12);
}

.answer-tile.is-correct {
    opacity: 1 !important;
    border-color: #ffffff;
    box-shadow:
        0 0 0 5px rgba(22,163,74,0.30),
        0 12px 28px rgba(0,0,0,0.18),
        inset 0 -4px 0 rgba(0,0,0,0.12);
}

.answer-tile.is-wrong {
    opacity: 1 !important;
    border-color: #ffffff;
    box-shadow:
        0 0 0 5px rgba(220,38,38,0.30),
        0 12px 28px rgba(0,0,0,0.18),
        inset 0 -4px 0 rgba(0,0,0,0.12);
}

.answer-tile.is-dim {
    opacity: 0.16 !important;
}

.waiting-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.waiting-box h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #111827;
}

.waiting-box p {
    margin: 0;
    color: #6b7280;
}

.d-none {
    display: none !important;
}

.text-success {
    color: #16a34a !important;
}

.text-danger {
    color: #dc2626 !important;
}

@media (max-width: 700px) {
    .answer-grid {
        gap: 8px;
    }

    .answer-tile {
        padding: 18px 14px;
        border-radius: 18px;
        font-size: 1.05rem;
    }

    .answer-shape {
        width: 54px;
        height: 54px;
        min-width: 54px;
        font-size: 1.7rem;
    }

    .answer-label {
        font-size: 1.05rem;
    }
}