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

.game-header {
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--color-primary);
    font-weight: bold;
}

.dimension-reveal {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(3, 218, 198, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.draggable-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.draggable-item {
    background-color: var(--color-surface, #1e1e1e);
    border: 1px solid var(--color-border, #333);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s;
    user-select: none;
    font-size: 1.2rem;
    position: relative;
    color: var(--color-text-main);
}

.draggable-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.draggable-item:active {
    cursor: grabbing;
}

.draggable-item.dragging {
    opacity: 0.5;
    background-color: var(--color-surface-hover, #2d2d2d);
    border: 1px dashed var(--color-primary);
}

.draggable-item.over {
    border-color: var(--color-secondary);
    transform: scale(1.02);
}

.draggable-item .drag-handle {
    margin-right: 1rem;
    color: var(--color-text-muted);
    cursor: grab;
}

.controls {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #121212;
    /* Always dark text on primary */
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(187, 134, 252, 0.1);
    /* Primary color with opacity */
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Validation Feedback Styles */
.draggable-item.correct {
    border-color: var(--color-success, #4caf50);
    background-color: rgba(76, 175, 80, 0.1);
}

.draggable-item.wrong {
    border-color: var(--color-error, #f44336);
    background-color: rgba(244, 67, 54, 0.1);
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.feedback {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.5em;
}

.feedback.success {
    color: var(--color-success, #4caf50);
}

.feedback.error {
    color: var(--color-error, #f44336);
}

.hidden {
    display: none !important;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}