/* ============================================================================
   vt99-widgets-redesign.css — restyles #feed-widgets-wrapper (launch codes
   strip + Minerva / Season / Global Events cards) into the vt99 language used
   by "Dweller Live Challenges" (.feed-run). Override layer: appended after the
   legacy widget CSS so the cascade picks these rules. Reference tokens:
   :root { --vt-* } (vt99 component layer).
   ============================================================================ */

/* ---------- Launch Codes: single thin terminal strip ----------------------- */
.ui-feed-launch {
    gap: 14px;
    padding: 3.5px 14px; /* matches .ui-feed-season-bar strip height (31px) */
    border: 1px solid var(--vt-line);
    border-radius: 12px;
    background: rgba(11, 15, 28, 0.55);
    font-family: var(--vt-mono);
    box-shadow: none;
}

.ui-feed-launch__title {
    gap: 8px;
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ui-feed-launch__title .ui-icon {
    width: 14px;
    height: 14px;
    color: var(--vt-yellow);
}

.ui-feed-launch__codes {
    gap: 20px;
    justify-content: flex-end;
}

.ui-feed-launch__code {
    min-height: 0;
    gap: 7px;
    padding: 0;
    border: 0;
    background: none;
}

.ui-feed-launch__label {
    font-family: var(--vt-mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.ui-feed-launch__code[data-silo="alpha"] .ui-feed-launch__label { color: var(--vt-red); }
.ui-feed-launch__code[data-silo="beta"] .ui-feed-launch__label { color: var(--vt-blue-2); }
.ui-feed-launch__code[data-silo="charlie"] .ui-feed-launch__label { color: var(--vt-yellow); }

.ui-feed-launch__value {
    color: var(--vt-text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.ui-feed-launch .ui-feed-copy {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--vt-text-3);
}

@media (hover: hover) {
    .ui-feed-launch .ui-feed-copy:hover {
        color: var(--vt-yellow);
        background: var(--vt-yellow-glow);
    }
}

.ui-feed-launch .ui-feed-copy.is-copied {
    color: var(--vt-pip);
    background: var(--vt-pip-glow);
    border-color: transparent;
}

/* ---------- Info grid + cards: .feed-run visual language ------------------- */
.ui-feed-info-grid {
    gap: 14px;
}

.ui-feed-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-r-lg);
    overflow: hidden;
    background: linear-gradient(150deg, rgba(59, 110, 246, 0.05), rgba(13, 16, 29, 0.95) 42%, rgba(255, 210, 51, 0.015));
    box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.55);
    transition: border-color 0.3s, box-shadow 0.3s,
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .ui-feed-card:hover {
        border-color: rgba(255, 210, 51, 0.25);
        box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.6);
        transform: translateY(-3px);
    }
}

/* entrance: staggered rise, one system for the whole wrapper */
@media (prefers-reduced-motion: no-preference) {
    .ui-feed-launch,
    .ui-feed-card {
        animation: vtWidgetRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .ui-feed-info-grid .ui-feed-card:nth-child(2) { animation-delay: 0.08s; }
    .ui-feed-info-grid .ui-feed-card:nth-child(3) { animation-delay: 0.16s; }
}

@keyframes vtWidgetRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- media / photo header ------------------------------------------- */
.ui-feed-card__media {
    min-height: 132px;
    padding: 14px 16px;
}

.ui-feed-card__media::after {
    background:
        linear-gradient(to top, rgba(13, 16, 29, 0.97) 8%, rgba(13, 16, 29, 0.35) 58%, rgba(13, 16, 29, 0.08)),
        linear-gradient(to right, rgba(13, 16, 29, 0.5), transparent 55%);
}

.ui-feed-card__media-content::before {
    display: block;
    margin: 0 0 4px;
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: lowercase;
}

#card-minerva .ui-feed-card__media-content::before { content: "// vendor_drop.log"; }
#card-season  .ui-feed-card__media-content::before { content: "// season_25.timer"; }
#card-events  .ui-feed-card__media-content::before { content: "// event_calendar.log"; }

.ui-feed-card__title {
    gap: 8px;
    color: var(--vt-text);
    font-family: var(--vt-disp);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ui-feed-card__title .ui-icon {
    color: var(--vt-yellow);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .ui-feed-card:hover .ui-feed-card__title .ui-icon { transform: rotate(120deg); }
}

/* ---------- Season badge (Season 25) ---------------------------------------- */
.ui-feed-badge {
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: var(--vt-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ui-feed-badge--info {
    border-color: rgba(109, 155, 255, 0.35);
    background: rgba(59, 110, 246, 0.12);
    color: var(--vt-blue-2);
}

/* ---------- body: hairline rows instead of boxed rows ----------------------- */
.ui-feed-card__body {
    gap: 12px;
    padding: 14px 16px;
}

.ui-feed-key-values {
    gap: 0;
}

.ui-feed-key-value {
    min-height: 32px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid var(--vt-line-soft);
    border-radius: 0;
    background: none;
}

.ui-feed-key-value dt,
.ui-feed-card__kicker {
    font-family: var(--vt-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vt-text-3);
}

.ui-feed-key-value dd {
    font-family: var(--vt-mono);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ui-feed-key-value--signal dd { color: var(--vt-yellow); }

.ui-feed-card__kicker {
    margin: 0 0 8px;
    text-align: center;
}

/* ---------- season countdown ------------------------------------------------ */
.ui-feed-season-timer__unit {
    min-height: 0;
    gap: 4px;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    background: none;
    position: relative;
}

.ui-feed-season-timer__unit + .ui-feed-season-timer__unit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--vt-line-soft);
}

.ui-feed-season-timer__number {
    color: var(--vt-blue-2);
    font-family: var(--vt-mono);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 18px rgba(59, 110, 246, 0.35);
}

.ui-feed-season-timer__label {
    font-family: var(--vt-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--vt-text-3);
}

.ui-feed-ended {
    font-family: var(--vt-mono);
    color: var(--vt-text-2);
}

/* ---------- minerva item list ------------------------------------------------ */
.ui-feed-minerva-item__name {
    color: var(--vt-text-2);
    font-size: 0.84rem;
    font-weight: 550;
    transition: color 0.2s;
}

@media (hover: hover) {
    .ui-feed-minerva-item__name:hover {
        color: var(--vt-yellow);
        text-decoration: none;
    }
}

.ui-feed-minerva-item__price {
    gap: 5px;
    color: var(--vt-yellow);
    font-family: var(--vt-mono);
    font-size: 0.76rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ui-feed-cap {
    width: 9px;
    height: 9px;
    opacity: 0.85;
}

/* ---------- events card ------------------------------------------------------ */
.ui-feed-week-switcher {
    min-height: 38px;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    padding: 2px;
    border: 1px solid var(--vt-line);
    border-radius: 10px;
    background: rgba(11, 15, 28, 0.5);
}

.ui-feed-week-switcher__dates {
    font-family: var(--vt-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--vt-text-2);
    letter-spacing: 0.04em;
}

.ui-feed-icon-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--vt-text-3);
    transition: color 0.2s, background 0.2s;
}

@media (hover: hover) {
    .ui-feed-icon-button:hover:not(:disabled) {
        color: var(--vt-yellow);
        background: var(--vt-yellow-glow);
        border-color: transparent;
    }
}

.ui-feed-events-weeks {
    min-height: 128px;
}

.ui-feed-event {
    gap: 3px;
    padding: 7px 0 9px;
    border: 0;
    border-bottom: 1px solid var(--vt-line-soft);
    border-radius: 0;
    background: none;
    transition: opacity 0.25s;
}

.ui-feed-event__header,
.ui-feed-event__meta {
    gap: 8px;
}

.ui-feed-event__title {
    color: var(--vt-text-2);
    font-size: 0.82rem;
    font-weight: 650;
    transition: color 0.2s;
}

@media (hover: hover) {
    .ui-feed-event:hover .ui-feed-event__title { color: var(--vt-text); }
}

.ui-feed-event__dates {
    font-family: var(--vt-mono);
    font-size: 0.64rem;
    color: var(--vt-text-3);
}

.ui-feed-event__status {
    min-height: 20px;
    padding: 0 8px;
    font-family: var(--vt-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ui-feed-badge--challenge,
.ui-feed-badge--seasonal {
    border-color: rgba(255, 210, 51, 0.35);
    background: var(--vt-yellow-glow);
    color: var(--vt-yellow);
}

.ui-feed-badge--weekend,
.ui-feed-badge--weekly {
    border-color: rgba(109, 155, 255, 0.3);
    background: rgba(59, 110, 246, 0.12);
    color: var(--vt-blue-2);
}

.ui-feed-badge--update {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.1);
    color: var(--vt-green);
}

.ui-feed-event__status[data-state="ongoing"] {
    border-color: rgba(61, 255, 136, 0.35);
    background: var(--vt-pip-glow);
    color: var(--vt-pip);
}

.ui-feed-event__status[data-state="upcoming"] {
    border-color: rgba(109, 155, 255, 0.3);
    background: rgba(59, 110, 246, 0.12);
    color: var(--vt-blue-2);
}

.ui-feed-event__status[data-state="completed"] {
    border-color: var(--vt-line);
    background: none;
    color: var(--vt-text-3);
}

/* ---------- footer / terminal bracket buttons -------------------------------- */
.ui-feed-card__footer {
    padding: 12px 16px;
    border-top: 1px solid var(--vt-line-soft);
}

.ui-feed-button {
    min-height: 40px;
    border: 1px dashed rgba(147, 164, 255, 0.24);
    border-radius: 10px;
    background: rgba(11, 15, 28, 0.5);
    color: var(--vt-text-2);
    font-family: var(--vt-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.25s, border-color 0.25s, background 0.25s,
                transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .ui-feed-button:hover {
        color: var(--vt-yellow);
        border-color: rgba(255, 210, 51, 0.5);
        background: rgba(11, 15, 28, 0.5);
    }
}

.ui-feed-button:active { transform: scale(0.98); }

.ui-feed-button:focus-visible {
    outline: 2px solid var(--vt-blue-2);
    outline-offset: 3px;
}

/* ---------- grid: no orphan card at 2-column widths ---------------------------
   At viewports where only two of the three cards fit, the last card spans the
   full row instead of leaving a hole on the right. */
@media (max-width: 1180px) and (min-width: 901px) {
    .ui-feed-info-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ---------- pointer-tracked spotlight (--mx/--my) ----------------------------- */
.ui-feed-card { position: relative; }

/* ---------- compact strip on small screens ------------------------------------ */
@media (max-width: 767px) {
    .ui-feed-launch {
        gap: 10px;
        padding: 6px 10px;
    }

    .ui-feed-launch__codes {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        justify-content: stretch;
        flex: 1 1 auto;
    }

    .ui-feed-launch__code {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .ui-feed-launch__label {
        font-size: 0;
        letter-spacing: 0;
    }

    .ui-feed-launch__label::before {
        content: attr(data-short);
        font-size: 0.6875rem;
        font-weight: 800;
        line-height: 1;
    }

    .ui-feed-launch__value {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .ui-feed-card__media { min-height: 116px; }

    .ui-feed-season-bar__unit .ui-mono { font-size: 0.74rem; }
    .ui-feed-card__body,
    .ui-feed-card__footer { padding: 12px 12px; }
    .ui-feed-key-value dd { font-size: 0.76rem; }
    .ui-feed-season-timer__number { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ui-feed-launch,
    .ui-feed-card,
    .ui-feed-card__title .ui-icon,
    .ui-feed-button,
    .ui-feed-icon-button,
    .ui-feed-minerva-item__name,
    .ui-feed-event__title {
        animation: none;
        transition: none;
    }

    @media (hover: hover) {
        .ui-feed-card:hover { transform: none; }
    }
}/* ============================================================================
   vt99-widgets-redesign v2 — season card becomes a thin terminal strip
   (mirrors .ui-feed-launch), info grid drops to two cards.
   ============================================================================ */

.ui-feed-season-bar {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 14px;
    border: 1px solid var(--vt-line);
    border-radius: 12px;
    background: rgba(11, 15, 28, 0.55);
    font-family: var(--vt-mono);
    transition: border-color 0.3s;
}

.ui-feed-season-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 50%), rgba(255, 210, 51, 0.08), transparent 70%);
}

@media (hover: hover) {
    .ui-feed-season-bar:hover { border-color: rgba(255, 210, 51, 0.25); }
    .ui-feed-season-bar:hover::before { opacity: 1; }
}

.ui-feed-season-bar__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ui-feed-season-bar__title .ui-icon {
    width: 15px;
    height: 15px;
    color: var(--vt-yellow);
}

.ui-feed-season-bar__group {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    min-width: 0;
}

.ui-feed-season-bar__season {
    color: var(--vt-blue-2);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ui-feed-season-bar__label {
    color: var(--vt-text-3);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ui-feed-season-bar__timer {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.ui-feed-season-bar__unit {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.ui-feed-season-bar__unit .ui-mono {
    color: var(--vt-blue-2);
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 14px rgba(59, 110, 246, 0.35);
}

.ui-feed-season-bar__unit i {
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.58rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.12em;
    line-height: 1;
}

.ui-feed-season-bar .ui-feed-ended {
    font-size: 0.72rem;
    color: var(--vt-text-2);
    white-space: nowrap;
}

.ui-feed-season-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--vt-text-2);
    font-family: var(--vt-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.ui-feed-season-bar__link .ui-icon { transform: rotate(-90deg); }

.ui-feed-season-bar__link:hover,
.ui-feed-season-bar__link:focus-visible { color: var(--vt-yellow); }

.ui-feed-season-bar__link:focus-visible {
    outline: 2px solid var(--vt-blue-2);
    outline-offset: 3px;
}

/* entrance: strip joins the stagger before the two cards */
@media (prefers-reduced-motion: no-preference) {
    .ui-feed-season-bar {
        animation: vtWidgetRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.04s;
    }
}

/* two cards now: grid drops to two columns */
.ui-feed-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .ui-feed-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ui-feed-season-bar {
        flex-wrap: nowrap;
        gap: 10px;
        padding: 6px 12px;
    }

    /* the long title is redundant on mobile: SEASON 25 becomes the row label */
    .ui-feed-season-bar__title { display: none; }

    .ui-feed-season-bar__group {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .ui-feed-season-bar__label { display: none; }
    .ui-feed-season-bar__timer { gap: 10px; }
    .ui-feed-season-bar__unit .ui-mono { font-size: 0.74rem; }
}

@media (max-width: 360px) {
    .ui-feed-launch__value { font-size: 0.68rem; }
    .ui-feed-launch__codes { gap: 4px; }

    .ui-feed-season-bar { gap: 7px; padding: 6px 8px; }
    .ui-feed-season-bar__season { font-size: 0.56rem; letter-spacing: 0.06em; }
    .ui-feed-season-bar__timer { gap: 7px; }
    .ui-feed-season-bar__unit { gap: 3px; }
    .ui-feed-season-bar__unit .ui-mono { font-size: 0.66rem; }
    .ui-feed-season-bar__unit i { font-size: 0.54rem; }
    .ui-feed-season-bar__link { font-size: 0.58rem; letter-spacing: 0.06em; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .ui-feed-season-bar,
    .ui-feed-season-bar__link {
        animation: none;
        transition: none;
    }
}/* ============================================================================
   vt99-widgets-redesign v3 — Global Events rows: LED status chip + quiet
   type label (replaces the boxy badge/status pill pair).
   ============================================================================ */

/* type label: plain colored mono text instead of a boxed pill */
.ui-feed-event .ui-feed-badge {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    font-family: var(--vt-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ui-feed-event .ui-feed-badge--seasonal,
.ui-feed-event .ui-feed-badge--challenge { color: var(--vt-yellow); }

.ui-feed-event .ui-feed-badge--weekend,
.ui-feed-event .ui-feed-badge--weekly { color: var(--vt-blue-2); }

.ui-feed-event .ui-feed-badge--update { color: var(--vt-green); }

/* status: LED dot chip (dot inherits the state color) */
.ui-feed-event__status {
    gap: 6px;
    min-height: 20px;
    padding: 0 9px 0 7px;
    border-radius: 999px;
    font-family: var(--vt-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ui-feed-event__status:not(:empty)::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
    /* optical fix: mono caps ink sits above the line-box center, so the
       geometrically-centered dot reads as sitting low next to the label */
    transform: translateY(-1px);
}

.ui-feed-event__status:empty { display: none; }

.ui-feed-event__status[data-state="ongoing"] {
    border-color: rgba(61, 255, 136, 0.35);
    background: rgba(61, 255, 136, 0.08);
    color: var(--vt-pip);
    box-shadow: 0 0 14px rgba(61, 255, 136, 0.12);
}

.ui-feed-event__status[data-state="upcoming"] {
    border-color: rgba(109, 155, 255, 0.3);
    background: rgba(59, 110, 246, 0.12);
    color: var(--vt-blue-2);
    box-shadow: 0 0 14px rgba(59, 110, 246, 0.12);
}

.ui-feed-event__status[data-state="completed"] {
    border-color: var(--vt-line);
    background: rgba(147, 164, 255, 0.04);
    color: var(--vt-text-3);
}

.ui-feed-event__status[data-state="completed"]:not(:empty)::before {
    box-shadow: none;
    opacity: 0.6;
}/* ============================================================================
   vt99-widgets-redesign v4 — info panel toggle button in the terminal bracket
   style (same language as the card footer buttons).
   ============================================================================ */
.ui-feed-toggle { margin-top: 14px; }

.ui-feed-toggle__button {
    gap: 8px;
    min-height: 40px;
    border: 1px dashed rgba(147, 164, 255, 0.24);
    border-radius: 10px;
    background: rgba(11, 15, 28, 0.5);
    color: var(--vt-text-2);
    font-family: var(--vt-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.25s, border-color 0.25s, background 0.25s,
                transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ui-feed-toggle__button[data-state="open"] .ui-feed-toggle__icon {
    transform: rotate(180deg);
}

.ui-feed-toggle__icon {
    display: inline-flex;
    transition: transform 0.25s var(--ui-ease-out);
}

@media (hover: hover) {
    .ui-feed-toggle__button:hover {
        color: var(--vt-yellow);
        border-color: rgba(255, 210, 51, 0.5);
        background: rgba(11, 15, 28, 0.5);
    }
}

.ui-feed-toggle__button:active { transform: scale(0.98); }

.ui-feed-toggle__button:focus-visible {
    outline: 2px solid var(--vt-blue-2);
    outline-offset: 3px;
}

/* keep 44px touch targets on mobile for the restyled buttons */
@media (max-width: 767px) {
    .ui-feed-toggle__button,
    .ui-feed-button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-feed-toggle__button,
    .ui-feed-toggle__icon { transition: none; }

    @media (hover: hover) {
        .ui-feed-toggle__button:active { transform: none; }
    }
}





/* ============================================================================
   vt99-widgets-redesign v5 — "Your Current Challenge" cards (.ui-feed-current)
   vt99 language, matte finish: flat dark panel, quiet border-tone signal
   line, terminal labels, mono numerals with yellow day prefix, faint
   pointer highlight (--mx/--my bound by feed-challenges.js), entrance via
   the shared .reveal engine. Override layer: appended after feed-ui.css
   so the cascade picks these rules.
   ============================================================================ */

.ui-feed-current {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-r-lg);
    /* matte surface: flat panel, no gradient sheen */
    background: rgba(18, 22, 39, 0.55);
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s,
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .ui-feed-current:hover {
        border-color: rgba(147, 164, 255, 0.24);
        box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.55);
        transform: translateY(-2px);
    }

    /* cursor-following highlight (--mx/--my set from JS), kept faint for matte */
    .ui-feed-current::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
        background: radial-gradient(240px 240px at var(--mx, 50%) var(--my, 50%), rgba(147, 164, 255, 0.05), transparent 70%);
    }

    .ui-feed-current:hover::before { opacity: 1; }
}

/* ---------- top signal: quiet line in the card border tone (no glow) -------- */
.ui-feed-current__signal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2px;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, rgba(147, 164, 255, 0.38) 18%, rgba(147, 164, 255, 0.38) 82%, transparent);
}

/* ---------- rotating atom watermark ----------------------------------------- */
.ui-feed-current__watermark {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: -1;
    color: var(--vt-text-3);
    opacity: 0.05;
    pointer-events: none;
    line-height: 0;
}

.ui-feed-current__watermark .ui-icon {
    width: 110px;
    height: 110px;
}

/* ---------- header: terminal eyebrow + yellow goal title --------------------- */
.ui-feed-current__eyebrow {
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ui-feed-current__eyebrow::before {
    content: "// ";
    color: rgba(255, 210, 51, 0.5);
}

.ui-feed-current .ui-feed-meta-label {
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ui-feed-current h2 {
    color: var(--vt-yellow);
    font-family: var(--vt-disp);
}

.ui-feed-current h2 .ui-icon {
    color: var(--vt-yellow);
    filter: drop-shadow(0 0 6px rgba(255, 210, 51, 0.35));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .ui-feed-current:hover h2 .ui-icon { transform: rotate(120deg); }
}

.ui-feed-current__goal-link {
    transition: color 0.2s;
}

@media (hover: hover) {
    .ui-feed-current__goal-link:hover,
    .ui-feed-current__goal-link:focus-visible { color: var(--vt-yellow-2); }
}

.ui-feed-current__related {
    color: var(--vt-text-3);
    font-size: 0.75rem;
}

/* ---------- content band: separators in vt99 lines --------------------------- */
.ui-feed-current__content {
    border-color: var(--vt-line-soft);
    background: rgba(9, 12, 24, 0.18);
    box-shadow: none;
}

.ui-feed-current__stats dt {
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ui-feed-current__stats dd {
    color: var(--vt-text);
    font-family: var(--vt-mono);
    font-weight: 600;
}

.ui-feed-current__stats dd .ui-icon {
    color: var(--vt-text-3);
}

/* yellow day prefix inside the running timers (injected by challenge-timer.js) */
.ui-feed-current__stats dd .ax3-d {
    color: var(--vt-yellow);
}

/* ---------- footer ----------------------------------------------------------- */
.ui-feed-current__challenge-name > span {
    color: var(--vt-text-3);
    font-family: var(--vt-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ui-feed-current__challenge-name a {
    color: var(--vt-text-2);
    transition: color 0.2s;
}

@media (hover: hover) {
    .ui-feed-current__challenge-name a:hover,
    .ui-feed-current__challenge-name a:focus-visible { color: var(--vt-blue-2); }
}

/* ---------- inner spacing harmonized with .feed-run -------------------------- */
.ui-feed-current__header,
.ui-feed-current__content,
.ui-feed-current__footer {
    padding-inline: 20px;
}

.ui-feed-current__header { padding-block: 18px 16px; }
.ui-feed-current__content { padding-block: 14px; }
.ui-feed-current__footer { padding-block: 14px 16px; }

@media (max-width: 767px) {
    .ui-feed-current__header,
    .ui-feed-current__content,
    .ui-feed-current__footer { padding-inline: 16px; }
}

/* ---------- entrance choreography (shared .reveal engine adds .in) ----------- */
.ui-feed-current.reveal.in {
    animation: vt-fc-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ui-feed-current-runs .ui-feed-current.reveal.in:nth-child(2) { animation-delay: 0.08s; }
.ui-feed-current-runs .ui-feed-current.reveal.in:nth-child(3) { animation-delay: 0.16s; }

@keyframes vt-fc-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-feed-current,
    .ui-feed-current h2 .ui-icon,
    .ui-feed-current__goal-link,
    .ui-feed-current__challenge-name a {
        transition: none;
    }

    .ui-feed-current.reveal.in {
        animation: none;
    }

    @media (hover: hover) {
        .ui-feed-current:hover { transform: none; }
        .ui-feed-current:hover h2 .ui-icon { transform: none; }
    }
}
