.mode-btn {
    background: rgba(0, 255, 204, 0.1);
    border: 2px solid #00ffcc;
    color: #00ffcc;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.mode-btn:hover:not(:disabled) {
    background: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.mode-btn:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    background: transparent;
}

.board-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.guess-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guess-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.peg-group {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 20px;
}

.peg {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.peg.empty {
    background: #222;
    border-color: #444;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.5);
}

.feedback-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 10px;
}

.feedback-peg {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #222;
    border: 1px solid #444;
}

.feedback-peg.black {
    background: #000;
    border-color: #000;
    box-shadow: inset 0 -2px 3px rgba(255,255,255,0.2);
}

.feedback-peg.white {
    background: #fff;
    border-color: #ddd;
    box-shadow: inset 0 -2px 3px rgba(0,0,0,0.2);
}

.controls-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.color-picker {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-btn {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    max-width: 150px;
}

.action-btn:hover:not(:disabled) {
    background: rgba(0, 255, 204, 0.3);
}

.action-btn:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    background: transparent;
}

/* Colors */
.color-0 { background-color: #ff3333; } /* Red */
.color-1 { background-color: #33cc33; } /* Green */
.color-2 { background-color: #3366ff; } /* Blue */
.color-3 { background-color: #ffff33; } /* Yellow */
.color-4 { background-color: #ff9933; } /* Orange */
.color-5 { background-color: #cc33ff; } /* Purple */

/* Easy mode highlights */
.peg.highlight-exact {
    box-shadow: 0 0 15px 3px #00ffcc, inset 0 -3px 5px rgba(0,0,0,0.5);
    border-color: #00ffcc;
}

.peg.highlight-color {
    box-shadow: 0 0 15px 3px #ffcc00, inset 0 -3px 5px rgba(0,0,0,0.5);
    border-color: #ffcc00;
}

.peg.highlight-wrong {
    opacity: 0.3;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.5);
    border-color: #444;
}

@media screen and (max-width: 400px) {
    .peg { width: 25px; height: 25px; }
    .color-btn { width: 35px; height: 35px; }
}
