/* Welcome Back Screen Styles - Morrhollow Terminal Theme */

.welcome-back-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-family: 'RemiliaMincho', serif;
}

.welcome-back-container.visible {
    opacity: 1;
}

.welcome-back-card {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: linear-gradient(180deg,
        rgba(15, 15, 25, 0.95) 0%,
        rgba(8, 8, 15, 0.98) 50%,
        rgba(15, 15, 25, 0.95) 100%);
    border-radius: 6px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(147, 197, 253, 0.15),
        0 0 20px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: welcome-pulse-glow 2s ease-in-out infinite;
}

@keyframes welcome-pulse-glow {
    0%, 100% {
        box-shadow:
            0 4px 30px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 40px rgba(147, 197, 253, 0.15),
            0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow:
            0 4px 30px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 50px rgba(147, 197, 253, 0.25),
            0 0 30px rgba(212, 175, 55, 0.2);
    }
}

.welcome-header {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.98) 100%);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    margin: 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    letter-spacing: 0.5px;
}

.streak-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.welcome-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) rgba(15, 15, 25, 0.5);
}

.welcome-content::-webkit-scrollbar {
    width: 8px;
}

.welcome-content::-webkit-scrollbar-track {
    background: rgba(15, 15, 25, 0.5);
    border-radius: 4px;
}

.welcome-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.welcome-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.welcome-section {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.welcome-section:last-child {
    margin-bottom: 0;
}

.welcome-section h2 {
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.9);
    margin: 0 0 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* Daily Rewards Section */
.reward-info {
    color: #a0a0b8;
}

.claimable-reward {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.reward-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 4px;
}

.reward-breakdown {
    font-size: 0.85rem;
    color: #94A3B8;
}

.already-claimed {
    background: rgba(71, 85, 105, 0.4);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 6px;
    padding: 12px;
    color: #94A3B8;
    margin-bottom: 8px;
}

.streak-info {
    font-size: 0.9rem;
    color: #F59E0B;
    font-weight: 500;
}

/* Activities Section */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    color: #a0a0b8;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(30, 30, 45, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
}

.activity-item.completed {
    opacity: 0.7;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.activity-icon {
    font-size: 1.2rem;
}

.activity-label {
    flex: 1;
}

.activity-reward {
    color: #10B981;
    font-weight: 600;
    font-size: 0.85rem;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(15, 15, 25, 0.6);
    border-left: 3px solid rgba(212, 175, 55, 0.6);
    border-radius: 4px;
    color: #a0a0b8;
}

.news-icon {
    font-size: 1.2rem;
}

.news-title {
    font-size: 0.95rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #707088;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.9);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Referral Section */
.referral-section {
    margin-bottom: 20px;
}

.referral-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.15) 0%,
        rgba(147, 51, 234, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.referral-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.referral-info {
    flex: 1;
}

.referral-title {
    font-size: 1rem;
    font-weight: 600;
    color: #C4B5FD;
    margin-bottom: 4px;
}

.referral-bonus {
    font-size: 0.85rem;
    color: #A78BFA;
    opacity: 0.9;
}

/* Actions */
.welcome-actions {
    padding: 16px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(15, 15, 25, 0.8);
}

.enter-game-btn {
    width: 100%;
    padding: 12px 32px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(10, 10, 20, 0.95);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(186, 166, 116, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    font-family: 'RemiliaMincho', serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.enter-game-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 1), rgba(186, 166, 116, 1));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.enter-game-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
    .welcome-back-card {
        width: 95%;
        max-height: 90vh;
    }

    .welcome-header h1 {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .welcome-section {
        padding: 12px;
    }

    .welcome-content {
        padding: 16px;
    }
}
