body {
    background: #050505;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#top-bar {
    width: 900px;
    height: 80px; 
    position: relative; 
    margin-bottom: 10px;
}

/* Tlačítko pro hudbu (vlevo od pauzy) */
#music-btn {
    position: absolute;
    left: -220px; 
    bottom: 0;
    width: 60px;
    height: 60px;
    font-size: 28px;
    background: #1a1a1a;
    color: white;
    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    outline: none;
}

#music-btn:hover {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

#pause-btn {
    position: absolute;
    left: -150px; 
    bottom: 0;
    width: 60px;
    height: 60px;
    font-size: 28px;
    background: #1a1a1a;
    color: white;
    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    outline: none;
}

#pause-btn:hover {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}

#delete-btn {
    position: absolute;
    left: -80px; 
    bottom: 0;
    width: 60px;
    height: 60px;
    font-size: 28px;
    background: #1a1a1a;
    color: white;
    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    outline: none;
}

#delete-btn:hover {
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
}

#delete-btn.active {
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 10px #ff3333;
}

#stats {
    position: absolute;
    left: 50%;
    top: -70px; 
    transform: translateX(-50%);
    font-size: 18px;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 25px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    white-space: nowrap;
}

#controls {
    position: absolute;
    left: 0; 
    bottom: 0;
    display: flex;
    gap: 15px;
}

.card {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border: 2px solid #555;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.card.selected {
    border: 3px solid #00ffcc;
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 10px #00ffcc;
}

#canvas-wrapper { position: relative; }

canvas {
    background: #1a1a1a;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

#game-title {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    pointer-events: none;
}

#pause-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 100;
}

#restart-btn {
    padding: 15px 40px;
    font-size: 20px;
    background: #ff3333;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
}

.hidden { display: none !important; }