:root {
    --rm-theme-color: #5eb132;
}

/* Modal Overlay */
.rm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    box-sizing: border-box;
}

/* Modal Dialog Wrapper */
.rm-dialog {
    position: relative;
    width: 100%;
    max-width: 4.8rem;
    margin: 0 auto;
}

/* Top Tab / Header Badge */
.rm-header-tab {
    position: relative;
    width: 55%;
    margin: 0 auto -0.02rem auto;
    background-color: var(--rm-theme-color, #5eb132);
    border-top-left-radius: 0.18rem;
    border-top-right-radius: 0.18rem;
    padding: 0.1rem 0.25rem 0.08rem 0.25rem;
    text-align: center;
    z-index: 2;
    box-sizing: border-box;
}

.rm-header-title {
    color: #ffffff;
    font-size: 0.15rem;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.01rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-header-subtitle {
    color: #ffffff;
    font-size: 0.22rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.rm-close-btn {
    position: absolute;
    top: 0.06rem;
    right: 0.1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.22rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.rm-close-btn:hover {
    color: #ffffff;
}

/* Outer Frame */
.rm-body-frame {
    background-color: var(--rm-theme-color, #5eb132);
    border-radius: 0.12rem;
    padding: 0.14rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0.08rem 0.24rem rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Inner Card */
.rm-inner-card {
    background-color: #d1f2d9;
    border-radius: 0.1rem;
    padding: 0.22rem 0.12rem 0.18rem 0.12rem;
    text-align: center;
    border: 1px solid #b2e4c0;
}

/* Card Title */
.rm-card-title {
    font-size: 0.18rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.16rem;
}

/* Zodiacs Row */
.rm-zodiacs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.12rem;
    margin-bottom: 0.16rem;
}

.rm-zodiac-item {
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
    background-color: #fef5d2;
    border: 0.02rem solid #f3d88c;
    color: #7d5412;
    font-size: 0.18rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.08);
}

/* Balls Row */
.rm-balls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.06rem;
    margin-bottom: 0.18rem;
}

.rm-balls-row .ball {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.18rem;
    font-weight: bold;
    color: #333333;
}

/* Action Row & Copy Button */
.rm-action-row {
    display: flex;
    justify-content: center;
}

.rm-copy-btn {
    background-color: #3a98fb;
    color: #ffffff;
    border: none;
    border-radius: 0.06rem;
    padding: 0.08rem 0.28rem;
    font-size: 0.16rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0.02rem 0.06rem rgba(58, 152, 251, 0.3);
    transition: background-color 0.2s, transform 0.1s;
}

.rm-copy-btn:active {
    transform: scale(0.96);
    background-color: #2b84e4;
}
