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

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.container {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
}

.screen {
    display: none;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Giriş Ekranı */
.game-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    color: #5f27cd;
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    color: #8395a7;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    text-align: left;
    font-weight: bold;
    color: #576574;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid #dfe6e9;
    border-radius: 15px;
    font-size: 1.2em;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: #5f27cd;
    box-shadow: 0 0 0 4px rgba(95, 39, 205, 0.2);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.3em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-back {
    background: #dfe6e9;
    color: #576574;
    padding: 10px 25px;
    font-size: 1em;
    margin-top: 20px;
}

/* Mod Seçim Ekranı */
.welcome-text {
    color: #576574;
    font-size: 1.2em;
    margin-bottom: 25px;
}

.modes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mode-card {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

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

.mode-info {
    text-align: left;
}

.mode-info h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.mode-info p {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Oyun Ekranı */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.player-name {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #5f27cd;
    font-size: 0.95em;
}

.score-display {
    display: flex;
    gap: 15px;
}

.score-correct {
    background: #d4edda;
    color: #155724;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95em;
}

.score-wrong {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95em;
}

.progress-container {
    margin-bottom: 25px;
}

.progress-bar-bg {
    background: #e9ecef;
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #00b894, #00cec9, #0984e3, #6c5ce7, #e17055);
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    margin-top: 8px;
    font-size: 0.9em;
    color: #8395a7;
    font-weight: bold;
}

.question-container {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 25px;
}

.question-label {
    font-size: 0.95em;
    color: #e17055;
    margin-bottom: 10px;
    font-weight: bold;
}

.question-word {
    font-size: 2.2em;
    color: #2d3436;
    font-weight: bold;
}

.question-hint {
    font-size: 0.9em;
    color: #636e72;
    margin-top: 8px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: white;
    border: 3px solid #dfe6e9;
    border-radius: 15px;
    padding: 18px 20px;
    font-size: 1.2em;
    font-family: inherit;
    font-weight: bold;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover:not(.disabled) {
    border-color: #5f27cd;
    background: #f8f0ff;
    transform: translateX(5px);
}

.option-btn .option-letter {
    background: #6c5ce7;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    flex-shrink: 0;
}

.option-btn.correct {
    border-color: #00b894;
    background: #d4edda;
    animation: pulse-green 0.5s;
}

.option-btn.correct .option-letter {
    background: #00b894;
}

.option-btn.wrong {
    border-color: #d63031;
    background: #f8d7da;
    animation: shake 0.5s;
}

.option-btn.wrong .option-letter {
    background: #d63031;
}

.option-btn.disabled {
    cursor: default;
    opacity: 0.7;
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.feedback-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1em;
    display: none;
}

.feedback-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

.feedback-message.correct {
    background: #d4edda;
    color: #155724;
}

.feedback-message.wrong {
    background: #f8d7da;
    color: #721c24;
}

/* Sonuç Ekranı */
.result-icon {
    font-size: 80px;
    margin-bottom: 10px;
}

.result-title {
    font-size: 1.8em;
    color: #5f27cd;
    margin-bottom: 20px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
}

.stat-box.correct-stat {
    background: #d4edda;
    color: #155724;
}

.stat-box.wrong-stat {
    background: #f8d7da;
    color: #721c24;
}

.stat-box .stat-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
}

.stat-box .stat-label {
    font-size: 0.9em;
}

.wrong-answers-section {
    text-align: left;
    margin-top: 20px;
}

.wrong-answers-section h3 {
    color: #d63031;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.wrong-answer-item {
    background: #fff5f5;
    border: 2px solid #f8d7da;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

.wrong-answer-item .wrong-question {
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 5px;
}

.wrong-answer-item .your-answer {
    color: #d63031;
    font-size: 0.95em;
}

.wrong-answer-item .correct-answer {
    color: #00b894;
    font-weight: bold;
    font-size: 0.95em;
}

.perfect-score {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.perfect-score p {
    font-size: 1.2em;
    color: #2d3436;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    .game-icon {
        font-size: 60px;
    }

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

    .option-btn {
        font-size: 1em;
        padding: 14px 16px;
    }

    .result-stats {
        flex-direction: column;
        align-items: center;
    }

    .game-header {
        flex-direction: column;
        gap: 10px;
    }
}
