/* VIP shop layered over the supplied 1084×1451 artwork. */
#vip-overlay.vip-overlay {
    padding: max(2px, env(safe-area-inset-top)) 0 max(2px, env(safe-area-inset-bottom));
    overflow: hidden;
    background: rgba(0, 2, 10, .78);
}

#vip-overlay .vip-panel.help-panel {
    width: min(100vw, 900px, calc(94dvh * .74707));
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #e9f6ff;
    font-family: var(--ui-font, 'Rajdhani', sans-serif);
}

.vip-stage {
    --vip-cyan: #00f5ee;
    position: relative;
    width: 100%;
    aspect-ratio: 1084 / 1451;
    overflow: visible;
    isolation: isolate;
    container-type: inline-size;
    background: url('../mines/vip_window.png?v=20261008-vip-window-artwork1') center / 100% 100% no-repeat;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .72));
}

.vip-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#vip-overlay .vip-close {
    top: .5%;
    right: 1.3%;
    z-index: 5;
    width: 8.6%;
    height: 7.4%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    box-shadow: none;
}

#vip-overlay .vip-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.vip-daily-block {
    position: absolute;
    z-index: 2;
    top: 10.4%;
    right: 4.9%;
    width: 42.5%;
    height: 4.6%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #dcefff;
    text-align: center;
    font-size: clamp(4.3px, .7vw, 8px);
    font-size: clamp(4.8px, 1.2cqw, 8px);
    line-height: 1.05;
}

#vip-overlay .vip-daily-claim {
    align-self: center;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: clamp(4.2px, .68vw, 7px);
    font-size: clamp(4.5px, 1.1cqw, 7px);
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
    cursor: pointer;
}

#vip-overlay .vip-daily-claim::before,
#vip-overlay .vip-daily-claim::after { content: none; display: none; }

.vip-daily-hint,
.vip-daily-done {
    display: block;
    max-width: 100%;
    margin: .15% 0 0;
    overflow: hidden;
    color: #cfdeeb;
    font-size: clamp(4px, .58vw, 6px);
    font-size: clamp(4.3px, 1cqw, 6px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-daily-done { color: #71ffd0; font-weight: 700; }

.vip-tiers {
    position: absolute;
    z-index: 1;
    inset: 16.15% 2.3% 4.05%;
    display: grid;
    grid-template-rows: 17.5% 19.4% 20% 20% 21.8%;
    row-gap: .3%;
    max-height: none;
    overflow: visible;
}

.vip-tier-card {
    --tier-accent: #00ffe8;
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.vip-tier-card[data-vip-tier="1"] { --tier-accent: #14ffe1; }
.vip-tier-card[data-vip-tier="2"] { --tier-accent: #27b9ff; }
.vip-tier-card[data-vip-tier="3"] { --tier-accent: #ff4a40; }
.vip-tier-card[data-vip-tier="4"] { --tier-accent: #dc54ff; }
.vip-tier-card[data-vip-tier="5"] { --tier-accent: #ffbf37; }

.vip-tier-info {
    position: absolute;
    top: 3%;
    right: calc(28.3% + 1px);
    bottom: 1%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .96), 0 0 2px rgba(0, 0, 0, .85);
}

.vip-tier-perks {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: #f4f8ff;
    text-align: left;
    font-family: 'Orbitron', var(--ui-font, 'Rajdhani', sans-serif);
    font-size: clamp(7px, 2.15cqw, 11.5px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0;
    word-spacing: normal;
    list-style: none;
}

.vip-tier-perks li {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
    text-align: left;
    line-height: inherit;
    letter-spacing: inherit;
    overflow-wrap: anywhere;
    white-space: normal;
}

.vip-tier-perks li.vip-pvp-perk {
    color: #8affef;
    font-weight: 800;
}

.vip-tier-card[data-vip-tier="3"] .vip-tier-perks,
.vip-tier-card[data-vip-tier="5"] .vip-tier-perks {
    line-height: 1;
}

.vip-tier-perks li::before {
    content: '•';
    display: inline-block;
    margin-right: .35em;
    color: var(--vip-cyan);
}

.vip-tier-perks li span {
    color: #a9d9e7;
    font-weight: 800;
}

.vip-purchase-wrap {
    position: absolute;
    top: 66%;
    right: 3.1%;
    bottom: 1%;
    width: 25.2%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

#vip-overlay .vip-tier-btn {
    width: 100%;
    height: 100%;
    min-height: 0;
    appearance: none;
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: clamp(4.5px, 1.1cqw, 7px);
    line-height: 1;
    text-shadow: 0 1px 2px #000;
    cursor: pointer;
}

#vip-overlay .vip-tier-btn::before,
#vip-overlay .vip-tier-btn::after { content: none; display: none; }

#vip-overlay .vip-tier-btn:disabled {
    opacity: 1;
    cursor: default;
}

#vip-overlay .vip-owned-status {
    display: block;
    max-width: 100%;
    color: #8affef;
    font-family: 'Orbitron', var(--ui-font, 'Rajdhani', sans-serif);
    font-size: clamp(6px, 1.9cqw, 10px);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
}

.vip-price {
    display: block;
    max-width: 100%;
    margin: 0;
    color: #ffe570;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(6px, 1.08vw, 12px);
    font-size: clamp(6px, 1.9cqw, 12px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

#vip-overlay .vip-tier-card.active .vip-tier-btn { background: transparent; }

@media (prefers-reduced-motion: reduce) {
    .vip-tier-btn { transition: none !important; }
}
