/* Game Page Styles - Millonario Coco */

.game-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0404 0%, #1a0a05 50%, #0a0404 100%);
    overflow: hidden;
    padding-bottom: 2rem;
}

.game-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.animated-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(242, 140, 56, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 220, 111, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 60%);
    animation: lightsMove 10s ease-in-out infinite;
}

@keyframes lightsMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.game-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid rgba(242, 140, 56, 0.5);
    backdrop-filter: blur(10px);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px rgba(247, 220, 111, 0.8));
    animation: avatarFloat 2s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.player-name {
    margin: 0;
    font-size: 1.8rem;
    color: #f7dc6f;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(247, 220, 111, 0.6);
}

.player-status {
    font-size: 0.95rem;
    color: #ffd89b;
    opacity: 0.8;
    font-style: italic;
    min-height: 20px;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(242, 140, 56, 0.3), rgba(247, 220, 111, 0.3));
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid #f7dc6f;
    position: relative;
}

.score-label {
    font-size: 0.9rem;
    color: #ffd89b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 2.5rem;
    color: #f7dc6f;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(247, 220, 111, 1);
    animation: scoreGlow 2s ease-in-out infinite;
}

@keyframes scoreGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(247, 220, 111, 0.8); }
    50% { text-shadow: 0 0 30px rgba(247, 220, 111, 1); }
}

.score-coins {
    font-size: 1.5rem;
    position: absolute;
    top: -10px;
    right: -10px;
    animation: coinSpin 3s linear infinite;
}

@keyframes coinSpin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.question-card {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #f28c38;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(242, 140, 56, 0.4);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-number {
    font-size: 1rem;
    color: #f7dc6f;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.question-text {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.option-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(242, 140, 56, 0.15);
    border: 2px solid rgba(242, 140, 56, 0.5);
    border-radius: 15px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-button:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.02);
    background: rgba(242, 140, 56, 0.25);
    border-color: #f7dc6f;
    box-shadow: 0 10px 30px rgba(242, 140, 56, 0.5);
}

.option-button:disabled {
    cursor: not-allowed;
}

.option-button.selected {
    background: rgba(247, 220, 111, 0.2);
    border-color: #f7dc6f;
}

.option-button.correct {
    background: rgba(46, 204, 113, 0.3) !important;
    border-color: #2ecc71 !important;
    animation: correctPulse 0.5s ease-in-out;
}

.option-button.wrong {
    background: rgba(231, 76, 60, 0.3) !important;
    border-color: #e74c3c !important;
    animation: wrongShake 0.5s ease-in-out;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: rgba(242, 140, 56, 0.5);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-weight: 500;
}

.option-icon {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: auto;
}

.correct-icon {
    color: #2ecc71;
}

.wrong-icon {
    color: #e74c3c;
}

.result-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    animation: messageSlideIn 0.5s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.correct-message {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.wrong-message {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.result-icon {
    font-size: 2rem;
}

.next-button {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #f28c38, #f7dc6f);
    border: none;
    border-radius: 50px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.next-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(242, 140, 56, 0.6);
}

.next-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.next-button:hover .next-icon {
    transform: translateX(5px);
}

.exit-button {
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.exit-button:hover {
    border-color: #f7dc6f;
    background: rgba(247, 220, 111, 0.1);
    transform: translateX(-5px);
}

.timer-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(242,140,56,0.1);
    display: flex;
    align-items: center;
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #f28c38, #f7dc6f, #ff8c42);
    transition: width 0.3s;
    border-radius: 12px 0 0 12px;
}

.timer-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #000;
    letter-spacing: 1px;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .game-content {
        padding: 1rem;
    }

    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .player-info {
        flex-direction: column;
    }

    .player-name {
        font-size: 1.4rem;
    }

    .score-value {
        font-size: 2rem;
    }

    .question-card {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.3rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .option-button {
        padding: 1.2rem;
        font-size: 1rem;
    }
}