* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Azeret Mono', monospace, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.game-card {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.screen {
    display: none;
}

.screen.active {
    display: flex;
}

.game-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffcc00;
    text-align: center;
    letter-spacing: 1px;
}

.game-subtitle {
    font-size: 11px;
    color: #666666;
    text-align: center;
    margin-top: -15px;
    letter-spacing: 2px;
}

.section-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-label {
    font-size: 11px;
    color: #aaaaaa;
    font-weight: bold;
}

.mode-buttons, .difficulty-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-mode, .btn-diff {
    flex: 1;
    min-width: 120px;
    background-color: #1a1a1a;
    color: #aaaaaa;
    border: 1px solid #333333;
    border-radius: 5px;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-mode:hover, .btn-diff:hover {
    background-color: #222222;
    color: #ffffff;
}

.btn-mode.active, .btn-diff.active {
    background-color: #ffcc00;
    color: #000000;
    border-color: #ffcc00;
}

.description-box {
    background-color: #1a1a1a;
    border-left: 3px solid #ffcc00;
    padding: 12px 15px;
    font-size: 12px;
    color: #cccccc;
    line-height: 1.5;
    border-radius: 0 5px 5px 0;
}

.btn-yellow {
    background-color: #ffcc00;
    color: #000000;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.2s;
    letter-spacing: 1px;
}

.btn-yellow:hover {
    background-color: #e6b800;
}

.btn-full {
    width: 100%;
}

.game-header {
    display: flex;
    justify-content: space-between;
    background-color: #1a1a1a;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    color: #888888;
}

.stat-badge strong {
    font-size: 14px;
    color: #ffffff;
    margin-top: 2px;
}

/* BARRA DE TIEMPO */
.timer-container {
    width: 100%;
    height: 8px;
    background-color: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #333333;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background-color: #ffcc00;
    transition: width 0.1s linear, background-color 0.2s;
}

.question-box {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
}

.question-hint {
    font-size: 11px;
    color: #ffcc00;
    letter-spacing: 1px;
}

.question-target {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin-top: 10px;
    word-break: break-word;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-option {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 18px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-option:hover {
    background-color: #262626;
    border-color: #ffcc00;
}

.btn-option.correct {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-option.wrong {
    background-color: #b7321a !important;
    border-color: #b7321a !important;
    color: #ffffff !important;
}

.results-title {
    text-align: center;
    color: #ffcc00;
    font-size: 20px;
}

.results-stats {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #aaaaaa;
}

.result-row strong {
    color: #ffffff;
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    .question-target {
        font-size: 24px;
    }
}