:root {
    --bg-dark: #0a0b10;
    --bg-panel: #14161f;
    --text-main: #e0e0e0;
    --accent-magic: #00f3ff; /* Azul Magitech */
    --accent-rust: #c75c34;  /* Ferrugem */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--accent-magic);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
nav {
    background: var(--bg-panel);
    border-bottom: 2px solid var(--accent-rust);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-magic);
    text-shadow: 0 0 10px var(--accent-magic);
}

/* Cards & Panels */
.card {
    background: var(--bg-panel);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-rust);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
    border-radius: 4px;
}

.btn:hover {
    background: #e06d40;
    box-shadow: 0 0 15px var(--accent-rust);
}

/* --- INTERFACE DO JOGO --- */
.game-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
    }
}

.choice-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--accent-magic);
    color: var(--accent-magic);
    padding: 15px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
}

.choice-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    padding-left: 20px;
}

/* --- ANIMAÇÃO DE DADOS (DICE) --- */
.dice-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.dice-overlay.active {
    visibility: visible;
    opacity: 1;
}

.dice-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.die {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 0 20px var(--accent-magic);
    border: 3px solid var(--accent-rust);
}

.die.rolling {
    animation: shake 0.1s infinite;
    background: #ddd;
}

.roll-result {
    font-size: 1.5rem;
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-align: center;
    min-height: 60px;
}

.success-text { color: #00ff00; text-shadow: 0 0 15px #00ff00; font-weight: bold; }
.fail-text { color: #ff4d4d; text-shadow: 0 0 15px #ff4d4d; font-weight: bold; }

@keyframes shake {
    0% { transform: rotate(0deg) translate(1px, 1px); }
    25% { transform: rotate(5deg) translate(-1px, -1px); }
    50% { transform: rotate(0deg) translate(-1px, 1px); }
    75% { transform: rotate(-5deg) translate(1px, -1px); }
    100% { transform: rotate(0deg) translate(0px, 0px); }
}
