body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* ===== Overlay ===== */
.aw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Modal ===== */
.aw-modal {
    width: 92%;
    max-width: 26rem;                 /* 416px */
    background: #fff;
    border-radius: 1.25rem;           /* 20px */
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: awFade 0.25s ease;
}

/* ===== Icon ===== */
.aw-icon {
    font-size: 1.75rem;               /* 28px */
    margin-bottom: 0.75rem;
}

/* ===== Title ===== */
.aw-title {
    font-size: 1.375rem;              /* 22px */
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #111;
    letter-spacing: 0.03em;
}

/* ===== Description ===== */
.aw-desc {
    font-size: 1rem;                  /* 16px */
    line-height: 1.75;
    color: #333;
    margin-bottom: 0.75rem;
}

/* ===== Sub text ===== */
.aw-sub {
    font-size: 0.875rem;              /* 14px */
    line-height: 1.7;
    color: #777;
    margin-bottom: 1.75rem;
}

/* ===== Actions ===== */
.aw-actions {
    display: flex;
    gap: 0.625rem;                   /* 10px */
}

/* ===== Buttons ===== */
.aw-btn {
    flex: 1;
    padding: 0.875rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 次按鈕（灰） */
.aw-btn.secondary {
    background: #f3f4f6;
    color: #333;
}

/* 主按鈕（灰黑） */
.aw-btn.primary {
    background: #111111;   /* 深灰黑 */
    color: #ffffff;
}

/* hover */
.aw-btn.primary:hover {
    background: #000000;   /* 稍微更深 */
}

.aw-btn.secondary:hover {
    background: #e5e7eb;
}

/* active（按下去） */
.aw-btn.primary:active {
    transform: scale(0.98);
}

/* ===== Mobile (Bottom Sheet) ===== */
.aw-overlay.mobile {
    align-items: flex-end;
}

.aw-overlay.mobile .aw-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.75rem 1.25rem 1.5rem;
}

/* Mobile Typography 強化 */
.aw-overlay.mobile .aw-title {
    font-size: 1.5rem;               /* 24px */
}

.aw-overlay.mobile .aw-desc {
    font-size: 1.0625rem;            /* 17px */
    line-height: 1.8;
}

.aw-overlay.mobile .aw-sub {
    font-size: 0.9375rem;            /* 15px */
}

/* iOS Safe Area */
.aw-overlay.mobile .aw-modal {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* ===== Animation ===== */
@keyframes awFade {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
