/* ending.css - 赛季结局场景 */

.scene--ending {
    width: 100%; height: 100dvh;
    background: #050814;
    overflow: auto;
    position: relative;
}

.ending {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
}

.ending__bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(78, 168, 222, 0.15), transparent 60%);
    pointer-events: none;
}

.ending--legend .ending__bg { background: radial-gradient(ellipse at center, rgba(255, 200, 80, 0.25), transparent 60%); }
.ending--silver .ending__bg { background: radial-gradient(ellipse at center, rgba(200, 210, 230, 0.18), transparent 60%); }
.ending--summer .ending__bg { background: radial-gradient(ellipse at center, rgba(255, 140, 80, 0.20), transparent 60%); }
.ending--spring .ending__bg { background: radial-gradient(ellipse at center, rgba(255, 150, 200, 0.20), transparent 60%); }
.ending--playoff .ending__bg { background: radial-gradient(ellipse at center, rgba(140, 100, 220, 0.18), transparent 60%); }
.ending--struggle .ending__bg { background: radial-gradient(ellipse at center, rgba(180, 80, 80, 0.18), transparent 60%); }

.ending__content {
    position: relative; z-index: 1;
    width: min(640px, 100%);
    background: linear-gradient(160deg, #0f1726, #070d1a);
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 16px;
    padding: 40px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.ending__header { text-align: center; margin-bottom: 20px; }
.ending__team {
    font-size: 12px; color: #8892a4;
    letter-spacing: 3px; margin-bottom: 6px;
}
.ending__title {
    font-size: 32px; font-weight: 900; letter-spacing: 4px;
    background: linear-gradient(135deg, #f0c040, #ff6b35);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
}
.ending__subtitle {
    font-size: 13px; color: #8892a4; letter-spacing: 2px;
}

.ending__stats {
    display: flex; justify-content: center; gap: 36px;
    margin: 20px 0 28px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ending__stat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ending__stat strong {
    font-size: 24px; font-weight: 900; color: #f0c040;
}
.ending__stat small { font-size: 11px; color: #8892a4; }

.ending__narrative {
    min-height: 120px;
    margin-bottom: 20px;
}
.ending__line {
    font-size: 15px; line-height: 1.7; color: #d6dae3;
    margin: 10px 0; text-align: center;
    animation: ending-fadein 0.8s ease forwards;
}

@keyframes ending-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ending__rewards {
    text-align: center;
    padding: 16px;
    background: rgba(240, 192, 64, 0.08);
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    animation: ending-fadein 0.8s ease forwards;
}
.ending__rewards h3 { margin: 0 0 10px 0; color: #f0c040; font-size: 16px; }
.ending__rewards-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.er-item {
    font-size: 13px; color: #e8eaf0; font-weight: 600;
    padding: 4px 10px;
    background: rgba(0,0,0,0.3); border-radius: 999px;
}

.ending__actions {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 20px;
}

.ending__annual-cards {
    margin-top: 12px;
    padding: 16px;
    background: rgba(78, 168, 222, 0.06);
    border: 1px solid rgba(78, 168, 222, 0.3);
    border-radius: 10px;
    animation: ending-fadein 0.8s ease forwards;
}
.ending__annual-cards h3 {
    margin: 0 0 12px 0; color: #4ea8de;
    font-size: 14px; letter-spacing: 3px;
    text-align: center;
}
.ending__annual-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.ea-card {
    text-align: center;
    padding: 12px 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}
.ea-card__icon { font-size: 20px; margin-bottom: 4px; }
.ea-card__title { font-size: 11px; color: #8892a4; margin-bottom: 6px; }
.ea-card__main { font-size: 15px; color: #f0c040; font-weight: 700; }
.ea-card__sub { font-size: 10px; color: #b0b4c0; margin-top: 3px; }

@media (max-width: 640px) {
    .ending__title { font-size: 24px; }
    .ending__stats { gap: 20px; }
    .ending__stat strong { font-size: 20px; }
    .ending__line { font-size: 14px; }
}
