.rules-page { max-width: 980px; margin: 0 auto; padding: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.rules-page > * { min-width: 0; }
#r-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; background: var(--panel); }
.panel h2 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--accent); }
.notice { margin: 0; padding: .5rem .8rem; border: 1px solid #ffb86b; border-radius: 8px; color: #ffb86b; }
.live { display: grid; gap: .6rem; }
.live-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; }
.live-row b { font-size: 1.05rem; }
.status-pill { display: inline-block; padding: .05rem .7rem; border-radius: 999px; border: 1px solid currentColor; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.status-pill.online { color: var(--c-toxins); }
.status-pill.stale { color: #ffb86b; }
.status-pill.offline { color: var(--warn); }
.bar { height: 10px; border-radius: 999px; background: #0a111c; border: 1px solid var(--line); overflow: hidden; max-width: 24rem; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; margin: .5rem 0 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.rules-text h3 { margin: 1.2rem 0 .3rem; font-size: 1.05rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line); }
.rules-text h3:first-child { margin-top: 0; }
.rules-text p, .rules-text ul { max-width: 75ch; line-height: 1.65; margin: .4rem 0; overflow-wrap: anywhere; }
.rules-text .second { color: var(--muted); border-left: 2px solid var(--line); padding-left: .6rem; }
.tut-scroll { overflow-x: auto; max-width: 100%; }
.tut-table { border-collapse: collapse; font-size: .85rem; min-width: 100%; }
.tut-table th, .tut-table td { border: 1px solid var(--line); padding: .25rem .5rem; text-align: left; vertical-align: top; }
.tut-table th { background: #0a111c; color: var(--accent); }
.tut-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
@media (max-width: 600px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 0; } .facts dd { margin-bottom: .5rem; } }
a.tab { text-decoration: none; display: inline-block; color: inherit; }
#r-rounds th, #r-rounds td { white-space: nowrap; }
@media (max-width: 520px) { #r-rounds { font-size: .78rem; } #r-rounds th, #r-rounds td { padding: .2rem .2rem; white-space: normal; } }
