/* STW V-Bucks Missions Card */

.stwvb-card,
.stwvb-inner-only {
    --stwvb-blue: #00b9ff;
    --stwvb-blue-soft: rgba(0, 185, 255, 0.28);
    --stwvb-orange: #ff6a1a;
    --stwvb-text: #ffffff;
    --stwvb-muted: rgba(255, 255, 255, 0.72);
    --stwvb-line: rgba(78, 196, 255, 0.22);
    --stwvb-dark: rgba(0, 0, 0, 0.96);

    color: var(--stwvb-text);
}

.stwvb-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(130px, 0.85fr) minmax(0, 2fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    border: 2px solid var(--stwvb-blue);
    border-radius: 14px;
    padding: 22px 24px 42px;
    background:
        radial-gradient(circle at 62% 8%, rgba(0, 187, 255, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(9, 21, 30, 0.98), rgba(0, 0, 0, 0.98));
    box-shadow:
        0 0 14px rgba(0, 185, 255, 0.72),
        inset 0 0 26px rgba(0, 185, 255, 0.10);
}

.stwvb-card::after,
.stwvb-inner-only::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.025) 0,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.42;
}

.stwvb-inner-only {
    position: relative;
    width: 100%;
    min-width: 0;
}

.stwvb-left,
.stwvb-right,
.stwvb-footer,
.stwvb-status-row,
.stwvb-table-wrap {
    position: relative;
    z-index: 3;
}

.stwvb-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
    border-right: 1px solid var(--stwvb-line);
}

.stwvb-eyebrow {
    margin: 0 0 5px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(23px, 4.2vw, 34px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
}

.stwvb-title {
    margin: 0 0 14px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(23px, 4.2vw, 34px);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--stwvb-orange);
}

.stwvb-intro {
    max-width: 220px;
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
}

.stwvb-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stwvb-status-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.stwvb-coin {
    position: relative;
    width: 106px;
    height: 106px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.stwvb-coin-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 14px rgba(93, 228, 255, 0.72));
}

.stwvb-coin--active::after {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 186, 255, 0.42), transparent 68%);
}

.stwvb-coin--disabled .stwvb-coin-image {
    filter:
        grayscale(0.2)
        drop-shadow(0 0 12px rgba(93, 228, 255, 0.55));
}

.stwvb-coin--disabled::before {
    content: "";
    position: absolute;
    z-index: 3;
    width: 132px;
    height: 7px;
    border-radius: 999px;
    background: var(--stwvb-orange);
    transform: rotate(54deg);
    box-shadow: 0 0 12px rgba(255, 106, 26, 0.75);
}

.stwvb-coin--disabled::after {
    content: "×";
    position: absolute;
    right: -5px;
    bottom: -4px;
    z-index: 4;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 2px solid #63c9ff;
    border-radius: 7px;
    background: #102036;
    color: #74d6ff;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 10px rgba(0, 185, 255, 0.6);
}

.stwvb-total-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stwvb-total {
    display: block;
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 10vw, 74px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 3px 0 rgba(0,0,0,0.28);
}

.stwvb-total-label {
    margin: 6px 0 0;
    color: var(--stwvb-orange);
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(24px, 4.4vw, 38px);
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.stwvb-mini-coin-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(93, 228, 255, 0.68));
}

.stwvb-message {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: clamp(14px, 2.2vw, 19px);
    line-height: 1.35;
}

.stwvb-card--empty .stwvb-message {
    max-width: 300px;
}

.stwvb-table-wrap {
    margin-top: 18px;
    width: 100%;
    overflow-x: auto;
}

.stwvb-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
    font-size: 13px;
    min-width: 440px;
}

.stwvb-table th {
    padding: 7px 8px;
    border-bottom: 1px solid var(--stwvb-line);
    color: #8fd8ff;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stwvb-table td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 13px;
}

.stwvb-table th:last-child,
.stwvb-table td:last-child {
    text-align: right;
}

.stwvb-vbucks-cell {
    color: var(--stwvb-orange) !important;
    font-weight: 900;
}

.stwvb-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-top: 9px;
    border-top: 1px solid rgba(78, 196, 255, 0.18);
    color: rgba(210, 230, 255, 0.72);
    font-size: 12px;
}

.stwvb-card .stwvb-footer {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 13px;
}

.stwvb-inner-only .stwvb-footer {
    margin-top: 14px;
}

.stwvb-separator {
    opacity: 0.45;
}

@media (max-width: 680px) {
    .stwvb-card {
        grid-template-columns: minmax(112px, 0.84fr) minmax(0, 1.58fr);
        gap: 14px;
        padding: 20px 18px 46px;
    }

    .stwvb-left {
        padding-right: 12px;
    }

    .stwvb-intro {
        font-size: 13px;
        line-height: 1.42;
    }

    .stwvb-status-row {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
    }

    .stwvb-coin {
        width: 76px;
        height: 76px;
    }

    .stwvb-coin--disabled::before {
        width: 94px;
        height: 5px;
    }

    .stwvb-coin--disabled::after {
        width: 25px;
        height: 25px;
        font-size: 20px;
    }

    .stwvb-table-wrap {
        margin-top: 12px;
    }

    .stwvb-table {
        min-width: 360px;
        font-size: 11px;
    }

    .stwvb-table th,
    .stwvb-table td {
        padding-left: 5px;
        padding-right: 5px;
    }

    .stwvb-footer {
        font-size: 11px;
    }

    .stwvb-card .stwvb-footer {
        left: 18px;
        right: 18px;
    }
}

@media (max-width: 420px) {
    .stwvb-card {
        grid-template-columns: 1fr;
        padding-bottom: 54px;
    }

    .stwvb-left {
        border-right: 0;
        border-bottom: 1px solid var(--stwvb-line);
        padding-right: 0;
        padding-bottom: 14px;
    }

    .stwvb-intro {
        max-width: none;
    }

    .stwvb-status-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }
}
