:root {
    --k-bg: #151219;
    --k-bg-soft: rgba(21,18,25,.88);
    --k-bg-deep: rgba(8,7,10,.62);
    --k-gold: #d8b978;
    --k-gold-light: #f1dfb1;
    --k-violet: #a996bd;
    --k-text: #f5f1e8;
    --k-muted: #b8adb9;
}

.k-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

    .k-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,rgba(10,8,13,.25),rgba(10,8,13,.7)),rgba(0,0,0,.18);
        pointer-events: none;
        z-index: -1;
    }

.k-content {
    position: relative;
    min-height: 100vh
}

.modal-backdrop {
    z-index: 1040 !important;
}

.ga-modal {
    z-index: 1060 !important;
}

    .ga-modal .modal-dialog,
    .ga-modal .modal-content {
        pointer-events: auto !important;
    }

.k-panel {
    background: var(--k-bg-soft) !important;
    color: var(--k-text) !important;
    border: 1px solid rgba(216,185,120,.32) !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.42) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.k-panel-soft {
    background: rgba(0,0,0,.28) !important;
    color: var(--k-text) !important;
    border: 1px solid rgba(216,185,120,.18) !important;
    border-radius: .9rem !important;
}

.k-title {
    color: var(--k-gold-light) !important
}

.k-muted {
    color: var(--k-muted) !important
}

.k-accent {
    color: var(--k-gold) !important
}

.k-divider {
    border-color: rgba(216,185,120,.22) !important
}

.k-input {
    background: rgba(0,0,0,.18) !important;
    color: var(--k-text) !important;
    border-color: rgba(216,185,120,.2) !important;
}

    .k-input::placeholder {
        color: rgba(245,241,232,.55) !important
    }

.k-btn {
    background: linear-gradient(135deg,#d8b978,#b99454) !important;
    color: #171219 !important;
    border: 0 !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(216,185,120,.14);
}

    .k-btn:hover {
        filter: brightness(1.08);
        color: #0d0b0f !important
    }

.k-list {
    background: rgba(0,0,0,.2) !important;
    color: var(--k-text) !important;
    border-color: rgba(216,185,120,.14) !important;
}

    .k-list:hover {
        background: rgba(216,185,120,.08) !important
    }

@media(max-width:768px) {
    .k-page {
        background-attachment: scroll
    }
}

.ga-search-card {
    width: min(100%, 680px);
    margin-left: auto;
    margin-right: auto;
    padding: .65rem;
    background: var(--k-bg-soft);
    border: 1px solid rgba(216,185,120,.32) !important;
    border-radius: 1.15rem;
    box-shadow: 0 18px 50px rgba(0,0,0,.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media(max-width:768px) {
    .ga-search-card {
        width: calc(100% - 1rem);
    }
}

.character-list-card {
    transition: transform .18s ease,box-shadow .18s ease
}

    .character-list-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.25) !important
    }

.artifact-showcase-card {
    transition: transform .15s ease
}

    .artifact-showcase-card:hover {
        transform: translateY(-2px)
    }



.artifact-section {
    width: 100%;
    min-width: 0;
}

.artifact-set-badge {
    min-width: 220px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.artifact-set-name {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    min-height: 2.4em;
}

.artifact-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
    min-width: 0;
}

.artifact-grid-item {
    display: block !important;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
}

    .artifact-grid-item .artifact-showcase-card {
        display: block !important;
        min-height: 250px;
        width: 100%;
    }

}
}

/* ===== Analyzer Showcase: Skizzen-Layout ===== */
.ga-modal .modal-dialog {
    width: min(1480px, calc(100vw - 28px));
    max-width: 1480px;
    margin: .75rem auto;
}

.ga-modal .modal-content {
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
    background: rgba(10, 11, 14, .94) !important;
}

.ga-modal .modal-body {
    overflow: auto;
    padding: .5rem !important;
}

.showcase-mobile-wrapper {
    width: 100%;
    overflow: visible;
}

.showcase-build {
    position: relative;
    width: 100%;
    max-width: none;
    transform: none !important;
    transform-origin: initial !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

    .showcase-build::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(90deg, rgba(5,7,10,.42), rgba(5,7,10,.64) 24%, rgba(5,7,10,.72));
        backdrop-filter: blur(1.5px);
        -webkit-backdrop-filter: blur(1.5px);
        pointer-events: none;
    }

    .showcase-build > * {
        position: relative;
        z-index: 1;
    }

    .showcase-build .desktop-main-row {
        display: grid !important;
        grid-template-columns: 310px minmax(0, 1fr);
        gap: .55rem;
        margin: 0 !important;
    }

    .showcase-build .character-column,
    .showcase-build .details-column {
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

.character-image-paste {
    min-height: 545px !important;
    background: rgba(7, 9, 12, .54) !important;
}

    .character-image-paste .card-body {
        position: relative;
        z-index: 2;
    }

.ga-modal .character-image-paste {
    position: relative;
    overflow: hidden;
    min-height: 545px !important;
}

.ga-modal .ga-local-character-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover !important;
    object-position: center 35% !important;
    z-index: 0;
    filter: none;
}

.ga-modal .character-image-paste::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,.65), transparent 28%, transparent 65%, rgba(0,0,0,.75) );
    pointer-events: none;
    z-index: 1;
}

.ga-modal .character-image-paste .card-body {
    position: relative;
    z-index: 2;
}

.showcase-build .details-column > .card {
    min-height: 545px;
    background: rgba(7, 9, 12, .72) !important;
}

.artifact-section {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: .55rem !important;
}

.artifact-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: .5rem;
    width: 100%;
    min-width: 0;
}

.artifact-grid-item {
    display: block !important;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
}

    .artifact-grid-item .artifact-showcase-card {
        display: block !important;
        width: 100%;
        min-height: 250px;
        background: rgba(10, 12, 16, .78) !important;
    }

@media (max-width: 1199.98px) {
    .ga-modal .modal-dialog {
        width: calc(100vw - 16px);
        margin: .5rem auto;
    }

    .showcase-build .desktop-main-row {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .character-image-paste,
    .showcase-build .details-column > .card {
        min-height: 500px !important;
    }
}

@media (max-width: 900px) {
    .showcase-build .desktop-main-row {
        grid-template-columns: 1fr;
    }

    .character-image-paste {
        min-height: 390px !important;
    }

    .showcase-build .details-column > .card {
        min-height: 0 !important;
    }

    .artifact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575.98px) {
    .artifact-grid {
        grid-template-columns: 1fr !important;
    }
}

.ga-local-character-icon {
    object-fit: contain !important;
    object-position: center bottom !important;
    max-width: 100%;
}
