/* ЛБЗ Левши — страница сезонов: таймер и 12 карточек-месяцев с SVG clip-path эффектом (по мотивам codepen noeldelgado/PZJGLx). */
/* длинный заголовок страницы сезонов: в одну строку на десктопе, ровный перенос на узких */
.lps-title--long { font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.05; text-wrap: balance; }

/* таймер до старта первого сезона */
.lps-timer { position: relative; z-index: 1; margin: 0 auto 2.75rem; text-align: center; }
.lps-timer__row { display: grid; grid-template-columns: repeat(4, minmax(0, 132px)); justify-content: center; gap: 14px; }
.lps-timer__cell {
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 6px 14px;
    overflow: hidden;
    background: #161618;
    box-shadow: inset 0 3px 0 #f5b62a, inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.lps-timer__num { display: flex; font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.lps-timer__num b { display: block; min-width: .56em; font-weight: inherit; text-align: center; }
.lps-timer__num b.is-new { animation: lps-digit .35s cubic-bezier(.2, .8, .2, 1); }
.lps-timer__num[data-unit="s"] { color: #f5b62a; }
.lps-timer__label { margin-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
@keyframes lps-digit { from { transform: translateY(-45%); opacity: 0; } }
@media (max-width: 575.98px) {
    .lps-timer__row { gap: 8px; }
    .lps-timer__label { font-size: 10px; letter-spacing: 0; }
}

.lps-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    max-width: 1280px;
    margin: 0 auto;
}

.lps-item {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: color-mix(in srgb, var(--bs-tertiary-bg) 35%, transparent);
    box-shadow: inset 0 0 0 1px var(--bs-border-color-translucent), 0 10px 30px -15px rgba(0, 0, 0, .35);
    color: inherit;
    text-decoration: none;
    transform: translateZ(0);
}
a.lps-item { cursor: pointer; }
.lps-item:hover { color: inherit; }
.lps-item.is-empty { cursor: default; }

.lps-item svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* круг-маска: скрыт, на наведении раскрывается и ходит за курсором */
.lps-item circle {
    transform-origin: 50% 50%;
    transform: scale(0);
    transition: transform 200ms var(--ease);
}
.lps-item image {
    transform-origin: 50% 50%;
    transform: scale(1.1);
    transition: transform 200ms var(--ease);
}
.lps-item:hover circle, .lps-item:hover image { transform: scale(1); }

.lps-item__shade { fill: rgba(0, 0, 0, .25); }

.lps-item { container-type: inline-size; }
/* большой замок фоном по центру, за названием месяца */
.lps-item__mark {
    position: absolute; left: 50%; top: 50%; z-index: 1;
    transform: translate(-50%, -50%);
    font-size: 30cqw; line-height: 1;
    color: #fff; opacity: .1;
    pointer-events: none;
}

/* неактивные: превью под курсором чёрно-белое, активная — цветная */
.lps-item:not(.is-active) .lps-item__media { filter: grayscale(1); }

/* активная: превью видно всегда, мягкое свечение */
@property --lps-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.lps-item.is-active { box-shadow: 0 20px 50px -15px rgba(255, 106, 136, .55); }
/* бегущая рамка 2px: тусклое золото по кругу + яркий отрезок, который обходит периметр */
.lps-item.is-active::after {
    content: ''; position: absolute; inset: 0; z-index: 3;
    padding: 2px; border-radius: inherit;
    background: conic-gradient(from var(--lps-angle),
        rgba(255, 179, 71, .35) 0deg,
        rgba(255, 179, 71, .35) 250deg,
        #ffb347 300deg, #fff6d6 330deg, #ff6a88 350deg,
        rgba(255, 179, 71, .35) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: lps-border 4s linear infinite;
    pointer-events: none;
}
@keyframes lps-border { to { --lps-angle: 360deg; } }
.lps-item.is-active image { transform: scale(1); transition: transform .8s var(--ease); }
/* при наведении: лёгкий зум картинки и чуть светлее затемнение */
.lps-item.is-active:hover image { transform: scale(1.06); }
.lps-item__shade { transition: opacity .6s var(--ease); }
.lps-item.is-active:hover .lps-item__shade { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
    .lps-item, .lps-item * { transition: none !important; }
    .lps-item.is-active::after { animation: none; }
    .lps-timer__num b.is-new { animation: none; }
}

/* активная: месяц слева вверху, центр — под инфо сезона */
.lps-item__top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2;
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    padding: 10px 16px 22px;
    font-family: var(--bs-body-font-family);
    font-size: 17px;
    text-transform: uppercase;
    color: #fff;
    /* лёгкое затемнение на высоту строки, дальше растворяется */
    background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 55%, transparent);
    pointer-events: none;
    transition: color .2s, background-color .2s;
}
/* закрытые: месяц спокойный, затемнение и белый — только когда под курсором открылось превью */
.lps-item:not(.is-active) .lps-item__top { color: var(--bs-secondary-color); background: none; }
.lps-item:not(.is-active):hover .lps-item__top { color: #fff; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 55%, transparent); }
.lps-item__body {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem 1rem 1rem;
    color: #fff; text-align: center;
}
/* сезон в центре активной карточки: счётчик игрока + сколько осталось */
.lps-item__big { font-size: 20cqw; font-weight: 900; line-height: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.lps-item__big i { font-style: normal; opacity: .5; }
.lps-item__note { margin-top: .5rem; font-size: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.lps-item__date { font-size: 13px; text-transform: none; }
