/* assets/css/style.css - Tüm Ekran Boyutlarıyla %100 Esnek (Fluid Responsive) Tema */

@import url('https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@500;700&family=Syne:wght@700&display=swap');

* {
    box-sizing: border-box;
    user-select: none;
}

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 50% 0%, rgba(224, 242, 254, 0.8) 0px, transparent 70%),
        radial-gradient(at 100% 100%, rgba(207, 250, 254, 0.6) 0px, transparent 60%),
        radial-gradient(at 0% 100%, rgba(224, 231, 255, 0.6) 0px, transparent 60%);
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Overpass Mono', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #0f172a;
    padding: clamp(8px, 2vw, 20px);
}

/* Sol Üst Marka Logosu & İkonu */
/* Sol Üst Alan: Marka Logosu & Aksiyon Butonları (Giriş Yap & Davet Et) */
.top-left-wrapper {
    position: fixed;
    top: clamp(10px, 2.5vw, 22px);
    left: clamp(10px, 2.5vw, 25px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
    z-index: 1000;
}

.top-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 12px);
    text-decoration: none;
    transition: transform 0.25s ease;
}

.top-brand-logo:hover {
    transform: scale(1.04);
}

.top-left-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-login-btn {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border-color: #bae6fd !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.top-login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

.top-invite-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #a7f3d0 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.top-invite-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}

.brand-icon {
    width: clamp(34px, 4.5vw, 44px);
    height: clamp(34px, 4.5vw, 44px);
    border-radius: clamp(8px, 1.2vw, 12px);
    background: linear-gradient(135deg, #0284c7 0%, #03376d 100%);
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
    border: 2px solid #ffffff;
    font-family: 'Overpass Mono', sans-serif;
    flex-shrink: 0;
}

.brand-text {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    font-family: 'Overpass Mono', sans-serif;
    white-space: nowrap;
}

/* Sağ Üst Kontrol Alanı (Varsayılan Sadece İkon, Hover'da Metin Açılır) */
.top-right-controls {
    position: fixed;
    top: clamp(10px, 2.5vw, 22px);
    right: clamp(10px, 2.5vw, 25px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.top-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    height: clamp(38px, 4.5vw, 44px);
    min-width: clamp(38px, 4.5vw, 44px);
    padding: 0 12px;
    border-radius: 22px;
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.85);
    font-family: 'Overpass Mono', sans-serif;
    overflow: hidden;
}

.top-ctrl-btn .btn-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
    margin-left: 0;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

.top-ctrl-btn:hover {
    padding: 0 16px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.top-ctrl-btn:hover .btn-label {
    max-width: 140px;
    opacity: 1;
    margin-left: 6px;
}

/* ==========================================================================
   TRANSPARENT GLASSMORPHIC BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-app-footer,
.bottom-footer-wrapper {
    display: none;
}

.bottom-app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 62px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(18px) saturate(190%);
    -webkit-backdrop-filter: blur(18px) saturate(190%);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 -4px 30px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 clamp(8px, 3vw, 24px);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Nav Öğeleri */
.bnav-item {
    flex: 1;
    max-width: 110px;
    height: calc(100% - 10px);
    margin: 5px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    text-decoration: none;
    cursor: default;
    background: transparent;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
}

/* Tıklanabilir Link Öğeleri */
.bnav-link {
    cursor: pointer;
}

.bnav-link:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.bnav-link:hover .bnav-icon svg {
    stroke: #0284c7;
    transform: scale(1.1);
}

.bnav-link:hover .bnav-label {
    color: #0284c7;
    font-weight: 800;
}

.bnav-link:active {
    transform: scale(0.96);
}

/* İkon Alanı */
.bnav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 1;
}

.bnav-icon svg {
    width: 20px;
    height: 20px;
    stroke: #475569;
    transition: all 0.22s ease;
}

/* Sayısal Değerler */
.bnav-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-family: 'Overpass Mono', monospace;
    letter-spacing: -0.2px;
}

/* Alt Etiket */
.bnav-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
    margin-top: 2px;
    font-family: 'Overpass Mono', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Canlı Parlayan Yanıp Sönen Halka */
.bnav-live-ring {
    position: absolute;
    top: 6px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.bnav-live-ring::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    animation: bnavPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.live-cyan {
    background: #0284c7;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}
.live-cyan::after {
    border: 2px solid #0284c7;
}

.live-green {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.live-green::after {
    border: 2px solid #10b981;
}

@keyframes bnavPulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Şampiyon Rozeti */
.bnav-badge {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Overpass Mono', monospace;
}

.bnav-badge-gold {
    color: #b45309;
}


/* Auth Modal Backdrop & Card */
.auth-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}

.auth-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: min(440px, 100%);
    padding: clamp(22px, 5vw, 32px);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 25px 60px -12px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

@keyframes modalPop {
    0% { transform: scale(0.88) translateY(12px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Modal Kapat Butonu */
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    line-height: 1;
}
.auth-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Modal Üst Başlık Şeridi */
.auth-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
    padding-top: 4px;
}

/* İkon Halkası */
.auth-modal-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1.5px solid #93c5fd;
}
.auth-modal-icon-ring svg {
    width: 26px;
    height: 26px;
    stroke: #1d4ed8;
}
.auth-icon-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
}
.auth-icon-green svg { stroke: #15803d; }

.auth-icon-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}
.auth-icon-amber svg { stroke: #b45309; }

/* Modal Başlık & Alt Başlık */
.auth-modal-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}
.auth-modal-subtitle {
    font-size: 0.83rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Hesap Kilidi Görseli (Misafir Uyarısı) */
.auth-lock-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.auth-lock-icon svg { width: 26px; height: 26px; stroke: #64748b; }
.auth-lock-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.auth-lock-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 20px 0;
}

/* İkili Buton Satırı */
.auth-dual-btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.auth-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid #0284c7;
    border-radius: 10px;
    color: #0284c7;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.auth-outline-btn:hover { background: #0284c7; color: #ffffff; }

.auth-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.auth-primary-btn:hover { background: linear-gradient(135deg, #059669 0%, #047857 100%); transform: translateY(-1px); }

/* Oturum Bandı */
.auth-session-band {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.18);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 600;
}
.auth-session-band svg { color: #0284c7; flex-shrink: 0; }
.auth-session-email {
    margin-left: auto;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

/* Textarea */
.auth-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #0f172a;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.auth-textarea:focus { border-color: #0284c7; }

/* Captcha Satırı */
.auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}
.auth-captcha-img {
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
}
.auth-captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: #0284c7;
    transition: all 0.18s ease;
    font-family: inherit;
}
.auth-captcha-refresh:hover { background: #e0f2fe; border-color: #0284c7; }

/* Ana Submit Butonu */
.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.22s ease;
    letter-spacing: 0.1px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.auth-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}

/* Hesap Aksiyonları (Şampiyonlar / Şifre / Çıkış) */
.auth-user-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 16px;
}
.auth-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.auth-user-avatar svg { width: 30px; height: 30px; stroke: #1d4ed8; }

.auth-account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.auth-account-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
}
.auth-btn-gold { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border: 1.5px solid #fcd34d; }
.auth-btn-gold:hover { background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%); }
.auth-btn-blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; border: 1.5px solid #93c5fd; }
.auth-btn-blue:hover { background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%); }
.auth-btn-red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border: 1.5px solid #fca5a5; }
.auth-btn-red:hover { background: linear-gradient(135deg, #fecaca 0%, #f87171 100%); }

/* Şifre Üret Butonu */
.auth-gen-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    font-family: inherit;
}
.auth-gen-btn:hover { background: #0369a1; }

/* Kopyala Butonu */
.auth-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: #0284c7;
    transition: all 0.18s ease;
    font-family: inherit;
}
.auth-copy-btn:hover { background: #dbeafe; border-color: #93c5fd; }

/* KVKK Onay Grubu */
.auth-consent-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.auth-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    cursor: pointer;
    font-weight: 500;
}
.auth-consent-chk {
    width: 15px !important;
    height: 15px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0284c7;
    flex-shrink: 0;
}

/* Seçenekler Satırı (Beni Hatırla / Şifremi Unuttum) */
.auth-row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: #475569;
    cursor: pointer;
    font-weight: 600;
}

/* Linkler */
.auth-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-link:hover { color: #0369a1; }

/* Geri Dön Linki */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease;
}
.auth-back-link:hover { color: #0284c7; }



.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Overpass Mono', sans-serif;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: #0284c7;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.auth-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#menuContents {
    position: fixed;
    top: clamp(55px, 8vw, 75px);
    right: clamp(10px, 2.5vw, 25px);
    width: min(340px, calc(100vw - 30px));
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(18px, 3vw, 24px);
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.hideThis {
    display: none !important;
}

/* Geri Sayım Çemberi (Soru Panelinin Dışında En Üstte Ortada) */
.quiz-timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(10px, 2vh, 20px) auto 8px auto;
    width: 100%;
}

.circular-timer {
    position: relative;
    width: clamp(118px, 16vw, 142px);
    height: clamp(118px, 16vw, 142px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
    border: 4px solid #bae6fd;
}

/* Soru Sıra Numarası (Geri Sayım Saatinin Altında Ortada) */
.top-quiz-counter {
    text-align: center;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    font-weight: 800;
    color: #03376d;
    margin: 0 auto 10px auto;
    letter-spacing: 2px;
    font-family: 'Overpass Mono', monospace;
    background: #ffffff;
    border: 2px solid #bae6fd;
    border-radius: 30px;
    padding: clamp(5px, 0.8vw, 8px) clamp(18px, 2.5vw, 28px);
    width: fit-content;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.1);
}


.timer-svg {
    width: 100%;
    height: 100%;
}

.timer-bg-circle {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 7;
}

.timer-progress-circle {
    fill: none;
    stroke: url(#timer-grad-normal);
    stroke-width: 7;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.9s linear, stroke 0.3s ease;
    stroke-dasharray: 264;
    stroke-dashoffset: 0;
}

.timer-progress-circle.warning-glow {
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
    animation: timerPulse 1s infinite alternate ease-in-out;
}

@keyframes timerPulse {
    0% { transform: rotate(-90deg) scale(1); }
    100% { transform: rotate(-90deg) scale(1.04); }
}

.timer-text-box {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

#timer-seconds-disp {
    font-size: clamp(2.8rem, 5.5vw, 3.8rem);
    font-weight: 900;
    color: #03376d;
    font-family: 'Overpass Mono', monospace;
    line-height: 1;
    transition: color 0.3s ease;
}

.timer-unit {
    font-size: clamp(0.58rem, 1vw, 0.68rem);
    font-weight: 800;
    color: #64748b;
    margin-top: 2px;
    letter-spacing: 1px;
    font-family: 'Overpass Mono', monospace;
}

/* Soru Kutusu (Buz Mavisi - Beyaz Şık Arka Plan) */
.question-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: clamp(14px, 2vw, 20px);
    padding: clamp(20px, 3.5vw, 32px);
    margin-bottom: clamp(18px, 3vw, 26px);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.question-text {
    font-size: clamp(1.1rem, 2vw + 0.4rem, 1.45rem);
    font-weight: 800;
    color: #03376d;
    line-height: 1.55;
    margin: 0;
}

.sender-tag {
    font-size: clamp(0.78rem, 1.2vw, 0.88rem);
    color: #0284c7;
    margin-top: 12px;
    font-weight: 700;
    font-style: normal;
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #bae6fd;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

/* Şıklar Altta 2x2 Grid (Masaüstü/Tablette 2 Sütun 2 Satır, Mobilde Alt Alta Tek Sütun) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 18px);
    margin-bottom: clamp(16px, 3vw, 25px);
}

@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.option-card {
    display: flex;
    align-items: center;
    padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
    background: #ffffff;
    border: 2px solid #cbd5e1; 
    border-radius: clamp(10px, 1.5vw, 14px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0284c7;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
    transform: translateY(-2px);
}

.option-badge {
    display: inline-block; 
    font-weight: 800;
    color: #d97706;
    margin-right: clamp(8px, 1.5vw, 12px);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    flex-shrink: 0;
}

.option-text {
    flex-grow: 1;
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 1.1rem);
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.option-card.selected {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #0284c7;
    box-shadow: 0 0 0 2px #0284c7, 0 6px 20px rgba(2, 132, 199, 0.25);
    transform: translateY(-1px);
}

.option-card.selected .option-badge {
    color: #0284c7;
}

/* Onay / Yeniden Dene / Aksiyon Butonları */
.btn-action {
    display: block;
    width: 100%;
    margin: 15px auto;
    padding: clamp(12px, 2vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0284c7 100%);
    color: white;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #0369a1 100%);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.45);
    transform: translateY(-2px);
}

.btn-action:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* İkinci Derece Butonlar */
.btn-secondary-action {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.btn-secondary-action:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
}

/* Kalan Süre Üst İlerleme Barı (Gizli) */
#time-progressbar {
    display: none;
}
#time-progressbar .inner {
    display: none;
}

/* Karşılama Ekranı Transparan Cover */
.cover-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: clamp(10px, 3vw, 20px);
}

.cover-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px;
    text-align: center;
    width: min(600px, 100%);
}

.cover-card h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: clamp(20px, 4vw, 35px);
    letter-spacing: -0.5px;
    color: #0f172a;
}

/* Yuvarlak, İçe Basık 1px Solid Çerçeveli Şık PLAY Butonu */
.soft-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(110px, 16vw, 140px);
    height: clamp(110px, 16vw, 140px);
    border-radius: 50%;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.9);
    cursor: pointer;
    box-shadow: inset 0 6px 16px rgba(15, 23, 42, 0.12), inset 0 -4px 10px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 auto;
    outline: none;
    position: relative;
}

.soft-start-btn .play-icon {
    font-size: clamp(2.4rem, 4.8vw, 3.2rem);
    color: #0284c7;
    margin-left: 6px; /* Play üçgeninin optik olarak tam ortalanması için */
    transition: all 0.25s ease;
    filter: drop-shadow(0 2px 5px rgba(2, 132, 199, 0.25));
}

.soft-start-btn:hover {
    transform: scale(1.08);
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: inset 0 8px 20px rgba(2, 132, 199, 0.18), inset 0 -4px 10px rgba(255, 255, 255, 1), 0 12px 30px rgba(2, 132, 199, 0.25);
}

.soft-start-btn:hover .play-icon {
    color: #2563eb;
    transform: scale(1.1);
    filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.4));
}

.soft-start-btn:active {
    transform: scale(0.96);
    box-shadow: inset 0 10px 22px rgba(15, 23, 42, 0.22), inset 0 -2px 6px rgba(255, 255, 255, 0.6);
}

/* Sertifika Alanı */
#certificate-box {
    padding: clamp(10px, 2vw, 20px);
}

#cert-img-result {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Alt İstatistikler & Sosyal Çubuk (Simetrik Kompakt Kapsül) */
.footer-stats-pill,
.footer-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
    color: #475569;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.footer-stats-pill:hover,
.footer-stats:hover {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
    border-color: #94a3b8;
}

/* ==========================================================================
   ANDROID BOTTOM NAV BAR - ITEM STYLES
   ========================================================================== */

/* Her nav öğesi: dikey sütun, ortada ikon + sayı + etiket */
.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    text-decoration: none;
    cursor: default;
    color: #64748b;
    transition: color 0.18s ease, background 0.18s ease;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    border-right: 1px solid #f1f5f9;
    user-select: none;
}
.bnav-item:last-child { border-right: none; }

/* Etkileşimli (link) öğeler */
.bnav-link { cursor: pointer; }

/* Hover efekti */
.bnav-link:hover {
    background: #f8fafc;
    color: #1e40af;
}
.bnav-link:hover .bnav-icon { color: #1e40af; }

/* İkon alanı */
.bnav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.18s ease;
    position: relative;
}
.bnav-icon svg {
    width: 20px;
    height: 20px;
}

/* Sayısal değer (Ziyaretçi, Oyuncu sayısı) */
.bnav-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
    font-family: 'Overpass Mono', monospace;
    line-height: 1;
}

/* Etiket */
.bnav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Canlı gösterge halkası (ikon üstüne yerleşir) */
.bnav-live-ring {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    z-index: 1;
}
.live-cyan {
    background: #0ea5e9;
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.8);
}
.live-green {
    background: #22c55e;
    animation: bnavLivePulse 2s infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}
@keyframes bnavLivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* Rozet (Şampiyonlar sayısı) */
.bnav-badge {
    font-size: 0.65rem;
    font-weight: 800;
    font-family: 'Overpass Mono', monospace;
    padding: 1px 5px;
    border-radius: 20px;
    line-height: 1.3;
}
.bnav-badge-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Renk varyantları */
.bnav-stat .bnav-icon { color: #64748b; }
.bnav-stat:hover { background: #f8fafc; }

.bnav-champions .bnav-icon { color: #d97706; }
.bnav-champions .bnav-label { color: #b45309; }
.bnav-champions:hover { background: #fffbeb; }
.bnav-champions:hover .bnav-icon { color: #b45309; }

.bnav-social .bnav-icon { color: #6366f1; }
.bnav-social .bnav-label { color: #818cf8; }
.bnav-social:hover { background: #f0f0ff; }
.bnav-social:hover .bnav-icon { color: #4f46e5; }

.bnav-apk .bnav-icon { color: #22c55e; }
.bnav-apk .bnav-label { color: #16a34a; }
.bnav-apk:hover { background: #f0fdf4; }
.bnav-apk:hover .bnav-icon { color: #16a34a; }

/* Sosyal Medya Modalı İçin Kart Stilleri */
.social-modal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.98rem;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.social-modal-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    color: #ffffff !important;
}
.fb-card { background: linear-gradient(135deg, #1877f2 0%, #0b5ed7 100%); }
.ig-card { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tw-card { background: linear-gradient(135deg, #0f172a 0%, #1da1f2 100%); }
.yt-card { background: linear-gradient(135deg, #ff0000 0%, #b30000 100%); }
.social-modal-icon { font-size: 1.3rem; }
.social-modal-arrow { margin-left: auto; font-size: 1rem; opacity: 0.85; }

/* Alt Sosyal Medya Bağlantıları (Orta Kısım) */
.footer-social-box {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 12px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    margin: 0 auto;
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #475569;
    font-size: clamp(0.78rem, 1.2vw, 0.85rem);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.social-item:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.social-icon {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
}

/* Ekran Uyumluluk Medya Kuralları */
@media (max-width: 768px) {
    .bottom-footer-wrapper {
        position: fixed;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100vw - 16px);
        z-index: 1000;
    }
    .footer-stats-pill,
    .footer-stats {
        gap: 6px;
        padding: 5px 12px;
        font-size: 0.72rem;
        border-radius: 22px;
    }
    .stat-divider {
        font-size: 0.68rem;
    }
}

@media (max-width: 600px) {
    .top-brand-logo {
        top: 10px;
        left: 10px;
    }
    .top-right-controls {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    .top-ctrl-btn {
        height: 38px;
        min-width: 38px;
        padding: 0 8px;
    }
    /* Mobilde dokunulduğunda butonların yana doğru fırlayıp taşmaması için genişlemeyi engelliyoruz */
    .top-ctrl-btn:hover {
        padding: 0 8px;
        transform: none;
    }
    .top-ctrl-btn:hover .btn-label {
        max-width: 0 !important;
        opacity: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 500px) {
    .brand-text {
        display: none;
    }
}

#quiz-game-area {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .bottom-app-nav {
        height: 58px;
    }
    .bnav-icon svg {
        width: 18px;
        height: 18px;
    }
    .bnav-val {
        font-size: 0.78rem;
    }
    .bnav-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .top-left-wrapper {
        top: max(10px, env(safe-area-inset-top));
        left: max(10px, env(safe-area-inset-left));
        gap: 6px;
    }
    .top-left-actions {
        gap: 6px;
    }
    .top-brand-logo .brand-text {
        display: none !important;
    }
    .top-right-controls {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
    }
    .bottom-app-nav {
        height: 56px;
    }
    .bnav-icon svg {
        width: 17px;
        height: 17px;
    }
    .bnav-val {
        font-size: 0.74rem;
    }
    .bnav-label {
        display: none; /* Çok dar ekranlarda etiketi gizle */
    }
    .bnav-champions .bnav-label,
    .bnav-apk .bnav-label {
        display: block; /* Aksiyon etiketleri görünsün */
        font-size: 0.55rem;
    }
    .bnav-live-ring {
        width: 6px;
        height: 6px;
    }
}
    .game-controls-header {
        padding: 8px 10px;
        margin-bottom: 12px;
        justify-content: center;
        border-radius: 14px;
    }
    .game-jokers-bar {
        gap: 10px;
        margin: 0;
        justify-content: center;
    }
    .game-joker-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        font-size: 1.2rem;
        border-radius: 50%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .leave-quiz-float-btn, #leave-quiz-btn {
        top: max(10px, env(safe-area-inset-top)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.15rem;
    }
    .question-container {
        padding: 16px 12px;
        margin-bottom: 14px;
        border-radius: 12px;
    }
    .question-text {
        font-size: 1.05rem;
        line-height: 1.45;
    }
    .options-grid {
        gap: 8px;
        margin-bottom: 15px;
    }
    .option-card {
        padding: 10px 12px;
        border-radius: 10px;
        word-break: break-word;
        hyphens: auto;
    }
    .option-badge {
        font-size: 0.95rem;
        margin-right: 8px;
    }
    .option-text {
        font-size: 0.88rem;
    }
    .top-quiz-counter {
        margin-bottom: 8px;
        padding: 3px 12px;
        font-size: 0.78rem;
    }
    .quiz-timer-wrapper {
        margin-top: 6px;
        margin-bottom: 6px;
    }
    .circular-timer {
        width: 100px;
        height: 100px;
    }
    #timer-seconds-disp {
        font-size: 2.5rem;
    }
    .timer-unit {
        font-size: 0.55rem;
        margin-top: 0;
    }
    /* Elenme ve Sonuç Ekranı Mobil Uyumluluğu */
    #result-title {
        font-size: clamp(1.35rem, 5vw, 1.8rem) !important;
        line-height: 1.35 !important;
    }
    #result-message {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        margin: 12px 0 !important;
    }
    #result-message p {
        font-size: 0.88rem !important;
        margin-bottom: 8px !important;
    }
    #result-message div {
        padding: 10px !important;
        margin-top: 10px !important;
    }
    /* Giriş / Karşılama Ekranı Özlü Söz Alanı Mobil Uyumu */
    .welcome-quote-clean {
        margin-top: -10px !important;
        margin-bottom: 40px !important;
    }
    .welcome-quote-clean .quote-text {
        font-size: 1.25rem !important;
    }
    .welcome-quote-clean .quote-author {
        font-size: 0.95rem !important;
    }
    /* Joker Seçim / Kuşanma Ekranı Mobil Uyumu */
    .joker-modal-card {
        padding: 14px 10px !important;
        width: min(420px, 96%) !important;
    }
    .joker-modal-header h2 {
        font-size: 1.25rem !important;
        gap: 6px !important;
    }
    .joker-modal-header p {
        font-size: 0.78rem !important;
        margin-bottom: 12px !important;
    }
    .joker-loadout-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Mobilde 2 sütun şeklinde toplayıp dikey uzunluğu azaltıyoruz */
        gap: 6px !important;
    }
    .joker-item-card {
        padding: 6px 4px !important;
        border-radius: 10px !important;
    }
    .joker-icon {
        font-size: 1.6rem !important;
        margin-bottom: 2px !important;
    }
    .joker-name {
        font-size: 0.75rem !important;
    }
    .joker-desc {
        font-size: 0.6rem !important;
        margin-top: 2px !important;
        line-height: 1.1 !important;
    }
    #confirm-jokers-btn {
        padding: 10px 16px !important;
        font-size: 0.92rem !important;
    }
}

/* ==========================================================================
   JOKER KUŞANMA (LOADOUT) VE OYUN İÇİ JOKER STİLLERİ
   ========================================================================== */
.joker-modal-card {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #bae6fd;
    padding: clamp(20px, 3.5vw, 32px);
    width: min(640px, 94%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.2);
    text-align: center;
    position: relative;
    animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.joker-modal-header h2 {
    margin: 0 0 6px 0;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: #0f172a;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.joker-count-badge {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
}

.joker-modal-header p {
    color: #64748b;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.joker-loadout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.joker-item-card {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.joker-item-card:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.joker-item-card.equipped {
    border-color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
    transform: translateY(-3px);
}

.joker-equipped-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.joker-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.joker-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.joker-desc {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.2;
}

/* Oyun İçi Kontrol Paneli (4 Joker Ortalanmış) */
.game-controls-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.game-jokers-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    flex-wrap: nowrap;
}

.game-joker-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid #bae6fd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #03376d;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-joker-btn:hover:not(.used) {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.25);
    transform: translateY(-2px);
}

.game-joker-btn.used {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Sağ Üst Dış Konumda Oyunu Terk Et Butonu (Buz Mavisi Arka Plan, Siyah İkon) */
.leave-quiz-float-btn, #leave-quiz-btn {
    position: fixed;
    top: clamp(10px, 2.5vw, 22px);
    right: clamp(10px, 2.5vw, 25px);
    margin: 0;
    padding: 0;
    width: clamp(38px, 4.5vw, 44px);
    height: clamp(38px, 4.5vw, 44px);
    min-width: clamp(38px, 4.5vw, 44px);
    min-height: clamp(38px, 4.5vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
    border: 2px solid #7dd3fc;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.leave-quiz-float-btn:hover, #leave-quiz-btn:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    border-color: #38bdf8;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.leave-quiz-float-btn .leave-icon, #leave-quiz-btn .leave-icon, #leave-quiz-btn span {
    color: #0f172a;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* İpucu Baloncuğu */
.hint-bubble {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    animation: fadeInDown 0.3s ease;
}

/* Yapay Zeka Tahmin Rozeti */
.ai-pred-badge {
    margin-left: auto;
    background: #e0f2fe;
    color: #03376d;
    border: 1px solid #bae6fd;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 12px;
}

.ai-pred-badge.highest-prob {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    font-size: 0.85rem;
}

/* Seyirci / Çoğunluk Oransal Dağılım Çubukları */
.stat-bar-wrapper {
    position: relative;
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill.highest-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.stat-bar-text {
    position: absolute;
    right: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #0f172a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Kalkan & Dondurulmuş Sayaç Efektleri */
.shield-active-glow {
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4) !important;
}

.frozen-timer-glow {
    stroke: #38bdf8 !important;
    filter: drop-shadow(0 0 10px #38bdf8);
}

/* Ana Sayfa Karşılama Sade Özlü Söz (Arka Plan Kart ve Başlıksız) */
.welcome-quote-clean {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 90px;
    margin-top: -65px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

.welcome-quote-clean .quote-text {
    font-family: 'Overpass Mono', 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 12px;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.welcome-quote-clean .quote-author {
    font-family: 'Overpass Mono', 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* ==========================================================================
   SESLİ & ANİMASYONLU INTRO LOADER TASARIMI (SOFT BEYAZ & BUZ MAVİSİ)
   ========================================================================== */
.app-intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(at 50% 30%, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.app-intro-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    pointer-events: none;
}

.loader-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 380px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 36px 30px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.15), 0 2px 10px rgba(255, 255, 255, 0.8) inset;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
}

/* Dönen & Parlayan 3D Ring Efektleri */
.loader-orb-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.loader-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2.5px solid transparent;
}

.loader-pulse-ring.ring-1 {
    width: 120px;
    height: 120px;
    border-top-color: #0284c7;
    border-right-color: #38bdf8;
    animation: spinRing 1.8s linear infinite;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.25);
}

.loader-pulse-ring.ring-2 {
    width: 96px;
    height: 96px;
    border-bottom-color: #10b981;
    border-left-color: #34d399;
    animation: spinRingReverse 1.4s linear infinite;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.loader-pulse-ring.ring-3 {
    width: 74px;
    height: 74px;
    border-top-color: #6366f1;
    border-left-color: #818cf8;
    animation: spinRing 2.2s linear infinite;
}

.loader-center-orb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    animation: orbPulse 1.5s ease-in-out infinite alternate;
}

.loader-number {
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Overpass Mono', monospace;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes orbPulse {
    0% { transform: scale(0.94); box-shadow: 0 5px 20px rgba(37, 99, 235, 0.35); }
    100% { transform: scale(1.06); box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6); }
}

/* Başlık Metinleri */
.loader-brand-title {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 3.5px;
    color: #0f172a;
    margin-bottom: 2px;
}

.loader-subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* İlerleme Çubuğu */
.loader-progress-wrapper {
    width: 100%;
    height: 7px;
    background: rgba(2, 132, 199, 0.12);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #10b981 50%, #2563eb 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.loader-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
}

.loader-status-text {
    color: #64748b;
}

.loader-percent-text {
    color: #0284c7;
    font-family: 'Overpass Mono', monospace;
    font-weight: 800;
}

/* ==========================================
   CAPACITOR ANDROID APK MOBIL UYUMLULUK STİLLERİ
   ========================================== */
.is-capacitor {
    scroll-behavior: auto !important;
    overflow: hidden !important;
}

.is-capacitor body {
    overflow: hidden !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding-top: calc(env(safe-area-inset-top) + 20px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px) !important;
    box-sizing: border-box;
}

/* Mobilde kaydırmaları tamamen engelle */
.is-capacitor .cover-wrapper,
.is-capacitor #quiz-game-area {
    touch-action: none;
}

/* Soru alanının yüksekliğini kısıtla ve taşmaları engelle */
.is-capacitor #quiz-game-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: calc(env(safe-area-inset-top) + 8px) !important;
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.is-capacitor .main-card {
    max-height: calc(100vh - 120px) !important;
    max-height: calc(100dvh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px !important;
    width: 100% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 30px) !important;
}

/* Safe Area Insetlerin Düğmelere Taşmamasını Sağla */
.is-capacitor .top-brand-logo {
    top: calc(env(safe-area-inset-top) + 12px) !important;
    left: calc(env(safe-area-inset-left) + 12px) !important;
}

.is-capacitor .top-right-controls {
    top: calc(env(safe-area-inset-top) + 12px) !important;
    right: calc(env(safe-area-inset-right) + 12px) !important;
}

/* ==========================================
   SONUÇ VE ELENDİNİZ EKRANI MOBİL UYUMLU STİLLERİ
   ========================================== */
/* ========== PREMIUM ELENDİNİZ KARTI ========== */
#result-box, .result-box-container {
    text-align: center;
    padding: 10px 8px 80px 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.4s ease-out;
}

/* Ana Elendiniz Kartı */
.elim-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 24px 28px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 20px 40px -8px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* X İkon Halkası */
.elim-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    animation: elimIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 3px solid #fca5a5;
}
.elim-icon-ring svg {
    width: 36px;
    height: 36px;
    stroke: #dc2626;
    stroke-width: 2.5;
}

@keyframes elimIconPop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Büyük Başlık */
.elim-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Esprili Alt Başlık */
.elim-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 22px 0;
    font-weight: 500;
    line-height: 1.4;
    padding: 0 8px;
}

/* İstatistik Şeridi */
.elim-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.elim-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    gap: 4px;
}

.elim-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    font-family: 'Overpass Mono', monospace;
    line-height: 1;
}

.elim-stat-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elim-stat-sep {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* İlerleme Çubuğu */
.elim-progress-track {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.elim-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.elim-progress-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    margin: 0 0 18px 0;
}

/* Espri / Alıntı Kartı */
.elim-quote-card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 16px;
}
.elim-quote-card svg { color: #d97706; margin-top: 2px; }

/* Misafir Üyelik Bandı */
.elim-guest-banner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: #0369a1;
    font-weight: 500;
    text-align: left;
    flex-wrap: wrap;
}
.elim-guest-banner svg { color: #0284c7; flex-shrink: 0; }
.elim-guest-banner span { flex: 1; min-width: 140px; }
.elim-guest-join-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.elim-guest-join-btn:hover { background: #0369a1; }

/* Aksiyon Butonları Satırı */
.elim-action-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.elim-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.22s ease;
    letter-spacing: 0.1px;
}

.elim-btn-share {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.elim-btn-share:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.elim-btn-replay {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}
.elim-btn-replay:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.45);
}

/* Eski result butonları (fallback) */
#result-actions {
    margin-top: 16px;
    margin-bottom: 40px;
    padding-bottom: clamp(25px, 5vh, 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 20;
}

/* Legacy uyum: eski başlık rozeti (artık kullanılmıyor) */
.result-header-badge {
    display: none;
}
.result-quote-card { display: none; }

/* Eski btn-action fallback */
#result-actions .btn-action,
.btn-share-action,
.btn-replay-action {
    min-height: 48px;
    padding: 12px 26px;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-share-action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3) !important;
}
.btn-share-action:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px);
}
.btn-replay-action {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.3) !important;
}
.btn-replay-action:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .elim-card {
        padding: 24px 16px 20px;
        border-radius: 16px;
    }
    .elim-icon-ring {
        width: 60px;
        height: 60px;
    }
    .elim-icon-ring svg {
        width: 28px;
        height: 28px;
    }
    .elim-title { font-size: 1.5rem; }
    .elim-stat-num { font-size: 1.3rem; }
    .elim-btn { padding: 11px 12px; font-size: 0.85rem; }
}

/* Genel SVG İkon Hizalaması */
.btn-icon svg,
.stat-icon svg,
.leave-icon svg,
.game-joker-btn svg,
.btn-action svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.top-ctrl-btn .btn-icon,
.bottom-right-login-btn .btn-icon,
.bottom-right-invite-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Capacitor / Mobil APK Özel Alt Boşluk Koruması */
.is-capacitor #result-box {
    padding-bottom: calc(env(safe-area-inset-bottom) + 80px) !important;
    margin-bottom: 50px !important;
}

.is-capacitor #result-actions {
    margin-bottom: calc(env(safe-area-inset-bottom) + 60px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 40px) !important;
}

/* Günlük Seri (Daily Streak) Kontrol Butonu */
.streak-ctrl-btn {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    border-color: #fdba74 !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}

.streak-ctrl-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45) !important;
}

/* Oyun İçi Hafif Mikro Bildirim (Oyun Akışını Asla Kesmez) */
.game-micro-toast {
    position: fixed;
    top: clamp(65px, 9vh, 85px);
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 800;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border: 2px solid #10b981;
    backdrop-filter: blur(8px);
    animation: toastPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.game-micro-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.35s ease;
}

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

/* ==========================================================================
   YASAL SÖZLEŞMELER & KVKK DETAY MODALI (PREMIUM READER UI)
   ========================================================================== */
.contract-modal-card {
    background: #ffffff;
    border-radius: 24px;
    width: min(720px, 94vw);
    max-height: 88vh;
    padding: 0;
    box-shadow:
        0 20px 60px -15px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.contract-modal-header {
    padding: 20px 24px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contract-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.contract-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.contract-header-title-wrap {
    min-width: 0;
}

.contract-header-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

/* Tab Şeridi */
.contract-tabs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.contract-tabs-nav::-webkit-scrollbar { display: none; }

.contract-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.contract-tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.contract-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

/* Okuma Alanı */
.contract-modal-body {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
    background: #ffffff;
    max-height: 52vh;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.contract-modal-body::-webkit-scrollbar {
    width: 6px;
}
.contract-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.contract-modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.contract-article-content {
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.7;
    font-family: inherit;
}

.contract-article-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.contract-article-content h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0284c7;
    margin: 20px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contract-article-content p {
    margin: 0 0 12px 0;
}

.contract-article-content ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.contract-article-content li {
    margin-bottom: 6px;
}

.contract-article-content strong {
    color: #0f172a;
    font-weight: 700;
}

.contract-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid #e2e8f0;
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Alt Butonlar */
.contract-modal-footer {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contract-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.contract-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.contract-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.contract-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Sound Button Styling & Micro-Animations */
#sound-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#sound-btn:hover {
    transform: translateY(-1px) scale(1.03);
}
#sound-btn:active {
    transform: translateY(1px) scale(0.97);
}

/* Option Card Ripple and Selection Polish */
.option-card {
    position: relative;
    overflow: hidden;
}
.option-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    pointer-events: none;
}
.option-card:active::after {
    width: 250%;
    height: 250%;
    opacity: 1;
    transition: 0s;
}

@keyframes pulseGlowGold {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 28px rgba(245, 158, 11, 0.6); }
}

/* SweetAlert2 Modal & Backdrop Öncelik Kuralı (Her zaman en üstte görünmesi için) */
.swal2-container {
    z-index: 99999999 !important;
}
.swal2-popup {
    z-index: 99999999 !important;
}



