.gx-rules{--gr-accent:var(--gx-gold,#f5c518);--gr-bg:#242730;--gr-card:#191c22;--gr-input:#101116;color:#eee;background:var(--gr-bg);padding:28px 14px;border-radius:8px;font:11.2px/1.6 Arial,sans-serif}
.gx-rules [hidden]{display:none!important}
.gx-rules *{box-sizing:border-box}
.gx-rules .gr-header{text-align:center;margin-bottom:20px}
.gx-rules .gr-header h1{font-size:19.2px;font-weight:900;line-height:1.3;margin:0 0 8px;text-transform:uppercase;color:#fff}
.gx-rules .gr-header p{color:#9598a3;font-size:10.4px;margin:0}
.gx-rules button{font:inherit;cursor:pointer;border:1px solid #3b3f4a;border-radius:6px;padding:8px 12px;color:#dedfe3;background:#191c22;transition:background .15s,border-color .15s}
.gx-rules button:hover{border-color:var(--gr-accent)}
.gx-rules button:disabled{opacity:.4;cursor:default}
.gx-rules :is(button,a,summary,input,textarea):focus-visible{outline:2px solid var(--gr-accent);outline-offset:3px}
.gx-rules .gr-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px 0 26px}
.gx-rules .gr-tab{font-weight:900;min-width:100px;padding:9px 20px;color:#999ca6;letter-spacing:.3px}
.gx-rules .gr-tab.is-active{border-color:var(--gr-accent);color:var(--gr-accent);background:var(--gx-gold-soft,rgba(245,197,24,.15));box-shadow:0 0 20px rgba(245,197,24,.08)}
.gx-rules .gr-category{background:var(--gr-card);padding:24px;border-radius:10px;margin-bottom:16px}
.gx-rules .gr-category h2{color:#fff;margin:0 0 22px;font-size:14.4px;line-height:1.4;font-weight:900;text-transform:uppercase;overflow-wrap:anywhere}
.gx-rules .gr-question{background:var(--gr-input);border:1px solid transparent;border-radius:6px;margin:10px 0;overflow:hidden}
.gx-rules .gr-question[open]{border-color:var(--gr-accent);background:#15161a}
.gx-rules .gr-question summary{position:relative;padding:15px 40px 15px 16px;cursor:pointer;list-style:none;color:#e5e5e7;font-size:10.4px;font-weight:700;overflow-wrap:anywhere}
.gx-rules .gr-question summary::-webkit-details-marker{display:none}
.gx-rules .gr-question summary:after{content:'▼';position:absolute;right:16px;top:15px;color:#888;font-size:9.6px}
.gx-rules .gr-question[open] summary:after{content:'▲';color:var(--gr-accent)}
.gx-rules .gr-answer{padding:0 16px 16px;color:#c8c9ce;font-size:10.4px;line-height:1.8;overflow-wrap:anywhere}
.gx-rules .gr-links{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;margin:24px 0 6px;font-size:10.4px}
.gx-rules .gr-links a{color:#b9bcc7;text-decoration:underline}
.gx-rules .gr-empty{color:#9b9eaa;text-align:center;padding:20px}
.gx-rules .gr-flash{border:1px solid #46745e;background:#22372b;padding:12px 16px;border-radius:6px;margin-bottom:20px}
.gx-rules .gr-flash.is-error{border-color:#ff554c;background:#45282b}
.gx-rules .gr-settings{margin-top:28px;border-top:1px solid #3b3f4a;padding-top:18px}
.gx-rules .gr-settings>summary{cursor:pointer;color:var(--gr-accent);font-weight:bold;padding:8px}
.gx-rules .gr-settings>p,.gx-rules .gr-hint{color:#9b9eaa;font-size:9.6px}
.gx-rules .gr-field{display:flex;flex-direction:column;gap:5px;margin:12px 0;color:#c8cad3;font-size:10.4px;font-weight:400}
.gx-rules .gr-field input,.gx-rules .gr-field textarea{display:block;width:100%;background:#101116;border:1px solid #3b3f4a;border-radius:5px;color:#eee;padding:10px;font:11.2px/1.5 Arial,sans-serif;min-height:42px;box-shadow:none}
.gx-rules .gr-field textarea{resize:vertical}
.gx-rules .gr-edit-game{background:#191c22;border:1px solid #40434e;border-radius:8px;padding:18px;margin:18px 0}
.gx-rules .gr-edit-category{border-left:2px solid var(--gr-accent);padding:12px;margin:16px 0;background:#202229}
.gx-rules .gr-edit-question{background:#16181d;border-radius:6px;padding:12px;margin:12px 0}
.gx-rules .gr-edit-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.gx-rules .gr-tools{display:flex;flex-wrap:wrap;gap:5px}
.gx-rules .gr-tools button{font-size:9.6px;padding:5px 8px}
.gx-rules .gr-form-actions{display:flex;gap:10px;margin-top:20px}
.gx-rules button.gr-primary{background:var(--gr-accent);border-color:var(--gr-accent);color:#17191e;font-weight:700}
.gx-rules #gr-editor-status{color:var(--gr-accent)}
@media(max-width:600px){.gx-rules{padding:22px 10px}.gx-rules .gr-category{padding:18px 12px}.gx-rules .gr-category h2{font-size:12.8px}.gx-rules .gr-header h1{font-size:17.6px}.gx-rules .gr-edit-game{padding:10px}.gx-rules .gr-edit-category{padding:8px}.gx-rules .gr-edit-question{padding:9px}}
