.pantheon-timeline {
    --pantheon-line: var(--home-accent, #818cf8);
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
    width: 100%;
}

.pantheon-timeline__item:has(+ .pantheon-timeline__item--violet) { --pantheon-next: #c084fc; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--red) { --pantheon-next: #e42a29; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--green) { --pantheon-next: #4ade80; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--indigo) { --pantheon-next: #818cf8; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--pink) { --pantheon-next: #ff2f92; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--orange) { --pantheon-next: rgb(252, 148, 63)   ; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--milestone) { --pantheon-next: #e8c547; }
.pantheon-timeline__item:has(+ .pantheon-timeline__item--blue) { --pantheon-next: #5ec8f8; }

.pantheon-timeline__item {
    position: relative;
    box-sizing: border-box;
    padding-left: 3.25rem;
    padding-bottom: 1.75rem;
}

.pantheon-timeline__item:last-child {
    padding-bottom: 0;
}

.pantheon-timeline__item::after {
    content: "";
    position: absolute;
    top: 1.85rem;
    bottom: -1.85rem;
    left: 1.2rem;
    width: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pantheon-line), var(--pantheon-next, var(--pantheon-line)));
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

.pantheon-timeline__item:last-child::after {
    content: none;
}

.pantheon-timeline__dot {
    position: absolute;
    top: 1.35rem;
    left: 0.7rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--pantheon-line);
    box-shadow:
        0 0 0 4px var(--bkn-surface-soft),
        0 0 0 6px color-mix(in srgb, var(--pantheon-line) 45%, transparent);
    z-index: 1;
}

.pantheon-timeline__year {
    font-family: 'DynaPuff', Arial, sans-serif;
    font-size: 1.35rem;
    color: var(--pantheon-line);
}

.pantheon-timeline__item .home-card {
    --home-accent: var(--pantheon-line);
}

.pantheon-timeline__item .home-card .home-announce-title {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--pantheon-line);
    color: var(--pantheon-line);
}

.pantheon-timeline__item--violet { --pantheon-line: #c084fc; --home-accent: #c084fc; --home-accent-deep: #9333ea; --home-accent-14: rgba(192, 132, 252, 0.25); }
.pantheon-timeline__item--red { --pantheon-line: #e42a29; --home-accent: #e42a29; --home-accent-deep: #b91c1c; --home-accent-14: rgba(228, 42, 41, 0.25); }
.pantheon-timeline__item--green { --pantheon-line: #4ade80; --home-accent: #4ade80; --home-accent-deep: #16a34a; --home-accent-14: rgba(74, 222, 128, 0.25); }
.pantheon-timeline__item--indigo { --pantheon-line: #818cf8; --home-accent: #818cf8; --home-accent-deep: #6366f1; --home-accent-14: rgba(129, 140, 248, 0.25); }
.pantheon-timeline__item--pink { --pantheon-line: #ff2f92; --home-accent: #ff2f92; --home-accent-deep: #ff007a; --home-accent-14: rgba(255, 47, 146, 0.4); }
.pantheon-timeline__item--orange { --pantheon-line: rgb(222, 106, 8)    ; --home-accent: rgb(222, 106, 8)   ; --home-accent-deep: rgb(163, 77, 6); --home-accent-14: rgba(222, 106, 8, 0.25); }
.pantheon-timeline__item--blue { --pantheon-line: #5ec8f8; --home-accent: #5ec8f8; --home-accent-deep: #2ba4d4; --home-accent-14: rgba(94, 200, 248, 0.25); }

.pantheon-timeline__item--milestone {
    --pantheon-line: #e8c547;
    --home-accent: #e8c547;
    --home-accent-deep: #c9a227;
    --home-accent-14: rgba(232, 197, 71, 0.35);
    --home-accent-35: rgba(232, 197, 71, 0.45);
}

.pantheon-timeline__item--milestone .pantheon-timeline__card.home-card {
    box-shadow:
        0 0 0 1px var(--bkn-inset-highlight) inset,
        0 20px 50px var(--bkn-shadow-strong),
        0 0 18px rgba(232, 197, 71, 0.35),
        0 0 36px rgba(232, 197, 71, 0.18);
    animation: pantheon-gold-glow 2.6s ease-in-out infinite;
}

.pantheon-timeline__item--milestone .pantheon-timeline__card.home-card::before {
    background: linear-gradient(135deg, #f0d060, #e8c547, #c9a227);
    opacity: 0.95;
}

.pantheon-timeline__item--milestone .pantheon-timeline__year,
.pantheon-timeline__item--milestone .home-card .home-announce-title {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--pantheon-line);
    color: var(--pantheon-line);
    animation: none;
}

@keyframes pantheon-gold-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px var(--bkn-inset-highlight) inset,
            0 20px 50px var(--bkn-shadow-strong),
            0 0 14px rgba(232, 197, 71, 0.28),
            0 0 28px rgba(232, 197, 71, 0.12);
    }
    50% {
        box-shadow:
            0 0 0 1px var(--bkn-inset-highlight) inset,
            0 20px 50px var(--bkn-shadow-strong),
            0 0 24px rgba(232, 197, 71, 0.5),
            0 0 48px rgba(232, 197, 71, 0.28);
    }
}

@keyframes pantheon-gold-text {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pantheon-timeline__item--milestone .pantheon-timeline__card.home-card {
        animation: none;
    }
}

.pantheon-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pantheon-chip {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    color: var(--bkn-text);
    background: var(--bkn-surface-card);
    border: 1px solid var(--home-accent-14);
}

.pantheon-roles {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pantheon-theme {
    font-family: 'DynaPuff', Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--pantheon-line);
    -webkit-text-fill-color: var(--pantheon-line);
    margin: 0;
}

.pantheon-chibi {
    display: block;
    width: auto;
    max-height: 9.5rem;
    margin: 1.35rem auto 0;
    pointer-events: none;
}

.pantheon-poster {
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px var(--bkn-shadow-strong);
}

.pantheon-role__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bkn-text-muted);
    margin-bottom: 0.3rem;
}

@media (min-width: 768px) {
    .pantheon-timeline__item {
        width: 50%;
        padding-left: 0;
        padding-right: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .pantheon-timeline__item::after {
        top: 2rem;
        bottom: -2rem;
    }

    .pantheon-timeline__item--left::after {
        left: auto;
        right: 0;
        transform: translateX(50%);
    }

    .pantheon-timeline__item--right::after {
        left: 0;
        right: auto;
        transform: translateX(-50%);
    }

    .pantheon-timeline__item--right {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 2.5rem;
    }

    .pantheon-timeline__dot {
        left: auto;
        right: -0.5rem;
        top: 1.5rem;
    }

    .pantheon-timeline__item--right .pantheon-timeline__dot {
        right: auto;
        left: -0.5rem;
    }

    .pantheon-timeline__item--left .pantheon-timeline__card {
        text-align: right;
    }

    .pantheon-timeline__item--right .pantheon-timeline__card {
        text-align: left;
    }

    .pantheon-timeline__item--left .pantheon-chips {
        justify-content: flex-end;
    }

    .pantheon-timeline__item--has-chibi {
        min-height: 22rem;
    }

    .pantheon-timeline__item--has-chibi .pantheon-timeline__card {
        overflow: visible;
        min-height: 20rem;
    }

    .pantheon-chibi {
        position: absolute;
        top: 50%;
        max-height: 20rem;
        margin: 0;
        z-index: 2;
        transform: translate(-50%, -50%);
    }

    .pantheon-timeline__item--left .pantheon-chibi {
        left: calc(150% + 4.25rem);
        right: auto;
    }

    .pantheon-timeline__item--right .pantheon-chibi {
        left: calc(-50% - 4.25rem);
        right: auto;
    }

    .pantheon-timeline__item--has-chibi:not(:has(.home-announce-title, .pantheon-chips, .pantheon-roles, .home-announce-body)) .pantheon-timeline__card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .pantheon-timeline__item--has-chibi:not(:has(.home-announce-title, .pantheon-chips, .pantheon-roles, .home-announce-body)) .pantheon-chibi {
        width: auto;
        max-width: none;
        height: auto;
        max-height: 20rem;
    }
}
