.evo-rules-open { overflow: hidden; }
.evo-rules-dialog, .evo-rules-dialog * { box-sizing: border-box; }
.evo-rules-dialog { position: fixed; inset: 0; margin: auto; width: min(1040px, calc(100vw - 40px)); height: min(880px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; color: #cbd4e2; background: #0c121c; border: 1px solid #435268; border-radius: 0; box-shadow: 0 30px 100px #000d; font-family: var(--evo-ui-font, 'Segoe UI', sans-serif); }
.evo-rules-dialog[open] { display: flex; flex-direction: column; }
.evo-rules-dialog::backdrop { background: #03060bd9; backdrop-filter: blur(5px); }
.evo-rules-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px; background: #111a27; border-bottom: 1px solid #2b3748; flex-shrink: 0; }
.evo-rules-bar h2 { margin: 0; color: #acc3eb; font-size: 28px; font-weight: 300; line-height: 1.3; }
.evo-rules-dialog button { cursor: pointer; font: 400 15px var(--evo-ui-font, 'Segoe UI', sans-serif); border: 1px solid #4c5870; color: #e0e6f0; background: #222c3e; padding: 10px 22px; border-radius: 0; box-shadow: none; }
.evo-rules-dialog .evo-rules-x { width: 40px; height: 40px; padding: 0; font-size: 28px; font-weight: 300; background: transparent; }
.evo-rules-dialog button:hover { background: #303d54; }
.evo-rules-scroll { flex: 1; min-height: 0; padding: 30px; overflow: auto; overscroll-behavior: contain; scrollbar-color: #52617a #101722; font-size: 16px; line-height: 1.8; }
.evo-rules { color: #c5cfdd; font-family: var(--evo-ui-font, 'Segoe UI', sans-serif); font-size: 16px; font-weight: 300; line-height: 1.85; overflow-wrap: anywhere; }
.evo-rules p { margin: 0 0 16px; color: inherit; font: inherit; }
.evo-rules .evo-rules-kicker { font-size: 12px; font-weight: 400; color: #a0b6d6; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; }
.evo-rules h2 { font-size: 34px; font-weight: 300; line-height: 1.3; margin: 0 0 10px; color: #dbe5f5; }
.evo-rules .evo-rules-version { font-size: 13px; color: #8e9db3; margin-bottom: 24px; }
.evo-rules .evo-rules-notice { padding: 20px 24px; border-left: 2px solid #abdb69; background: #161f23; color: #d1ddc6; }
.evo-rules-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; padding: 22px 0; border-bottom: 1px solid #293443; margin-bottom: 28px; }
.evo-rules a { color: #b4c8e9; text-decoration: none; }
.evo-rules-nav a { padding: 4px 0; font-size: 14px; line-height: 1.6; }
.evo-rules a:hover, .evo-rules-full:hover { color: #d6f4ae; text-decoration: underline; }
.evo-rules-sections section { margin: 0 0 28px; scroll-margin-top: 12px; }
.evo-rules-sections h3 { font-size: 25px; font-weight: 300; color: #d4dfef; line-height: 1.35; margin: 0 0 12px; display: flex; gap: 16px; }
.evo-rules-sections h3 span { font-size: 15px; font-weight: 400; color: #8197b9; padding-top: 6px; }
.evo-rules-contact { border-top: 1px solid #293443; padding-top: 20px; }
.evo-rules-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 30px; background: #111a27; border-top: 1px solid #2b3748; flex-shrink: 0; }
.evo-rules-full { font-size: 14px; color: #acbdd7; }
.evo-rules-dialog :focus-visible, .evo-rules :focus-visible, .server-rules-action a:focus-visible, .status .server .name a:focus-visible { outline: 2px solid #b3ff50; outline-offset: 4px; }
.evo-rules-sections section:focus { outline: none; }
.rules-page #content_center { padding: 24px; }
.server-rules-action { padding: 4px 20px 18px; }
.server-rules-action a { display: block; text-align: center; color: #c8d2e5; padding: 10px 12px; border: 1px solid #3b455a; background: #151b28; font-size: 14px; font-weight: 400; text-decoration: none; }
.server-rules-action a:hover { border-color: #8a9bb7; background: #202a3b; color: #edf2fb; }
.status .server .name a { display: inline-block; padding: 2px 8px; color: inherit; text-decoration: none; }
.status .server .name a:hover { color: #b3ff50; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
 .evo-rules-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
 .evo-rules-bar, .evo-rules-actions { padding: 12px 16px; gap: 12px; }
 .evo-rules-bar h2 { font-size: 23px; }
 .evo-rules-scroll { padding: 20px 16px; }
 .evo-rules-nav { grid-template-columns: 1fr; gap: 4px; }
 .evo-rules h2 { font-size: 28px; }
 .evo-rules .evo-rules-notice { padding: 14px 16px; }
 .evo-rules-sections h3 { font-size: 23px; }
 .evo-rules-full { font-size: 12px; }
 .evo-rules-dialog button { padding: 10px 16px; }
}
