/* ===== DiceHeroes 技能养成界面样式 v6（参考图6yrr9精确还原版）===== */

/* ===== 技能养成主界面 ===== */
#skill-upgrade-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 41; display: none;
    background: url('../assets/UI/bg_skill_upgrade.png') center center / cover no-repeat;
    background-color: #6b4a50;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

/* 技能养成界面滑入/滑出动画类 */
#skill-upgrade-screen.slide-in-from-right {
    display: block;
    transform: translateX(100%);
}
#skill-upgrade-screen.slide-active {
    transform: translateX(0);
}
#skill-upgrade-screen.slide-out-to-right {
    transform: translateX(100%);
}

/* 主界面滑动过渡 */
#main-screen.slide-out-to-left {
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(-30%);
}
#main-screen.slide-out-to-right {
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(30%);
}
#main-screen.slide-animating {
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ===== 顶栏（透明，无底图）===== */
.su-top-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 40px;
    background: transparent;
    display: flex; align-items: center; justify-content: flex-start; padding: 0 8px; gap: 6px;
    z-index: 10;
}

/* 资源胶囊（顶栏内）*/
.su-top-bar .res-item {
    display: flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,0.4);
    border-radius: 12px; padding: 2px 10px 2px 4px;
    border: 1px solid rgba(255,200,80,0.2);
}
.su-top-bar .res-item img { width: 18px; height: 18px; }
.su-top-bar .res-item span { color: #fff; font-size: 12px; font-weight: bold; text-shadow: 1px 1px 2px #000; }

/* 设置按钮 */
.su-settings-btn {
    margin-left: auto;
    width: 28px; height: 28px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.su-settings-btn:hover { opacity: 1; transform: rotate(30deg); }
.su-settings-btn img { width: 22px; height: 22px; }

/* ===== 英雄名称横幅（透明，无底图）===== */
.su-hero-info {
    position: absolute; top: 40px; left: 0; width: 100%; height: 44px;
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    background: transparent;
    z-index: 9;
    gap: 12px;
}

.su-hero-name {
    color: #fff; font-size: 22px; font-weight: bold;
    text-shadow: 2px 2px 4px #000, 0 0 8px rgba(255,200,80,0.3);
    letter-spacing: 6px;
}

/* 英雄切换箭头（已废弃，隐藏） */
.su-hero-nav-arrow { display: none; }

/* 英雄切换指示点（已废弃，隐藏） */
.su-hero-dots { display: none !important; }
.su-hero-dot { display: none; }

/* 进度条容器（隐藏，参考图中不显示）*/
.su-progress-container { display: none; }
.su-progress-fill { display: none; }
.su-progress-text { display: none; }

/* ===== 英雄切换Tab（隐藏，改用箭头+点）===== */
.su-hero-tabs-top { display: none !important; }

/* ===== 卡牌网格区域 ===== */
.su-grid-area {
    position: absolute; top: 86px; left: 0; width: 100%; bottom: 117px;
    overflow-y: auto; padding: 8px 6px;
    background: url('../assets/UI/bg_skill_card_area.png') center center / cover no-repeat;
    background-color: #c4ad91;
    -webkit-overflow-scrolling: touch;
}
.su-grid-area::-webkit-scrollbar { width: 3px; }
.su-grid-area::-webkit-scrollbar-track { background: transparent; }
.su-grid-area::-webkit-scrollbar-thumb {
    background: rgba(200,170,170,0.3);
    border-radius: 2px;
}

.su-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    row-gap: 50px;
    column-gap: 0px;
    width: 100%;
}

/* ===== 卡牌行分隔线 ===== */
.su-row-separator {
    grid-column: 1 / -1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(200,170,170,0.3) 20%, rgba(200,170,170,0.5) 50%, rgba(200,170,170,0.3) 80%, transparent 100%);
    margin: 4px 0;
}

/* ===== 卡牌槽位 ===== */
.su-slot {
    width: 100%; border-radius: 0;
    position: relative; display: flex; flex-direction: column;
    overflow: hidden;
    aspect-ratio: 0.62;
}

/* ===== 英雄头像切换栏（卡牌下方）===== */
.su-hero-tab-bar {
    position: absolute; bottom: 57px; left: 0; width: 100%; height: 60px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    z-index: 10;
    padding: 0 10px;
}
.su-hero-tab-item {
    width: 50px; height: 50px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    position: relative;
    flex-shrink: 0;
    filter: brightness(0.6) saturate(0.5);
    border: none;
    background: none;
    box-shadow: none;
}
.su-hero-tab-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.su-hero-tab-item:hover {
    filter: brightness(0.85) saturate(0.8);
    transform: scale(1.05);
}
.su-hero-tab-item.active {
    filter: brightness(1) saturate(1);
    border: none;
    background: none;
    box-shadow: none;
    transform: scale(1.1);
}
.su-hero-tab-item.active::after {
    display: none;
}

/* 锁定槽位 - 置灰背景图 */
.su-slot-locked {
    background: transparent;
    border: none;
    min-height: 0;
}
.su-slot-num {
    display: none;
}

/* 已解锁卡牌 */
.su-slot-unlocked {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
    box-shadow: none;
    background: transparent;
}
.su-slot-unlocked:active { transform: scale(0.96); }
.su-slot-unlocked:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* ===== 卡牌类型颜色方案（无边框无底图）===== */

/* 冰/蓝色卡 */
.su-slot-type-bullet { }
/* 成长/黄色卡 */
.su-slot-type-dice { }
/* 分裂/红色卡 */
.su-slot-type-mechanism { }

/* 移除CSS伪元素类型标签，改用JS动态创建 */
.su-slot-type-bullet::before,
.su-slot-type-dice::before,
.su-slot-type-mechanism::before {
    display: none !important;
}

/* ===== 卡牌内容 ===== */

/* 1. 类型标签（顶部，无底图）*/
.su-card-type-tag {
    position: relative;
    width: 100%;
    padding: 3px 0;
    font-size: 10px; font-weight: bold; color: #fff;
    text-align: center;
    z-index: 5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    border-radius: 8px 8px 0 0;
    letter-spacing: 1px;
    background: none;
}

/* 2. 卡片名称色条（隐藏，参考图中不显示名称文字在卡面上）*/
.su-card-name {
    display: none;
}

/* 3. 星级/等级点 */
.su-card-dots {
    display: flex; gap: 3px; justify-content: center;
    padding: 3px 0;
    position: relative; z-index: 1;
}
.su-card-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all 0.3s;
}
.su-card-dot.filled {
    background: #FFD700;
    box-shadow: 0 0 5px rgba(255,215,0,0.6);
}

/* 4. 技能图标区 */
.su-card-icon-wrap {
    position: relative; z-index: 1;
    display: flex; justify-content: center; align-items: center;
    padding: 4px 0;
    flex: 1;
}
.su-card-icon {
    width: 44px; height: 44px; object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    transition: transform 0.3s;
}
.su-slot-unlocked:hover .su-card-icon {
    transform: scale(1.08);
}

/* 数值徽章（13 等 - 参考图中的圆形黑底白字）*/
.su-card-val-badge {
    position: absolute; bottom: 0px; right: 4px;
    background: rgba(0,0,0,0.8);
    color: #fff; font-size: 15px; font-weight: bold;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    border: 1.5px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 5. 升级按钮（卡牌外部下方） */
.su-card-upgrade-btn {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, #5aaa30 0%, #4a9a20 50%, #3a8a10 100%);
    color: #fff; font-size: 10px; font-weight: bold;
    text-align: center; padding: 4px 0;
    display: flex; justify-content: center; align-items: center; gap: 2px;
    border-radius: 6px;
    cursor: pointer; border: none;
    transition: filter 0.15s, transform 0.1s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 4px;
    width: calc(100% - 5px);
}
.su-card-upgrade-btn:hover { filter: brightness(1.15); }
.su-card-upgrade-btn:active { filter: brightness(0.9); transform: scale(0.97); }
.su-card-upgrade-btn img { width: 12px; height: 12px; }
.su-card-upgrade-btn.disabled {
    background: linear-gradient(180deg, #888 0%, #666 100%);
    color: #aaa; cursor: not-allowed; filter: none;
}

/* 满级标签（卡牌外部下方） */
.su-card-max-tag {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, #777 0%, #555 100%);
    color: #FFD700; font-size: 10px; font-weight: bold;
    text-align: center; padding: 4px 0;
    border-radius: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    margin-top: 4px;
    width: calc(100% - 5px);
}

/* 卡牌+按钮的包裹容器 */
.su-slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ===== 卡牌入场动画 ===== */
.su-slot-unlocked {
    animation: suCardAppear 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes suCardAppear {
    from { transform: scale(0.8) translateY(10px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.su-slot-unlocked:nth-child(1) { animation-delay: 0.03s; }
.su-slot-unlocked:nth-child(2) { animation-delay: 0.06s; }
.su-slot-unlocked:nth-child(3) { animation-delay: 0.09s; }
.su-slot-unlocked:nth-child(4) { animation-delay: 0.12s; }
.su-slot-unlocked:nth-child(5) { animation-delay: 0.18s; }
.su-slot-unlocked:nth-child(6) { animation-delay: 0.21s; }
.su-slot-unlocked:nth-child(7) { animation-delay: 0.24s; }
.su-slot-unlocked:nth-child(8) { animation-delay: 0.27s; }
.su-slot-unlocked:nth-child(9) { animation-delay: 0.33s; }
.su-slot-unlocked:nth-child(10) { animation-delay: 0.36s; }
.su-slot-unlocked:nth-child(11) { animation-delay: 0.39s; }
.su-slot-unlocked:nth-child(12) { animation-delay: 0.42s; }

/* ===== 卡牌悬浮光效 ===== */
.su-slot-unlocked::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    z-index: 4; pointer-events: none;
    transition: left 0.6s ease;
}
.su-slot-unlocked:hover::after {
    left: 150%;
}

/* ===== 底部导航栏 ===== */
.su-bottom-nav-new {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 57px;
    z-index: 10;
}

/* ===== 通用弹框遮罩 ===== */
.su-popup-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.72);
    z-index: 60; display: none;
    justify-content: center; align-items: center;
    animation: suOverlayFadeIn 0.25s ease-out;
}
@keyframes suOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== 详情弹框 ===== */
.su-detail-box {
    width: 300px;
    background: linear-gradient(180deg, #5a3a1a 0%, #8b6838 10%, #a88050 50%, #8b6838 90%, #5a3a1a 100%);
    border-radius: 16px;
    padding: 16px 16px 20px;
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8), 0 0 30px rgba(139,107,58,0.3);
    border: 2px solid rgba(200,160,80,0.4);
    animation: suDetailBoxIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes suDetailBoxIn {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* 关闭按钮 */
.su-det-close {
    position: absolute; top: 8px; right: 12px;
    color: rgba(255,255,255,0.65); font-size: 20px; cursor: pointer;
    z-index: 5; transition: color 0.2s, transform 0.2s;
}
.su-det-close:hover { color: #fff; transform: scale(1.2) rotate(90deg); }

/* ===== 详情弹框内的卡牌 ===== */
.su-det-card-wrapper {
    width: 100%;
    display: flex; justify-content: center;
    margin-bottom: 14px;
}

.su-det-card {
    width: 160px; min-height: 260px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
    animation: detCardAppear 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes detCardAppear {
    from { transform: scale(0.7) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.su-det-card-content {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    padding: 0 0 10px 0;
}

/* 卡牌内 - 类型标签 */
.su-det-card .su-det-type-label {
    position: relative; z-index: 2;
    font-size: 10px; font-weight: bold; color: #fff;
    padding: 3px 14px; border-radius: 0 0 10px 10px;
    text-align: center; letter-spacing: 1px;
    width: fit-content;
    margin: 0 auto 4px;
}

/* 卡牌内 - 技能名 */
.su-det-card .su-det-name {
    position: relative; z-index: 1;
    width: 100%; text-align: center;
    color: #fff; font-weight: bold; font-size: 14px;
    padding: 6px 10px 5px;
    margin-bottom: 2px;
    background: none;
}

/* 卡牌内 - 星级 */
.su-det-card .su-det-stars {
    position: relative; z-index: 1;
    display: flex; justify-content: center; gap: 2px;
    margin-bottom: 6px;
}

/* 卡牌内 - 图标 */
.su-det-card .su-det-icon-frame {
    position: relative; z-index: 1;
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin: 4px 0 8px 0;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.su-det-card .su-det-icon {
    width: 52px; height: 52px; object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* 卡牌内 - 描述 */
.su-det-card .su-det-desc {
    position: relative; z-index: 1;
    color: rgba(255,255,255,0.9); font-size: 11px;
    text-align: center; margin-bottom: 4px;
    padding: 0 10px; line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ===== 卡牌类型差异化 - 已移除底图 ===== */

/* 属性预览框 */
.su-det-preview {
    position: relative; z-index: 1;
    color: #4eff91; font-size: 14px; font-weight: bold;
    background: rgba(20,25,35,0.9);
    padding: 6px 24px; border-radius: 8px;
    margin-bottom: 14px; width: calc(100% - 32px);
    text-align: center;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
    border: 1px solid rgba(78,255,145,0.15);
}

/* 升级按钮区 */
#su-det-btn-area {
    position: relative; z-index: 1;
    display: flex; justify-content: center;
}

.su-det-upgrade-btn {
    background: linear-gradient(180deg, #5aaa30 0%, #4a9a20 50%, #3a8a10 100%);
    color: #fff; font-size: 16px; font-weight: bold;
    padding: 10px 32px; border-radius: 24px; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(76,175,80,0.4);
    transition: transform 0.15s, filter 0.15s;
    border: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.su-det-upgrade-btn:hover { transform: scale(1.05); filter: brightness(1.1); }
.su-det-upgrade-btn:active { transform: scale(0.96); }
.su-det-upgrade-btn.disabled {
    background: linear-gradient(180deg, #888 0%, #666 100%);
    box-shadow: none; cursor: not-allowed;
}
.su-det-upgrade-btn img { width: 18px; height: 18px; }


/* ===== 升级结果弹框 ===== */
.su-upgrade-box {
    width: 260px;
    background: linear-gradient(180deg, #5a3a1a 0%, #8b6838 20%, #a88050 50%, #8b6838 80%, #5a3a1a 100%);
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 16px; position: relative;
    border-radius: 16px;
    border: 2px solid rgba(200,160,80,0.4);
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
    animation: suDetailBoxIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

.su-upg-box-bg { display: none; }

/* SPELL UPGRADE! 标题 */
.su-upg-title {
    color: #FFD700; font-size: 22px; font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 0 16px rgba(255,215,0,0.7), 1px 1px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    animation: suTitlePulse 1.5s ease-in-out infinite;
}
@keyframes suTitlePulse {
    0%, 100% { text-shadow: 0 0 16px rgba(255,215,0,0.7), 1px 1px 4px rgba(0,0,0,0.8); }
    50% { text-shadow: 0 0 24px rgba(255,215,0,1), 0 0 40px rgba(255,215,0,0.4), 1px 1px 4px rgba(0,0,0,0.8); }
}

/* 升级结果技能卡 */
.su-upg-card-wrapper {
    margin-bottom: 18px;
}
.su-upg-det-card {
    width: 160px; min-height: 260px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 28px rgba(255,215,0,0.5), 0 4px 16px rgba(0,0,0,0.5);
}

/* 升级成功卡牌弹入动画 */
.su-upg-card-anim {
    animation: upgCardBounceIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes upgCardBounceIn {
    0%   { transform: scale(0.3) rotate(-8deg); opacity: 0; filter: brightness(2.5); }
    40%  { transform: scale(1.12) rotate(2deg); opacity: 1; filter: brightness(1.6); }
    70%  { transform: scale(0.95) rotate(-1deg); filter: brightness(1.2); }
    100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* 升级成功时卡牌发光脉冲 */
.su-upg-det-card::after {
    content: '';
    position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid rgba(255,215,0,0.6);
    animation: upgGlowPulse 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes upgGlowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3); border-color: rgba(255,215,0,0.4); }
    50%      { box-shadow: 0 0 24px rgba(255,215,0,0.7), 0 0 48px rgba(255,215,0,0.3); border-color: rgba(255,215,0,0.8); }
}

/* 升级差值标签 */
.su-upg-diff {
    color: #4eff91; font-size: 20px; font-weight: bold;
    background: transparent;
    padding: 4px 20px; border-radius: 10px;
    margin-bottom: 18px;
    text-shadow: 0 0 10px rgba(78,255,145,0.7);
}

/* OK 按钮 */
.su-upg-ok {
    background: linear-gradient(180deg, #5aaa30 0%, #4a9a20 50%, #3a8a10 100%);
    color: #fff; font-size: 17px; font-weight: bold;
    padding: 11px 50px; border-radius: 12px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(76,175,80,0.4);
    transition: transform 0.15s, filter 0.15s;
    border: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.su-upg-ok:hover { transform: scale(1.06); filter: brightness(1.1); }
.su-upg-ok:active { transform: scale(0.96); }


/* ===== 详情弹框 - 卡牌类型差异化（弹框边框）===== */
.su-detail-box.su-det-type-bullet {
    border-color: rgba(74,138,184,0.4);
}
.su-detail-box.su-det-type-dice {
    border-color: rgba(200,160,64,0.4);
}
.su-detail-box.su-det-type-mechanism {
    border-color: rgba(200,64,64,0.4);
}


/* ===== Toast 提示 ===== */
.hg-toast {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: #fff; font-size: 14px; font-weight: bold;
    padding: 10px 24px; border-radius: 20px;
    z-index: 100; pointer-events: none;
    animation: toastAnim 1.5s ease-out forwards;
}
@keyframes toastAnim {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    70%  { opacity: 1; transform: translate(-50%, -55%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -65%) scale(0.9); }
}

/* ===== 星级样式 ===== */
.su-star-filled { color: #FFD700; font-size: 10px; }
.su-star-empty  { color: rgba(255,255,255,0.3); font-size: 10px; }

/* ===== 卡牌升级火焰图标 ===== */
.su-card-upgrade-btn .su-fire-icon {
    display: inline-block;
    width: 12px; height: 12px;
    margin-right: 2px;
}

/* ===== 卡牌组标题行（参考图中的行标题区域）===== */
.su-group-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px 2px;
}
.su-group-level {
    color: rgba(220,190,190,0.5);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    min-width: 30px;
    text-align: center;
    opacity: 0.5;
}
.su-group-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(200,170,170,0.4) 0%, rgba(200,170,170,0.15) 100%);
}
.su-group-combo-icon {
    width: 20px; height: 20px;
    opacity: 0.4;
}

/* ===== 卡牌背景色方案（作为背景图的兜底色）===== */

/* 蓝色/冰系卡牌 */
.su-card-bg-blue {
    background-color: #3a7ab0;
}
/* 紫色卡牌 */
.su-card-bg-purple {
    background-color: #5a3088;
}
/* 棕色/土系卡牌 */
.su-card-bg-brown {
    background-color: #7a5828;
}
/* 黄色/成长卡牌 */
.su-card-bg-yellow {
    background-color: #a88020;
}
/* 红色/分裂卡牌 */
.su-card-bg-red {
    background-color: #a82020;
}
/* 黑色卡牌 */
.su-card-bg-black {
    background-color: #2a2a2a;
}
/* 绿色卡牌 */
.su-card-bg-green {
    background-color: #2a6a20;
}

/* ===== ★ 新解锁卡牌 NEW 标记 ===== */
.su-card-new-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff4466, #ff2244);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 0 8px rgba(255,68,102,0.8), 0 2px 4px rgba(0,0,0,0.5);
    animation: suNewBadgePulse 1.2s ease-in-out infinite;
    border: 1.5px solid rgba(255,255,255,0.4);
    pointer-events: none;
}
@keyframes suNewBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(255,68,102,0.8); }
    50% { transform: scale(1.15); box-shadow: 0 0 16px rgba(255,68,102,1); }
}

/* ★ 新解锁卡牌动画 */
.su-slot-new {
    position: relative;
    overflow: hidden;
}

/* ★ 卡牌解锁入场动画（从灰暗变为彩色） */
.su-slot-unlocked.su-slot-new {
    animation: suCardUnlockReveal 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes suCardUnlockReveal {
    0% { transform: scale(0.8); opacity: 0.5; filter: grayscale(100%) brightness(0.5); }
    50% { transform: scale(1.08); opacity: 1; filter: grayscale(0%) brightness(1.2); }
    100% { transform: scale(1); opacity: 1; filter: grayscale(0%) brightness(1); }
}
