/*
 * Image-backed Supply Strike shell. These rules activate only after both
 * artwork variants preload successfully; the legacy weekly-event layout is
 * retained as the production fallback.
 */

#weekly-event .we-art-currencies {
    display: none;
}

#weekly-event.we-art-ready {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #01040c;
}

#weekly-event.we-art-ready .weekly-event-page {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: min(100vw, 150dvh);
    max-width: none;
    min-height: 0;
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: center / 100% 100% no-repeat url('../images/Supply Strike.png?v=20260801020500');
    container-name: supply-strike-stage;
    container-type: inline-size;
}

#weekly-event.we-art-ready.we-layout-phone .weekly-event-page {
    width: min(100vw, 216.1782dvh);
    aspect-ratio: 1844 / 853;
    background-image: url('../images/Supply Strike Phone.png?v=20260801020500');
}

#weekly-event.we-art-ready .we-boss-header,
#weekly-event.we-art-ready .we-action-section,
#weekly-event.we-art-ready .we-fleet-preview,
#weekly-event.we-art-ready .we-section,
#weekly-event.we-art-ready .we-art-currencies {
    position: absolute;
    margin: 0;
    box-sizing: border-box;
}

/* Artwork supplies the fixed title, description, labels, icons and borders. */
#weekly-event.we-art-ready #we-event-title,
#weekly-event.we-art-ready #we-boss-name,
#weekly-event.we-art-ready .we-mission-desc,
#weekly-event.we-art-ready .we-fleet-preview-header > span:first-child,
#weekly-event.we-art-ready .we-fleet-note,
#weekly-event.we-art-ready .we-section-title,
#weekly-event.we-art-ready .we-section-chevron,
#weekly-event.we-art-ready .we-shop-icon,
#weekly-event.we-art-ready .we-shop-label,
#weekly-event.we-art-ready .we-token-icon {
    display: none !important;
}

#weekly-event.we-art-ready .we-boss-header,
#weekly-event.we-art-ready .we-fleet-preview,
#weekly-event.we-art-ready .we-section {
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

#weekly-event.we-art-ready .we-boss-header {
    left: 32.1%; top: 4%; width: 37.8%; height: 24.4%;
    overflow: visible;
}

#weekly-event.we-art-ready .we-boss-event-title {
    position: static;
    margin: 0;
}

#weekly-event.we-art-ready .we-back-arrow-btn {
    position: absolute;
    left: -82%; top: 0; width: 32%; height: 36%;
    z-index: 50;
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    color: transparent;
    border: 0;
    background: transparent;
}

#weekly-event.we-art-ready .we-event-countdown {
    position: absolute;
    right: 2%; top: 4%;
    padding: 0;
    color: #dcecff;
    background: rgba(0, 5, 18, 0.78);
    font: 600 clamp(8px, 0.9cqw, 14px) 'Share Tech Mono', monospace;
}

#weekly-event.we-art-ready .we-boss-hp-container {
    position: absolute;
    left: 4%; right: 4.5%; bottom: 6%; height: 18%;
    margin: 0;
}

#weekly-event.we-art-ready .we-boss-hp-bar {
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#weekly-event.we-art-ready .we-boss-hp-fill {
    opacity: 0.38;
}

#weekly-event.we-art-ready .we-boss-hp-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #fff;
    font: 700 clamp(9px, 1.15cqw, 18px) 'Share Tech Mono', monospace;
    text-transform: uppercase;
}

#weekly-event.we-art-ready .we-attempts-panel {
    position: absolute;
    left: 129.4%;
    top: 111%;
    width: 41%;
    min-height: 29%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4%;
    padding: 2% 4%;
    box-sizing: border-box;
    border: max(1px, 0.08cqw) solid #10ddf4;
    border-radius: clamp(3px, 0.4cqw, 7px);
    background: rgba(0, 8, 22, 0.86);
    box-shadow: inset 0 0 clamp(4px, 0.8cqw, 12px) rgba(16, 221, 244, 0.12),
                0 0 clamp(3px, 0.45cqw, 7px) rgba(16, 221, 244, 0.22);
}

#weekly-event.we-art-ready .we-boss-attempts {
    position: static;
    width: 100%;
    color: #10ddf4;
    font: 700 clamp(9px, 1cqw, 16px) 'Share Tech Mono', monospace;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

#weekly-event.we-art-ready .we-boss-damage-stats {
    display: none;
}

#weekly-event.we-art-ready .we-art-currencies {
    left: 81%; top: 4.2%; width: 15.5%; height: 26%;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    z-index: 5;
}

#weekly-event.we-art-ready .we-art-currency-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 9%;
    color: #e8fbff;
    font: 700 clamp(8px, 1.05cqw, 17px) 'Share Tech Mono', monospace;
    text-shadow: 0 0 5px #00cfff;
}

#weekly-event.we-art-ready .we-action-section {
    left: 27%; top: 30.8%; width: 48%; height: 10.8%;
}

#weekly-event.we-art-ready .we-btn-primary-action,
#weekly-event.we-art-ready .we-no-attempts-message {
    width: 100%; max-width: none; height: 100%; margin: 0; padding: 0;
    color: transparent;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}

#weekly-event.we-art-ready .we-no-attempts-message {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffdca8;
    font-size: clamp(8px, 1cqw, 16px);
}

#weekly-event.we-art-ready .we-fleet-preview {
    left: 6.5%; top: 42%; width: 42.3%; height: 21.7%;
}

#weekly-event.we-art-ready .we-fleet-preview-header {
    position: static;
}

#weekly-event.we-art-ready .we-btn-link {
    position: absolute;
    right: 4%;
    top: 3%;
    z-index: 4;
    margin: 0;
    padding: 0;
    font-size: clamp(8px, 0.9cqw, 14px);
    line-height: 1;
}

#weekly-event.we-art-ready .we-fleet-ships {
    position: absolute;
    left: 4%; top: 35%; width: 92%; height: 58%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 2%;
    padding: 0;
}

#weekly-event.we-art-ready .we-fleet-ships .we-ship-mini-card {
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0 2%;
    background: transparent;
    transform: translateY(7%);
}

#weekly-event.we-art-ready .we-fleet-ships .we-ship-mini-card img {
    display: block;
    width: 72%; height: 72%;
    margin: 0 auto;
    object-fit: contain;
    opacity: 1;
}

#weekly-event.we-art-ready .we-fleet-ships .we-ship-mini-card .we-ship-name {
    font-size: clamp(6px, 0.68cqw, 11px);
}

#weekly-event.we-art-ready .we-fleet-total-cp {
    grid-column: 1 / -1;
    grid-row: 2;
    height: auto;
    margin: 0;
    padding: 0;
    transform: translateY(-34%);
    font-size: clamp(7px, 0.75cqw, 12px);
}

#weekly-event.we-art-ready #we-milestones-section {
    left: 49.9%; top: 42%; width: 43.5%; height: 21.7%;
}

#weekly-event.we-art-ready #we-milestones-section .we-section-header {
    position: absolute; right: 4%; top: 2%; z-index: 2; padding: 0;
}

#weekly-event.we-art-ready #we-milestones-content,
#weekly-event.we-art-ready #we-daily-progress-content {
    max-height: none;
    padding: 0;
    overflow: visible;
}

#weekly-event.we-art-ready .we-milestone-track {
    position: absolute;
    left: 3%; top: 23%; width: 94%; height: 42%;
    padding: 0;
}

#weekly-event.we-art-ready .we-grand-prize-info {
    position: absolute;
    left: 4%; bottom: 4%; width: 92%; height: 24%;
    margin: 0; padding: 1% 3%;
    background: transparent;
}

#weekly-event.we-art-ready #we-daily-progress-section {
    left: 6.5%; top: 65%; width: 87%; height: 15.5%;
}

#weekly-event.we-art-ready #we-daily-progress-section .we-section-header {
    position: absolute;
    right: 2.2%; top: 5%;
    z-index: 2;
    max-width: 42%;
    padding: 0;
}

#weekly-event.we-art-ready #we-daily-progress-section .we-section-header-right {
    gap: clamp(4px, 0.55cqw, 9px);
    white-space: nowrap;
}

#weekly-event.we-art-ready .we-quest-progress-count {
    font-size: clamp(6px, 0.68cqw, 11px);
}

#weekly-event.we-art-ready .we-btn-claim-all {
    position: relative;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 2px 5px;
    color: #5dff7b;
    border: 1px solid #32e95a;
    border-radius: clamp(3px, 0.42cqw, 7px);
    background: rgba(0, 24, 8, 0.7);
    box-shadow: 0 0 6px rgba(50, 233, 90, 0.22);
    font-size: clamp(8px, 0.86cqw, 13px);
    line-height: 1;
}

/* Keep the visible outline tight while retaining a forgiving touch target. */
#weekly-event.we-art-ready .we-btn-claim-all::before {
    content: '';
    position: absolute;
    inset: -7px -8px;
}

#weekly-event.we-art-ready .we-quest-carousel-wrapper {
    position: absolute;
    left: 2%; top: 28%; width: 96%; height: 64%;
}

#weekly-event.we-art-ready .we-quest-carousel {
    height: 100%; gap: 1%; padding: 0;
}

#weekly-event.we-art-ready .we-quest-card {
    flex: 0 0 14%;
    height: 100%;
    padding: 0.5%;
    font-size: clamp(6px, 0.65cqw, 10px);
}

#weekly-event.we-art-ready .we-quest-card .we-quest-icon { font-size: clamp(10px, 1.4cqw, 22px); margin: 0; }
#weekly-event.we-art-ready .we-quest-card .we-quest-name { font-size: clamp(6px, 0.66cqw, 10px); }
#weekly-event.we-art-ready .we-carousel-nav,
#weekly-event.we-art-ready .we-quest-detail { display: none !important; }

#weekly-event.we-art-ready #we-shop-section {
    left: 6.5%; top: 82%; width: 87%; height: 6.2%;
}

#weekly-event.we-art-ready .we-shop-button {
    height: 100%; padding: 0 3%; background: transparent;
}

#weekly-event.we-art-ready .we-shop-balance { margin-left: auto; }

#we-leaderboard-section .we-section-header {
    width: 100%;
    border: 0;
    background: transparent;
}

#we-leaderboard-content.collapsed { visibility: hidden; }

#weekly-event.we-art-ready #we-leaderboard-section {
    left: 6.5%; top: 89.3%; width: 87%; height: 6.2%;
    overflow: visible;
    z-index: 6;
}

#weekly-event.we-art-ready #we-leaderboard-section .we-section-header {
    width: 100%; height: 100%; padding: 0;
}

#weekly-event.we-art-ready #we-leaderboard-content.expanded {
    position: absolute;
    inset: auto 0 calc(100% + 4px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-height: min(55dvh, 40cqw);
    padding: 8px;
    border: 1px solid #42647d;
    border-radius: 8px;
    background: #071525;
    transition: none;
}

#weekly-event.we-art-ready #we-leaderboard-content .we-lb-tabs { flex-shrink: 0; }
#weekly-event.we-art-ready #we-leaderboard-content .we-lb-list { min-height: 0; }

/* The 1844x853 phone art has a deliberately shallower Daily Operations panel. */
#weekly-event.we-art-ready.we-layout-phone .we-boss-header { left: 35%; top: 4%; width: 29%; height: 24%; }
#weekly-event.we-art-ready.we-layout-phone .we-back-arrow-btn { left: -112%; width: 38%; }
#weekly-event.we-art-ready.we-layout-phone .we-art-currencies { left: 80.1%; top: 4.2%; width: 16.7%; height: 27.5%; }
#weekly-event.we-art-ready.we-layout-phone .we-attempts-panel { left: 155.5%; top: 119%; width: 57.6%; min-height: 29%; }
#weekly-event.we-art-ready.we-layout-phone .we-action-section { left: 30.7%; top: 36%; width: 38%; height: 9.3%; }
#weekly-event.we-art-ready.we-layout-phone .we-fleet-preview { left: 11.1%; top: 47%; width: 36.7%; height: 21%; }
#weekly-event.we-art-ready.we-layout-phone #we-milestones-section { left: 48.6%; top: 47%; width: 40.1%; height: 21%; }
#weekly-event.we-art-ready.we-layout-phone #we-daily-progress-section { left: 7.6%; top: 69.3%; width: 84.7%; height: 14%; }
#weekly-event.we-art-ready.we-layout-phone #we-shop-section { left: 7.6%; top: 84.5%; width: 84.7%; height: 5.2%; }
#weekly-event.we-art-ready.we-layout-phone #we-leaderboard-section { left: 7.6%; top: 90.6%; width: 84.7%; height: 5.2%; }
#weekly-event.we-art-ready.we-layout-phone .we-quest-card { flex-basis: 13%; }
#weekly-event.we-art-ready.we-layout-phone #we-daily-progress-section .we-section-header {
    right: 1.8%;
    top: 1%;
    max-width: 38%;
}
#weekly-event.we-art-ready.we-layout-phone .we-quest-carousel-wrapper {
    top: 31%;
    height: 61%;
}
#weekly-event.we-art-ready.we-layout-phone .we-milestone-circle {
    width: clamp(22px, 2.25cqw, 34px);
    height: clamp(22px, 2.25cqw, 34px);
}
#weekly-event.we-art-ready.we-layout-phone .we-milestone-label,
#weekly-event.we-art-ready.we-layout-phone .we-milestone-reward {
    font-size: clamp(5px, 0.55cqw, 9px);
}

/* The percentage is already printed inside each circle. Put its token reward
   above the node so neither line competes with the grand-prize panel. */
#weekly-event.we-art-ready .we-milestone-node {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: start;
    row-gap: clamp(2px, 0.28cqw, 5px);
}

#weekly-event.we-art-ready .we-milestone-reward {
    grid-row: 1;
    margin: 0;
    white-space: nowrap;
}

#weekly-event.we-art-ready .we-milestone-circle {
    grid-row: 2;
}

#weekly-event.we-art-ready .we-milestone-label {
    display: none;
}

#weekly-event.we-art-ready .we-milestone-track::before {
    top: calc(var(--spacing-md) + 28px);
}
