.game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.color-display-area {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.color-box {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border: 4px solid var(--color-text-main);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #808080;
    /* Start neutral */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.color-box .label {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Overlay to hide the target color */
.color-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.color-reveal-overlay::after {
    content: '?';
    font-size: 4rem;
    color: var(--color-text-main);
}

.color-reveal-overlay.active {
    opacity: 1;
}

.controls-area {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-group label {
    font-weight: bold;
    width: 20px;
}

.slider-group input[type="range"] {
    flex-grow: 1;
    cursor: pointer;
}

.slider-group span {
    width: 40px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

/* Colored sliders */
.red label {
    color: #ff5555;
}

.green label {
    color: #55ff55;
}

.blue label {
    color: #5555ff;
}

/* Actions */
.actions {
    margin-top: 1rem;
}

.feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback.success {
    background-color: rgba(3, 218, 198, 0.2);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.feedback.error {
    background-color: rgba(207, 102, 121, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]:focus {
    outline: none;
}

/* Fix for slider visibility */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-text-main);
    cursor: pointer;
    margin-top: -8px;
    /* You need to specify a margin in Chrome, but in flex it might be weird. Let's try standard. */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--color-text-main);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Track styling for better visibility */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Button Secondary */
.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(3, 218, 198, 0.1);
}

.btn-secondary:active {
    transform: scale(0.96);
}