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

body {
    font-family: 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    padding: 20px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.score-board {
    display: flex;
    justify-content: center;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
}

.timer {
    color: #e74c3c;
}

.game-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    min-height: 400px;
    padding: 10px;
}

.slipper-pair {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.slipper-pair.aligned {
    background: #d4edda;
    border-color: #27ae60;
    animation: alignSuccess 0.5s ease;
}

@keyframes alignSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.slipper {
    width: 60px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

.slipper.left {
    transform: rotate(75deg);
}

.slipper.right {
    transform: rotate(105deg);
}

.slipper.misaligned {
    transform: rotate(25deg);
}

.slipper.right.misaligned {
    transform: rotate(-25deg);
}

.slipper:active {
    transform: scale(0.95);
}

.slipper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.start-btn, .reset-btn, .play-again-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.start-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
}

.play-again-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 100%;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 18px;
}

@media (max-width: 480px) {
    .game-container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .score-board {
        font-size: 14px;
    }
    
    .slipper {
        width: 50px;
        height: 35px;
    }
    
    .slipper::before {
        width: 30px;
        height: 15px;
    }
}