* {
    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, #ee9ca7 0%, #ffdde1 30%, #a8edea 70%, #fed6e3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.bg-letter {
    position: fixed;
    font-size: 35px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
    pointer-events: none;
    animation: floatLetter 13s ease-in-out infinite;
}

.bg-letter:nth-child(1) { top: 5%; left: 5%; font-size: 45px; animation-delay: 0s; animation-duration: 11s; }
.bg-letter:nth-child(2) { top: 15%; right: 8%; font-size: 30px; animation-delay: 2s; animation-duration: 9s; }
.bg-letter:nth-child(3) { bottom: 12%; left: 10%; font-size: 40px; animation-delay: 4s; animation-duration: 13s; }
.bg-letter:nth-child(4) { bottom: 5%; right: 5%; font-size: 50px; animation-delay: 1s; animation-duration: 10s; }
.bg-letter:nth-child(5) { top: 45%; left: 3%; font-size: 28px; animation-delay: 3s; animation-duration: 14s; }
.bg-letter:nth-child(6) { top: 35%; right: 3%; font-size: 38px; animation-delay: 5s; animation-duration: 8s; }
.bg-letter:nth-child(7) { top: 70%; left: 15%; font-size: 33px; animation-delay: 2.5s; animation-duration: 12s; }
.bg-letter:nth-child(8) { top: 55%; right: 12%; font-size: 42px; animation-delay: 1.5s; animation-duration: 11s; }

@keyframes floatLetter {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    25% { transform: translateY(-22px) rotate(15deg); opacity: 0.22; }
    50% { transform: translateY(-10px) rotate(-8deg); opacity: 0.18; }
    75% { transform: translateY(-28px) rotate(12deg); opacity: 0.25; }
}

.container {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    border-radius: 35px;
    padding: 40px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #ee9ca7, #a8edea, #ffdde1, #ee9ca7);
    border-radius: 35px 35px 0 0;
}

.screen {
    display: none;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.screen.active {
    display: block;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.game-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: huntBounce 2s ease-in-out infinite;
}

@keyframes huntBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-8deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.15) rotate(8deg); }
}

h1 {
    background: linear-gradient(135deg, #ee9ca7, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2em;
    margin-bottom: 8px;
}

.subtitle {
    color: #888;
    font-size: 1.05em;
    margin-bottom: 30px;
}

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

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

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid #eee;
    border-radius: 18px;
    font-size: 1.2em;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
    background: #fafafa;
}

.input-group input:focus {
    border-color: #ee9ca7;
    box-shadow: 0 0 0 5px rgba(238, 156, 167, 0.2);
    background: white;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    border: none;
    border-radius: 18px;
    font-size: 1.3em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

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

.btn-primary {
    background: linear-gradient(135deg, #ee9ca7, #a8edea);
    color: white;
}

.btn-back {
    background: #f0f0f0;
    color: #666;
    padding: 12px 28px;
    font-size: 1em;
    margin-top: 20px;
}

.btn-back:hover {
    background: #e0e0e0;
}

.welcome-text {
    color: #666;
    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, #ee9ca7, #a8edea);
    border-radius: 22px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mode-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(238, 156, 167, 0.4);
}

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

.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;
}

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

.player-name {
    background: linear-gradient(135deg, #ee9ca7, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95em;
}

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

.score-correct {
    background: #d4edda;
    color: #155724;
    padding: 8px 14px;
    border-radius: 18px;
    font-weight: bold;
    font-size: 0.9em;
}

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

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

.progress-bar-bg {
    background: #eee;
    border-radius: 15px;
    height: 18px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(90deg, #ee9ca7, #a8edea, #ffdde1, #ee9ca7);
    background-size: 200% 100%;
    transition: width 0.5s ease;
    animation: shimmerBar 2s linear infinite;
}

@keyframes shimmerBar {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.progress-text {
    margin-top: 8px;
    font-size: 0.85em;
    color: #888;
    font-weight: bold;
}

.question-container {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0, #f48fb1);
    border-radius: 25px;
    padding: 30px 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.question-container::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.06;
    pointer-events: none;
}

.question-label {
    font-size: 0.95em;
    color: #ad1457;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.question-word {
    font-size: 2.8em;
    color: #880e4f;
    font-weight: bold;
    font-family: 'Georgia', serif;
    position: relative;
    z-index: 1;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border: 3px solid #f8bbd0;
    border-radius: 18px;
    padding: 20px 15px;
    font-size: 1.2em;
    font-family: 'Comic Sans MS', sans-serif;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.option-btn:hover:not(.disabled) {
    border-color: #a8edea;
    background: rgba(168, 237, 234, 0.15);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(238, 156, 167, 0.3);
}

.option-btn .option-letter {
    background: linear-gradient(135deg, #ee9ca7, #a8edea);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
    font-family: 'Comic Sans MS', sans-serif;
}

.option-btn.correct {
    border-color: #43e97b;
    background: rgba(67, 233, 123, 0.15);
    animation: popCorrect 0.5s;
}

.option-btn.correct .option-letter {
    background: #43e97b;
}

.option-btn.wrong {
    border-color: #f12711;
    background: rgba(241, 39, 17, 0.1);
    animation: shake 0.5s;
}

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

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

@keyframes popCorrect {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

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

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

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

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

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

.result-icon {
    font-size: 90px;
    margin-bottom: 10px;
    animation: bounceResult 1s ease-in-out;
}

@keyframes bounceResult {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-30px); }
    60% { transform: translateY(-10px); }
}

.result-title {
    font-size: 2em;
    background: linear-gradient(135deg, #ee9ca7, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

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

.stat-box {
    padding: 18px 30px;
    border-radius: 18px;
    text-align: center;
}

.stat-box.correct-stat {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.stat-box.wrong-stat {
    background: linear-gradient(135deg, #f12711, #f5af19);
    color: white;
}

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

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

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

.wrong-answers-section h3 {
    color: #f12711;
    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: #333;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
    font-size: 1.1em;
}

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

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

.perfect-score {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 18px;
    padding: 22px;
    margin-top: 20px;
}

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

/* Zehirli Sarmaşık Modu */
.survival-hud {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
    font-weight: bold;
}

.survival-hud strong {
    color: #11998e;
    font-size: 1.2em;
}

.vine-container {
    display: flex;
    justify-content: center;
    position: relative;
    height: 150px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
    border: 3px solid #b3e5fc;
}

.vine-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 20px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        0deg,
        #4CAF50,
        #4CAF50 20px,
        #388E3C 20px,
        #388E3C 40px
    );
    border-radius: 10px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.vine-bg::before, .vine-bg::after {
    content: '🍃';
    position: absolute;
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
}

.vine-bg::before { left: -25px; top: 20%; transform: scaleX(-1); }
.vine-bg::after { right: -25px; top: 60%; }

.climber {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    z-index: 10;
}

.climber.jump {
    animation: jumpUp 0.4s ease;
}

@keyframes jumpUp {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1) translateY(-15px); }
    100% { transform: translateX(-50%) scale(1) translateY(0); }
}

.toxic-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(0deg, rgba(106, 27, 154, 0.8) 0%, rgba(156, 39, 176, 0.6) 50%, rgba(225, 190, 231, 0) 100%);
    z-index: 5;
    transition: height 1s linear;
}

.toxic-fog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: inherit;
    filter: blur(8px);
    animation: fogWave 3s infinite alternate;
}

@keyframes fogWave {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

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

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

    h1 {
        font-size: 1.5em;
    }

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

    .question-container {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .question-container::after {
        font-size: 70px;
    }

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

    .options-container {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

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

    .option-btn .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.55em;
    }

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

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

    .progress-text {
        font-size: 0.75em;
    }

    .score-correct, .score-wrong {
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1.1em;
    }

    .btn-back {
        padding: 10px 22px;
        font-size: 0.95em;
    }

    .climber {
        font-size: 2.8rem;
    }

    .vine-container {
        height: 120px;
    }

    .survival-hud {
        font-size: 0.9em;
    }
}
