:root {
    --primary: #FFCC00;
    --primary-dark: #E6B800;
    --secondary: #0033A0;
    --accent: #ED1C24;

    --bg-dark: #0f172a;
    --bg-darker: #020617;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --success: #22c55e;
    --error: #ef4444;

    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-darker);
    background-image: radial-gradient(circle at top right, #1e3a8a 0%, transparent 40%),
        radial-gradient(circle at bottom left, #7f1d1d 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.accent-text {
    color: var(--primary);
}

.app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

.view {
    width: 100%;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.logo-container h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.logo-container h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--bg-darker);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--bg-darker);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-msg {
    color: var(--error);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
}

.game-header {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-counter {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.timer-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.timer-text.danger {
    color: var(--error);
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.question-container {
    padding: 2rem 1.5rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.difficulty-badge.facil {
    background: var(--success);
    color: #fff;
}

.difficulty-badge.media {
    background: var(--primary);
    color: #000;
}

.difficulty-badge.dificil {
    background: var(--error);
    color: #fff;
}

.difficulty-badge.bonus {
    background: linear-gradient(45deg, #8b5cf6, #d946ef);
    color: #fff;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
}

.question-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.btn-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.btn-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.btn-option.correct {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--success);
}

.btn-option.incorrect {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
}

.result-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-details {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.result-details p {
    margin-bottom: 0.5rem;
}

.result-actions .note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--bg-darker);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-150px) translateX(50px);
        opacity: 0;
    }
}