/* Genel ve Yardımcı Sınıflar */
body { background-color: #020230; background-image: radial-gradient(circle, #1a1a40, #020230 70%); color: white; font-family: 'Poppins', sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; margin: 0; box-sizing: border-box; }
.hidden { display: none !important; }

/* Ana Yapı */
.main-wrapper { display: flex; align-items: flex-start; gap: 20px; width: 100%; max-width: 1400px; justify-content: center; }
.game-container { flex-grow: 1; max-width: 700px; display: flex; flex-direction: column; }

/* Jokerler */
.lifelines { margin-bottom: 15px; display: flex; justify-content: flex-end; gap: 10px; }
.lifeline-btn { background: linear-gradient(145deg, #ffac33, #e68a00); color: white; border: 2px solid #ffc866; border-radius: 50%; width: 60px; height: 60px; font-size: 24px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); display: inline-flex; justify-content: center; align-items: center; }
.lifeline-btn:hover:not(.disabled) { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(255, 153, 0, 0.5); }
.lifeline-btn.disabled { background: #555; border-color: #777; cursor: not-allowed; opacity: 0.5; }

/* Zamanlayıcı */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.timer-container { font-size: 40px; font-weight: 700; margin-bottom: 20px; color: #ff9900; animation: pulse 1s infinite; text-align: center; }

/* Soru & Cevap */
#question-container, .option { background: linear-gradient(to right, #001f7e, #0033a0); border: 2px solid #3d58a3; padding: 15px; border-radius: 10px; font-size: 1.1rem; position: relative; clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0% 50%); transition: all 0.3s ease; }
#question-container { min-height: 80px; display: flex; justify-content: center; align-items: center; margin-bottom: 25px; font-weight: 600; text-align: center; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.option { cursor: pointer; text-align: left; padding-left: 35px; }
.option:hover:not(.disabled) { background: linear-gradient(to right, #e68a00, #ffac33); border-color: #ffc866; }
.option.selected { background: linear-gradient(to right, #e68a00, #ffac33); border-color: #ffc866; }
.option.correct { background: linear-gradient(to right, #1f9e1f, #28c728); border-color: #6cff6c; animation: pulse 0.5s 2; }
.option.wrong { background: linear-gradient(to right, #b31212, #e01e1e); border-color: #ff5c5c; }
.option.disabled { pointer-events: none; opacity: 0.6; }

/* Kontrol Butonları */
.controls { text-align: center; }
#start-btn, #restart-btn, #close-game-btn {
    background: linear-gradient(145deg, #ffac33, #e68a00);
    color: white;
    border: 2px solid #ffc866;
    padding: 12px 35px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    /* margin-top: 20px; -- bu artık .endgame-buttons'da olduğu için kaldırılabilir veya kalabilir */
    transition: all 0.3s ease;
}
#start-btn:hover, #restart-btn:hover, #close-game-btn:hover {
    transform: scale(1.05);
}

/* Skor ve Para Ağacı */
#money-tree-container, #highscore-container { background-color: rgba(0, 0, 0, 0.2); border: 2px solid #3d58a3; border-radius: 10px; padding: 15px; width: 220px; flex-shrink: 0; }
#highscore-container { order: -1; }
#money-tree-container ul, #highscore-container ol { list-style: none; padding: 0; margin: 0; }
#highscore-container h2 { font-size: 1.1rem; margin-top: 0; text-align: center; color: #ffc866;}
#money-tree-container li, #highscore-container li { padding: 8px 12px; margin-bottom: 5px; border-radius: 5px; font-weight: 600; color: #a9a9d4; transition: all 0.3s ease; display: flex; justify-content: space-between; font-size: 0.9rem; }
#highscore-container li span:first-child { color: white; margin-right: 10px; }
#prize-list li.current-level { background-color: #ff9900; color: white; transform: scale(1.05); }
#prize-list li.passed-level { opacity: 0.6; }

/* Modallar */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #020230; padding: 30px; border-radius: 15px; border: 2px solid #3d58a3; text-align: center; width: 90%; max-width: 500px; }
.close-modal-btn { background: #ff9900; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-top: 20px; font-weight: bold; }

/* Seyirci Modalı */
.chart-container { display: flex; justify-content: space-around; align-items: flex-end; height: 200px; margin: 20px 0; }
.bar-wrapper { display: flex; flex-direction: column; align-items: center; color: white; font-weight: bold; }
.bar { width: 50px; background: linear-gradient(to top, #0033a0, #3d58a3); border-radius: 5px 5px 0 0; transition: height 1s ease-out; }
.bar::before { content: attr(data-percent); display: block; color: #ff9900; font-size: 1.1rem; padding-bottom: 5px; }

/* Telefon Modalı */
.phone-friend-profile { margin: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#friend-avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #ff9900; object-fit: cover; }
#friend-name { margin: 0; font-size: 1.5rem; color: white; }
.friend-message-box { background-color: rgba(0, 0, 0, 0.2); border: 1px solid #3d58a3; min-height: 80px; padding: 15px; border-radius: 10px; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; color: #ffc866; font-style: italic; }
@keyframes thinking-dots { 0%, 20% { content: '.'; } 40%, 60% { content: '..'; } 80%, 100% { content: '...'; } }
.thinking::after { display: inline-block; animation: thinking-dots 1.5s infinite; content: ''; width: 20px; text-align: left; }

/* Oyun Sonu Ekranı ve Çek Stilleri */
.endgame-content { background: linear-gradient(135deg, #020230, #1a1a40); }
#endgame-title { color: #ff9900; font-size: 2.5rem; margin-bottom: 0; }
#endgame-message { font-size: 1.2rem; color: #ddd; margin-top: 5px; margin-bottom: 25px; }
.prize-check { background-color: #f4f1e8; color: #333; border: 2px solid #aaa; border-radius: 10px; padding: 15px; font-family: 'Courier New', Courier, monospace; width: 100%; max-width: 450px; margin: 0 auto 25px auto; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.check-header, .check-footer { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #999; padding-bottom: 5px; font-size: 0.8rem; }
.check-header span:first-child { font-weight: bold; font-size: 1rem; color: #001f7e; }
.check-body { padding: 20px 0; }
.pay-line, .memo-line, .amount-line { display: flex; align-items: center; margin-bottom: 10px; }
.pay-line span:first-child, .memo-line span:first-child { color: #777; margin-right: 10px; font-size: 0.8rem; }
.recipient { font-weight: bold; font-size: 1.1rem; border-bottom: 1px solid #333; flex-grow: 1; }
.amount-box { border: 2px solid #001f7e; padding: 5px 10px; font-size: 1.2rem; font-weight: bold; background-color: #fff; border-radius: 5px; margin-left: auto; }
.amount-text-line { border-bottom: 1px solid #333; padding-bottom: 5px; text-transform: uppercase; font-weight: bold; }
.check-footer { border-bottom: none; border-top: 1px dashed #999; padding-top: 10px; margin-top: 20px; }
.signature-line { text-align: center; }
.signature { font-family: 'Sacramento', cursive; font-size: 2.5rem; color: #001f7e; }
.signature-line span { display: block; font-size: 0.7rem; border-top: 1px solid #333; }

/* =================================================================
   DUYARLI TASARIM (RESPONSIVE DESIGN) İÇİN MEDYA SORGULARI
   ================================================================= */
@media (max-width: 992px) {
    body { overflow: visible; padding: 15px; align-items: flex-start; }
    .main-wrapper { flex-direction: column; align-items: center; width: 100%; gap: 20px; }
    #highscore-container, .game-container, #money-tree-container { width: 100%; max-width: 600px; order: 0; }
    .game-container { order: 1; }
    #money-tree-container { order: 2; }
    #highscore-container { order: 3; }
    #question-container, .option { font-size: 1rem; }
    .lifeline-btn { width: 55px; height: 55px; font-size: 22px; }
}
@media (max-width: 480px) {
    .options { grid-template-columns: 1fr; }
    #question-container, .option { clip-path: none; border-radius: 10px; padding-left: 20px; padding-right: 20px; }
    body { padding: 10px; }
    .modal-content { padding: 20px; }
    .chart-container { height: 150px; }
}
/* =================================================================
   BÜYÜK ÖDÜL KUTLAMA STİLLERİ
   ================================================================= */

/* Kazananın ekranına altın bir parlama ekliyoruz */
.grand-prize-winner {
    background: radial-gradient(ellipse at center, #3c320a 0%, #020230 70%) !important;
}

/* Başlığı ve mesajı altın rengi yapıyoruz */
.grand-prize-winner #endgame-title {
    color: #ffd700; /* Altın rengi */
    text-shadow: 0 0 15px #ffd700;
}
.grand-prize-winner #endgame-message {
    color: #fff;
    font-weight: bold;
}

/* Çeki daha belirgin hale getiriyoruz */
.grand-prize-winner .prize-check {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.grand-prize-winner .amount-box {
    color: #a17900;
    border-color: #a17900;
}
/* style.css dosyasının en sonuna ekle */

.endgame-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Butonlar arasına boşluk koyar */
    margin-top: 25px;
}