.gyh-rules-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(2, 7, 17, .82); direction: rtl; }
.gyh-rules-dialog { width: min(100%, 520px); max-height: 85vh; overflow: auto; padding: 24px; border: 1px solid #74558f; border-radius: 18px; background: #111a2d; color: #f8fafc; box-shadow: 0 18px 60px #000a; }
.gyh-rules-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.gyh-rules-dialog p { white-space: pre-wrap; line-height: 2; }
.gyh-rules-dialog button, .gyh-rules-editor button { border: 0; border-radius: 10px; padding: 10px 18px; background: #7049db; color: white; cursor: pointer; font: inherit; }
.gyh-rules-editor { display: grid; gap: 10px; margin-bottom: 16px; }
.gyh-rules-editor h3, .gyh-rules-editor p { margin: 0; }
.gyh-rules-editor textarea { width: 100%; min-height: 150px; padding: 10px; box-sizing: border-box; font: inherit; }
