.offline-reward-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.offline-reward-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: auto;
    min-height: 450px; /* Minimum yükseklik ekle */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible; /* Container dışına taşan elementleri göster */
    padding: 15px; /* İç boşluk ekle */
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
}

/* Başlık kısmı */
.offline-reward-header {
    position: relative;
    width: 100%; /* 120%'den 100%'e düşür */
    max-width: 350px; /* Maksimum genişlik ekle */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; /* Margin'i azalt */
    z-index: 1; /* Z-index ekle */
}

.offline-reward-title {
    background-color: #00b0ff;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: zoomInText 1s ease-out forwards;
}

/* Para görseli için container */
.money-pile-container {
    position: relative;
    width: 250px; /* Boyutu küçült */
    height: 250px; /* Boyutu küçült */
    max-width: 80%; /* Responsive maksimum genişlik */
    max-height: 200px; /* Maksimum yükseklik */
    margin: 10px 0; /* Margin'i azalt */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Z-index ekle */
}

.money-pile {
    width: 100%;
    height: 100%;
    background-image: url('./sprites/main/bigMoney.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: zoomInBounce 1s ease-out forwards;

    user-select: none;
    pointer-events: none;
}

/* Para notları animasyonlarını kaldırıyoruz */

/* Para miktarı */
.offline-reward-amount {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 45px;
    margin-bottom: 20px; /* Margin'i azalt */
    animation: zoomInBounce 1s ease-out forwards;
    background-image: url('./sprites/main/moneyDarkBg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1; /* Z-index ekle */

    user-select: none;
    pointer-events: none;
}

.offline-reward-amount::before {
    content: "";
    position: absolute;
    left: -3px;
    width: 60px;
    height: 60px;
    background-image: url('./sprites/main/money.png');
    background-size: contain;
    background-repeat: no-repeat;

    user-select: none;
    pointer-events: none;
}

.offline-reward-amount-text {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-left: 15px; /* Para ikonundan biraz uzaklaştır */
}

/* Butonlar */
.offline-reward-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px; /* Maksimum genişlik ekle */
    gap: 12px; /* Gap'i azalt */
    z-index: 1; /* Z-index ekle */
}

/* Get 2x butonu */
.offline-get-2x-button {
    position: relative;
    width: 260px; /* Genişliği azalt */
    height: 65px; /* Yüksekliği azalt */
    max-width: 90%; /* Responsive maksimum genişlik */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 15px; /* Margin'i azalt */
    animation:
        slideFromBottomBounce 1s ease-out forwards,
        pulseButton 1.5s infinite ease-in-out 1s;
    z-index: 1; /* Z-index ekle */

    user-select: none;
    pointer-events: none;
}

.offline-get-button-img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    user-select: none;
    pointer-events: none;
}

.offline-video-icon {
    position: absolute;
    right: 65%;
    width: 25px;
    height: 25px;
    pointer-events: none;

    user-select: none;
}

.offline-get-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #00526D;
    font-size: 28px;
    font-weight: bold;
    pointer-events: none;
}

/* Buton hover efektleri */
.offline-get-2x-button:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Sonsuz büyüyüp küçülme animasyonu */
@keyframes pulseButton {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Claim butonu */
.offline-claim-button {
    width: 120px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.126);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: slideFromBottomBounce 1s ease-out 0.2s forwards;
}

.offline-claim-button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.offline-claim-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Animasyonlar */
@keyframes zoomInBounce {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    85% { transform: scale(0.98); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideFromBottomBounce {
    0% { transform: translateY(150%) scale(0.9); opacity: 0; }
    70% { transform: translateY(-5%) scale(1.05); opacity: 1; }
    85% { transform: translateY(2%) scale(0.98); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

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

/* Desktop için responsive ayarlar */
@media (hover: hover) and (pointer: fine) {
    .offline-reward-container {
        width: 72%; /* %20 küçültme: 90% * 0.8 = 72% */
        max-width: 320px; /* %20 küçültme: 400px * 0.8 = 320px */
        min-width: 280px;
        min-height: 360px; /* %20 küçültme: 450px * 0.8 = 360px */
        transform: scale(1);
        box-sizing: border-box;
    }
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .offline-reward-container {
        width: 95%;
        min-height: 400px; /* Mobilde minimum yükseklik azalt */
        padding: 10px; /* Padding'i azalt */
    }

    .offline-reward-title {
        font-size: 26px; /* Font boyutunu azalt */
        padding: 8px 0; /* Padding'i azalt */
    }

    .money-pile-container {
        width: 200px; /* Boyutu daha da küçült */
        height: 200px;
        max-height: 180px;
        margin: 8px 0;
    }

    .offline-reward-amount {
        margin-bottom: 15px;
    }

    .offline-get-2x-button {
        width: 220px; /* Genişliği azalt */
        height: 55px; /* Yüksekliği azalt */
        margin-bottom: 10px;
    }

    .offline-video-icon {
        width: 18px; /* Boyutu azalt */
        height: 18px;
        right: 65%;
    }

    .offline-get-text {
        font-size: 22px; /* Font boyutunu azalt */
    }

    .offline-claim-button {
        width: 110px; /* Genişliği azalt */
        height: 35px; /* Yüksekliği azalt */
    }

    .offline-claim-text {
        font-size: 18px; /* Font boyutunu azalt */
    }
}
