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

body {
    background-color: #050505; color: #c5a059; font-family: 'Cinzel', serif;
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
    margin: 0; background-image: url('../../images/background_dark.png');
    background-size: cover; background-attachment: fixed; transition: 0.3s;
}

body.light-mode { background-color: #e0e0e0; color: #2a2a2a; background-image: url('../../images/background_light.png'); }

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

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

body.light-mode .container { background: rgba(240, 240, 240, 0.95); border-color: #bbb; }

.back-button, .theme-switch {
    position: absolute; top: 20px; cursor: pointer; font-size: 0.8rem; font-family: sans-serif;
    padding: 5px 10px; font-weight: bold; text-decoration: none; transition: 0.3s;
    background-color: #e0e0e0; color: #1a1a1a; border: 1px solid #ccc; z-index: 20;
}

body.light-mode .back-button, body.light-mode .theme-switch {
    background-color: #1a1a1a; color: #e0e0e0; border: 1px solid #000;
}

.back-button { left: 20px; }
.theme-switch { right: 20px; }

h1 { color: #8a0f0f; letter-spacing: 5px; margin-top: 20px; }
.game-info { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; border-bottom: 1px solid #5e4b2a; padding-bottom: 10px; font-size: 0.9rem; }
.stats { text-align: left; }
.counters { font-family: sans-serif; font-weight: bold; font-size: 1.1rem; }
.score { text-align: right; font-weight: bold; }

.option-btn {
    display: block; width: 100%; margin: 12px 0; padding: 15px; background: #151515;
    border: 1px solid #333; color: #c5a059; cursor: pointer; font-family: 'Cinzel', serif;
    transition: 0.2s; font-size: 1rem;
}

.option-btn:hover { background: #8a0f0f; color: white; border-color: #ff0000; }
body.light-mode .option-btn { background: #fff; border-color: #ccc; color: #222; }

#message-box { height: 30px; margin: 20px 0; font-weight: bold; text-transform: uppercase; font-size: 1.2rem; }

.action-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }

#restart-btn, #next-btn { 
    padding: 10px 25px; color: white; border: 1px solid #5e0b0b; cursor: pointer; 
    font-family: 'Cinzel', serif; font-weight: bold; transition: 0.3s;
}

#restart-btn { background: #8a0f0f; }
#next-btn { background: #5e4b2a; border-color: #c5a059; color: #c5a059; }
#next-btn:hover { background: #c5a059; color: #0a0a0a; }