/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #f5f5f5;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(184, 134, 11, 0.3);
    margin-top: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(45deg, #daa520, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #d4af37;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Game Container */
.game-area {
    background: rgba(20, 20, 20, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    margin-bottom: 30px;
}

/* Timer and Score */
.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-label {
    color: #d4af37;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #daa520;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.timer {
    font-size: 2.5em;
    color: #daa520;
}

.timer.warning {
    color: #ff6b6b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Question Section */
.question-container {
    text-align: center;
    margin-bottom: 30px;
}

.question-word {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.question-pos {
    font-size: 1.2em;
    color: #d4af37;
    font-style: italic;
    margin-bottom: 20px;
}

.question-prompt {
    font-size: 1.3em;
    color: #f5f5f5;
    margin-bottom: 30px;
}

/* Choice Buttons */
.choices-container {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.choice-btn {
    padding: 20px 30px;
    font-size: 1.2em;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(184, 134, 11, 0.3);
    color: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.choice-btn:hover:not(:disabled) {
    background: rgba(218, 165, 32, 0.2);
    border-color: #daa520;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

.choice-btn.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
}

.choice-btn.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
}

.choice-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Start Screen */
.start-screen {
    text-align: center;
    padding: 40px;
}

.game-title {
    font-size: 3em;
    color: #daa520;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.instructions {
    background: rgba(15, 15, 15, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    margin-bottom: 30px;
}

.instructions h3 {
    color: #daa520;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.instructions ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    color: #d4af37;
    line-height: 1.8;
}

.start-btn {
    padding: 20px 50px;
    font-size: 1.5em;
    background: linear-gradient(45deg, #daa520, #ffd700);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.6);
}

/* High Scores Box */
.high-scores-box {
    background: rgba(15, 15, 15, 0.8);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.high-scores-box h3 {
    color: #daa520;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-align: center;
}

.high-scores-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.high-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.high-score-rank {
    font-size: 1.2em;
    font-weight: bold;
    color: #daa520;
    min-width: 30px;
}

.high-score-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.no-scores {
    text-align: center;
    color: #d4af37;
    font-style: italic;
    padding: 20px;
}

/* Results Screen */
.results-screen {
    text-align: center;
    padding: 40px;
}

.results-title {
    font-size: 2.5em;
    color: #daa520;
    margin-bottom: 30px;
}

.results-stats {
    background: rgba(15, 15, 15, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

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

.result-label {
    color: #d4af37;
    font-size: 1.2em;
}

.result-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #daa520;
}

.play-again-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    background: rgba(218, 165, 32, 0.2);
    color: #daa520;
    border: 2px solid #daa520;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 15px;
}

.play-again-btn:hover {
    background: rgba(218, 165, 32, 0.3);
    transform: translateY(-2px);
}

/* Wrong Count Display */
.wrong-count {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.wrong-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(50, 50, 50, 0.8);
    border: 2px solid rgba(184, 134, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.wrong-indicator.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
}

/* Game Over Screen */
.game-over {
    text-align: center;
    padding: 40px;
}

.game-over-title {
    font-size: 2.5em;
    color: #f44336;
    margin-bottom: 20px;
}

.game-over-message {
    font-size: 1.3em;
    color: #d4af37;
    margin-bottom: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 15px;
        margin-top: 60px;
    }

    h1 {
        font-size: 2em;
    }

    .question-word {
        font-size: 2em;
    }

    .choice-btn {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .game-stats {
        flex-direction: column;
        gap: 15px;
    }
}
