body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a2e1a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container {
    background-color: #244224;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 90%;
    max-width: 1300px;
    border: 2px solid #4caf50;
}

header {
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: 2.8rem;
    color: #4caf50;
    letter-spacing: 3px;
}

.subtitle {
    margin: 5px 0 0 0;
    color: #aaa;
    font-size: 1.1rem;
}

/* Giriş Ekranı Tasarımı */
.start-screen {
    background-color: #1b331b;
    padding: 40px 20px;
    border-radius: 12px;
    border: 2px solid #4caf50;
    max-width: 500px;
    margin: 20px auto;
}

.start-screen h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #f1c40f;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.input-group input {
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid #336633;
    background-color: #0f1f0f;
    color: white;
    text-align: center;
    outline: none;
}

.input-group input:focus {
    border-color: #f1c40f;
}

.start-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.start-btn:hover {
    background-color: #45a049;
}

/* 3 Sütunlu Ana Düzen */
.main-arena {
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
}

/* Sol ve Sağ Oyuncu Panelleri */
.player-panel {
    background-color: #1b331b;
    padding: 20px;
    border-radius: 12px;
    width: 24%;
    border: 3px solid #336633;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* Sırası Gelen Oyuncunun Sarı Çerçevesi */
.player-panel.active-turn {
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    background-color: #213d21;
}

.player-panel h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
}

canvas {
    background-color: #0f1f0f;
    border-radius: 8px;
    border: 1px solid #336633;
}

.mistakes-text {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 15px 0 0 0;
}

/* Orta Soru ve Şıklar Alanı */
.center-arena {
    width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timer-box {
    background-color: #0f1f0f;
    color: #f1c40f;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f1c40f;
    margin-bottom: 15px;
}

.question-box {
    background-color: #0f1f0f;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 6px solid #4caf50;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-box h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background-color: #2e5d2e;
    color: white;
    border: 1px solid #4caf50;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.option-btn:hover:not(:disabled) {
    background-color: #3e7a3e;
}

/* Doğru ve Yanlış Cevap Renkleri */
.option-btn.correct {
    background-color: #27ae60 !important;
    border-color: #2ecc71 !important;
}

.option-btn.wrong {
    background-color: #c0392b !important;
    border-color: #e74c3c !important;
}

/* Oyun Sonu Penceresi (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background-color: #244224;
    padding: 40px 50px;
    border-radius: 15px;
    border: 3px solid #f1c40f;
    text-align: center;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.5);
    max-width: 450px;
    width: 85%;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.trophy-icon {
    font-size: 4.5rem;
    margin-bottom: 10px;
}

.modal-box h2 {
    color: #f1c40f;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

.modal-box p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #ffffff;
}

/* Online Lobi ve Mod Seçim Ekranları */
.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.secondary-btn {
    background-color: #2980b9;
}

.secondary-btn:hover {
    background-color: #2471a3;
}

.dark-btn {
    background-color: #34495e;
}

.dark-btn:hover {
    background-color: #2c3e50;
}

.room-code-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: #0f1f0f;
    border: 2px dashed #f1c40f;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 15px 0;
}

#generated-code {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: #f1c40f;
}

.copy-btn {
    background-color: #f1c40f;
    color: #142814;
    border: none;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s;
}

.copy-btn:active {
    transform: scale(0.95);
}

.waiting-text {
    color: #a8d5a8;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.error-text {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 12px;
    min-height: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: #a8d5a8;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: underline;
}

.back-btn:hover {
    color: #ffffff;
}

.online-badge {
    background-color: #0f1f0f;
    border: 1px solid #f1c40f;
    color: #f1c40f;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Liderlik Tablosu Stilleri */
.leaderboard-box {
    margin-top: 30px;
    background-color: #0f1f0f;
    border: 1px solid #2e5c2e;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: left;
}

.leaderboard-box h4 {
    color: #f1c40f;
    text-align: center;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    border-bottom: 1px solid #2e5c2e;
    padding-bottom: 8px;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 210px;
    overflow-y: auto;
}

.leaderboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #1b381b;
    font-size: 0.95rem;
    color: #e8f5e9;
}

.leaderboard-list li:last-child {
    border-bottom: none;
}

.leaderboard-list li:nth-child(1) .lb-rank { color: #f1c40f; font-weight: bold; }
.leaderboard-list li:nth-child(2) .lb-rank { color: #bdc3c7; font-weight: bold; }
.leaderboard-list li:nth-child(3) .lb-rank { color: #cd7f32; font-weight: bold; }

.lb-wins {
    background-color: #1f401f;
    color: #f1c40f;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.loading-lb {
    justify-content: center !important;
    color: #a8d5a8 !important;
    font-style: italic;
}

/* Sağ ve Sol Kenar Reklam Kutuları */
.side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 50;
}
.left-ad { left: 20px; }
.right-ad { right: 20px; }

.ad-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(15, 31, 15, 0.85);
    border: 1px dashed #2e5c2e;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5c8a5c;
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 1250px) {
    .side-ad { display: none; }
}

/* AdSense İçerik Kartı ve Alt Menü (Footer) */
.seo-content-box {
    max-width: 850px;
    margin: 25px auto 10px auto;
    padding: 18px 24px;
    background-color: rgba(15, 31, 15, 0.75);
    border: 1px solid #2e5c2e;
    border-radius: 12px;
    color: #c5dec5;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    box-sizing: border-box;
}
.seo-content-box h2 {
    color: #ffd700;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}
.seo-content-box p {
    margin: 0;
}

.site-footer {
    max-width: 850px;
    margin: 15px auto 25px auto;
    text-align: center;
    color: #8fbc8f;
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.footer-link-btn {
    background: none;
    border: none;
    color: #a3d9a3;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 4px;
}
.footer-link-btn:hover { color: #ffffff; }
.copyright-text { color: #5c8a5c; font-size: 0.78rem; margin: 0; }

.info-modal-box {
    max-width: 620px;
    text-align: left;
    max-height: 82vh;
    overflow-y: auto;
}
.info-modal-content {
    color: #d8ebd8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 12px;
}
.info-modal-content h4 { color: #ffd700; margin: 14px 0 6px 0; }

/* Sayfa öğelerini yan yana değil alt alta hizala */
body {
    flex-direction: column !important;
    align-items: center !important;
}