.boss-grid {
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 18px;
}


.boss-card {
    min-height: 590px;
}


.boss-card-visual {
    min-height: 390px;
    padding: 36px;
    isolation: isolate;
    display: grid;
    place-items: center;
    background: radial-gradient( circle at center, rgba(64, 220, 255, 0.06), transparent 34% ), radial-gradient( circle at center, rgba(255, 101, 0, 0.08), transparent 58% ), #0c0c0e;
}


    .boss-card-visual::after {
        content: "";
        width: 220px;
        height: 220px;
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 0;
        border: 1px solid rgba(255, 101, 0, 0.15);
        transform: translate(-50%, -50%) rotate(45deg);
        pointer-events: none;
    }


.boss-art-frame {
    width: 280px;
    height: 280px;
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: visible;
}


.boss-image {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow( 0 20px 28px rgba(0, 0, 0, 0.48) ) drop-shadow( 0 0 20px rgba(255, 255, 255, 0.08) );
    transition: transform 0.45s cubic-bezier( 0.16, 1, 0.3, 1 ), filter 0.35s ease;
}


.boss-card:hover
.boss-image {
    transform: translateY(-7px) scale(1.035);
    filter: drop-shadow( 0 25px 35px rgba(0, 0, 0, 0.55) ) drop-shadow( 0 0 28px rgba(255, 101, 0, 0.13) );
}


.boss-image-reactor,
.boss-image-architect {
    max-width: 250px;
    max-height: 250px;
}


.boss-art-frame-parallax {
    position: relative;
    display: block;
}


    .boss-art-frame-parallax
    .boss-image-parallax {
        width: 350px;
        height: auto;
        max-width: none;
        max-height: none;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }


.boss-card:hover
.boss-art-frame-parallax
.boss-image-parallax {
    transform: translate(-50%, calc(-50% - 7px)) scale(1.035);
}


.boss-art-frame-bastion {
    display: block;
}


.bastion-sprite {
    width: 280px;
    height: 280px;
    position: relative;
    z-index: 3;
    transition: transform 0.45s cubic-bezier( 0.16, 1, 0.3, 1 );
}


.boss-card:hover
.bastion-sprite {
    transform: translateY(-7px) scale(1.035);
}


.bastion-sprite img {
    position: absolute;
    left: 50%;
    top: 50%;
    object-fit: contain;
    filter: drop-shadow( 0 18px 28px rgba(0, 0, 0, 0.5) );
}


.bastion-body {
    width: 168px;
    z-index: 5;
    transform: translate(-50%, -50%) rotate(45deg);
}


.bastion-plate {
    width: 170px;
    z-index: 4;
    transition: transform 0.5s cubic-bezier( 0.16, 1, 0.3, 1 );
}


.bastion-plate-top-left {
    transform: translate( calc(-50% - 60px), calc(-50% - 58px) ) rotate(45deg);
}


.bastion-plate-top-right {
    transform: translate( calc(-50% + 60px), calc(-50% - 58px) ) rotate(135deg);
}


.bastion-plate-bottom-left {
    transform: translate( calc(-50% - 60px), calc(-50% + 58px) ) rotate(-45deg);
}


.bastion-plate-bottom-right {
    transform: translate( calc(-50% + 60px), calc(-50% + 58px) ) rotate(-135deg);
}


.boss-card:hover
.bastion-plate-top-left {
    transform: translate( calc(-50% - 66px), calc(-50% - 64px) ) rotate(45deg);
}


.boss-card:hover
.bastion-plate-top-right {
    transform: translate( calc(-50% + 66px), calc(-50% - 64px) ) rotate(135deg);
}


.boss-card:hover
.bastion-plate-bottom-left {
    transform: translate( calc(-50% - 66px), calc(-50% + 64px) ) rotate(-45deg);
}


.boss-card:hover
.bastion-plate-bottom-right {
    transform: translate( calc(-50% + 66px), calc(-50% + 64px) ) rotate(-135deg);
}


.ships-list,
.ship-row {
    overflow: visible;
}


.ship-row {
    grid-template-columns: 60px minmax(130px, 1fr) 190px 40px;
    min-height: 108px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    cursor: pointer;
}


    .ship-row:focus-visible {
        outline: 1px solid var(--orange);
        outline-offset: -1px;
    }


.ship-sprite-wrap {
    width: 180px;
    height: 124px;
    justify-self: center;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}


    .ship-sprite-wrap::before {
        content: none;
    }


.ship-sprite {
    display: block;
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 110px;
    object-fit: contain;
    object-position: center;
    clip-path: none !important;
    filter: drop-shadow( 0 10px 18px rgba(0, 0, 0, 0.42) );
    transition: transform 0.35s cubic-bezier( 0.16, 1, 0.3, 1 ), filter 0.25s ease;
}


.ship-row:hover
.ship-sprite {
    transform: translateX(7px) scale(1.08);
    filter: brightness(0) drop-shadow( 0 10px 18px rgba(0, 0, 0, 0.18) );
}


.ship-image-anchor {
    max-width: 150px;
    max-height: 100px;
}


.ship-image-axis {
    max-width: 134px;
    max-height: 110px;
}


.ship-image-pulse {
    max-width: 142px;
    max-height: 104px;
}


.ship-image-razor {
    max-width: 112px;
    max-height: 110px;
}


.ship-image-vector {
    max-width: 126px;
    max-height: 102px;
}


.ship-image-wasp {
    max-width: 150px;
    max-height: 102px;
}


body.ship-detail-open {
    overflow: hidden;
}


.ship-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 16000;
    pointer-events: none;
    visibility: hidden;
}


    .ship-detail-overlay.is-open {
        pointer-events: auto;
        visibility: visible;
    }


.ship-detail-backdrop {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 0.35s ease;
}


.ship-detail-overlay.is-open
.ship-detail-backdrop {
    opacity: 1;
}


.ship-detail-panel {
    width: min( 720px, calc(100vw - 40px) );
    height: calc(100vh - 40px);
    position: absolute;
    right: 20px;
    top: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #101012;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    clip-path: polygon( 0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px) );
    transform: translateX( calc(100% + 40px) );
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier( 0.16, 1, 0.3, 1 );
}


.ship-detail-overlay.is-open
.ship-detail-panel {
    transform: translateX(0);
}


.ship-detail-panel::before {
    content: "";
    width: 520px;
    height: 520px;
    position: absolute;
    right: -300px;
    bottom: -230px;
    border: 1px solid rgba(255, 101, 0, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
}


.ship-detail-accent {
    height: 5px;
    display: grid;
    grid-template-columns: 1fr 0.48fr 1.3fr;
    gap: 7px;
}


    .ship-detail-accent span {
        background: var(--orange);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.55s cubic-bezier( 0.16, 1, 0.3, 1 );
    }


.ship-detail-overlay.is-open
.ship-detail-accent span {
    transform: scaleX(1);
}


    .ship-detail-overlay.is-open
    .ship-detail-accent span:nth-child(2) {
        transition-delay: 70ms;
    }


    .ship-detail-overlay.is-open
    .ship-detail-accent span:nth-child(3) {
        transition-delay: 140ms;
    }


.ship-detail-header {
    min-height: 78px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid var(--border);
}


.ship-detail-index {
    color: var(--orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.ship-detail-close {
    min-height: 38px;
    padding: 0 11px 0 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--muted);
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}


    .ship-detail-close strong {
        color: var(--orange);
        font-size: 21px;
        font-weight: 500;
        line-height: 1;
    }


    .ship-detail-close:hover {
        border-color: var(--orange);
        background: var(--orange);
        color: var(--black);
    }


        .ship-detail-close:hover
        strong {
            color: var(--black);
        }


.ship-detail-video-shell {
    aspect-ratio: 16 / 9;
    margin: 30px 30px 0;
    position: relative;
    overflow: hidden;
    background: #080809;
    border: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: polygon( 0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px) );
}


    .ship-detail-video-shell::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
        opacity: 0.14;
        background-image: repeating-linear-gradient( 90deg, transparent 0, transparent 69px, rgba(255, 255, 255, 0.06) 70px ), repeating-linear-gradient( 0deg, transparent 0, transparent 69px, rgba(255, 255, 255, 0.06) 70px );
    }


.ship-detail-video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
    object-fit: cover;
    background: #080809;
}


.ship-detail-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: radial-gradient( circle at center, rgba(255, 101, 0, 0.12), transparent 40% ), #09090b;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}


    .ship-detail-video-placeholder.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


    .ship-detail-video-placeholder span {
        color: var(--orange);
        font-family: "IBM Plex Mono", monospace;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
    }


    .ship-detail-video-placeholder strong {
        max-width: 100%;
        margin-top: 9px;
        color: var(--text);
        font-family: "IBM Plex Mono", monospace;
        font-size: clamp( 15px, 2vw, 21px );
        font-weight: 500;
        overflow-wrap: anywhere;
    }


    .ship-detail-video-placeholder small {
        margin-top: 8px;
        color: rgba(241, 238, 231, 0.36);
        font-family: "IBM Plex Mono", monospace;
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }


.ship-detail-copy {
    padding: 45px 40px 70px;
    position: relative;
    z-index: 5;
}


.ship-detail-type {
    display: block;
    margin-bottom: 13px;
    color: var(--orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.ship-detail-copy h2 {
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: clamp( 62px, 8vw, 110px );
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.075em;
}


.ship-detail-copy p {
    max-width: 520px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}


.ship-detail-number {
    position: absolute;
    right: 24px;
    bottom: -12px;
    color: rgba(255, 255, 255, 0.025);
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 190px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.09em;
    pointer-events: none;
}


.page-transition {
    position: fixed;
    inset: 0;
    z-index: 19000;
    pointer-events: none;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 7px;
    overflow: hidden;
}


    .page-transition span {
        background: var(--orange);
        transform: translateX(0);
        transition: transform 0.5s cubic-bezier( 0.76, 0, 0.24, 1 );
    }


        .page-transition span:nth-child(2) {
            transition-delay: 55ms;
        }


        .page-transition span:nth-child(3) {
            transition-delay: 110ms;
        }


    .page-transition.is-enter-complete
    span {
        transform: translateX(105%);
    }


    .page-transition.is-preparing-leave
    span {
        transform: translateX(-105%);
        transition: none;
    }


    .page-transition.is-leaving
    span {
        transform: translateX(0);
    }


        .page-transition.is-leaving
        span:nth-child(1) {
            transition-delay: 0ms;
        }


        .page-transition.is-leaving
        span:nth-child(2) {
            transition-delay: 55ms;
        }


        .page-transition.is-leaving
        span:nth-child(3) {
            transition-delay: 110ms;
        }


@media (pointer: fine) {

    .ship-row,
    .ship-detail-close,
    .ship-detail-backdrop {
        cursor: none;
    }
}


@media (max-width: 1100px) {

    .boss-grid {
        grid-template-columns: 1fr;
    }


    .boss-card {
        min-height: 520px;
    }


    .boss-card-visual {
        min-height: 350px;
    }
}


@media (max-width: 700px) {

    .ship-detail-panel {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        right: 10px;
        top: 10px;
    }


    .ship-detail-header {
        padding: 0 18px;
    }


    .ship-detail-video-shell {
        margin: 20px 18px 0;
    }


    .ship-detail-video-placeholder {
        padding: 22px;
    }


    .ship-detail-copy {
        padding: 35px 22px 70px;
    }


        .ship-detail-copy h2 {
            font-size: clamp( 58px, 20vw, 90px );
        }


    .ship-detail-number {
        font-size: 130px;
    }
}


@media (max-width: 650px) {

    .boss-card {
        min-height: 455px;
    }


    .boss-card-visual {
        min-height: 300px;
        padding: 24px;
    }


    .boss-art-frame {
        width: 220px;
        height: 220px;
    }


    .boss-image-reactor,
    .boss-image-architect {
        max-width: 200px;
        max-height: 200px;
    }


    .boss-art-frame-parallax
    .boss-image-parallax {
        width: 280px;
    }


    .bastion-sprite {
        width: 220px;
        height: 220px;
    }


    .bastion-body {
        width: 132px;
    }


    .bastion-plate {
        width: 134px;
    }


    .bastion-plate-top-left {
        transform: translate( calc(-50% - 47px), calc(-50% - 46px) ) rotate(45deg);
    }


    .bastion-plate-top-right {
        transform: translate( calc(-50% + 47px), calc(-50% - 46px) ) rotate(135deg);
    }


    .bastion-plate-bottom-left {
        transform: translate( calc(-50% - 47px), calc(-50% + 46px) ) rotate(-45deg);
    }


    .bastion-plate-bottom-right {
        transform: translate( calc(-50% + 47px), calc(-50% + 46px) ) rotate(-135deg);
    }


    .ship-row {
        grid-template-columns: 38px 1fr 100px 22px;
        gap: 8px;
        min-height: 100px;
    }


    .ship-sprite-wrap {
        width: 100px;
        height: 96px;
    }


    .ship-sprite {
        max-width: 92px;
        max-height: 84px;
    }


    .ship-image-razor {
        max-width: 78px;
        max-height: 84px;
    }


    .ship-image-wasp {
        max-width: 94px;
        max-height: 82px;
    }
}


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

    .page-transition span {
        transition-duration: 0.01ms;
        transition-delay: 0ms !important;
    }


    .ship-detail-panel,
    .ship-detail-backdrop,
    .ship-detail-accent span {
        transition-duration: 0.01ms;
    }
}
