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

body {
    font-family: 'Inter', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #d4b896 0%, #c9a876 50%, #b8956b 100%);
    min-height: 100vh;
    padding: 20px;
    color: #5c4a3a;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f0e8;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(92, 74, 58, 0.15);
    padding: 40px;
    border: 1px solid #e6d5c3;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #8b7355, #a0845c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: #7a6b5d;
    font-size: 1.1em;
    font-weight: 400;
}

.current-item-area {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #ede4d3 0%, #e8dcc9 100%);
    border-radius: 25px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #d4c4b0;
}

.current-item {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(92, 74, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
    background: #f9f5f0;
    border: 3px solid #d9c7b3;
}

.current-item:hover {
    transform: scale(1.08);
    box-shadow: 0 18px 40px rgba(92, 74, 58, 0.25);
}

.current-item.dragging {
    cursor: grabbing;
    transform: scale(1.1) rotate(3deg);
    opacity: 0.85;
}

.item-description {
    margin-top: 18px;
    font-size: 1.3em;
    font-weight: 600;
    color: #5c4a3a;
    letter-spacing: -0.01em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category {
    background: #f0e6d6;
    border-radius: 20px;
    padding: 25px;
    border: 3px dashed #c9b596;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category.drag-over {
    background: linear-gradient(135deg, #e8d5b7 0%, #dcc49a 100%);
    border-color: #b8956b;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(92, 74, 58, 0.15);
}

.category-title {
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 20px;
    color: #5c4a3a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.category-slots {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.slot {
    width: 75px;
    height: 75px;
    border: 3px solid #c9b596;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f5f0;
    font-size: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot.filled {
    background: linear-gradient(135deg, #a0845c 0%, #8b7355 100%);
    color: white;
    border-color: #8b7355;
    box-shadow: 0 6px 18px rgba(139, 115, 85, 0.3);
}

.slot.correct {
    background: linear-gradient(135deg, #7ba05b 0%, #6b8e4a 100%);
    border-color: #6b8e4a;
    box-shadow: 0 6px 18px rgba(107, 142, 74, 0.3);
}

.slot.incorrect {
    background: linear-gradient(135deg, #c67b5c 0%, #b5694a 100%);
    border-color: #b5694a;
    box-shadow: 0 6px 18px rgba(181, 105, 74, 0.3);
}

.controls {
    text-align: center;
    margin-top: 40px;
}

.btn {
    background: linear-gradient(135deg, #8b7355 0%, #a0845c 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 0 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.4);
}

.btn:disabled {
    background: #c9b596;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 3px 10px rgba(201, 181, 150, 0.2);
}

.btn.check-btn {
    background: linear-gradient(135deg, #7ba05b 0%, #6b8e4a 100%);
    box-shadow: 0 6px 20px rgba(107, 142, 74, 0.3);
}

.btn.check-btn:hover {
    box-shadow: 0 10px 30px rgba(107, 142, 74, 0.4);
}

.score {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #5c4a3a;
    font-weight: 600;
}

.game-complete {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #e8d5b7 0%, #dcc49a 100%);
    border-radius: 20px;
    margin-top: 30px;
    border: 2px solid #c9b596;
}

.game-complete h2 {
    color: #5c4a3a;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
}

.results {
    margin: 25px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.score-summary {
    font-size: 1.4em;
    font-weight: 700;
    margin: 20px 0;
    padding: 20px;
    background: #f0e6d6;
    border-radius: 15px;
    border: 2px solid #c9b596;
}

.category-result {
    margin: 15px 0;
    padding: 15px;
    background: #f0e6d6;
    border-radius: 12px;
    border-left: 5px solid #8b7355;
}

.category-result.perfect {
    border-left-color: #6b8e4a;
    background: #e8f0e3;
}

.category-result.partial {
    border-left-color: #d4a574;
    background: #f5f0e8;
}

.category-result.missed {
    border-left-color: #b5694a;
    background: #f5e8e3;
}

@media (max-width: 768px) {
    .game-container {
        padding: 25px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .current-item {
        width: 110px;
        height: 110px;
        font-size: 55px;
    }
    
    .category-slots {
        justify-content: center;
    }
    
    .slot {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .btn {
        padding: 15px 25px;
        margin: 5px;
        font-size: 1em;
    }
}
