/* ========================================================
   Sihirli Ada Kreşi (Pocket Beast Haven) - Stil Dosyası
   ======================================================== */

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --accent: #FD79A8;
    --gold: #FFD32A;
    --green: #00B894;
    --blue: #0984E3;
    --dark: #2D3436;
    --light: #F8F9FA;
    --bg-card: rgba(255, 255, 255, 0.92);
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15);
    --border-radius: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    font-family: var(--font-family);
    background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 70%, #030712 100%);
    color: var(--dark);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    height: 100dvh;
    background: linear-gradient(180deg, #5C7CEB 0%, #9AC5FD 60%, #FED4E7 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* iPad ve Tablet Ekranları İçin Optimize Edilmiş Genişletme */
@media (min-width: 640px) {
    #game-container {
        border-radius: 32px;
        max-width: 580px;
        height: 94dvh;
        max-height: 960px;
    }
}

@media (min-width: 900px) {
    #game-container {
        max-width: 640px;
        height: 92dvh;
    }
}

/* ==========================================
   ÜST HUD (KAYNAKLAR & BİYOM)
   ========================================== */
#hud-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: max(10px, env(safe-area-inset-top)) 10px 10px 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.2) 65%, rgba(15, 23, 42, 0) 100%);
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    pointer-events: auto;
    width: 100%;
    box-sizing: border-box;
}

.biome-badge {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 14.5px;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 10px rgba(251, 191, 36, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 2px solid #F59E0B;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biome-badge:hover {
    transform: scale(1.05);
    border-color: #FDE68A;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.biome-badge:active {
    transform: scale(0.97);
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.save-status-badge {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: #4ADE80;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: 1.5px solid rgba(34, 197, 94, 0.55);
    transition: all 0.2s;
}

.save-status-badge:hover {
    transform: scale(1.04);
}

.save-status-badge.pulse-green {
    background: #10B981;
    color: #FFF;
    border-color: #34D399;
    transform: scale(1.08);
}

.btn-icon-hud {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, border-color 0.2s;
    flex-shrink: 0;
}

.btn-icon-hud:active {
    transform: scale(0.9);
}

.hud-resources {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    pointer-events: auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.res-pill {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border-radius: 26px;
    padding: 4px 8px 4px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid rgba(148, 163, 184, 0.4);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
    min-height: 48px;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.res-pill:active {
    transform: scale(0.96);
}

.hud-pill-coin {
    border: 2px solid #F59E0B;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.hud-pill-gem {
    border: 2px solid #0EA5E9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.hud-pill-energy {
    border: 2px solid #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.hud-pill-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.res-pill:active .hud-pill-icon {
    transform: scale(1.12);
}

.hud-energy-icon {
    font-size: 24px;
    line-height: 1;
    margin-left: 3px;
    margin-right: 1px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.res-pill .value-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    flex: 1;
    justify-content: center;
}

.res-pill .val {
    font-weight: 900;
    font-size: 15px;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-pill .sub-val {
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hud-pill-coin .sub-val {
    color: #FCD34D;
}

.hud-pill-gem .sub-val {
    color: #7DD3FC;
}

.hud-pill-energy .sub-val {
    color: #6EE7B7;
}

/* Küçük mobil ekranlar için hafif ve dengeli uyum (yalnızca %1-3 hafif ayar) */
@media (max-width: 400px) {
    #hud-header {
        padding: max(8px, env(safe-area-inset-top)) 8px 6px 8px;
    }

    .hud-resources {
        gap: 5px;
    }

    .res-pill {
        padding: 4px 6px 4px 4px;
        min-height: 46px;
        gap: 5px;
        border-radius: 24px;
    }

    .hud-pill-icon {
        width: 36px;
        height: 36px;
    }

    .hud-energy-icon {
        font-size: 22px;
        margin-left: 2px;
    }

    .res-pill .val {
        font-size: 14.6px;
    }

    .res-pill .sub-val {
        font-size: 10.2px;
    }

    .fantasy-header-wrap,
    .shop-fantasy-header-wrap,
    .beastiary-modal-top {
        padding: 12px 42px 10px 42px !important;
        min-height: 50px !important;
    }

    .fantasy-ribbon,
    .shop-fantasy-ribbon,
    .beastiary-ribbon-title {
        padding: 6px 14px !important;
    }

    .fantasy-title,
    .shop-fantasy-title,
    .beastiary-ribbon-title span {
        font-size: 14.8px !important;
    }

    .fantasy-close-btn,
    .shop-close-btn {
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .biome-badge {
        padding: 7px 14px !important;
        font-size: 14px !important;
    }

    .synergy-badge {
        padding: 6px 10px !important;
        font-size: 11.2px !important;
    }

    .btn-icon-hud {
        width: 35px !important;
        height: 35px !important;
        font-size: 15.5px !important;
    }
}

/* ==========================================
   ÇILGIN MOD (FRENZY) BANNERI
   ========================================== */
#frenzy-active-banner {
    display: none;
    position: absolute;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%);
    border: 2px solid #ff7675;
    padding: 6px 16px;
    border-radius: 30px;
    z-index: 25;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #d63031;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.4);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(0.98); }
    100% { transform: translateX(-50%) scale(1.04); }
}

.new-island-banner {
    position: absolute;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA502 100%);
    border: 2px solid #FFF;
    padding: 8px 18px;
    border-radius: 30px;
    z-index: 26;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #2D3436;
    box-shadow: 0 6px 20px rgba(255, 165, 2, 0.55);
    cursor: pointer;
    animation: bounceBanner 1.2s infinite;
}

@keyframes bounceBanner {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.banner-rocket-icon {
    font-size: 18px;
    display: inline-block;
}

/* ==========================================
   CANVAS & OYUN ALANI
   ========================================== */
#viewport-container {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#island-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    touch-action: none;
    -webkit-touch-callout: none;
}

/* Uçan Balon & Hediye Sandığı */
#flying-chest-balloon {
    display: none;
    position: absolute;
    z-index: 15;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    animation: floatUpDown 2.5s ease-in-out infinite alternate;
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.balloon-body {
    font-size: 38px;
    line-height: 1;
}

.balloon-chest {
    font-size: 26px;
    margin-top: -6px;
}

/* ==========================================
   SOL YÜZEN HIZLI AKSİYON ROZETİ (HAZİNE KAZISI)
   ========================================== */
.floating-side-actions {
    position: absolute;
    top: calc(max(10px, env(safe-area-inset-top)) + 130px);
    left: 8px;
    z-index: 18;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.floating-action-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding-top: 2px;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-action-widget:active {
    transform: scale(0.88);
}

.floating-action-circle {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 2px solid rgba(251, 191, 36, 0.65);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.floating-action-widget:hover .floating-action-circle {
    border-color: #fbbf24;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

/* 1. Kazı Hazır Animasyonu */
.widget-dig.is-ready .floating-action-circle {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(2, 44, 34, 0.98) 100%);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    animation: pulseReady 2.2s infinite ease-in-out;
}

/* 1b. Kazı Bekleme Süresinde */
.widget-dig.is-cooldown .floating-action-circle {
    border-color: rgba(148, 163, 184, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.94) 100%);
    opacity: 0.95;
}

/* 2. Ada Otomasyonu (Yardımcı Cüceler) */
.widget-helpers .floating-action-circle {
    border-color: rgba(56, 189, 248, 0.7);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(12, 74, 110, 0.9) 100%);
}

.widget-helpers:hover .floating-action-circle {
    border-color: #38bdf8;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
}

.floating-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s;
}

.floating-action-widget:hover .floating-icon {
    transform: scale(1.08);
}

.floating-action-label {
    font-size: 11px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.4px;
    margin-top: 3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.85);
}

/* Canlı Sayaç & "HAZIR!" Rozeti (Kazı için - Butona Bitişik & Ekran İçinde) */
.floating-badge-mini {
    position: absolute;
    top: -20px;
    left: -6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.3px;
    padding: 2px 6.5px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    z-index: 5;
}

.floating-badge-mini.cooldown {
    background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
    border-color: rgba(251, 191, 36, 0.7);
    color: #FDE047;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.floating-badge-mini.is-ready {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-color: #ffffff;
    animation: bounceMini 2s infinite ease-in-out;
}

/* Sayı Rozeti (Yardımcı Sayısı için) */
.floating-badge-counter {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

@keyframes pulseReady {
    0%, 100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 22px rgba(16, 185, 129, 0.9), inset 0 1px 3px rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
}

@keyframes bounceMini {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@media (max-width: 400px) {
    .floating-side-actions {
        top: calc(max(8px, env(safe-area-inset-top)) + 124px);
        left: 6px;
        gap: 6px;
    }
    .floating-action-circle {
        width: 44px;
        height: 44px;
    }
    .floating-icon {
        font-size: 21px;
    }
    .floating-action-label {
        font-size: 10px;
    }
    .floating-badge-mini {
        top: -18px;
        left: -4.5px;
        font-size: 8.5px;
        padding: 1.5px 5.5px;
    }
    .beastiary-tab-btn {
        padding: 5px 4px;
        font-size: 9.8px;
        gap: 3px;
    }
}

/* ==========================================
   ALT NAVİGASYON (DOCK)
   ========================================== */
#bottom-dock {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 2px solid rgba(251, 191, 36, 0.35);
    display: flex;
    justify-content: space-around;
    padding: 8px 6px max(14px, env(safe-area-inset-bottom)) 6px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.dock-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    transition: transform 0.15s;
}

.dock-btn:active {
    transform: scale(0.88);
}

.dock-btn .btn-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.dock-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.dock-btn.primary-action .btn-icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: 2px solid #FDE68A;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.dock-btn .btn-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    transition: color 0.2s;
}

.dock-btn:hover .btn-label {
    color: #F1F5F9;
}

.dock-btn.primary-action .btn-label {
    color: #FCD34D;
    font-weight: 800;
}

/* Alt Navigasyon Rozetleri ve Kazı Bekleme Süresi */
.dock-mini-badge {
    display: none;
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #636E72, #2D3436);
    color: #FFFFFF;
    font-size: 7.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.dock-mini-badge.cooldown {
    display: inline-block;
}

.dock-btn.is-cooldown .btn-icon {
    opacity: 0.85;
}

/* Hazine Kazısı Bekleme Modalı */
.cooldown-clock-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.12));
    border: 2px dashed rgba(108, 92, 231, 0.35);
    border-radius: 18px;
    padding: 12px;
    margin: 10px 0 12px 0;
}

.cooldown-clock-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
}

/* 3 Reklam İle Ekstra Kazı Hakkı Kutusu */
.dig-ad-unlock-card {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.16), rgba(225, 112, 85, 0.1));
    border: 1.5px solid rgba(243, 156, 18, 0.45);
    border-radius: 18px;
    padding: 12px 14px;
    margin: 10px 0;
}

.dig-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #2D3436;
    margin-bottom: 10px;
}

.dig-ad-counter {
    background: var(--primary);
    color: #FFFFFF;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.dig-ad-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dig-ad-step {
    flex: 1;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #DFE6E9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #636E72;
    transition: all 0.25s ease;
}

.dig-ad-step.completed {
    background: linear-gradient(135deg, #00B894, #55EFC4);
    border-color: #00B894;
    color: #FFFFFF;
    transform: scale(1.04);
    box-shadow: 0 3px 8px rgba(0, 184, 148, 0.35);
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================
   MODAL PENCERELER (GLASSMORPHISM)
   ========================================== */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.2s ease-out;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-overlay.active {
    display: flex;
}

#modal-ad-simulator {
    z-index: 250;
}

.modal-sheet {
    width: 100%;
    max-height: 85vh;
    background: linear-gradient(180deg, #FAF4E4 0%, #F5E8C9 100%);
    border: 3.5px solid #C49137;
    border-radius: 28px 28px 0 0;
    padding: 0 20px 28px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(109, 76, 29, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: block;
    animation: slideUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sabit Başlıklı (Kaydırmasız Sabit Header) Modal Düzeni */
.modal-sheet.modal-sheet-fixed-header {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(85vh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 28px 20px;
}

@media (min-width: 768px) {
    .modal-sheet {
        border-radius: 28px;
        width: 90%;
        max-height: 80vh;
    }

    .modal-scroll-body {
        max-height: calc(80vh - 68px);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 25;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0 -20px 16px -20px;
    padding: 20px 20px 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px 28px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-sheet.modal-sheet-fixed-header .modal-header {
    margin: 0;
    position: relative;
}

.modal-header h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-modal {
    background: #F1F2F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

/* Buton Stilleri */
.btn {
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #6C5CE7, #8E44AD);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.btn-accent {
    background: linear-gradient(135deg, #FD79A8, #E84393);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, #F1C40F, #F39C12);
    color: #2D3436;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid #DFE6E9;
    color: #636E72;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
}

/* Günlük Altın Yumurta & Frenzy Bannerları */
.daily-egg-banner, .frenzy-shop-banner {
    background: linear-gradient(135deg, #FFF9E6, #FFF0B3);
    border: 2px solid #F1C40F;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.2);
    transition: transform 0.15s;
}

.daily-egg-banner:hover, .frenzy-shop-banner:hover {
    transform: scale(1.02);
}

.daily-egg-banner .banner-icon, .frenzy-shop-banner .banner-icon {
    font-size: 32px;
}

.daily-egg-banner .banner-text, .frenzy-shop-banner .banner-text {
    flex: 1;
    text-align: left;
}

.daily-egg-banner h4, .frenzy-shop-banner h4 {
    font-size: 13px;
    font-weight: 800;
    color: #D35400;
    margin-bottom: 2px;
}

.daily-egg-banner p, .frenzy-shop-banner p {
    font-size: 11px;
    color: #7F8C8D;
}

/* ==========================================
   YUMURTA MAĞAZASI & ALTIN ÇERÇEVELİ KARTLAR
   (Referans: Yumurtaları Çatlat! Koleksiyon Kartları)
   ========================================== */
.eggs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.egg-shop-card {
    position: relative;
    border-radius: 18px;
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    border: 2.5px solid #F59E0B;
    background: radial-gradient(circle at 50% 35%, #1E293B 0%, #0F172A 75%, #020617 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, border-color 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.egg-shop-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #FDE047;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.egg-shop-card:active {
    transform: scale(0.96);
}

/* Element Bazlı Arka Plan Gradyanları (Kartın İçi) */
.egg-shop-card.element-fire {
    background: radial-gradient(circle at 50% 35%, #7F1D1D 0%, #450A0A 70%, #1C0404 100%);
    border-color: #F59E0B;
}
.egg-shop-card.element-water {
    background: radial-gradient(circle at 50% 35%, #0369A1 0%, #082F49 70%, #02131F 100%);
    border-color: #38BDF8;
}
.egg-shop-card.element-nature {
    background: radial-gradient(circle at 50% 35%, #15803D 0%, #052E16 70%, #02140A 100%);
    border-color: #4ADE80;
}
.egg-shop-card.element-ice {
    background: radial-gradient(circle at 50% 35%, #1D4ED8 0%, #0F172A 70%, #030712 100%);
    border-color: #60A5FA;
}
.egg-shop-card.element-electric {
    background: radial-gradient(circle at 50% 35%, #B45309 0%, #451A03 70%, #1C0A02 100%);
    border-color: #FBBF24;
}
.egg-shop-card.element-earth {
    background: radial-gradient(circle at 50% 35%, #78350F 0%, #3E1F07 70%, #1B0C02 100%);
    border-color: #D97706;
}
.egg-shop-card.element-wind {
    background: radial-gradient(circle at 50% 35%, #0284C7 0%, #0B3954 70%, #04141E 100%);
    border-color: #7DD3FC;
}
.egg-shop-card.element-light {
    background: radial-gradient(circle at 50% 35%, #A16207 0%, #422006 70%, #1A0D02 100%);
    border-color: #FDE047;
}
.egg-shop-card.element-shadow {
    background: radial-gradient(circle at 50% 35%, #581C87 0%, #1E1B4B 70%, #09061C 100%);
    border-color: #C084FC;
}
.egg-shop-card.element-crystal {
    background: radial-gradient(circle at 50% 35%, #701A75 0%, #3B0764 70%, #160226 100%);
    border-color: #E879F9;
}

/* Kilitli Kart */
.egg-shop-card.locked {
    background: radial-gradient(circle at 50% 35%, #1E293B 0%, #0F172A 75%, #020617 100%) !important;
    border: 2px dashed rgba(148, 163, 184, 0.45) !important;
    opacity: 0.85;
}

.egg-shop-card.locked:hover {
    transform: none;
    border-color: #94A3B8 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.egg-card-header-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.egg-card-element-pill {
    font-size: 10.5px;
    font-weight: 900;
    color: #FDE047;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.egg-card-element-pill.locked {
    color: #94A3B8;
}

.egg-art-container {
    position: relative;
    padding: 2px 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.egg-art-container svg {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
}

.egg-shop-card:hover .egg-art-container svg {
    transform: scale(1.08) translateY(-2px);
}

.egg-art-container.locked svg {
    filter: grayscale(0.9) brightness(0.5);
    opacity: 0.6;
}

.egg-locked-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

.egg-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.egg-card-name {
    font-size: 15px;
    font-weight: 900;
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    margin: 2px 0 2px 0;
    line-height: 1.2;
}

.egg-card-subinfo {
    font-size: 10px;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.egg-card-synergy-hint {
    font-size: 9.5px;
    font-weight: 800;
    color: #34D399;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

.egg-card-footer-price {
    width: 100%;
    margin-top: 6px;
}

.egg-card-footer-price .cost-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.45));
    border: 1.5px solid #F59E0B;
    color: #FEF08A;
    font-weight: 900;
    font-size: 11.5px;
    padding: 5px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    width: 100%;
    box-sizing: border-box;
}

.lock-req-badge {
    font-size: 10px;
    font-weight: 800;
    color: #F87171;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 4px;
    line-height: 1.2;
}

.rarity-badge {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 6px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    background: #E2E8F0;
    color: #475569;
    display: inline-block;
}
.rarity-badge.yaygın, .rarity-badge.rarity-yaygın, .hatched-badge.yaygın {
    background: #DCFCE7;
    color: #15803D;
}
.rarity-badge.nadir, .rarity-badge.rarity-nadir, .hatched-badge.nadir {
    background: #E0F2FE;
    color: #0369A1;
}
.rarity-badge.epik, .rarity-badge.rarity-epik, .hatched-badge.epik {
    background: #F3E8FF;
    color: #7E22CE;
}
.rarity-badge.efsanevi, .rarity-badge.rarity-efsanevi, .hatched-badge.efsanevi {
    background: linear-gradient(135deg, #FEF08A, #FDE047);
    color: #854D0E;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
}
.rarity-badge.ilahi, .rarity-badge.rarity-ilahi, .hatched-badge.ilahi {
    background: linear-gradient(135deg, #FDF2F8, #F472B6);
    color: #9D174D;
    box-shadow: 0 2px 8px rgba(244, 114, 182, 0.4);
}

.egg-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.passive-preview-tag {
    font-size: 10px;
    font-weight: 700;
    color: #4F46E5;
    background: #EEF2FF;
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 4px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.beast-passive-badge {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: #4F46E5;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: left;
}

/* ==========================================
   YUMURTALARI ÇATLAT! SAHNESİ & SUNAK (HATCH SCENE)
   (Referans: Havada Süzülen Kadim Taş Sunak & Işık Hüzmeleri)
   ========================================== */
.hatch-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    text-align: center;
}

.hatch-scene-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 24px 10px 10px 10px;
    background: radial-gradient(ellipse at 50% 50%, #1E3A8A 0%, #0F172A 70%, #020617 100%);
    border-radius: 22px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Gökyüzü Parıltısı */
.hatch-sky-aura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

/* İnteraktif Yumurta Sarmalayıcı */
.interactive-egg-wrapper {
    position: relative;
    z-index: 4;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interactive-egg-wrapper:active {
    transform: scale(0.92);
}

.interactive-egg-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
}

/* Sallanma / Titreme Efekti (Dokunulduğunda) */
.egg-shake {
    animation: eggShakeCrack 0.24s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes eggShakeCrack {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.08) rotate(-8deg); }
    40% { transform: scale(1.08) rotate(8deg); }
    60% { transform: scale(1.06) rotate(-5deg); }
    80% { transform: scale(1.04) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Taş Sunak Platformu (Sunak Yumurtanın Altına Oturur) */
.hatch-altar-platform {
    position: relative;
    margin-top: -30px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* Çatlatma Durum Hapı */
.hatch-crack-status-pill {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    padding: 8px 18px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hatch-dots-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hatch-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #CBD5E1;
    border: 1.5px solid #94A3B8;
    transition: all 0.2s;
}

.hatch-dot.active {
    background: #F59E0B;
    border-color: #D97706;
    box-shadow: 0 0 8px #F59E0B;
    transform: scale(1.15);
}

.hatch-hint-text {
    font-size: 14.5px;
    font-weight: 800;
    color: #7A3E00;
}

/* ==========================================
   KUTLAMA MODU (DOĞUM ANI - REFERANS GÖRSELLE AYNI)
   ========================================== */
.hatch-scene-wrap.celebration-mode {
    min-height: 290px;
}

/* Dönen Altın Işık Hüzmeleri (Godrays) */
.hatch-godrays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    margin-top: -190px;
    margin-left: -190px;
    z-index: 1;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(254, 240, 138, 0.38) 0deg 12deg, transparent 12deg 24deg);
    border-radius: 50%;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, transparent 72%);
    animation: rotateGodrays 22s linear infinite;
}

@keyframes rotateGodrays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Canavar Yuvası: Çatlak Kabuk ve Canavar */
.hatch-creature-nest {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.hatched-beast-avatar-wrap {
    margin-bottom: -36px;
    z-index: 5;
}

.hatched-beast-avatar-wrap.bounce-pop {
    animation: bouncePopIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bouncePopIn {
    0% { transform: scale(0.3) translateY(30px); opacity: 0; }
    65% { transform: scale(1.18) translateY(-10px); opacity: 1; }
    100% { transform: scale(1) translateY(0); }
}

.hatched-beast-avatar-wrap .hatched-icon {
    font-size: 68px;
    line-height: 1;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
    animation: gentlePetBounce 2s ease-in-out infinite alternate;
}

@keyframes gentlePetBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.cracked-shell-pedestal {
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.hatched-beast-celebration {
    margin-top: 8px;
    z-index: 5;
    text-align: center;
}

.hatched-beast-celebration .hatched-name {
    font-size: 21px;
    font-weight: 900;
    color: #FDE047;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 14px rgba(251, 191, 36, 0.5);
    margin: 4px 0 2px 0;
}

.hatched-beast-celebration .hatched-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==========================================
   CANAVAR DETAY & GELİŞTİRME PANELİ
   ========================================== */
.beast-detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.beast-avatar-big {
    font-size: 60px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F2F6;
    margin-bottom: 12px;
}

.evolved-glow {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    animation: pulse 1.5s infinite alternate;
}

.legendary-glow {
    box-shadow: 0 0 32px rgba(255, 215, 0, 1), 0 0 15px rgba(217, 70, 239, 0.7);
    animation: pulse 1.2s infinite alternate;
    position: relative;
    border: 3px solid #FFD700;
}

.crown-badge {
    position: absolute;
    top: -14px;
    font-size: 26px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    animation: float 2s ease-in-out infinite alternate;
}

.beast-stats-row {
    display: flex;
    gap: 12px;
    margin: 12px 0 16px 0;
    width: 100%;
}

.stat-box {
    flex: 1;
    background: #F8F9FA;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #E9ECEF;
}

.stat-label {
    font-size: 11px;
    color: #636E72;
    font-weight: 700;
}

.stat-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

.hat-selector-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 14px 0;
    width: 100%;
}

.btn-hat-option {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 12px;
    background: #F1F2F6;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}

.btn-hat-option.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.btn-hat-option .hat-icon {
    font-size: 20px;
}

.btn-hat-option .hat-price {
    color: var(--blue);
    font-size: 10px;
}

/* ==========================================
   MİNİ OYUN 1: YIKAMA & SEVME
   ========================================== */
#wash-interactive-area {
    position: relative;
    width: 100%;
    height: 240px;
    background: radial-gradient(circle, #E0F7FA 0%, #B2EBF2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    margin-bottom: 14px;
}

.wash-character {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wash-avatar {
    font-size: 64px;
    z-index: 2;
}

.wash-dirt-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.2s;
}

.dirt-spot {
    position: absolute;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.dirt-spot.d1 { top: 10px; left: 15px; }
.dirt-spot.d2 { top: 15px; right: 20px; }
.dirt-spot.d3 { bottom: 20px; left: 25px; }
.dirt-spot.d4 { bottom: 15px; right: 25px; }

.floating-soap-bubble {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    animation: bubbleRise 0.7s forwards ease-out;
}

@keyframes bubbleRise {
    0% { transform: scale(0.5) translateY(0); opacity: 1; }
    100% { transform: scale(1.3) translateY(-40px); opacity: 0; }
}

.progress-bar-container {
    width: 100%;
    height: 14px;
    background: #E9ECEF;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FD79A8, #6C5CE7);
    border-radius: 10px;
    transition: width 0.15s ease-out;
}

/* ==========================================
   MİNİ OYUN 2: 30s HAZİNE KAZISI
   ========================================== */
.dig-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dig-timer-badge {
    background: #FFEAA7;
    color: #D35400;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 15px;
}

.dig-loot-badge {
    background: #E0F7FA;
    color: #00838F;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
}

.dig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.dig-tile {
    aspect-ratio: 1;
    background: #DFE6E9;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 0 #B2BEC3;
    transition: transform 0.08s;
    position: relative;
}

.dig-tile:active, .dig-tile.tile-hit {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #B2BEC3;
}

.dig-tile.tile-geode {
    background: #E056FD;
    box-shadow: 0 4px 0 #BE2EDD;
}

.dig-tile.tile-granite {
    background: #74B9FF;
    box-shadow: 0 4px 0 #0984E3;
}

.dig-tile.tile-broken {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
    cursor: default;
}

.tile-cracks {
    position: absolute;
    font-size: 14px;
}

.loot-found {
    font-size: 12px;
    font-weight: 800;
    color: #2D3436;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ==========================================
   ALBÜM (MAGICAL BEASTIARY BOOK)
   ========================================== */
.beastiary-modal-sheet {
    background: linear-gradient(180deg, #1A2C46 0%, #0F1B2C 100%) !important;
    border: 4px solid #C49137 !important;
    outline: 2px solid #573710 !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(196, 145, 55, 0.2) !important;
    border-radius: 28px 28px 0 0 !important;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .beastiary-modal-sheet {
        border-radius: 28px !important;
        max-width: 640px !important;
        max-height: 88vh !important;
    }
}

.beastiary-modal-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 44px 4px 44px;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
}

.beastiary-ribbon-title {
    background: linear-gradient(180deg, #8B5CF6 0%, #6D28D9 100%);
    border: 2.5px solid #FCD34D;
    border-radius: 20px;
    padding: 7px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.beastiary-ribbon-title span {
    font-size: 15px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* Progress Pill matching reference screenshot */
.beastiary-progress-bar-wrap {
    padding: 4px 14px 8px;
    width: 100%;
}

.beastiary-progress-pill {
    background: rgba(15, 23, 42, 0.92);
    border: 2px solid #D4AF37;
    border-radius: 24px;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.beastiary-progress-pill .progress-crest {
    font-size: 20px;
    line-height: 1;
    margin-right: 6px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.beastiary-progress-pill .progress-bar-track {
    flex: 1;
    height: 18px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.beastiary-progress-pill .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C6FF 0%, #0072FF 100%);
    border-radius: 12px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.beastiary-progress-pill .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10.5px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Bookmark Tabs along top of book (3'lü dinamik pencere) */
.beastiary-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 2px 10px 0;
    overflow-x: hidden;
    scrollbar-width: none;
    width: 100%;
}

.beastiary-tabs-bar::-webkit-scrollbar {
    display: none;
}

.beastiary-tab-btn {
    flex: 1;
    max-width: 145px;
    min-width: 0;
    background: linear-gradient(180deg, #243B5A 0%, #162940 100%);
    border: 1.5px solid #6E88A8;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 800;
    color: #CBD5E1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beastiary-tab-btn .tab-tag {
    background: #0EA5E9;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 900;
    border-radius: 6px;
    padding: 1px 5px;
}

.beastiary-tab-btn.active {
    background: linear-gradient(180deg, #FAF4E4 0%, #F5E8C9 100%);
    border-color: #C49137;
    color: #573710;
    transform: translateY(-2px);
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.35);
}

.beastiary-tab-btn.active .tab-tag {
    background: #D97706;
}

/* Scroll body */
.beastiary-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Magical Book Chassis */
.beastiary-book {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #14243B;
    border: 4px solid #C49137;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), inset 0 0 14px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

/* 4 Gold Ornate Corner Accents */
.book-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #FCD34D;
    border-style: solid;
    pointer-events: none;
    z-index: 6;
}

.corner-tl { top: 4px; left: 4px; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 12px; }
.corner-tr { top: 4px; right: 4px; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 12px; }
.corner-bl { bottom: 4px; left: 4px; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 12px; }
.corner-br { bottom: 4px; right: 4px; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 12px; }

/* Silk Ribbon Bookmark (pink dangling ribbon at bottom) */
.book-silk-ribbon {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 32px;
    background: linear-gradient(180deg, #F43F5E 0%, #BE123C 100%);
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    z-index: 5;
    pointer-events: none;
}

/* Left Page Tab Ribbon */
.book-page-tab-ribbon {
    position: absolute;
    top: -12px;
    left: 18px;
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
    border: 2px solid #BAE6FD;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 5;
}

/* Open Pages Spread */
.book-spread {
    display: flex;
    background: linear-gradient(180deg, #FFFDF8 0%, #F8EEDB 50%, #EDE0C6 100%);
    border-radius: 14px;
    box-shadow: inset 0 0 18px rgba(109, 76, 29, 0.28);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.book-page {
    flex: 1;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

/* Spine Crease Shadow */
.book-spine-crease {
    width: 14px;
    background: linear-gradient(90deg, rgba(80, 50, 20, 0.18) 0%, rgba(80, 50, 20, 0.02) 40%, rgba(80, 50, 20, 0.02) 60%, rgba(80, 50, 20, 0.18) 100%);
    flex-shrink: 0;
}

/* Header Ribbons on each page */
.book-page-header-ribbon {
    text-align: center;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.4px;
    text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-page-header-ribbon.ribbon-red {
    background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%);
    border: 2px solid #FDE047;
}

.book-page-header-ribbon.ribbon-gold {
    background: linear-gradient(180deg, #D97706 0%, #92400E 100%);
    border: 2px solid #FDE047;
}

/* Grid of 3 Cards per Page */
.beast-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Individual Collectible Beast Card */
.beast-card {
    border-radius: 14px;
    padding: 6px;
    text-align: center;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beast-card:active {
    transform: scale(0.97);
}

.beast-card.unlocked {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F0 100%);
    border: 2px solid #D4AF37;
    box-shadow: 0 3px 8px rgba(109, 76, 29, 0.15);
}

.beast-card.locked {
    background: #F4EADA;
    border: 2px dashed #C8B291;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Card inner illustration box */
.beast-card .card-art-box {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 4px;
}

.beast-card.unlocked .card-icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beast-card:hover .card-icon {
    transform: scale(1.12);
}

.beast-card.locked .card-icon {
    font-size: 26px;
    opacity: 0.25;
    filter: grayscale(1);
}

.beast-card .locked-watermark {
    position: absolute;
    font-size: 34px;
    font-weight: 900;
    color: rgba(109, 76, 29, 0.22);
    font-family: serif;
    pointer-events: none;
}

.beast-card .card-stars {
    font-size: 9.5px;
    color: #F59E0B;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.beast-card .card-name {
    font-size: 11px;
    font-weight: 900;
    color: #2D1A0D;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.beast-card.locked .card-name {
    color: #78716C;
}

.beast-card .card-status-pill {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.1;
}

.beast-card.unlocked .card-status-pill {
    background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.beast-card.locked .card-status-pill {
    background: #E2E8F0;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

/* Page footer */
.page-footer-info {
    margin-top: 6px;
    text-align: center;
    padding-top: 4px;
    border-top: 1px dashed rgba(196, 145, 55, 0.4);
}

.page-footer-info .page-num {
    font-size: 10px;
    font-weight: 800;
    color: #78350F;
}

/* Navigation Row */
.beastiary-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 580px;
    padding: 2px 4px;
}

.beastiary-nav-btn {
    background: linear-gradient(180deg, #C49137 0%, #8A5816 100%);
    border: 2px solid #FDE68A;
    border-radius: 16px;
    padding: 7px 14px;
    font-size: 11.5px;
    font-weight: 800;
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.beastiary-nav-btn:active {
    transform: scale(0.96);
}

.beastiary-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.beastiary-page-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.beastiary-page-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}

.beastiary-page-dots .dot.active {
    background: #FBBF24;
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* ==========================================
   YARDIMCILAR & MAĞAZA
   ========================================== */
.helpers-list, .shop-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.helper-card {
    background: #F8F9FA;
    border: 1.5px solid #E9ECEF;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================
   FANTAZİ TEMA MODAL SİSTEMİ (TÜM ANA MENÜLER)
   ========================================== */
.fantasy-modal,
.shop-fantasy-modal {
    background: linear-gradient(180deg, #FAF4E4 0%, #F5E8C9 100%) !important;
    border: 4px solid #C49137 !important;
    outline: 2px solid #6D4C1D !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(109, 76, 29, 0.25) !important;
    border-radius: 28px 28px 0 0 !important;
}

@media (min-width: 768px) {
    .fantasy-modal,
    .shop-fantasy-modal {
        border-radius: 28px !important;
        max-width: 450px !important;
    }
}

.fantasy-header-wrap,
.shop-fantasy-header-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 44px 10px 44px;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border-bottom: 1px solid rgba(196, 145, 55, 0.25);
    flex-shrink: 0;
}

.fantasy-ribbon,
.shop-fantasy-ribbon {
    background: linear-gradient(180deg, #7A5021 0%, #543410 100%);
    border: 2.5px solid #F3C452;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    padding: 7px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fantasy-title,
.shop-fantasy-title {
    font-size: 15.6px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    text-align: center;
}

.fantasy-close-btn,
.shop-close-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #EAE3D2;
    border: 1.5px solid #C4BEB1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14.5px;
    font-weight: 800;
    color: #5D4037;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s, background-color 0.15s;
    z-index: 10;
    flex-shrink: 0;
}

.fantasy-close-btn:hover,
.shop-close-btn:hover {
    background: #DFD7C2;
    transform: translateY(-50%) scale(1.05);
}

.fantasy-body,
.shop-fantasy-body {
    padding: 12px 16px 24px 16px !important;
}

.fantasy-modal-desc {
    font-size: 12.5px;
    color: #6D4C1D;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.album-fantasy-progress-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 16px 0 16px;
}

.album-fantasy-progress {
    background: linear-gradient(180deg, #FDF9EE 0%, #F5ECCE 100%);
    border: 1.5px solid #DEC8A9;
    border-radius: 12px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 800;
    color: #7A4B1A;
    box-shadow: 0 2px 6px rgba(109, 76, 29, 0.1);
    letter-spacing: 0.3px;
}

/* ==========================================
   FANTAZİ TEMA İÇERİK KARTLARI (YUMURTA, ALBÜM, KAZI, GÖREV, GELİŞTİR)
   ========================================== */

/* 1. YUMURTA MAĞAZASI */
/* Altın Çerçeveli Elemental Kart Stilleri Yukarıda Tanımlandı */

.fantasy-modal .slot-banner {
    background: linear-gradient(135deg, #FAF0D7, #F2E0BA);
    border: 2px solid #C49137;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(109, 76, 29, 0.15);
    margin-bottom: 12px;
}

.fantasy-modal .slot-banner h4 {
    color: #6D4C1D;
    font-weight: 800;
}

.fantasy-modal .slot-banner p {
    color: #7A5021;
}

.fantasy-modal .daily-egg-banner {
    background: linear-gradient(135deg, #FFF6D6 0%, #FFE699 100%);
    border: 2px solid #D4A017;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.25);
    margin-bottom: 14px;
}

.fantasy-modal .daily-egg-banner h4 {
    color: #7A3E00;
    font-weight: 800;
}

.fantasy-modal .daily-egg-banner p {
    color: #6D4C1D;
}

/* 2. GELİŞTİR (UPGRADES & HELPERS) */
.fantasy-modal .upgrade-card,
.fantasy-modal .helper-card {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(90, 60, 20, 0.1), inset 0 1px 0 #FFFFFF;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fantasy-modal .upgrade-card:hover,
.fantasy-modal .helper-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(90, 60, 20, 0.16);
}

.fantasy-modal .upgrade-info h4,
.fantasy-modal .helper-info h4 {
    color: #2D1A0D;
    font-weight: 800;
}

.fantasy-modal .upgrade-info p,
.fantasy-modal .helper-info p {
    color: #6D4C1D;
}

.fantasy-modal .upgrade-card .btn-primary,
.fantasy-modal .helper-card .btn-primary {
    background: linear-gradient(180deg, #2ECC71 0%, #27AE60 55%, #1E8449 100%);
    border: 1.5px solid #1E8449;
    border-bottom: 3.5px solid #145A32;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 800;
    text-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.35);
}

/* 3. GÖREVLER (QUESTS) */
.fantasy-modal .quest-card {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(90, 60, 20, 0.1), inset 0 1px 0 #FFFFFF;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fantasy-modal .quest-card.claimable {
    background: linear-gradient(135deg, #FFFDEB 0%, #FEF4CD 100%);
    border: 2px solid #F59E0B;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.fantasy-modal .quest-card.completed {
    background: #F4EEDD;
    border: 2px solid #C8B89E;
    opacity: 0.82;
}

.fantasy-modal .quest-info h4 {
    color: #2D1A0D;
    font-weight: 800;
}

.fantasy-modal .quest-info p {
    color: #6D4C1D;
}

.fantasy-modal .quest-reward {
    color: #B45309;
    font-weight: 800;
}

/* 4. ALBÜM (STICKER BOOK) */
.fantasy-modal .album-card {
    background: #F4EEDD;
    border: 2px dashed #C9BAA2;
    border-radius: 18px;
    padding: 14px 10px;
    transition: all 0.2s;
}

.fantasy-modal .album-card.unlocked {
    border-style: solid;
    border-color: #DEC8A9;
    background: #FDF9EE;
    box-shadow: 0 4px 12px rgba(90, 60, 20, 0.12), inset 0 1px 0 #FFFFFF;
}

.fantasy-modal .album-card.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 60, 20, 0.18);
}

.fantasy-modal .album-sticker-name {
    color: #2D1A0D;
    font-weight: 800;
}

.fantasy-modal .album-sticker-rarity {
    color: #C2410C;
    font-weight: 800;
}

.fantasy-modal .album-sticker-desc {
    color: #6D4C1D;
    font-style: italic;
}

/* 5. KAZI (DIG) */
.fantasy-modal .dig-header-row {
    margin-bottom: 12px;
}

.fantasy-modal .dig-timer-badge {
    background: linear-gradient(180deg, #7A5021 0%, #543410 100%);
    border: 2px solid #F3C452;
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fantasy-modal .dig-loot-badge {
    background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
    border: 2px solid #7DD3FC;
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fantasy-modal .dig-grid {
    background: rgba(109, 76, 29, 0.1);
    padding: 10px;
    border-radius: 20px;
    border: 2px solid #DEC8A9;
    margin-bottom: 14px;
}

.fantasy-modal .dig-tile {
    background: #EAE3D2;
    border: 1.5px solid #C4BEB1;
    box-shadow: 0 4px 0 #AAA496;
    border-radius: 14px;
}

.fantasy-modal .dig-tile:active,
.fantasy-modal .dig-tile.tile-hit {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #AAA496;
}

.fantasy-modal .cooldown-clock-card {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    box-shadow: 0 4px 10px rgba(90, 60, 20, 0.1);
}

.fantasy-modal .cooldown-clock-val {
    color: #7A3E00;
    text-shadow: 0 2px 4px rgba(122, 62, 0, 0.15);
}

.fantasy-modal .dig-ad-unlock-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF0B3 100%);
    border: 2px solid #F1C40F;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.2);
}

.fantasy-modal .dig-ad-header {
    color: #2D1A0D;
}

/* 6. CANAVAR BAKIMI & DETAY FANTAZİ UYUMU */
.fantasy-modal .stat-box {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(109, 76, 29, 0.08);
}

.fantasy-modal .stat-label {
    color: #7A5021;
    font-weight: 800;
}

.fantasy-modal .stat-val {
    color: #2D1A0D;
    font-weight: 900;
}

.fantasy-modal .hat-item {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 12px;
}

.fantasy-modal .hat-item.active {
    border-color: #C49137;
    background: #FAF0D7;
    box-shadow: 0 0 0 2px #F3C452;
}

/* 7. YASAL BİLGİLER & KVKK FANTAZİ UYUMU */
.fantasy-modal .legal-actions-box {
    background: linear-gradient(180deg, #F5E8C9 0%, #EED9B2 100%) !important;
    border: 2px solid #C49137 !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(109, 76, 29, 0.12) !important;
}

.fantasy-modal .legal-actions-title {
    font-size: 12px;
    font-weight: 900;
    color: #543410 !important;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fantasy-modal .legal-content {
    background: linear-gradient(180deg, #F5E8C9 0%, #EED9B2 100%) !important;
    border: 2px solid #C49137 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    color: #3E2405 !important;
    line-height: 1.6;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(109, 76, 29, 0.12) !important;
}

.fantasy-modal .legal-meta {
    font-size: 12px;
    color: #4A2E0B !important;
    background: linear-gradient(180deg, #E8D5AA 0%, #DFC99B 100%) !important;
    border: 1.5px solid #C49137 !important;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.fantasy-modal .legal-meta strong {
    color: #2D1A0D !important;
}

.fantasy-modal .legal-meta code,
.fantasy-modal .legal-block code,
.fantasy-modal .legal-content code {
    background: rgba(109, 76, 29, 0.18) !important;
    color: #3E2405 !important;
    border: 1px solid rgba(196, 145, 55, 0.4) !important;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
}

.fantasy-modal .legal-block {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(196, 145, 55, 0.35) !important;
}

.fantasy-modal .legal-block:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
}

.fantasy-modal .legal-block h3 {
    font-size: 14px;
    font-weight: 800;
    color: #2D1A0D !important;
    margin: 0 0 6px;
}

.fantasy-modal .legal-block p,
.fantasy-modal .legal-block li {
    font-size: 12.5px;
    color: #543410 !important;
    line-height: 1.5;
    margin: 0 0 6px;
}

.fantasy-modal .legal-tab-btn {
    border: 1.5px solid #DEC8A9 !important;
    background: #EAE6DC !important;
    color: #5D4037 !important;
    font-weight: 800;
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fantasy-modal .legal-tab-btn.active {
    background: linear-gradient(180deg, #7A5021 0%, #543410 100%) !important;
    border: 2px solid #F3C452 !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) !important;
}

/* 8. SİNERJİ LİSTESİ FANTAZİ UYUMU */
.fantasy-modal .synergy-card {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 16px;
    box-shadow: 0 3px 8px rgba(109, 76, 29, 0.1);
}

.fantasy-modal .synergy-card h4 {
    color: #2D1A0D;
    font-weight: 800;
}

.fantasy-modal .synergy-card p {
    color: #6D4C1D;
}

.shop-fantasy-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.shop-fantasy-card {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(90, 60, 20, 0.12), inset 0 1px 0 #FFFFFF;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-fantasy-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(90, 60, 20, 0.18);
}

.shop-fantasy-card.is-purchased {
    background: #F3EFE6;
    border-color: #CBD5E1;
    opacity: 0.88;
}

.shop-card-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(196, 145, 55, 0.4);
    background: #FFF;
}

.shop-card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.shop-card-badge {
    font-size: 10px;
    font-weight: 900;
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

.shop-card-title {
    font-size: 16px;
    font-weight: 900;
    color: #2D1A0D;
    margin: 0;
    line-height: 1.25;
    text-align: left;
}

.shop-card-perks-box {
    background: #FAF2DF;
    border: 1.5px solid #E6D5B8;
    border-radius: 14px;
    padding: 9px 12px;
    text-align: left;
}

.shop-card-contents-label {
    font-size: 10px;
    font-weight: 800;
    color: #8C531B;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.shop-card-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-card-perks li {
    font-size: 12.5px;
    color: #4A2E12;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-card-perks li strong {
    color: #2D1A0D;
}

.shop-card-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.shop-green-btn {
    background: linear-gradient(180deg, #2ECC71 0%, #27AE60 55%, #1E8449 100%);
    border: 1.5px solid #1E8449;
    border-bottom: 4px solid #145A32;
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 900;
    padding: 8px 24px;
    width: 100%;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: transform 0.1s, border-bottom 0.1s, box-shadow 0.1s;
}

.shop-green-btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.shop-green-btn.purchased {
    background: linear-gradient(180deg, #94A3B8 0%, #64748B 100%) !important;
    border-color: #64748B !important;
    border-bottom: 4px solid #475569 !important;
    box-shadow: none !important;
    color: #F1F5F9 !important;
    cursor: default !important;
}

.shop-restore-box {
    display: flex;
    justify-content: center;
    margin: 18px 0 8px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(196, 145, 55, 0.25);
}

.shop-restore-btn {
    background: #EAE6DC;
    border: 1.5px solid #C4BEB1;
    border-bottom: 3px solid #AAA496;
    border-radius: 12px;
    color: #4A443A;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s;
}

.shop-restore-btn:active {
    transform: translateY(1px);
    border-bottom-width: 1.5px;
}

.helper-icon {
    font-size: 32px;
}

.helper-info {
    flex: 1;
}

.helper-info h4 {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.helper-info p {
    font-size: 11px;
    color: #636E72;
}

.badge {
    background: #E9ECEF;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
}

/* ==========================================
   REKLAM SİMÜLATÖRÜ
   ========================================== */
.ad-video-mock {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-align: center;
    padding: 16px;
    margin-bottom: 14px;
    position: relative;
}

.ad-video-mock .ad-sponsor {
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 8px;
}

.ad-video-mock h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.ad-video-mock p {
    font-size: 12px;
    color: #CBD5E1;
}

/* Toast Bildirimi */
#game-toast {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(45, 52, 54, 0.95);
    color: #FFF;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: nowrap;
}

#game-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   ADA YUVALARI, YÜKSELTMELER & GÖREVLER
   ========================================== */
.slot-banner {
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    border: 2px solid #38BDF8;
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.slot-banner-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: #0369A1;
    margin-bottom: 2px;
}

.slot-banner-info p {
    font-size: 11px;
    color: #0284C7;
}

.upgrades-list, .quests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-card, .quest-card {
    background: #F8F9FA;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-icon {
    font-size: 32px;
}

.upgrade-info, .quest-info {
    flex: 1;
    text-align: left;
}

.upgrade-info h4, .quest-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-info p, .quest-info p {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.quest-reward {
    font-size: 11px;
    font-weight: 700;
    color: #D97706;
    margin-top: 4px;
}

.quest-card.completed {
    background: #F0FDF4;
    border-color: #86EFAC;
    opacity: 0.85;
}

.quest-card.claimable {
    background: #FFFBEB;
    border-color: #FCD34D;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

/* ==========================================
   SİNERJİ VE ÇEVRE BONUSU (+%15)
   ========================================== */
.synergy-badge {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #10B981;
    color: #34D399;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    user-select: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.synergy-badge:hover {
    transform: translateY(-1px);
    border-color: #6EE7B7;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(20, 30, 50, 0.98) 100%);
}

.synergies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
}

.synergy-card {
    background: #FDF9EE;
    border: 2px solid #DEC8A9;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(109, 76, 29, 0.1);
    transition: all 0.2s;
}

.synergy-card.active {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border: 2px solid #10B981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.synergy-card.inactive {
    background: #F5EFE0;
    border: 1.5px dashed #D3BA9B;
    opacity: 0.85;
}

.synergy-card-icon {
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.synergy-card-info {
    flex: 1;
}

.synergy-card-info h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: #2D1A0D;
    display: flex;
    align-items: center;
    gap: 6px;
}

.synergy-card-info p {
    font-size: 11.5px;
    color: #6D4C1D;
    margin-top: 2px;
    line-height: 1.35;
}

.synergy-status-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.synergy-status-badge.active {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.synergy-status-badge.inactive {
    background: #E2D9C8;
    color: #786C5A;
    border: 1px solid #C8BCAC;
}

.synergy-partner-box {
    width: 100%;
    margin: 6px auto 10px auto;
    max-width: 320px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    transition: all 0.2s;
}

.synergy-partner-box.active {
    background: #ECFDF5;
    border: 1.5px solid #6EE7B7;
    color: #065F46;
}

.synergy-partner-box.inactive {
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    color: #64748B;
}

.synergy-partner-box .syn-badge {
    font-weight: 800;
    color: #059669;
}

.synergy-partner-box .syn-status {
    font-weight: 800;
    display: inline-block;
    margin-left: 2px;
}

/* ==========================================
   YASAL BİLGİLER & KVKK MODALI
   ========================================== */
.legal-actions-box {
    background: linear-gradient(180deg, #F5E8C9 0%, #EED9B2 100%);
    border: 2px solid #C49137;
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(109, 76, 29, 0.12);
}

.legal-actions-title {
    font-size: 12px;
    font-weight: 900;
    color: #543410;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.legal-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.legal-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.legal-tab-btn {
    border: 1.5px solid #DEC8A9;
    background: #EAE6DC;
    color: #5D4037;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.legal-tab-btn.active {
    background: linear-gradient(180deg, #7A5021 0%, #543410 100%);
    border-color: #F3C452;
    color: #FFFFFF;
}

.legal-content {
    background: linear-gradient(180deg, #F5E8C9 0%, #EED9B2 100%);
    border: 2px solid #C49137;
    border-radius: 18px;
    padding: 16px;
    font-size: 13px;
    color: #3E2405;
    line-height: 1.6;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(109, 76, 29, 0.12);
}

.legal-meta {
    font-size: 12px;
    color: #4A2E0B;
    background: linear-gradient(180deg, #E8D5AA 0%, #DFC99B 100%);
    border: 1.5px solid #C49137;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.legal-block {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(196, 145, 55, 0.25);
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-block h3 {
    font-size: 14px;
    color: #2D1A0D;
    font-weight: 800;
    margin: 0 0 6px;
}

.legal-block p,
.legal-block li {
    font-size: 12.5px;
    color: #6D4C1D;
    line-height: 1.5;
    margin: 0 0 6px;
}

.legal-block ul {
    padding-left: 18px;
    margin: 4px 0 0;
}

.shop-restore-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}
