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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.game-container {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.game-header h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.score {
    color: #fff;
    font-size: 18px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.card {
    aspect-ratio: 1;
    background: #444;
    border: 2px solid #666;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 32px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

.card.flipped {
    background: #fff;
    border-color: #4CAF50;
}

.card.matched {
    background: #4CAF50;
    border-color: #45a049;
    opacity: 0.8;
}

.game-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #45a049;
}

@media (max-width: 480px) {
    #app {
        padding: 10px;
    }
    
    .game-container {
        padding: 15px;
    }
    
    .game-header h1 {
        font-size: 20px;
    }
    
    .card {
        font-size: 24px;
    }
}
