/* FullMoon MMO - Timed activity busy screen (missions, cemetery, etc.) */

.main-content.main-content--activity {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Remove extra gaps: the busy view already has its own padding. */
    padding-top: calc(var(--header-height) + var(--safe-area-top));
    padding-bottom: calc(var(--navbar-height) + var(--safe-area-bottom));
    padding-left: 0;
    padding-right: 0;
}

.main-content.main-content--activity > section {
    flex: 1;
    min-height: 0;
}

.main-content.main-content--activity .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content.main-content--activity .card__body {
    flex: 1;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.activity-busy {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
    border-radius: var(--border-radius-md);
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.65), var(--shadow-md);
    overflow: hidden;
    padding: calc(var(--spacing-md) + 2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-busy__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
        radial-gradient(80% 60% at 20% 90%, rgba(163, 122, 255, 0.08), transparent 65%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.55));
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.activity-busy__bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
    filter: saturate(1.05) contrast(1.05);
}

.activity-busy__title {
    position: absolute;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-family-display);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
    z-index: 2;
    text-align: center;
    width: calc(100% - (var(--spacing-md) * 2));
}

.activity-busy__subtitle {
    margin-top: 6px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.activity-busy__center {
    z-index: 2;
    text-align: center;
    display: grid;
    gap: var(--spacing-sm);
    justify-items: center;
}

.activity-busy__time {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.activity-busy__bar {
    width: min(520px, 92%);
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.activity-busy__fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(163, 122, 255, 0.95), rgba(255, 195, 80, 0.92));
    transition: width 900ms linear;
}

.activity-busy__actions {
    position: absolute;
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: var(--spacing-md);
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.activity-busy__note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
}

@media (max-width: 360px) {
    .activity-busy {
        padding: calc(var(--spacing-sm) + 2px);
    }

    .activity-busy__title {
        top: var(--spacing-sm);
        font-size: 0.95rem;
        letter-spacing: 0.05em;
    }

    .activity-busy__subtitle {
        font-size: 0.8rem;
    }

    .activity-busy__time {
        font-size: 1rem;
    }

    .activity-busy__bar {
        width: 94%;
        height: 12px;
    }

    .activity-busy__actions {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        bottom: var(--spacing-sm);
        grid-template-columns: 1fr;
    }

    .activity-busy__note {
        font-size: 0.76rem;
        max-width: 94%;
    }
}
