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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.game-title {
    font-size: 48px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #ff4500, 0 0 40px #ff1493;
}

/* Mode Selector */
.mode-selector {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
}

.mode-selector h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #ff4500;
}

.mode-selector h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 40px;
    text-shadow: 0 0 10px #ff1493;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mode-btn {
    padding: 30px 20px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #ff4500;
}

.mode-icon {
    font-size: 48px;
}

.mode-name {
    font-size: 20px;
}

/* Difficulty Selector */
.difficulty-selector {
    margin-top: 30px;
}

.difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

.difficulty-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    border-color: #ff4500;
}

.difficulty-btn.active {
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    border-color: white;
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.8);
}

/* Game Area */
.game-area {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 2px solid #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

.stat-label {
    font-size: 12px;
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0 0 5px #ff1493;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px #ff4500;
}

/* Question Container */
.question-container {
    margin: 40px 0;
}

.question {
    font-size: 64px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 30px #ff4500, 0 0 60px #ff1493;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-input-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.answer-input {
    padding: 20px;
    font-size: 32px;
    font-weight: bold;
    border: 3px solid #ff1493;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    width: 200px;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    transition: all 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
}

.answer-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.feedback {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    min-height: 40px;
    text-shadow: 0 0 10px currentColor;
}

.feedback.correct {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
}

.feedback.incorrect {
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
}

/* Progress */
.progress-container {
    margin-top: 30px;
}

.progress-label {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff1493;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ff1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff1493 0%, #ff4500 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #ff4500;
}

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

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    border-color: white;
}

.btn-submit {
    padding: 20px 40px;
    font-size: 24px;
}

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

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 3px solid #ff1493;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.8);
}

.modal-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #ff4500, 0 0 40px #ff1493;
}

.results-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 20, 147, 0.2);
    border-radius: 10px;
    border: 2px solid #ff4500;
}

.result-label {
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0 0 5px #ff1493;
}

.result-value {
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px #ff4500;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
    }

    .question {
        font-size: 48px;
    }

    .answer-input {
        font-size: 24px;
        width: 150px;
    }

    .mode-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

