/* Show do Milhão - Estilo Vektor Web */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a3a;
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #00ff88 20%, #ffdd00 40%, #ff8800 60%, #ff0080 80%, #8000ff 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ffd700 100%);
    --color-cyan: #00d4ff;
    --color-green: #00ff88;
    --color-yellow: #ffd700;
    --color-yellow-alt: #ffdd00;
    --color-orange: #ff8800;
    --color-pink: #ff0080;
    --color-purple: #8000ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #606080;
    --success: #00ff88;
    --error: #ff3366;
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; line-height: 1.6; overflow-x: hidden; }

.game-container { min-height: calc(100vh - 70px); display: flex; flex-direction: column; }

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #1a1a3a 0%, #0d0d1a 50%, #1a1a3a 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}
.header-left { text-align: center; flex: 1; }
.header-left h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}
.stats-bar { display: flex; gap: 2rem; }
.stat { display: flex; flex-direction: column; align-items: flex-end; }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 1.1rem; font-weight: 700; }
.stat-value.gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.screen { display: none; flex: 1; padding: 2rem; animation: fadeIn 0.3s ease; }
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.start-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 600px; margin: 0 auto; }
.game-title h2 { font-size: 3.5rem; font-weight: 900; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; text-shadow: 0 0 30px rgba(0, 212, 255, 0.5); letter-spacing: 4px; }
.subtitle { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 3rem; }
.start-buttons { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 300px; }

.btn { padding: 1rem 2rem; font-size: 1rem; font-weight: 700; border: none; border-radius: var(--border-radius); cursor: pointer; transition: all var(--transition-fast); text-transform: uppercase; letter-spacing: 2px; }
.btn-primary { background: var(--gradient-main); color: #fff; box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 2px solid rgba(255, 215, 0, 0.3); }
.btn-secondary:hover { border-color: var(--color-yellow); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
.btn-stop { background: linear-gradient(135deg, #ff3366, #cc0033); color: #fff; padding: 0.75rem 2rem; }
.btn-stop:hover { box-shadow: 0 4px 20px rgba(255, 51, 102, 0.5); }
.btn-confirm { background: linear-gradient(135deg, #00ff88, #00cc6a); color: #000; padding: 0.75rem 2rem; margin-right: 0.5rem; }
.btn-confirm:hover { box-shadow: 0 4px 20px rgba(0, 255, 136, 0.5); }
.btn-danger { background: linear-gradient(135deg, #ff3366, #cc0033); color: #fff; }
.btn-danger:hover { box-shadow: 0 4px 20px rgba(255, 51, 102, 0.5); }
.btn-toggle { padding: 0.5rem 1.5rem; background: var(--bg-card); color: var(--text-secondary); border: 2px solid var(--text-muted); border-radius: 20px; cursor: pointer; transition: all var(--transition-fast); }
.btn-toggle.active { border-color: var(--color-green); color: var(--color-green); }

.modal-content { background: var(--bg-card); padding: 2rem; border-radius: var(--border-radius); max-width: 500px; margin: 0 auto; text-align: center; border: 2px solid rgba(255, 215, 0, 0.2); }
.modal-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rules-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; text-align: left; }
.rule { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg-secondary); border-radius: 8px; }
.rule-icon { font-size: 1.25rem; }
.rule p { color: var(--text-secondary); font-size: 0.9rem; }
.settings-options { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: var(--bg-secondary); border-radius: 8px; }
.setting-item label { font-size: 0.95rem; color: var(--text-primary); }

.game-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; max-width: 1400px; margin: 0 auto; width: 100%; }

.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-section { background: var(--bg-secondary); border-radius: var(--border-radius); padding: 1rem; border: 1px solid rgba(255, 215, 0, 0.2); }
.sidebar-section h3 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--color-yellow); text-transform: uppercase; letter-spacing: 1px; text-align: center; }

.prize-list { list-style: none; display: flex; flex-direction: column-reverse; gap: 0.35rem; max-height: 400px; overflow-y: auto; }
.prize-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.85rem; transition: all var(--transition-fast); border: 1px solid transparent; }
.prize-item.current { background: var(--gradient-main); font-weight: 700; box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); transform: scale(1.02); }
.prize-item.current .prize-value { color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.prize-item.current .prize-level { color: #fff; }
.prize-item.passed { color: var(--color-green); opacity: 0.7; }
.prize-item.guaranteed { border-left: 3px solid var(--color-yellow); background: rgba(255, 215, 0, 0.05); }
.prize-item.locked { color: var(--text-muted); }
.prize-level { color: var(--text-secondary); font-size: 0.8rem; }
.prize-value { font-weight: 700; color: var(--color-yellow); font-size: 0.9rem; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }

.prize-info { display: flex; flex-direction: column; gap: 0.75rem; }
.prize-display { display: flex; flex-direction: column; align-items: center; padding: 0.75rem; background: var(--bg-card); border-radius: 8px; }
.prize-display .prize-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.prize-display .prize-amount { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); margin-top: 0.25rem; }
.prize-display .prize-amount.gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.game-main { display: flex; flex-direction: column; gap: 1rem; }
.game-info { display: flex; justify-content: space-between; align-items: center; background: var(--bg-secondary); padding: 0.75rem 1.5rem; border-radius: var(--border-radius); border: 1px solid rgba(255, 215, 0, 0.2); }
.timer-container { display: flex; flex-direction: column; align-items: center; }
.timer-label { font-size: 0.65rem; color: var(--text-secondary); letter-spacing: 2px; }
.timer { font-size: 2rem; font-weight: 800; color: var(--color-cyan); text-shadow: 0 0 15px var(--color-cyan); }
.timer.warning { color: #ff8800; text-shadow: 0 0 15px #ff8800; animation: pulse 0.5s ease infinite; }
.timer.danger { color: #ff0080; text-shadow: 0 0 15px #ff0080; animation: pulse 0.3s ease infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.level-info { font-size: 0.9rem; color: var(--text-secondary); }
.level-label { color: var(--color-green); font-weight: 600; }
.level-value { font-size: 1.5rem; font-weight: 800; color: var(--color-yellow); text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }

.question-area { background: var(--bg-card); padding: 1.25rem; border-radius: var(--border-radius); text-align: center; border: 1px solid rgba(255, 215, 0, 0.2); }
.category-badge { display: inline-block; padding: 0.35rem 1rem; background: var(--gradient-gold); border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: #000; margin-bottom: 0.5rem; }
.question-text { font-size: 1.2rem; font-weight: 600; line-height: 1.5; color: var(--text-primary); }

.choices-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choice-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: var(--bg-card); border: 2px solid rgba(255, 215, 0, 0.2); border-radius: var(--border-radius); cursor: pointer; transition: all var(--transition-fast); text-align: left; }
.choice-btn:hover:not(:disabled) { border-color: var(--color-cyan); background: rgba(0, 212, 255, 0.1); transform: translateY(-2px); }
.choice-btn.selected { border-color: var(--color-yellow); background: rgba(255, 215, 0, 0.1); }
.choice-btn.correct { border-color: var(--color-green); background: rgba(0, 255, 136, 0.2); box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
.choice-btn.wrong { border-color: #ff0080; background: rgba(255, 0, 128, 0.2); animation: shake 0.5s ease; }
.choice-btn.disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.choice-letter { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--gradient-main); border-radius: 6px; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.choice-text { font-size: 0.9rem; color: var(--text-primary); word-break: break-word; }

.game-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lifelines { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lifeline-btn { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.5rem 0.75rem; background: var(--bg-card); border: 1px solid rgba(255, 215, 0, 0.2); border-radius: 8px; cursor: pointer; transition: all var(--transition-fast); }
.lifeline-btn:hover:not(:disabled) { border-color: var(--color-cyan); box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
.lifeline-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lifeline-icon { font-size: 1.1rem; }
.lifeline-count { font-size: 0.7rem; color: var(--color-yellow); font-weight: 600; }
.action-buttons { display: flex; gap: 0.5rem; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; z-index: 1000; animation: fadeIn 0.2s ease; }
.modal.active { display: flex; }
.modal-body { background: var(--bg-card); padding: 1.5rem; border-radius: var(--border-radius); max-width: 480px; width: 90%; position: relative; border: 1px solid rgba(255, 215, 0, 0.3); }
.modal-close { position: absolute; top: 0.5rem; right: 0.75rem; background: none; border: none; font-size: 1.5rem; color: var(--text-secondary); cursor: pointer; }
.modal-close:hover { color: #ff0080; }
.modal-body h3 { font-size: 1.3rem; margin-bottom: 1rem; text-align: center; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }
.modal-actions .btn { flex: 1; max-width: 180px; }

.fifty-content { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.fifty-choice { padding: 0.5rem 1rem; background: var(--bg-secondary); border-radius: 6px; font-weight: 600; }
.fifty-choice.hidden { opacity: 0.2; text-decoration: line-through; }

.uni-guess { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; background: var(--bg-secondary); border-radius: 6px; margin-bottom: 0.35rem; }
.uni-letter { font-weight: 800; font-size: 1rem; color: var(--color-cyan); }
.uni-percent { font-weight: 600; color: var(--color-yellow); }

.crowd-chart { display: flex; flex-direction: column; gap: 0.35rem; }
.crowd-row { display: flex; align-items: center; gap: 0.5rem; }
.crowd-label { width: 22px; font-weight: 800; color: var(--color-cyan); font-size: 0.9rem; }
.crowd-bar-container { flex: 1; height: 20px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; }
.crowd-bar { height: 100%; background: var(--gradient-main); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.35rem; font-weight: 600; font-size: 0.75rem; transition: width 0.5s ease; }
.crowd-percent { width: 40px; text-align: right; font-weight: 600; color: var(--color-yellow); font-size: 0.85rem; }

.category-modal-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 300px; overflow-y: auto; }
.category-item { padding: 0.75rem 1rem; background: var(--bg-secondary); border-radius: 8px; font-size: 0.95rem; color: var(--text-primary); border: 1px solid transparent; cursor: pointer; transition: all var(--transition-fast); text-align: center; }
.category-item:hover { border-color: var(--color-cyan); background: rgba(0, 212, 255, 0.1); }

.result-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 480px; margin: 0 auto; }
.result-content h2 { font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-prize { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.prize-label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.prize-value { font-size: 2.5rem; font-weight: 800; text-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
.prize-value.gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-reason { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.result-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.result-stat { display: flex; flex-direction: column; align-items: center; padding: 1rem 1.25rem; background: var(--bg-card); border-radius: var(--border-radius); }
.result-content .btn { width: 100%; max-width: 280px; margin-bottom: 0.5rem; }

.feedback { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 1.25rem 2.5rem; font-size: 1.8rem; font-weight: 800; border-radius: var(--border-radius); opacity: 0; pointer-events: none; z-index: 100; transition: opacity 0.3s ease; }
.feedback.correct { background: rgba(0, 255, 136, 0.95); color: #000; box-shadow: 0 0 50px rgba(0, 255, 136, 0.5); }
.feedback.wrong { background: rgba(255, 0, 128, 0.95); color: #fff; box-shadow: 0 0 50px rgba(255, 0, 128, 0.5); }
.feedback.show { opacity: 1; animation: feedbackPop 0.5s ease; }
@keyframes feedbackPop { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; } 50% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

@media (max-width: 900px) {
    .game-layout { grid-template-columns: 1fr; }
    .sidebar { flex-direction: row; }
    .sidebar-section { flex: 1; }
    .game-title h2 { font-size: 2rem; }
    .choices-container { grid-template-columns: 1fr; }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .game-header { padding: 0.75rem 1.5rem; }
    .header-left h1 { font-size: 1.5rem; }
    .stats-bar { gap: 1.5rem; }
    .game-layout { gap: 1rem; }
    .sidebar { gap: 0.75rem; }
    .game-title h2 { font-size: 2.5rem; }
    .choices-container { gap: 0.6rem; }
    .choice-btn { padding: 0.75rem 1rem; }
    .choice-text { font-size: 0.85rem; }
    .question-text { font-size: 1.1rem; }
    .lifelines { gap: 0.4rem; }
    .lifeline-btn { padding: 0.4rem 0.6rem; }
}

@media (max-width: 768px) {
    .game-header { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
    .header-left { position: static; transform: none; }
    .header-left h1 { font-size: 1.3rem; }
    .stats-bar { margin-left: 0; }
    
    /* Hide sidebar completely on mobile */
    .sidebar { display: none !important; }
    
    /* Show current prize in game-info instead */
    .game-info { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
    .game-info::before {
        content: "R$ " attr(data-prize);
        font-size: 1.1rem;
        font-weight: 800;
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    
    .timer-container { order: 1; }
    .level-info { order: 2; }
    
    .prize-list { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .prize-item { min-width: 80px; text-align: center; flex-direction: column; gap: 0.15rem; }
    .action-buttons { width: 100%; justify-content: center; margin-top: 0.5rem; }
    .timer { font-size: 1.5rem; }
    .level-value { font-size: 1.2rem; }
    .question-text { font-size: 1rem; }
    
    /* Fix result screen for mobile - ensure it's clickable */
    .result-content { padding: 1rem; }
    .result-content .btn { width: 100%; max-width: 100%; margin-bottom: 0.75rem; }
    .result-prize .prize-value { font-size: 2rem; }
    
    /* Modal fixes for mobile */
    .modal { align-items: flex-start; padding-top: 20vh; }
    .modal-body { width: 95%; max-width: 95%; }
    
    /* Ensure result screen is visible and clickable on mobile */
    #resultScreen.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-primary);
        z-index: 100;
        overflow-y: auto;
    }
}

/* Game Over Card */
.game-over-card {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.game-over-card.active {
    display: flex;
}

.game-over-content {
    background: rgba(26, 26, 58, 0.95);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid rgba(255, 0, 128, 0.5);
    max-width: 320px;
    width: 90%;
    animation: slideUp 0.3s ease;
    position: relative;
}

.game-over-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.game-over-close:hover {
    color: #ff0080;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.game-over-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff0080;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.game-over-prize {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.game-over-prize span {
    color: #ffd700;
    font-weight: 800;
    font-size: 1.3rem;
}

.game-over-content .btn {
    width: 100%;
    max-width: 100%;
}

/* Mascote reduzido 2x no mobile */
@media (max-width: 768px) {
    .brand .mascot {
        transform: scale(0.5) !important;
    }
}
