/* ============ 摸鱼闹钟 · 全局提醒引擎（所有页面共用） ============ */
.ma-toast-wrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 36px);
}
.ma-toast {
    max-width: 320px;
    background: #232b4a;
    border: 1px solid #3a4470;
    border-left: 4px solid #ff9d4d;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    animation: maToastIn 0.3s ease;
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: auto;
}
.ma-toast.out {
    opacity: 0;
    transform: translateY(10px);
}
.ma-toast-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.ma-toast-body {
    font-size: 13px;
    color: #b6bedb;
    margin-top: 3px;
    line-height: 1.5;
    word-break: break-all;
}
@keyframes maToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 全屏兜底弹窗 */
.ma-page-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ma-page-modal.shown {
    opacity: 1;
    pointer-events: auto;
}
.ma-page-modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.ma-page-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 30, 0.85);
    backdrop-filter: blur(4px);
}
.ma-page-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(160deg, #232b4a 0%, #1a2138 100%);
    border: 1px solid #3d4875;
    border-radius: 22px;
    padding: 34px 28px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 157, 77, 0.2) inset;
    animation: maModalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ma-page-modal-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
    animation: maModalBell 1s ease infinite alternate;
}
.ma-page-modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}
.ma-page-modal-body {
    font-size: 16px;
    color: #c8cee6;
    line-height: 1.7;
    margin-bottom: 24px;
}
@keyframes maModalIn {
    from { opacity: 0; transform: scale(0.86) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes maModalBell {
    from { transform: rotate(-6deg) scale(1); }
    to { transform: rotate(6deg) scale(1.08); }
}

.ma-screen-flash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255, 180, 80, 0);
    pointer-events: none;
    transition: background 0.18s ease;
}
.ma-screen-flash.active { background: rgba(255, 180, 80, 0.18); }

.ma-global-btn {
    padding: 10px 18px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.ma-global-btn:active { transform: translateY(1px); }
.ma-global-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ma-global-btn-primary {
    background: linear-gradient(135deg, #ffb347, #ff8c42);
    color: #3a2400;
    box-shadow: 0 6px 18px rgba(255, 140, 66, 0.35);
}
.ma-global-btn-primary:hover { box-shadow: 0 8px 24px rgba(255, 140, 66, 0.5); }
