.ld {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #1b2a14 0%, #0f1710 62%, #070b07 100%);
    transition: opacity 0.45s ease;
}

.ld.is-done {
    opacity: 0;
    pointer-events: none;
}

.ld.hidden {
    display: none;
}

.ld__sun {
    position: absolute;
    inset: -20% 0 auto 0;
    height: 70%;
    background: radial-gradient(ellipse at 50% 0%, rgba(132, 204, 22, 0.18), transparent 70%);
    pointer-events: none;
}

.ld__in {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(520px, 90%);
    padding: 16px;
    border: 2px solid #4a5d23;
    border-radius: 12px;
    background: rgba(15, 23, 15, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.ld__logo {
    height: 44px;
    width: auto;
    margin-bottom: 10px;
}

.ld__art {
    width: 100%;
    max-width: 440px;
    max-height: 260px;
    margin-bottom: 14px;
    border: 2px solid rgba(132, 204, 22, 0.45);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.ld__bar {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 20px;
    overflow: hidden;
    border: 2px solid #65a30d;
    border-radius: 9999px;
    background: #0f1710;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.ld__bar i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #4d7c0f 0%, #84cc16 55%, #bef264 100%);
    transition: width 0.25s ease;
}

.ld__pct {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
}

.ld__status {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
}

.ld__tip {
    margin: 6px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

.ld__tip:empty {
    display: none;
}

.ld__notes {
    margin: 6px 0 0;
    font-size: 11px;
    color: #fbbf24;
}

.ld__error {
    margin-top: 12px;
    text-align: center;
    color: #fecaca;
    font-size: 13px;
}

.ld__error.hidden,
.ld__notes.hidden {
    display: none;
}

.ld__error button {
    height: 36px;
    margin-top: 8px;
    padding: 0 16px;
    border: 1px solid #84cc16;
    border-radius: 8px;
    background: linear-gradient(180deg, #65a30d 0%, #3f6212 100%);
    color: #f8fafc;
    font-weight: 800;
    cursor: pointer;
}

.so {
    position: absolute;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 5, 0.88);
}

.so.hidden {
    display: none;
}

.so__card {
    width: min(420px, 90%);
    padding: 22px;
    border: 2px solid #4a5d23;
    border-radius: 12px;
    background: #141e12;
    color: #e2e8f0;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.so__title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #bef264;
}

.so__card p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #cbd5e1;
}

.so__card .sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #84cc16;
    border-radius: 8px;
    background: linear-gradient(180deg, #65a30d 0%, #3f6212 100%);
    color: #f8fafc;
    font-weight: 800;
    text-decoration: none;
}
