.rules-intro{padding:22px;background:#29251f;border:1px solid #655538;border-radius:12px;margin-bottom:24px}.rules-intro p{font-size:15px;line-height:1.8;color:#c9bfae;margin:0}.rules-toolbar{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}.rules-toolbar label{font-size:14px;display:grid;gap:8px}.rules-toolbar .plain-input{min-width:200px;margin:0}#rules-status{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 0}#rules-status p{font-size:14px;color:#c2b8b8;line-height:1.7;margin:6px 0 0}#game-rules-form{margin-top:10px}#game-rules-form label{font-size:14px;display:grid;gap:9px}#game-rules-form .plain-input{margin:0;min-height:44px;width:100%;font-size:16px}.rule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0}.slot-rule-editor{border:1px solid #493f45;padding:20px;border-radius:10px;margin:20px 0;background:#211e23}.slot-rule-editor summary{font-size:20px;cursor:pointer;color:#e5c895;margin-bottom:16px}.slot-rule-editor table{width:100%;table-layout:fixed}.slot-rule-editor td,.slot-rule-editor th{padding:12px 8px;font-size:14px;white-space:normal}.slot-rule-editor th:first-child{width:50px}.slot-rule-editor td:first-child{font-size:23px}.rules-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rules-metrics article{padding:20px 16px;background:#242b25;border:1px solid #485243;border-radius:10px}.rules-metrics h4{font-size:18px;color:#ead0a1;margin:0 0 18px}.rules-metrics span{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:10px 0;color:#c4c8bd}.rules-metrics b{font-weight:500;color:#e1e6d8}.rules-metrics b.rule-warning{color:#e7b577}.rules-save-row{display:flex;align-items:flex-end;gap:18px;margin-top:24px}.rules-save-row label{flex:1}.rules-save-row button{min-height:47px}.rule-version{font-size:13px;color:#e1c588;line-height:1.8;margin:8px 0}.rule-player-note{font-size:13px;line-height:1.8}.rule-player-note p{margin:8px 0}#rules-preview{margin:20px 0;font-size:14px;line-height:1.7}#rules-preview-error{color:#e7ae96;font-size:14px}#rules-history{margin-top:18px}.rules-history-heading{font-size:23px;margin:35px 0 0}
@media(max-width:1100px){.rules-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.rules-intro{padding:18px}.rule-fields{gap:14px}.slot-rule-editor{padding:15px 10px}.slot-rule-editor th,.slot-rule-editor td{font-size:12px;padding:10px 5px}.slot-rule-editor table{min-width:350px}.slot-rule-editor .plain-input{padding:8px 5px}#rules-status{flex-wrap:wrap}.rules-save-row{flex-direction:column;align-items:stretch}.rules-metrics{gap:10px}.rules-metrics article{padding:16px 12px}.rules-metrics span{flex-direction:column;gap:4px;font-size:13px}.rules-toolbar{align-items:stretch}.rules-toolbar label{width:100%}.rules-toolbar .plain-input{width:100%}}

.rule-math-note{font-size:12px;line-height:1.7;color:#e7b577;margin:15px 0 0}
