/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Cores do LINK STAR */
:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --bg-black: #000000;
    --bg-dark: #1a1a1a;
    --bg-card: rgba(255, 215, 0, 0.1);
    --border-gold: rgba(255, 215, 0, 0.3);
    --success-green: #00FF88;
    --error-red: #FF4444;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Telas */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Tela de Início */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.game-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.game-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

.avatar-container {
    margin: 40px 0;
    text-align: center;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.game-info {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.game-info h2 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.game-info p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--bg-black);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
    transform: translateY(-2px);
}

/* Header do Jogo */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    overflow: hidden;
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coins {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

.coin-icon {
    color: var(--primary-gold);
    font-weight: 800;
}

.level {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.question-counter {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Área da Pergunta */
.question-area {
    width: 100%;
    max-width: 800px;
}

.phase-info {
    text-align: center;
    margin-bottom: 20px;
}

.phase-info h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 600;
}

.question-image {
    text-align: center;
    margin-bottom: 30px;
}

.question-image img {
    max-width: 400px;
    max-height: 300px;
    border-radius: 15px;
    border: 2px solid var(--border-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.question-container {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.question-container h2 {
    color: var(--text-white);
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Respostas */
.answers-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.answer-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.answer-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: var(--primary-gold);
    color: var(--bg-black);
}

.answer-btn.correct {
    background: var(--success-green);
    border-color: var(--success-green);
    color: var(--bg-black);
}

.answer-btn.incorrect {
    background: var(--error-red);
    border-color: var(--error-red);
    color: var(--text-white);
}

.answer-letter {
    background: var(--primary-gold);
    color: var(--bg-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.answer-btn.selected .answer-letter,
.answer-btn.correct .answer-letter,
.answer-btn.incorrect .answer-letter {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-white);
}

.answer-text {
    font-size: 1.1rem;
    color: var(--text-white);
}

.answer-btn.selected .answer-text,
.answer-btn.correct .answer-text,
.answer-btn.incorrect .answer-text {
    color: inherit;
}

/* Feedback */
.feedback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.feedback.hidden {
    display: none;
}

.feedback-content {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.feedback-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.feedback-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-gray);
}

/* Tela de Resultado */
.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h1 {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.final-stats {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gold);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.achievement {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.achievement h3 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.achievement p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Tela de Level Up */
.level-up-content {
    text-align: center;
}

.level-up-content h1 {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
}

.level-up-avatar {
    margin: 30px 0;
}

.level-up-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.level-up-content h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 15px;
}

.level-up-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-subtitle {
        font-size: 1.2rem;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .answers-container {
        grid-template-columns: 1fr;
    }
    
    .question-image img {
        max-width: 100%;
        max-height: 200px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active {
    animation: fadeIn 0.5s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.avatar {
    animation: pulse 2s infinite;
}

/* Efeitos especiais */
.coin-icon {
    animation: pulse 1.5s infinite;
}

.btn-primary:active {
    transform: translateY(0);
}

.answer-btn:active {
    transform: translateY(0);
}

