/* ===== DiceHeroes 老虎机界面 v1 ===== */
#slot-machine-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 46; display: none; justify-content: center; align-items: center;
    background: rgba(0,0,0,0.75);
}

.slot-container {
    width: 340px; display: flex; flex-direction: column; align-items: center;
}

/* 转盘区 */
.slot-reels-box {
    width: 320px; height: 120px;
    background: linear-gradient(180deg, #c8a030, #e8c850, #c8a030);
    border: 4px solid #8B6914;
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center; gap: 16px;
    padding: 10px 20px;
    box-shadow: 0 0 30px rgba(200,160,50,0.5), inset 0 2px 6px rgba(255,255,200,0.3);
    position: relative;
}
.slot-reels-box::before {
    content: ''; position: absolute; top: -8px; right: -8px;
    width: 20px; height: 50px; background: linear-gradient(180deg, #e04040, #c03030);
    border-radius: 10px; border: 2px solid #801818;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.slot-reel {
    width: 80px; height: 80px;
    background: rgba(255,255,240,0.9);
    border: 3px solid #8B6914;
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}
.slot-reel-img {
    width: 64px; height: 64px; object-fit: cover; border-radius: 50%;
    transition: transform 0.08s;
}
.slot-reel-img.spinning { animation: slotSpin 0.1s ease-in-out; }
.slot-reel-img.stopped { animation: slotStop 0.3s ease-out; }
@keyframes slotSpin { 0% { transform: translateY(-10px); opacity: 0.6; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes slotStop { 0% { transform: scale(1.2); } 50% { transform: scale(0.9); } 100% { transform: scale(1); } }

/* 开始按钮 */
#slot-spin-btn {
    margin-top: 20px; padding: 12px 50px;
    background: linear-gradient(180deg, #4CAF50, #388E3C);
    color: #fff; font-size: 18px; font-weight: bold;
    border-radius: 25px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(76,175,80,0.5);
    letter-spacing: 3px;
    transition: transform 0.15s;
}
#slot-spin-btn:hover { transform: scale(1.06); }
#slot-spin-btn:active { transform: scale(0.95); }

/* 结果面板 */
#slot-result-panel {
    display: none; width: 340px;
    background: linear-gradient(180deg, #1a2a40, #0e1a2e);
    border: 2px solid var(--clr-gold);
    border-radius: 14px;
    padding: 14px; margin-top: 16px;
    max-height: 480px; overflow-y: auto;
}
#slot-result-panel::-webkit-scrollbar { width: 3px; }
#slot-result-panel::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.4); border-radius: 2px; }

.slot-result-heroes {
    display: flex; justify-content: center; gap: 12px; margin-bottom: 10px;
}
.slot-result-hero-wrap {
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid var(--clr-gold);
    overflow: hidden; box-shadow: 0 0 10px rgba(255,215,0,0.4);
}
.slot-result-hero-img { width: 100%; height: 100%; object-fit: cover; }

.slot-result-title {
    text-align: center; font-size: 16px; font-weight: bold;
    margin-bottom: 10px; padding: 4px 0;
}
.slot-level-normal { color: #ccc; }
.slot-level-medium { color: var(--clr-gold); text-shadow: 0 0 8px rgba(255,215,0,0.5); }
.slot-level-jackpot { color: #ff4444; font-size: 20px; text-shadow: 0 0 14px rgba(255,50,50,0.8); animation: jackpotPulse 0.5s ease-in-out infinite alternate; }
@keyframes jackpotPulse { from { transform: scale(1); } to { transform: scale(1.08); } }

.slot-jackpot-flash {
    animation: jackpotFlash 0.3s ease-out;
}
@keyframes jackpotFlash {
    0% { box-shadow: 0 0 60px rgba(255,215,0,0.9); }
    100% { box-shadow: none; }
}

/* 奖励卡牌列表 */
.slot-card-list {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 12px;
}
.slot-reward-card {
    width: 95px; background: rgba(20,30,50,0.9);
    border: 2px solid #888; border-radius: 8px;
    display: flex; flex-direction: column; align-items: center;
    padding: 4px 3px; overflow: hidden;
}
.slot-card-name {
    width: 100%; text-align: center; color: #fff;
    font-size: 9px; font-weight: bold; padding: 2px 0;
    border-radius: 6px 6px 0 0;
}
.slot-card-type {
    color: rgba(255,255,255,0.6); font-size: 8px;
    margin: 2px 0;
}
.slot-card-icon {
    width: 36px; height: 36px; object-fit: contain; margin: 4px 0;
}
.slot-card-desc {
    color: rgba(255,255,255,0.7); font-size: 8px;
    text-align: center; line-height: 1.2; padding: 0 2px;
}

/* 收取按钮 */
.slot-collect-btn {
    width: 100%; padding: 10px 0; text-align: center;
    background: linear-gradient(180deg, #4CAF50, #388E3C);
    color: #fff; font-size: 16px; font-weight: bold;
    border-radius: 10px; cursor: pointer;
    letter-spacing: 3px;
    box-shadow: 0 3px 10px rgba(76,175,80,0.4);
    transition: transform 0.15s;
}
.slot-collect-btn:hover { transform: scale(1.04); }
.slot-collect-btn:active { transform: scale(0.96); }

/* fb16：老虎机点数奖励卡 */
.slot-reward-point { background: linear-gradient(180deg, #3a2a10, #1c140a); }
.slot-reward-point .slot-card-type { color: #ffd76a; font-weight: 700; }
.slot-point-big { font-size: 34px; font-weight: 900; line-height: 1.1; margin: 6px 0; color: #ffe08a; text-shadow: 0 2px 0 #6b3d00, 0 0 10px rgba(255,200,80,.55); text-align: center; }
.slot-reward-point.is-double .slot-point-big { color: #ff8a5c; text-shadow: 0 2px 0 #6b1400, 0 0 12px rgba(255,120,60,.7); }
/* fb20b：点数卡带图标；范围文字较长时缩小 */
.slot-reward-point .slot-card-icon { width: 34px; height: 34px; }
.slot-reward-point .slot-point-big { font-size: 22px; white-space: nowrap; }
