.game-container {
    max-width: 500px;
    margin: 0 auto;
}

.game-board-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#game-board {
    display: flex;
    flex-direction: column-reverse; /* Los intentos van de abajo hacia arriba */
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}
.dark #game-board {
    background-color: #1f2937;
    border-color: #374151;
}

.attempt-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.attempt-row.active {
    opacity: 1;
}

.guess-pegs {
    display: flex;
    gap: 0.5rem;
    flex-grow: 1;
}

.guess-peg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: 2px solid #9ca3af;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.dark .guess-peg {
    background-color: #4b5563;
    border-color: #6b7280;
}
.attempt-row.active .guess-peg {
    cursor: pointer;
}
.attempt-row.active .guess-peg:hover {
    transform: scale(1.1);
}

.feedback-pegs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
}
.dark .feedback-pegs {
    background-color: #374151;
}

.feedback-peg {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #9ca3af;
    border: 1px solid rgba(0,0,0,0.2);
}
.dark .feedback-peg {
    background-color: #6b7280;
}
.feedback-peg.correct-position { background-color: #ef4444; } /* red */
.feedback-peg.correct-color { background-color: #ffffff; } /* white */
.dark .feedback-peg.correct-color { background-color: #f9fafb; }


.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.dark .color-palette {
    background-color: #1f2937;
    border: 1px solid #374151;
}

.color-peg {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.2s ease;
}
.color-peg:hover {
    transform: scale(1.1);
}
.color-peg.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px #3b82f6;
}

.start-button {
    width: 100%;
    padding: 1rem;
    background-color: #F97316; /* Color Naranja */
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.start-button:hover {
    background-color: #ea580c; /* Naranja más oscuro */
    transform: scale(1.02);
}