.tp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 7.25rem 0 2.25rem;
    background:
        linear-gradient(180deg, rgba(125, 211, 252, 0.05), rgba(125, 211, 252, 0) 70%),
        linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-primary));
}

.tp-hero.has-art {
    background: var(--ds-bg-deep, #050508);
}

.tp-hero.has-art::before {
    content: '';
    position: absolute;
    inset: -32px;
    z-index: 0;
    background-image: var(--tp-hero-art, none);
    background-size: cover;
    background-position: center;
    filter: blur(6px) saturate(0.95);
    transform: scale(1.06);
    opacity: 0.9;
}

.tp-hero.has-art::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 5, 8, 0.60) 0%, rgba(5, 5, 8, 0.30) 48%, rgba(5, 5, 8, 0.72) 100%),
        linear-gradient(180deg, rgba(5, 5, 8, 0.18) 0%, rgba(5, 5, 8, 0.92) 100%);
}

.tp-hero>.container {
    position: relative;
    z-index: 2;
}

.tp-breadcrumb .breadcrumb {
    margin-bottom: 1rem;
}

.tp-hero-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.tp-hero-logo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 104px;
    height: 104px;
    padding: 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 15, 0.55);
    color: var(--color-text-secondary);
    font-size: 2.2rem;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.tp-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.tp-hero-body {
    flex: 1 1 auto;
    min-width: 0;
}

.tp-hero-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    overflow-wrap: anywhere;
}

.tp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.6rem;
}

.tp-hero-meta .tag-version {
    font-size: 0.78rem;
}

.tp-game-version {
    color: var(--color-text-secondary);
    cursor: help;
}

.tp-tracker-badge {
    cursor: help;
}

.tp-hero-meta .tp-fact {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.tp-hero-meta .tp-fact:first-of-type {
    margin-left: 0.35rem;
}

.tp-hero-meta .tp-fact+.tp-fact::before {
    content: "\00b7";
    margin-right: 0.55rem;
    color: var(--color-text-muted);
}

.tp-hero-date {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
    cursor: help;
}

.tp-hero-external {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.tp-hero-external:hover,
.tp-hero-external:focus-visible {
    color: var(--color-accent-blue);
    outline: none;
}

.tp-hero-external:focus-visible {
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
}

.tp-overview {
    max-width: 68ch;
    margin: 0.7rem 0 0;
    color: var(--color-text-secondary);
    font-size: 0.94rem;
    line-height: 1.55;
}

.tp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.tp-hero-actions .btn {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.tp-upcoming-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.6rem 0.9rem;
    border: 1px dashed rgba(125, 211, 252, 0.35);
    border-radius: var(--radius-md);
    background: rgba(10, 10, 15, 0.45);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.tp-upcoming-note i {
    color: var(--color-info);
}

.tp-hero-actions .btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.tp-hero-actions .btn-outline-light {
    background: rgba(10, 10, 15, 0.45);
    border-color: var(--border-strong);
}

.tp-hero-actions .btn-outline-light:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.tp-section {
    padding: 2.75rem 0;
    background: var(--color-bg-primary);
}

.tp-section+.tp-section {
    border-top: 1px solid var(--border-subtle);
}

.tp-releases {
    padding-bottom: 4.5rem;
}

.tp-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.tp-section-heading {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    min-width: 0;
}

.tp-section-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tp-section-count {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.tp-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.tp-more-link:hover,
.tp-more-link:focus-visible {
    color: var(--color-accent-blue);
    outline: none;
}

.tp-more-link:focus-visible {
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
}

.tp-section[id],
.tp-group[id] {
    scroll-margin-top: 5.75rem;
}

.tp-feature-search {
    width: min(100%, 300px);
}

.tp-feature-legend {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: -0.5rem 0 1.1rem;
    color: var(--color-text-secondary);
    font-size: 0.84rem;
}

.tp-feature-legend>i {
    color: var(--color-patreon);
    font-size: 0.78rem;
}

.tp-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.tp-groups-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

[data-feature-grid]:not(.js-ready) [data-feature-item][data-feature-extra="true"] {
    display: none;
}

.tp-groups>.empty-state {
    grid-column: 1 / -1;
}

.tp-group {
    display: block;
    width: 100%;
    padding: 1rem 1.15rem 1.05rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
}

.tp-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.45rem;
    margin-bottom: 0.35rem;
}

.tp-group-title {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.tp-group-title i {
    flex: 0 0 auto;
    color: var(--color-accent-blue);
    font-size: 0.78rem;
}

.tp-group-count {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.tp-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.36rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.tp-feature:hover {
    background: var(--surface-raised);
    color: var(--color-text-primary);
}

.tp-feature-marker {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.55);
}

.tp-feature-marker.is-patreon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--color-patreon);
    font-size: 0.78rem;
    cursor: help;
}

.tp-feature .feature-item-scope {
    color: var(--color-text-muted);
}

.tp-feature:hover .feature-item-scope {
    color: var(--color-text-secondary);
}

.tp-feature .feature-label-marquee {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.tp-feature .feature-label-marquee-inner {
    display: inline-block;
    max-width: none;
    white-space: nowrap;
    will-change: transform;
}

.tp-feature.is-marquee:hover .feature-label-marquee-inner,
.tp-feature.is-marquee:focus-within .feature-label-marquee-inner {
    animation: tp-feature-marquee var(--feature-marquee-duration, 7s) ease-in-out infinite;
}

@keyframes tp-feature-marquee {

    0%,
    12% {
        transform: translateX(0);
    }

    58%,
    82% {
        transform: translateX(calc(var(--feature-marquee-distance, 0px) * -1));
    }

    100% {
        transform: translateX(0);
    }
}

.tp-feature-info {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border-radius: 999px;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    cursor: help;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.tp-feature-info:hover,
.tp-feature-info:focus-visible {
    color: var(--color-accent-blue);
    background: var(--surface-interactive);
    outline: none;
}

.tp-feature-info:focus-visible {
    box-shadow: var(--focus-ring);
}

.tp-group-more {
    margin-top: 0.2rem;
}

.tp-group-more .btn {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.tp-group-more .btn:hover {
    color: var(--color-text-primary);
}

.tp-group-more .btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.tp-group-more .btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.tp-group-more .btn i {
    font-size: 0.66rem;
    transition: transform var(--transition-fast);
}

.tp-req-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2.25rem;
    align-items: start;
}

.tp-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: tp-step;
    display: grid;
    gap: 1rem;
}

.tp-step {
    position: relative;
    padding-left: 2.5rem;
    counter-increment: tp-step;
}

.tp-step::before {
    content: counter(tp-step);
    position: absolute;
    top: 0.05rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    line-height: 1;
}

.tp-step-title {
    display: block;
    color: var(--color-text-primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.tp-step-text {
    display: block;
    margin-top: 0.15rem;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.tp-step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    color: var(--color-accent-blue);
    font-size: 0.84rem;
    font-weight: 600;
}

.tp-step-link:hover {
    color: var(--color-text-primary);
}

.tp-step-link:focus-visible {
    outline: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
}

.tp-req-notice {
    margin-bottom: 0.75rem;
}

.tp-req-notice:last-child {
    margin-bottom: 0;
}

.tp-req-notice p {
    margin: 0.2rem 0 0;
}

.tp-req-notice a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    color: var(--color-accent-blue);
    font-weight: 600;
}

.tp-req-notice a:focus-visible {
    outline: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--focus-ring);
}

.tp-patches-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 78ch;
    margin: -0.35rem 0 1.35rem;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.tp-patches-note>i {
    margin-top: 0.22rem;
    color: var(--color-accent-blue);
    font-size: 0.8rem;
}

.tp-release-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 860px;
}

.tp-release {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding-bottom: 1.35rem;
}

.tp-release:last-child {
    padding-bottom: 0;
}

.tp-release::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    bottom: -0.1rem;
    left: 5px;
    width: 2px;
    background: var(--border-subtle);
}

.tp-release:last-child::before {
    display: none;
}

.tp-release-marker {
    position: relative;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 0.35rem;
    border: 2px solid var(--color-accent-blue);
    border-radius: 999px;
    background: var(--color-bg-primary);
}

.tp-release.is-warning .tp-release-marker {
    border-color: var(--color-warning);
}

.tp-release.is-success .tp-release-marker {
    border-color: var(--color-success);
}

.tp-release.is-neutral .tp-release-marker {
    border-color: var(--color-text-muted);
}

.tp-release.is-error .tp-release-marker {
    border-color: var(--color-danger);
}

.tp-release.is-info .tp-release-marker {
    border-color: var(--color-accent-blue);
}

.tp-release-body {
    min-width: 0;
    flex: 1 1 auto;
}

.tp-release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
}

.tp-release-version {
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
}

.tp-release-date {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.tp-release-meta {
    padding: 0.14rem 0.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: help;
}

.tp-release-file {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.14rem 0.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: help;
    overflow-wrap: anywhere;
}

.tp-release-file i {
    font-size: 0.66rem;
}

.tp-release-file.is-current {
    border-color: rgba(34, 197, 94, 0.26);
    color: var(--color-success);
}

.tp-release-summary {
    margin: 0.35rem 0 0;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.tp-release-items {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.tp-release-items li {
    margin-bottom: 0.15rem;
    overflow-wrap: anywhere;
}

.tp-release-items li::marker {
    color: var(--color-text-muted);
}

.tp-release-older {
    margin-top: 0.5rem;
}

.tp-release-older summary i {
    font-size: 0.64rem;
    transition: transform var(--transition-fast);
}

.tp-release-older[open] summary i {
    transform: rotate(180deg);
}

.tp-release-older>.tp-release-list {
    margin-top: 1.1rem;
}

@media (max-width: 991.98px) {
    .tp-groups {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .tp-groups-col {
        display: contents;
    }

    .tp-req-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .tp-hero {
        padding-top: 6.5rem;
    }

    .tp-breadcrumb .breadcrumb {
        margin-bottom: 0.75rem;
    }

    .tp-hero-layout {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.9rem 1rem;
        align-items: center;
    }

    .tp-hero-logo {
        grid-column: 1;
        grid-row: 1;
        width: 72px;
        height: 72px;
        padding: 0.4rem;
        font-size: 1.6rem;
    }

    .tp-hero-body {
        display: contents;
    }

    .tp-hero-title {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        font-size: 1.6rem;
    }

    .tp-hero-meta,
    .tp-overview,
    .tp-hero-actions {
        grid-column: 1 / -1;
    }

    .tp-overview {
        margin-top: 0;
    }

    .tp-hero-actions {
        margin-top: 0.15rem;
    }

    .tp-hero-actions .btn {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
    }

    .tp-section-head {
        align-items: flex-start;
    }

    .tp-feature-search {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tp-feature.is-marquee:hover .feature-label-marquee-inner,
    .tp-feature.is-marquee:focus-within .feature-label-marquee-inner {
        animation: none;
    }

    .tp-group-more .btn i,
    .tp-release-older summary i,
    .tp-more-link i {
        transition: none;
    }
}