/* ═══════════════════════════════════════════════════════════
   PIG FARM BANNER — современный игровой стиль
   Glassmorphism + неон + анимированный градиент-бордер +
   киберпанк-углы + частицы
   ═══════════════════════════════════════════════════════════ */

.pig-block {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    padding: 40px 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 340px;
    text-decoration: none;
    isolation: isolate;

    /* Многослойный фон: точки + свечения + базовый градиент */
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227, 164, 110, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(177, 117, 67, 0.10) 0%, transparent 70%),
        linear-gradient(1deg, #222222 30%, #2d2d2d 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03);

    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анимированная градиентная обводка (conic-gradient вращается) */
.pig-block::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(227, 164, 110, 0.6) 25%,
        transparent 50%,
        rgba(177, 117, 67, 0.4) 75%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: pig-border-rotate 8s linear infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes pig-border-rotate {
    to { rotate: 360deg; }
}

.pig-block:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(227, 164, 110, 0.2);
}

/* Дополнительный слой свечения */
.pig-block__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 25% 50%, rgba(227, 164, 110, 0.10) 0%, transparent 28%),
        radial-gradient(circle at 75% 50%, rgba(218, 146, 86, 0.10) 0%, transparent 28%);
}

/* Киберпанк-углы (4 угла как уголки фрейма) */
.pig-block__backdrop::before,
.pig-block__backdrop::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(227, 164, 110, 0.4);
    z-index: 5;
    pointer-events: none;
}
.pig-block__backdrop::before {
    top: 14px; left: 14px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}
.pig-block__backdrop::after {
    bottom: 14px; right: 14px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}

/* Сканлайн (тонкая полоса проезжает сверху вниз) */
.pig-block > .pig-block__content::before {
    content: '';
    position: absolute;
    left: -50%;
    right: -50%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(227, 164, 110, 0.5), transparent);
    box-shadow: 0 0 16px rgba(227, 164, 110, 0.7);
    animation: pig-scanline 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes pig-scanline {
    0%   { top: 5%;   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 95%;  opacity: 0; }
}

/* Персонажи по бокам */
.pig-block__character {
    position: absolute;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s ease;
}
.pig-block:hover .pig-block__character--left  {
    transform: translateX(-12%) scale(1.04);
    filter: drop-shadow(0 20px 36px rgba(227, 164, 110, 0.3)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}
.pig-block:hover .pig-block__character--right {
    transform: translateX(12%) scale(1.04);
    filter: drop-shadow(0 20px 36px rgba(227, 164, 110, 0.3)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.pig-block__character--left  { left: 0;  width: min(42vw, 580px); transform: translateX(-6%); }
.pig-block__character--right { right: 0; width: min(42vw, 580px); transform: translateX(6%);  }

/* Центральный контент */
.pig-block__content {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 14px;
    max-width: 720px;
    text-align: center;
    padding: 0 16px;
    justify-items: center;
}

/* Eyebrow «STATUS:LIVE СЕЗОННАЯ СТАТИСТИКА» */
.pig-block__eyebrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pig-block__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e3a46e;
    box-shadow: 0 0 12px #e3a46e, 0 0 4px #fff;
    animation: pig-pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pig-pulse-dot {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%      { transform: scale(1.25); opacity: 0.7; }
}

/* Заголовок «СВИНОФЕРМА» */
.pig-block h3 {
    margin: 0;
    font-size: 56px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-family: 'Unbounded', 'Bebas Neue', Arial, sans-serif;
    font-weight: 900;
    background: linear-gradient(180deg, #ffd9b8 0%, #e3a46e 45%, #b17543 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(227, 164, 110, 0.4);
    filter: drop-shadow(0 4px 12px rgba(227, 164, 110, 0.25));
    position: relative;
}

/* Тонкая декоративная линия под заголовком */
.pig-block h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, #e3a46e, transparent);
    box-shadow: 0 0 12px rgba(227, 164, 110, 0.6);
}

/* «Сезон 1» — пилюля */
.pig-block__season {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 100px;
    background: rgba(227, 164, 110, 0.12);
    border: 1px solid rgba(227, 164, 110, 0.3);
    color: #e3a46e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(227, 164, 110, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pig-block__season::before {
    content: '◆';
    color: #e3a46e;
    font-size: 8px;
}

/* Описание */
.pig-block__status {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.6;
    max-width: 460px;
    font-weight: 400;
}

/* Таймер */
.pig-block__timer_wrap {
    display: grid;
    gap: 14px;
    justify-items: center;
    margin-top: 6px;
}

.pig-block__timer_label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pig-block__timer_label::before,
.pig-block__timer_label::after {
    content: '';
    width: 22px;
    height: 1px;
    background: rgba(227, 164, 110, 0.4);
}

.pig-block__timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pig-block__time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 84px;
}

/* Карточки цифр — glassmorphism с неоновой обводкой */
.pig-block__digit {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: 'Unbounded', Arial, sans-serif;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(227, 164, 110, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.35);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    overflow: hidden;
}

/* Внутреннее свечение карточки */
.pig-block__digit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(227, 164, 110, 0.25), transparent 60%);
    pointer-events: none;
}

/* Верхняя тонкая яркая линия */
.pig-block__digit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 164, 110, 0.8), transparent);
    box-shadow: 0 0 8px rgba(227, 164, 110, 0.6);
}

.pig-block:hover .pig-block__digit {
    transform: translateY(-3px);
    border-color: rgba(227, 164, 110, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 12px 28px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(227, 164, 110, 0.25);
}

.pig-block__split-line { display: none; }

.pig-block__time span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
}

/* Стикеры */
.pig-sticker {
    position: absolute;
    width: 56px;
    height: 56px;
    opacity: 0.7;
    animation: pigFloat 3s infinite ease-in-out;
    z-index: 1;
    --rotate: -15deg;
}
.pig-block:hover .pig-sticker { opacity: 1; }
.pig-sticker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
    border-radius: 10px;
    transform: rotate(var(--rotate));
}
@keyframes pigFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ───── Адаптив ───── */
@media (max-width: 1024px) {
    .pig-block h3 { font-size: 44px; letter-spacing: 5px; }
    .pig-block__digit { width: 76px; height: 76px; font-size: 34px; }
    .pig-block__time { min-width: 76px; }
}

@media (max-width: 860px) {
    .pig-block { min-height: 360px; padding: 30px 20px; }
    .pig-block__character--left  { width: min(22vw, 220px); transform: translateX(-12%); }
    .pig-block__character--right { width: min(22vw, 220px); transform: translateX(12%);  }
    .pig-block h3 { font-size: 34px; letter-spacing: 3px; }
    .pig-block__season { font-size: 12px; padding: 4px 14px; }
    .pig-block__digit { width: 68px; height: 68px; font-size: 28px; border-radius: 14px; }
    .pig-block__time { min-width: 68px; }
}

@media (max-width: 580px) {
    .pig-block { min-height: 360px; padding: 24px 16px; border-radius: 16px; }
    .pig-block__character { display: none; }
    .pig-block__content { max-width: 100%; }
    .pig-block__backdrop::before,
    .pig-block__backdrop::after { width: 24px; height: 24px; }
    .pig-block h3 { font-size: 26px; letter-spacing: 2px; }
    .pig-block__eyebrow { font-size: 10px; letter-spacing: 4px; padding: 5px 12px; }
    .pig-block__timer { gap: 8px; }
    .pig-block__digit { width: 60px; height: 60px; font-size: 22px; border-radius: 12px; }
    .pig-block__time { min-width: 60px; }
    .pig-block__time span { font-size: 9px; letter-spacing: 2px; }
}
