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

.control-btn {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    background: rgba(50, 50, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

body {
    background: transparent;
    font-family: 'Arial', sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

#controls-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#timer-display {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#word-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* Ligne 1: 2 cases centrées */
.word-cell:nth-child(1) { grid-column: 2 / 4; grid-row: 1; }
.word-cell:nth-child(2) { grid-column: 4 / 6; grid-row: 1; }

/* Ligne 2: 3 cases */
.word-cell:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
.word-cell:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
.word-cell:nth-child(5) { grid-column: 5 / 7; grid-row: 2; }

/* Ligne 3: 3 cases */
.word-cell:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }
.word-cell:nth-child(7) { grid-column: 3 / 5; grid-row: 3; }
.word-cell:nth-child(8) { grid-column: 5 / 7; grid-row: 3; }

/* Ligne 4: 2 cases centrées */
.word-cell:nth-child(9) { grid-column: 2 / 4; grid-row: 4; }
.word-cell:nth-child(10) { grid-column: 4 / 6; grid-row: 4; }

.word-cell {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.word-cell.empty {
    background: rgba(30, 30, 30, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    cursor: default;
}

.word-cell.selected {
    background: rgba(100, 100, 200, 0.9);
    border-color: #6464FF;
    box-shadow: 0 0 20px rgba(100, 100, 200, 0.6);
}

.word-cell.winning {
    background: rgba(50, 150, 50, 0.9);
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.word-cell.winning-results {
    background: rgba(255, 215, 0, 0.9);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.word-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.bubbles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.viewer-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.viewer-bubble:hover {
    transform: scale(1.1);
}

.scores-display {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.6;
}

.score-item {
    margin: 3px 0;
}

.score-username {
    font-weight: bold;
    color: #FFD700;
}

.score-points {
    color: #4CAF50;
    font-weight: bold;
}
