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

/* Arka plan çarpı işaretleri */
.bg-multiply {
    position: fixed;
    font-size: 40px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.12);
    z-index: 0;
    pointer-events: none;
    animation: floatX 10s ease-in-out infinite;
}

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

@keyframes floatX {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.12; }
    25% { transform: translateY(-20px) rotate(10deg); opacity: 0.2; }
    50% { transform: translateY(-10px) rotate(-5deg); opacity: 0.15; }
    75% { transform: translateY(-25px) rotate(8deg); opacity: 0.22; }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    padding: 40px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    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, #f5af19, #f12711, #f5af19, #f12711);
    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); }
}

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

@keyframes bounceX {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

h1 {
    background: linear-gradient(135deg, #f5af19, #f12711);
    -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: #f5af19;
    box-shadow: 0 0 0 5px rgba(245, 175, 25, 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, #f5af19, #f12711);
    color: white;
}

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

    .wrestler {
        font-size: 2.5rem;
        top: -30px;
    }

    .platform {
        height: 40px;
    }

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

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

/* Mod Seçim Ekranı */
.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, #f5af19, #f12711);
    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(241, 39, 17, 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;
}

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

.player-name {
    background: linear-gradient(135deg, #f5af19, #f12711);
    -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, #f5af19, #f12711, #f5af19, #f12711);
    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;
}

/* Soru Kutusu */
.question-container {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    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: 120px;
    color: rgba(241, 39, 17, 0.06);
    font-weight: bold;
    pointer-events: none;
}

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

.question-text {
    font-size: 2.5em;
    color: #333;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    letter-spacing: 5px;
}

/* Seçenekler */
.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-btn {
    background: white;
    border: 3px solid #eee;
    border-radius: 18px;
    padding: 20px 15px;
    font-size: 1.5em;
    font-family: 'Courier New', monospace;
    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: #f5af19;
    background: #fff8e1;
    transform: scale(1.05);
}

.option-btn .option-letter {
    background: linear-gradient(135deg, #f5af19, #f12711);
    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: #d4edda;
    animation: popCorrect 0.5s;
}

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

.option-btn.wrong {
    border-color: #f12711;
    background: #f8d7da;
    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;
}

/* Sonuç Ekranı */
.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, #f5af19, #f12711);
    -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: 'Courier New', monospace;
    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, #fff3e0, #ffe0b2);
    border-radius: 18px;
    padding: 22px;
    margin-top: 20px;
}

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

/* Dayanıklılı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: #e74c3c;
    font-size: 1.2em;
}

.platform-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.platform {
    width: 85%;
    height: 50px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    overflow: visible;
}

.platform::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10%;
    right: 10%;
    height: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 50%;
}

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

.wrestler.falling {
    animation: wrestlerFall 0.8s ease-in forwards;
}

@keyframes wrestlerFall {
    0% { transform: translateX(-50%) translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateX(-50%) translateY(30px) rotate(180deg); opacity: 0.8; }
    100% { transform: translateX(-50%) translateY(100px) rotate(360deg); opacity: 0; }
}

.wrestler.pushed-center {
    animation: pushCenter 0.5s ease;
}

@keyframes pushCenter {
    0% { transform: translateX(-50%) scale(1); }
    30% { transform: translateX(-50%) scale(1.2); }
    60% { transform: translateX(-50%) scale(0.9); }
    100% { transform: translateX(-50%) scale(1); }
}

/* ===================== 2 KİŞİLİK MOD ===================== */

.wide-mode {
    max-width: 800px !important;
}

/* Mode Card - 2 Kişilik */
.mode-card-duo {
    background: linear-gradient(135deg, #00b894, #00cec9) !important;
}

.mode-card-duo:hover {
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.4) !important;
}

/* İsim Giriş Ekranı - 2 Kişilik */
.dual-name-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.name-input-group {
    flex: 1;
    text-align: left;
}

.name-input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.name-input-group.p1-theme label {
    color: #00b894;
}

.name-input-group.p2-theme label {
    color: #6c5ce7;
}

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

.name-input-group.p1-theme input:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.2);
    background: white;
}

.name-input-group.p2-theme input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
    background: white;
}

/* Cinsiyet Seçimi */
.gender-select {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.gender-btn {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    font-family: inherit;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    color: #888;
}

.gender-btn:hover {
    border-color: #ddd;
    background: #f0f0f0;
}

.gender-btn.active {
    color: #333;
}

.p1-theme .gender-btn.active {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.12);
    color: #00b894;
}

.p2-theme .gender-btn.active {
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.12);
    color: #6c5ce7;
}

/* 2 Kişilik HUD */
.dual-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.player-hud {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 18px;
    font-weight: bold;
    font-size: 0.9em;
}

.p1-hud {
    background: linear-gradient(135deg, rgba(0,184,148,0.15), rgba(0,206,201,0.15));
    color: #00b894;
    border: 2px solid rgba(0,184,148,0.3);
}

.p2-hud {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(162,155,254,0.15));
    color: #6c5ce7;
    border: 2px solid rgba(108,92,231,0.3);
}

.player-hud .player-emoji {
    font-size: 1.3em;
}

.player-hud-name {
    font-size: 0.85em;
}

.player-hud-score strong {
    font-size: 1.2em;
}

.timer-hud {
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.timer-hud strong {
    color: #e74c3c;
    font-size: 1.1em;
}

/* 2 Kişilik Cevap Alanları */
.dual-options {
    display: flex;
    gap: 15px;
}

.player-options {
    flex: 1;
    border: 3px solid #eee;
    border-radius: 20px;
    padding: 12px;
}

.player-options.p1-options {
    border-color: rgba(0,184,148,0.3);
    background: rgba(0,184,148,0.03);
}

.player-options.p2-options {
    border-color: rgba(108,92,231,0.3);
    background: rgba(108,92,231,0.03);
}

.player-options-label {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    text-align: center;
}

.p1-label {
    background: linear-gradient(135deg, rgba(0,184,148,0.15), rgba(0,206,201,0.15));
    color: #00b894;
}

.p2-label {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(162,155,254,0.15));
    color: #6c5ce7;
}

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

.options-container-mini .option-btn {
    padding: 14px 8px;
    font-size: 1.2em;
    border-radius: 14px;
}

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

.p1-options .option-btn:hover:not(.disabled) {
    border-color: #00b894;
    background: rgba(0,184,148,0.08);
}

.p2-options .option-btn:hover:not(.disabled) {
    border-color: #6c5ce7;
    background: rgba(108,92,231,0.08);
}

.p1-options .option-btn .option-letter {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.p2-options .option-btn .option-letter {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

/* Player Feedback */
.player-feedback {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}

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

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

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

.player-feedback.late {
    background: #fff3cd;
    color: #856404;
}

/* 2 Kişilik Sonuç */
.dual-result-players {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 20px;
}

.result-player {
    flex: 1;
    padding: 20px 15px;
    border-radius: 20px;
    text-align: center;
}

.result-player.winner {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    border: 3px solid #f9ca24;
    box-shadow: 0 8px 25px rgba(249, 202, 36, 0.4);
}

.result-player.loser {
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    border: 3px solid #b2bec3;
}

.result-player-icon {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.result-player-name-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 5px;
}

.result-player-score-text {
    font-size: 1.4em;
    font-weight: 800;
    color: #2d3436;
}

.vs-divider {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: 800;
    color: #ddd;
}

.dual-result-time {
    margin-top: 15px;
    font-size: 1.1em;
    color: #555;
    font-weight: bold;
    text-align: center;
}

.dual-result-time strong {
    color: #e74c3c;
}

/* 2 Kişilik Mod Responsive */
@media (max-width: 480px) {
    .wide-mode {
        max-width: 100% !important;
        padding: 15px 10px !important;
    }

    .dual-name-inputs {
        flex-direction: column;
        gap: 12px;
    }

    .dual-options {
        flex-direction: column;
        gap: 10px;
    }

    .dual-hud {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

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

    .vs-divider {
        font-size: 1em;
    }
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .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: 80px;
    }

    .question-text {
        font-size: 1.8em;
        letter-spacing: 3px;
    }

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

    .option-btn {
        font-size: 1.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;
    }
}
