/* The home page layout the owner picked on 2026-10-25 (sketch E): the event timers beside the banner,
   the latest story under it, the week's leaders below the wings. */

/* Leaders: the mini games board in miniature - medal cards for the top three, slim rows for 4-10. */

.vc-lb__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.vc-lb__card,
.vc-lb__rest a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(231, 190, 106, .18);
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    color: inherit;
    text-decoration: none;
}

.vc-lb__card {
    padding: 8px 14px 8px 8px;
}

.vc-lb__card--1 {
    border-color: rgba(231, 190, 106, .55);
    background: linear-gradient(90deg, rgba(231, 190, 106, .16), rgba(0, 0, 0, .25) 60%);
}

.vc-lb__card:hover,
.vc-lb__rest a:hover {
    border-color: rgba(240, 198, 116, .6);
}

.vc-lb__medal {
    flex: none;
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
}

.vc-lb__face {
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(231, 190, 106, .22);
    border-radius: 50%;
    background: #0b0a08;
    object-fit: cover;
}

.vc-lb__who {
    display: grid;
    flex: 1;
    min-width: 0;
}

.vc-lb__who b {
    overflow: hidden;
    color: #f0c674;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-lb__who small {
    overflow: hidden;
    color: rgba(238, 242, 255, .55);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-lb__score {
    flex: none;
    color: #ff9f4a;
    font-weight: 700;
    white-space: nowrap;
}

.vc-lb__score small {
    color: rgba(238, 242, 255, .55);
    font-weight: 400;
}

.vc-lb__rest {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-lb__rest a {
    padding: 5px 12px;
}

.vc-lb__pos {
    flex: none;
    width: 18px;
    color: rgba(238, 242, 255, .5);
    font-weight: 800;
    text-align: center;
}

.vc-lb__rest .vc-lb__face {
    width: 28px;
    height: 28px;
}

@media (max-width: 900px) {
    .vc-lb__top,
    .vc-lb__rest {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* C: the event timers beside the lead story (owner, 2026-10-25: "показываем эвент таймеры"). */
.vc-timers {
    display: grid;
    grid-template-rows: none;
    grid-auto-rows: 1fr;
    gap: 10px;
}

.vc-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(240, 198, 116, .28);
    border-radius: 10px;
    background: radial-gradient(ellipse at right, rgba(240, 198, 116, .08), transparent 70%), rgba(5, 9, 14, .85);
    color: inherit;
    text-decoration: none;
}

.vc-timer:hover {
    border-color: rgba(240, 198, 116, .7);
}

.vc-timer__what {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.vc-timer__what strong {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-timer__what small {
    color: rgba(238, 242, 255, .6);
    font-size: 12px;
    font-weight: 700;
}

.vc-timer__clock {
    display: flex;
    flex: none;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

.vc-timer__clock b {
    min-width: 36px;
    padding: 3px 4px;
    border: 1px solid rgba(240, 198, 116, .3);
    border-radius: 6px;
    background: rgba(0, 0, 0, .45);
    color: #f0c674;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.vc-timer__clock i {
    padding: 0 3px;
    color: rgba(240, 198, 116, .6);
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
}

/* Going on now: green, counting down to its end. */
.vc-timer.is-on {
    border-color: rgba(74, 222, 128, .45);
    background: radial-gradient(ellipse at right, rgba(74, 222, 128, .1), transparent 70%), rgba(5, 9, 14, .85);
}

.vc-timer.is-on small {
    color: #7ee08a;
}

.vc-timer.is-on .vc-timer__clock b {
    border-color: rgba(74, 222, 128, .35);
    color: #7ee08a;
}


/* ---------------------------------------------------------------- E: a narrower banner, timers beside it */

.home-slider__gallery:has(.ve-timers) {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    aspect-ratio: auto;
}

.home-slider__gallery:has(.ve-timers) .home-slider__viewport {
    aspect-ratio: 1672 / 941;
}

.home-slider__previews:has(.ve-timers) {
    grid-template-rows: none;
}

.home-slider__previews:has(.ve-timers) .home-slider__preview {
    display: none;
}

.ve-news {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(240, 198, 116, .28);
    border-radius: 10px;
    background: rgba(5, 9, 14, .82);
    color: inherit;
    text-decoration: none;
}

.ve-news:hover {
    border-color: rgba(240, 198, 116, .6);
}

.ve-news__pic {
    min-height: 150px;
    background: #0d1118 center / cover no-repeat;
}

.ve-news__text {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 14px 20px;
}

.ve-news__text small {
    color: #f0c674;
    font-weight: 700;
}

.ve-news__text strong {
    color: #fff;
    font-size: 20px;
}

.ve-news__text p {
    margin: 0;
    color: rgba(238, 242, 255, .7);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .ve-news {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .home-slider__gallery:has(.ve-timers),
    .home-slider__previews:has(.ve-timers) {
        grid-template-columns: minmax(0, 1fr);
    }
}

