/* Пилоты, навыки и разговоры (pilots.js) */
#skillButton {
    border-color: #67e8f9;
    background: linear-gradient(135deg, #0e7490, #7c3aed);
}

#skillButton.cooling {
    background: linear-gradient(135deg, #1f2a44, #2d2447);
    border-color: #6b5b95;
    color: #cbd5e1;
}

#pilotButton {
    border-color: #67e8f9;
    background: linear-gradient(135deg, #0e7490, #7c3aed);
}

#pilotHint {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.pilot-card .pilot-face {
    width: 120px;
    height: 150px;
    margin: 0 auto 10px;
    border: 2px solid #a855f7;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 30%, #3b1d66, #0b0a22);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pilot-card .pilot-face img {
    height: 138px;
    width: auto;
    max-width: none;
    display: block;
}

.pilot-card .pilot-face.dim img {
    filter: brightness(0) saturate(0);
    opacity: 0.5;
}

.pilot-card.locked {
    opacity: 0.8;
}

.pilot-skill {
    color: #67e8f9;
    font-weight: bold;
    margin: 6px 0 2px;
}

.pilot-join {
    display: inline-block;
    margin-top: 8px;
    color: #67e8f9;
    font-weight: bold;
}

#pilotDialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 4, 16, 0.55);
}

#pilotDialog[hidden] {
    display: none !important;
}

#pilotDialog .pd-box {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    width: min(760px, 100%);
    padding: 16px 20px;
    border: 2px solid #a34aff;
    border-radius: 16px;
    background: rgba(12, 8, 34, 0.96);
    box-shadow: 0 0 30px #922bff88;
    text-align: left;
}

#pilotDialog.pd-boss .pd-box {
    border-color: #fb7185;
    box-shadow: 0 0 30px #e11d4888;
}

#pilotDialog .pd-face {
    flex: none;
    width: 110px;
    height: 130px;
    border-radius: 14px;
    border: 2px solid #7c3aed;
    background: radial-gradient(ellipse at 50% 30%, #3b1d66, #0b0a22);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#pilotDialog .pd-img {
    height: 124px;
    width: auto;
    max-width: none;
}

#pilotDialog .pd-icon {
    align-self: center;
    font-size: 54px;
}

#pilotDialog .pd-img[hidden],
#pilotDialog .pd-icon[hidden] {
    display: none;
}

#pilotDialog .pd-text {
    flex: 1;
    min-width: 0;
}

#pilotDialog .pd-name {
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#pilotDialog .pd-line {
    min-height: 66px;
    font-size: 17px;
    line-height: 1.45;
    color: #f5eaff;
}

#pilotDialog .pd-next {
    margin-top: 10px;
    padding: 10px 22px;
}

@media (max-width: 560px) {
    #pilotDialog .pd-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.pilot-card { width: 200px; }

.chapter-title{width:100%;text-align:center;margin:14px 0 0;color:#e879f9;letter-spacing:3px;font-weight:700;text-shadow:0 0 12px #e879f9}
