@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

body {
    background-color: #050505; color: #b0b0b0; font-family: 'Cinzel', serif;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0; background-image: url('../../images/background_dark.png');
    background-position: center; background-size: cover; background-attachment: fixed; touch-action: none;
}

.container {
    border: 1px solid #333; padding: 30px; background-color: rgba(8, 8, 8, 0.95);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.95); text-align: center; position: relative; max-width: 95vw;
}

.container::after {
    content: ""; position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid #5e0b0b; pointer-events: none; opacity: 0.5;
}

h1 { color: #8a0f0f; text-transform: uppercase; letter-spacing: 8px; margin-bottom: 10px; text-shadow: 0px 0px 10px rgba(138, 15, 15, 0.4); font-size: 2rem; }

.back-button { position: absolute; top: 20px; left: 20px; font-size: 0.8rem; padding: 5px 10px; color: #999; text-decoration: none; border: 1px solid #333; font-family: sans-serif; }

.theme-switch { position: absolute; top: 20px; right: 20px; cursor: pointer; font-size: 0.8rem; font-family: sans-serif; z-index: 20; text-transform: uppercase; padding: 5px 10px; border: 1px solid #ccc; background-color: #e0e0e0; color: #1a1a1a; font-weight: bold; text-align: center; }

body.light-mode { background-image: url('../../images/background_light.png'); }
body.light-mode .container { background-color: rgba(240, 240, 240, 0.95); border-color: #bbb; }
body.light-mode .theme-switch { background-color: #1a1a1a; color: #e0e0e0; border-color: #000; }

canvas { border: 2px solid #1a1a1a; display: block; margin: 0 auto; background-color: #080808; max-width: 100%; }

/* --- UKŁAD PRZYCISKÓW --- */
.game-info { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 20px; gap: 10px; }

.button-group { display: flex; gap: 10px; justify-content: center; flex: 2; }

.stats-left, .stats-right { flex: 1; font-size: 0.9rem; font-weight: bold; white-space: nowrap; }
.stats-left { text-align: left; }
.stats-right { text-align: right; }

/* Przyciski */
.btn-restart-lvl, .btn-restart-game {
    padding: 8px 12px; cursor: pointer; font-family: 'Cinzel', serif; text-transform: uppercase; font-size: 0.7rem; transition: all 0.3s; border: 1px solid rgba(0,0,0,0.5); color: white;
}

.btn-restart-lvl { background: #d35400; } /* Pomarańczowy */
.btn-restart-lvl:hover { background: #e67e22; box-shadow: 0 0 10px #e67e22; }

.btn-restart-game { background: #8a0f0f; } /* Czerwony */
.btn-restart-game:hover { background: #c0392b; box-shadow: 0 0 10px #c0392b; }

#blood-val, #total-points, #lives-val { color: #8a0f0f; font-weight: bold; }
.score-info { margin-top: 15px; font-size: 1.1rem; }
.mobile-hint { display: none; margin-top: 10px; font-size: 0.85em; color: #777; font-style: italic; border: 1px solid #333; padding: 5px 10px; background: rgba(0,0,0,0.3); }

@media (max-width: 768px) {
    .container { padding-top: 60px; padding-left: 10px; padding-right: 10px; }
    .game-info { flex-direction: column; gap: 10px; }
    .button-group { width: 100%; flex-direction: row; }
    .btn-restart-lvl, .btn-restart-game { flex: 1; }
    .mobile-hint { display: block; }
}