body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.hidden { display: none !important; }

#login-screen {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#game-screen {
    display: flex;
    gap: 20px;
    width: 95vw;
    height: 90vh;
}

#sidebar {
    width: 250px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(15, 1fr);
    gap: 2px;
    background: #ccc;
    padding: 5px;
    border-radius: 4px;
    aspect-ratio: 1/1;
    max-height: 80vh;
}

.cell {
    background: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.cell.triple-word { background-color: #ff7070; }
.cell.double-word { background-color: #ffcccc; }
.cell.triple-letter { background-color: #7070ff; }
.cell.double-letter { background-color: #ccccff; }
.cell.star { background-color: #ffcccc; }

.tile {
    width: 90%;
    height: 90%;
    background: #f4d03f;
    border: 1px solid #d4ac0d;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.tile.temp { background-color: #f9e79f; } /* Tuile posée mais pas validée */

#rack {
    margin-top: 20px;
    background: #8d6e63;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
}

#rack .tile {
    width: 40px;
    height: 40px;
    cursor: grab;
}

#rack .tile.selected {
    border: 2px solid blue;
    transform: scale(1.1);
}
