/* ruleNoteDialog.css - 共用的遊戲規則彈窗樣式 */

.ruleNoteDialog-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto; /* 阻擋下方點擊 */
    z-index: 3000; /* 給予極高層級，使其蓋過所有遊戲容器 (Game3 是 2000) */
    --msg-width-scale: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.ruleNoteDialog-container.hidden {
    display: none !important;
}

.ruleNoteDialog-box {
    position: absolute;
    /* 位置將由 JS 根據參數覆蓋，例如 top/left 等 */
    transform: translate(-50%, -50%);
    border: 2px solid hsla(200, 100%, 70%, 0.4);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 6px hsla(221, 76%, 46%, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.ruleNoteDialog-box h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.ruleNoteDialog-box p {
    margin: 8px 0;
    font-size: 22px;
    line-height: 1.5;
}

.ruleNoteDialog-box button {
    position: absolute;
    bottom: 20px;
    border: 1px solid hsla(180, 80%, 60%, 0.3);
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.6s ease;
    white-space: nowrap;
}

.ruleNoteDialog-box button:hover {
    filter: brightness(1.25);
}
