/* ===== fruit-machine · 水果机 ===== */

.fm-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 28px;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at top, #fef9c3 0%, #fff 55%, #fef3c7 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #fde68a;
}

.fm-glow {
    position: absolute;
    top: -140px;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.fm-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin-bottom: 22px;
}
.fm-hud-item {
    flex: 1;
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fde68a;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.08);
    text-align: center;
}
.fm-hud-label {
    font-size: 11px;
    color: #a16207;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.fm-hud-value {
    font-size: 20px;
    font-weight: 900;
    color: #ca8a04;
    margin-top: 2px;
}
.fm-hud-item.best { background: linear-gradient(135deg, #f59e0b, #b45309); border-color: transparent; }
.fm-hud-item.best .fm-hud-label { color: rgba(255,255,255,0.8); }
.fm-hud-item.best .fm-hud-value { color: #fff; }
.fm-hud-item.coins { border-color: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.25); }

/* 转盘 */
.fm-slot-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin-bottom: 22px;
}
.fm-slot-frame {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    border-radius: 14px;
    box-shadow: inset 0 0 20px rgba(161, 98, 7, 0.25), 0 12px 30px rgba(234, 179, 8, 0.25);
}
.fm-slot {
    flex: 1;
    height: 180px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #f59e0b;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}
.fm-slot::before, .fm-slot::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 18px;
    z-index: 2;
    pointer-events: none;
}
.fm-slot::before {
    top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent);
}
.fm-slot::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.9), transparent);
}
.fm-reel {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 2s cubic-bezier(0.17, 0.67, 0.18, 1);
    will-change: transform;
}
.fm-reel-item {
    height: 60px;
    width: 100%;
    display: grid;
    place-items: center;
    font-size: 38px;
    line-height: 1;
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    flex-shrink: 0;
}
.fm-win-line {
    position: absolute;
    top: 50%;
    left: -8px;
    right: -8px;
    height: 3px;
    background: #dc2626;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

/* 下注按钮组 */
.fm-bet-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin-bottom: 18px;
}
.fm-bet-btn {
    padding: 9px 18px;
    border-radius: 22px;
    border: 2px solid #fbbf24;
    background: #fff;
    color: #ca8a04;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.fm-bet-btn:hover { background: #fef9c3; transform: translateY(-1px); }
.fm-bet-btn.active {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.35);
}
.fm-bet-btn.clear { border-color: #a1a1aa; color: #52525b; }
.fm-bet-btn.clear:hover { background: #f4f4f5; }

/* SPIN 按钮 */
.fm-spin {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    padding: 18px 28px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.fm-spin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(220, 38, 38, 0.55); }
.fm-spin:active:not(:disabled) { transform: translateY(1px); }
.fm-spin:disabled {
    background: #a1a1aa;
    cursor: not-allowed;
    box-shadow: none;
}

.fm-spin.is-win {
    animation: fm-win-pulse 0.5s ease 3;
}
@keyframes fm-win-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 中奖闪光 */
.fm-slot.is-flash .fm-reel-item {
    animation: fm-glow 0.5s ease infinite alternate;
}
@keyframes fm-glow {
    from { filter: drop-shadow(0 0 2px #fbbf24); }
    to { filter: drop-shadow(0 0 10px #fbbf24) drop-shadow(0 0 18px #f59e0b); }
}

/* 赔率表 */
.fm-paytable {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fef9c3;
    border-radius: 10px;
    border: 1px solid #fde68a;
    margin: 10px 0 18px;
}
.fm-pay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.fm-pay-emoji { font-size: 22px; min-width: 54px; text-align: center; }
.fm-pay-desc { flex: 1; color: #713f12; }
.fm-pay-val { font-weight: 900; color: #b45309; }

/* 简介区 */
.fm-info { margin-bottom: 28px; }
.fm-info .detail-title-row { margin-bottom: 16px; }
.fm-info h1 { font-size: 28px; }

/* 响应式 */
@media (max-width: 768px) {
    .fm-hero { padding: 24px 14px 22px; }
    .fm-hud { gap: 8px; }
    .fm-hud-item { min-width: 72px; padding: 8px 10px; }
    .fm-hud-value { font-size: 16px; }
    .fm-slot { height: 150px; }
    .fm-reel-item { height: 50px; font-size: 30px; }
}
