/* ===== 购买确认 弹窗 (三款游戏共用 #buyConfirmModal) ===== */
.confirm-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
.confirm-modal[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.cm-box { position: relative; width: 86%; max-width: 340px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.25); animation: redeemPop .22s ease; }
.cm-head { padding: 14px 16px; background: linear-gradient(135deg, #ff7a62, #ee5a3f); color: #fff; text-align: center; font-size: 16px; font-weight: 600; }
.cm-body { padding: 14px 16px 4px; max-height: 50vh; overflow-y: auto; font-size: 14px; color: #333; }
.cm-bet-list { margin: 0 0 10px; padding: 0; list-style: none; }
.cm-bet-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #eee; }
.cm-bet-list li:last-child { border-bottom: none; }
.cm-bet-name { color: #333; }
.cm-bet-odds { color: #ee5a3f; font-size: 13px; }
.cm-meta { padding: 8px 0; border-top: 1px solid #f0f0f0; color: #555; font-size: 14px; }
.cm-meta .cm-row { display: flex; justify-content: space-between; padding: 3px 0; }
.cm-total { color: #ee5a3f; font-weight: 600; font-size: 16px; }
.cm-actions { display: flex; gap: 10px; padding: 12px 16px 16px; }
.cm-actions button { flex: 1; padding: 10px 0; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: transform .1s; }
.cm-actions button:active { transform: scale(0.98); }
.cm-cancel { background: #f2f2f2; color: #555; }
.cm-ok { background: linear-gradient(135deg, #ff7a62, #ee5a3f); color: #fff; font-weight: 600; }

/* ===== 共享 Toast(所有游戏/面板都用) ===== */
.gm-toast {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -20px);
    background: rgba(0,0,0,0.82);
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 80%;
    white-space: pre-line;
    text-align: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gm-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
