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

:root {
    --dbd-bg: #121212;
    --dbd-card-bg: #1e1e1e;
    --dbd-border: #333;
    --dbd-red: #8B0000;
    --text-light: #e0e0e0;
    --text-muted: #888;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dbd-bg);
    color: var(--text-light);
}

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

.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-header h1 {
    font-size: 3em;
    font-weight: 700;
}

.home-button {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1em;
    background: var(--dbd-card-bg);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--dbd-border);
    transition: background-color 0.2s;
}

.home-button:hover {
    background-color: #2a2a2a;
}

.home-button i {
    margin-right: 8px;
}

.game-section {
    background-color: var(--dbd-card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--dbd-border);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dbd-border);
}

.game-header img {
    width: 60px;
    height: auto;
}

.game-header h2 {
    font-size: 2em;
    margin: 0;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.dbd-codes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dbd-code-card {
    background-color: var(--dbd-bg);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--dbd-red);
}

.dbd-code-card .code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #2a2a2a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2em;
    color: var(--text-light);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.dbd-code-card .reward {
    color: var(--text-muted);
}

.dbd-logo {
    height: 40px;
    width: auto;
    filter: invert(1);
}

/* --- Mobile Friendliness --- */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 2.5em;
    }

    .home-button {
        position: static;
        transform: none;
        margin-bottom: 20px;
        display: inline-block;
    }

    .game-section {
        padding: 20px;
    }
}