/* Compact latest-revision comparison; the current body is highlighted separately. */
.rules-page .rule-card-content .rules-comparison-box {
 margin:0 0 14px;padding:12px;border:1px solid color-mix(in srgb,var(--category-accent) 20%,transparent);
 border-radius:8px;background:linear-gradient(180deg,color-mix(in srgb,var(--category-accent) 3%,transparent),transparent),var(--bg-panel);
 box-shadow:0 0 12px color-mix(in srgb,var(--category-accent) 5%,transparent),inset 0 1px color-mix(in srgb,var(--category-accent) 9%,transparent);
}
.rules-page .rules-comparison-heading {display:flex;align-items:center;gap:8px;margin:0 0 10px;color:var(--text-main);font:600 12px/1.5 Inter,sans-serif}
.rules-page .rules-comparison-heading>svg {width:15px;height:15px;flex:none;color:var(--category-accent)}
.rules-page .rules-comparison-heading time {color:var(--text-soft);font-size:10px;font-weight:400}
.rules-page .rules-comparison-heading button {display:grid;place-items:center;flex:none;margin-left:auto;width:24px;height:24px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--text-main);font:18px/1 Inter,sans-serif;cursor:pointer}
.rules-page .rules-comparison-heading button:focus-visible {outline:2px solid var(--category-accent);outline-offset:2px}
.rules-page .rules-comparison-items {display:grid;gap:10px;padding:9px 10px;border-radius:5px;background:var(--bg-main)}
.rules-page .rules-comparison-item+.rules-comparison-item {padding-top:10px;border-top:1px solid var(--border)}
.rules-page .rules-comparison-label {display:inline-flex;align-items:center;gap:5px;color:#e4c080;font:600 9px/1.5 Inter,sans-serif;letter-spacing:.4px}
.rules-page .rules-comparison-label svg {width:12px;height:12px;flex:none}
.rules-page .rules-comparison-item.is-added .rules-comparison-label {color:var(--green)}
.rules-page .rules-comparison-item.is-removed .rules-comparison-label {color:#e5a0a0}
.rules-page .rule-card-content .rules-comparison-item p {margin:4px 0 0;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.rules-page .rule-card-content .rules-comparison-item .rules-comparison-after {margin-top:3px;color:var(--text-main)}
@keyframes rules-comparison-enter {from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference) {
 .rules-page .rules-comparison-box {animation:rules-comparison-enter 240ms ease-out both}
}
@media(max-width:480px) {
 .rules-page .rules-comparison-heading {flex-wrap:wrap;gap:6px}
 .rules-page .rules-comparison-heading time {font-size:9px}
 .rules-page .rule-card-content .rules-comparison-box {padding:10px}
}
/* Inline comparison changes only paint; original content DOM is restored on close. */
.rules-page .rule-card-content .rules-inline-change {
 --inline-accent:var(--green);color:inherit;border:0;border-radius:3px;
 background:color-mix(in srgb,var(--inline-accent) 10%,transparent);
 box-shadow:inset 0 -1px color-mix(in srgb,var(--inline-accent) 32%,transparent);
 padding:0;text-decoration:none;box-decoration-break:clone;-webkit-box-decoration-break:clone;
 overflow-wrap:anywhere;
}
.rules-page .rule-card-content del.rules-inline-change {
 --inline-accent:#e5a0a0;color:#e5a0a0;text-decoration:line-through;
}
.rules-page .rule-card-content .rules-inline-block {
 border-radius:4px;
 background:color-mix(in srgb,var(--green) 6%,transparent);
 box-shadow:inset 2px 0 color-mix(in srgb,var(--green) 55%,transparent);
}
.rules-page .rule-card-content .rules-inline-block.is-removed {
 background:rgba(229,160,160,.06);box-shadow:inset 2px 0 rgba(229,160,160,.5);
}
.rules-page .rule-card-content.is-comparing {overflow-anchor:none}
.rules-page .rule-card-content .rules-inline-unmatched {color:var(--text-soft);font-size:11px}
@keyframes rules-inline-flash {
 0%,13.333% {background-color:color-mix(in srgb,var(--inline-accent) 30%,transparent);box-shadow:0 0 12px color-mix(in srgb,var(--inline-accent) 25%,transparent),inset 0 -1px color-mix(in srgb,var(--inline-accent) 65%,transparent)}
 50% {background-color:color-mix(in srgb,var(--inline-accent) 18%,transparent);box-shadow:0 0 6px color-mix(in srgb,var(--inline-accent) 12%,transparent),inset 0 -1px color-mix(in srgb,var(--inline-accent) 45%,transparent)}
 100% {background-color:color-mix(in srgb,var(--inline-accent) 10%,transparent);box-shadow:inset 0 -1px color-mix(in srgb,var(--inline-accent) 32%,transparent)}
}
@media(prefers-reduced-motion:no-preference) {
 .rules-page .rule-card-content.is-comparing>.rules-current-diff ins.rules-inline-change {animation:rules-inline-flash 3000ms ease-in-out both}
 .rules-page .rule-card-content.is-comparing>.rules-current-diff .rules-inline-block.is-added {animation:rules-inline-row-flash 3000ms ease-in-out both}
}
@keyframes rules-inline-row-flash {
 0%,13.333% {background-color:color-mix(in srgb,var(--green) 20%,transparent);box-shadow:inset 2px 0 var(--green),0 0 14px color-mix(in srgb,var(--green) 20%,transparent)}
 50% {background-color:color-mix(in srgb,var(--green) 12%,transparent);box-shadow:inset 2px 0 color-mix(in srgb,var(--green) 75%,transparent),0 0 7px color-mix(in srgb,var(--green) 10%,transparent)}
 100% {background-color:color-mix(in srgb,var(--green) 6%,transparent);box-shadow:inset 2px 0 color-mix(in srgb,var(--green) 55%,transparent)}
}
/* Local enhancement: one shared surface, independent of disclosure state. */
.rules-page {
 --rules-rule-gap:10px; --rules-category-gap:36px;
 /* Exact surface, border and radius of this page's Son Değişiklikler panel. */
 --rules-panel-surface:rgba(255,255,255,.01);
 --rules-panel-border:rgba(255,255,255,.05); --rules-panel-radius:10px;
}
.rules-page .rules-copy-link {
 display:inline-flex; align-items:center; justify-content:center; gap:9px;
 min-height:42px; max-width:100%; padding:10px; box-sizing:border-box;
 border:1px solid #9aff561b; border-radius:999px;
 background:linear-gradient(145deg,#ffffff0250,transparent 65%),var(--bg-panel,#0b110d);
 color:#dbe5de; box-shadow:0 8px 24px #0002; overflow:hidden;
 font:600 11px/1.5 Inter,sans-serif; white-space:normal; overflow-wrap:anywhere; text-align:center; cursor:pointer;
 transition:border-color 180ms ease,background 180ms ease,box-shadow 180ms ease;
}
.rules-page .rules-copy-link svg { width:16px; height:16px; flex:none; }
.rules-page .rules-copy-link:hover { background:#1b291f; border-color:#9aff5670; box-shadow:0 0 16px #9aff560c; }
.rules-page .rules-copy-link:active { background:#18241b; box-shadow:inset 0 1px 3px #0003; }
.rules-page .rules-copy-link.is-copied { color:var(--green); border-color:#9aff5640; }
.rules-page .rules-copy-link:disabled { cursor:progress; }
.rules-page .rules-copy-link:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
.rules-page .rules-copy-status {
 position:absolute; width:1px; height:1px; padding:0; margin:-1px;
 overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
.rules-page .rule-card-number { width:auto; min-width:32px; max-width:90px; padding:0 6px; box-sizing:border-box; overflow-wrap:anywhere; }
.rules-page .rules-search-field {
 /* Match faq.css search-field geometry, surface and transition. */
 display:flex;align-items:center;min-width:0;min-height:54px;padding:0 16px;gap:12px;border-radius:8px;
 border:1px solid var(--border);background:var(--bg-panel);
 box-shadow:inset 0 1px #ffffff04,0 0 12px color-mix(in srgb,var(--green) 5%,transparent);
 transition:border-color 200ms ease,background 200ms ease,box-shadow 200ms ease;
}
.rules-page .rules-search-field>svg {width:19px;height:19px;flex:none;color:var(--text-main)}
.rules-page .rules-search-field input {
 min-width:0;width:100%;padding:15px 0;border:0;outline:none;border-radius:0;
 background:transparent;color:var(--text-main);font:400 14px/1.6 Inter,sans-serif;
}
.rules-page .rules-search-field input::placeholder {color:var(--text-soft)}
.rules-page .rules-search-field:focus-within {
 border-color:var(--profile-action-hover-border);background:var(--bg-soft);
 box-shadow:0 0 0 2px var(--profile-action-surface),0 0 16px color-mix(in srgb,var(--green) 9%,transparent);
}
.rules-page .rules-search-shortcut {
 display:grid; place-items:center; flex:0 0 23px; height:23px;
 border:1px solid var(--border);border-radius:5px;
 background:var(--bg-soft);color:var(--text-soft);font:500 12px/1 ui-monospace,monospace;
 box-shadow:inset 0 1px #ffffff04;pointer-events:none;
}
.rules-page .rules-search-clear {
 display:grid;place-items:center;flex:none;width:32px;height:32px;
 border:1px solid var(--border);border-radius:6px;background:var(--bg-soft);
 color:var(--text-main);font-size:22px;cursor:pointer;
}
@media(max-width:600px) {.rules-page .rules-search-field input {font-size:13px}}
.rules-page .rules-count-badge {
 color:#dbe5de;
 background:linear-gradient(145deg,#ffffff0250,transparent 65%),var(--bg-panel,#0b110d);
 border:1px solid #ffffff12;border-radius:999px;box-shadow:none;
 font-variant-numeric:tabular-nums;text-align:center;
 transition:color 250ms ease,border-color 250ms ease,background-color 250ms ease,box-shadow 250ms ease;
}
.rules-page .rules-category-nav.is-enhanced .rules-category-label small {
 display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
 min-width:22px; padding:3px 5px; text-align:center;
 font-size:9px; font-weight:500; line-height:1.3; font-variant-numeric:tabular-nums;
}
.rules-page .rules-category-nav.is-enhanced .rules-category-link.is-current small {
 color:color-mix(in srgb,var(--category-accent) 65%,#dbe5de);
 border-color:color-mix(in srgb,var(--category-accent) 28%,transparent);
 background-color:color-mix(in srgb,var(--category-accent) 7%,var(--bg-panel,#0b110d));
 box-shadow:0 0 5px color-mix(in srgb,var(--category-accent) 5%,transparent);
}
@media(hover:hover) {
 .rules-page .rules-search-field:hover:not(:focus-within) {border-color:color-mix(in srgb,var(--border),white 6%)}
 .rules-page .rules-category-nav.is-enhanced .rules-category-link:hover:not(.is-current) small {
  border-color:rgba(255,255,255,.15);
 }
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-search-field,.rules-page .rules-count-badge { transition:none; }
}
.rules-page .rules-category-section {
 scroll-margin-top:var(--rules-nav-top,112px); overflow:visible;
 padding:0; border:0; border-radius:0; background:none; box-shadow:none;
}
.rules-page .rules-category-section + .rules-category-section { margin-top:calc(var(--rules-category-gap) - 20px); } /* plus the existing content gap */
.rules-page .rules-category-header {
 min-height:0; padding:0; margin-bottom:16px; gap:16px;
 flex-direction:row; align-items:flex-start; border:0; background:none; box-shadow:none;
}
.rules-page .rules-category-header>div:first-child { flex:1; min-width:0; }
.rules-page .rules-category-header h2 {
 display:grid; grid-template-columns:42px max-content minmax(0,1fr); align-items:center; gap:10px;
 margin:0; color:#e4eae5; font-size:28px; line-height:1.25; font-weight:800; letter-spacing:-.6px;
}
.rules-page .rules-category-emblem {
 position:relative; isolation:isolate; overflow:visible;
 width:42px; height:42px; display:grid; place-items:center; border-radius:10px;
 color:var(--category-accent); border:1px solid color-mix(in srgb,var(--category-accent) 26%,transparent);
 background:color-mix(in srgb,var(--category-accent) 6%,transparent); box-sizing:border-box;
 box-shadow:0 0 8px color-mix(in srgb,var(--category-accent) 10%,transparent);
}
.rules-page .rules-category-pulse {
 position:absolute; inset:0; box-sizing:border-box; border-radius:inherit;
 border:1px solid color-mix(in srgb,var(--category-accent) 55%,transparent);
 box-shadow:0 0 5px color-mix(in srgb,var(--category-accent) 15%,transparent);
 opacity:0; transform:scale(1); pointer-events:none; z-index:-1;
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-category-pulse { display:none; }
}
.rules-page .rules-category-emblem .rules-topic-icon {
 filter:drop-shadow(0 0 2px color-mix(in srgb,var(--category-accent) 22%,transparent));
}
.rules-page .rules-category-header h2 .rules-topic-icon { width:23px; height:23px; }
.rules-page .rules-category-index {
 color:var(--category-accent); font-size:12px; font-weight:700; letter-spacing:.5px; font-variant-numeric:tabular-nums;
}
.rules-page .rules-category-name {
 position:relative; min-width:0; overflow-wrap:anywhere; text-wrap:balance; padding-inline-end:.16em;
 font-family:'Inter',sans-serif; font-weight:800; font-style:italic; letter-spacing:-.045em;
 color:#f1f5f2;
 text-shadow:0 0 14px color-mix(in srgb,var(--category-accent) 18%,transparent),
  0 0 4px color-mix(in srgb,var(--category-accent) 8%,transparent);
 transition:text-shadow 220ms ease;
}
@media(hover:hover) and (pointer:fine) {
 .rules-page .rules-category-header:hover .rules-category-name {
  text-shadow:0 0 18px color-mix(in srgb,var(--category-accent) 24%,transparent),
   0 0 5px color-mix(in srgb,var(--category-accent) 12%,transparent);
 }
}
.rules-page .rules-category-title-line {
 position:absolute; left:0; bottom:-4px; width:var(--rules-title-line-width,100%); height:2px;
 border-radius:2px; background:var(--category-accent); opacity:0; transform:scaleX(0); transform-origin:left;
 box-shadow:0 0 5px color-mix(in srgb,var(--category-accent) 18%,transparent); pointer-events:none;
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-category-name { animation:none; transition:none; }
}
.rules-page .rules-category-header p { margin:7px 0 0 52px; color:#8b968e; font-size:12px; line-height:1.75; }
.rules-page .rules-category-count {
 width:auto; min-width:32px; height:30px; padding:0 9px; margin-top:6px; gap:0;
 flex-direction:row; box-sizing:border-box;
}
.rules-page .rules-category-count strong { color:inherit; font-size:13px; font-variant-numeric:tabular-nums; }
.rules-page .rules-category-count span { color:#8b968e; font-size:10px; font-weight:600; letter-spacing:0; }
.rules-page .rules-category-section .rules-group { padding:0; border:0; background:none; box-shadow:none; }
.rules-page .rules-category-section .rules-list { gap:var(--rules-rule-gap); }
.rules-page .rules-category-section .rule-card {
 position:relative; isolation:isolate; padding:0; margin:0;
 border:1px solid var(--rules-panel-border); border-radius:var(--rules-panel-radius);
 background:var(--rules-panel-surface); box-shadow:none;
 transition:background-color 220ms ease,border-color 220ms ease,box-shadow 220ms ease;
}
.rules-page .rules-category-section .rule-card::before {
 content:""; position:absolute; left:-1px; top:12px; bottom:12px; width:1px; border-radius:2px;
 background:var(--category-accent); opacity:.12; pointer-events:none; transition:opacity 220ms ease;
}
.rules-page .rules-category-section .rule-card.is-open {
 background:var(--rules-panel-surface);
 border-color:color-mix(in srgb,var(--category-accent) 26%,transparent);
 box-shadow:0 0 18px color-mix(in srgb,var(--category-accent) 5%,transparent);
}
.rules-page .rules-category-section .rule-card.is-open::before { opacity:.5; }
.rules-page .rules-category-section .rule-card::after {
 content:""; position:absolute; inset:0 0 auto; height:120px; max-height:100%; border-radius:inherit;
 background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--category-accent) 10%,transparent),transparent 72%);
 opacity:0; transition:opacity 320ms ease; pointer-events:none; z-index:-1;
}
.rules-page .rules-category-section .rule-card.is-open::after { opacity:1; }
.rules-page .rule-card-toggle {
 display:grid; grid-template-columns:minmax(40px,max-content) minmax(0,1fr) 28px;
 gap:12px; padding:16px 18px; box-sizing:border-box; border-radius:9px;
}
.rules-page .rule-card-toggle:focus-visible { outline:2px solid #9bb4a2; outline-offset:3px; }
.rules-page .rule-card-title { color:#dce4de; font-size:var(--rules-font-title); font-weight:600; line-height:1.55; text-shadow:none; transition:color 220ms ease; }
.rules-page .rule-card-number {
 min-width:40px; height:28px; padding:0 6px; color:var(--category-accent);
 font:600 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; letter-spacing:.15px;
 border-color:color-mix(in srgb,var(--category-accent) 12%,transparent);
 background:color-mix(in srgb,var(--category-accent) 4%,transparent); box-shadow:none;
 transition:background-color 220ms ease,border-color 220ms ease,box-shadow 220ms ease;
}
.rules-page .rule-card-chevron {
 display:grid; place-items:center; width:28px; height:28px; margin:0;
 color:var(--text-soft); background:var(--rules-panel-surface);
 border:1px solid var(--rules-panel-border); border-radius:5px; box-sizing:border-box; box-shadow:none;
 transition:transform 220ms ease,color 220ms ease,border-color 220ms ease,background-color 220ms ease;
}
.rules-page .rule-card-chevron svg { width:16px; height:16px; }
.rules-page .rule-card.is-open .rule-card-chevron {
 color:var(--category-accent); border-color:color-mix(in srgb,var(--category-accent) 16%,transparent); background:var(--rules-panel-surface);
}
.rules-page .rule-card-answer { transition:grid-template-rows 240ms ease,opacity 220ms ease,visibility 240ms ease; }
.rules-page .rule-card-answer .rule-card-content { position:relative; padding:16px 18px 0 70px; font-size:var(--rules-font-body); line-height:1.85; }
.rules-page .rule-card-answer .rule-card-content::before {
 content:""; position:absolute; top:0; left:70px; right:18px; height:1px;
 background:linear-gradient(90deg,rgba(255,255,255,.085),rgba(255,255,255,.025));
}
.rules-page .rule-card-content p { color:#9aa69e; }
.rules-page .rule-card-content p + p { margin-top:12px; }
.rules-page .rule-card-content ul,.rules-page .rule-card-content ol { padding-left:20px; margin:10px 0; color:#9aa69e; }
.rules-page .rule-card-content li + li { margin-top:5px; }
.rules-page .rule-card-content a { color:var(--category-accent); text-underline-offset:3px; overflow-wrap:anywhere; }
.rules-page .rule-card-content .rule-bullet-list { list-style:none; padding:0; margin:0; }
.rules-page .rule-card-content p + .rule-bullet-list { margin-top:14px; }
.rules-page .rule-card-content .rule-bullet-list>li { position:relative; padding-left:18px; margin:0; white-space:normal; overflow-wrap:anywhere; }
.rules-page .rule-card-content .rule-bullet-list>li + li { margin-top:10px; }
.rules-page .rule-bullet-list>li::before {
 content:""; position:absolute; left:2px; top:.78em; width:5px; height:5px;
 background:var(--category-accent); border-radius:1px; transform:rotate(45deg);
 opacity:.8; box-shadow:0 0 5px color-mix(in srgb,var(--category-accent) 12%,transparent);
}
.rules-page .rule-card-answer .rules-copy-link { margin:12px 18px 18px 70px; max-width:calc(100% - 88px); }
@media(hover:hover) and (pointer:fine) {
 .rules-page .rules-category-section .rule-card:hover:not(.is-open) {
  transform:none; background:var(--profile-neutral-hover,rgba(255,255,255,.025)); border-color:rgba(255,255,255,.1); box-shadow:none;
 }
 .rules-page .rules-category-section .rule-card:hover:not(.is-open)::before { opacity:.35; }
 .rules-page .rule-card:hover .rule-card-title { color:#f0f4f1; }
 .rules-page .rule-card:hover .rule-card-number {
  border-color:color-mix(in srgb,var(--category-accent) 20%,transparent);
  background-color:color-mix(in srgb,var(--category-accent) 6%,transparent); box-shadow:none;
 }
 .rules-page .rule-card:hover .rule-card-chevron { background:var(--profile-neutral-hover); border-color:rgba(255,255,255,.1); }
}
@media(max-width:900px) {
 .rules-page { --rules-rule-gap:9px; }
 .rules-page .rules-category-header h2 { font-size:26px; }
}
@media(max-width:600px) {
 .rules-page { --rules-rule-gap:8px; }
 .rules-page .rules-category-header { gap:10px; margin-bottom:12px; }
 .rules-page .rules-category-header h2 { grid-template-columns:34px max-content minmax(0,1fr); gap:7px; font-size:22px; letter-spacing:-.4px; }
 .rules-page .rules-category-emblem { width:34px; height:34px; border-radius:8px; }
 .rules-page .rules-category-header h2 .rules-topic-icon { width:20px; height:20px; }
 .rules-page .rules-category-index { font-size:10px; }
 .rules-page .rules-category-header p { margin-left:41px; font-size:11px; }
 .rules-page .rules-category-count { min-width:28px; padding:0 7px; height:28px; margin-top:3px; }
 .rules-page .rule-card-toggle { padding:13px 12px; gap:9px; }
 .rules-page .rule-card-answer .rule-card-content { padding:14px 12px 0; }
 .rules-page .rule-card-answer .rule-card-content::before { left:12px; right:12px; }
 .rules-page .rule-card-answer .rules-copy-link { margin:12px; max-width:calc(100% - 24px); }
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-category-section .rule-card,
 .rules-page .rules-category-section .rule-card::before,
 .rules-page .rules-category-section .rule-card::after,
 .rules-page .rule-card-title,.rules-page .rule-card-number,
 .rules-page .rule-card-chevron,.rules-page .rule-card-answer,.rules-page .rules-copy-link { transition:none; }
 .rules-page .rules-category-section .rule-card:hover { transform:none; }
}
.rules-page .rules-category-section .rules-category-header h2 .rules-topic-icon { color:var(--category-accent,#58A6FF); }
.rules-page .rules-sidebar-card {
 border:1px solid var(--rules-panel-border); border-radius:var(--rules-panel-radius);
 background:var(--rules-panel-surface); box-shadow:none;
}
.rules-page .rules-sidebar-header { min-height:42px; padding:0 12px; border-color:var(--rules-panel-border); }
.rules-page .rules-sidebar-header span { font-size:10px; font-weight:600; letter-spacing:1px; color:var(--text-soft); }
.rules-page .rules-sidebar-header strong { width:20px; height:20px; border-radius:5px; font-size:9px; font-weight:600; }
@media(min-width:901px) {
 .rules-page .rules-layout { grid-template-columns:minmax(240px,280px) minmax(0,1fr); }
}
.rules-page .rules-category-nav {
 position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr); gap:2px; padding:5px;
}
.rules-page .rules-nav-indicator {
 position:absolute; left:0; top:0; pointer-events:none; z-index:-1;
 border:1px solid color-mix(in srgb,var(--category-accent) 16%,transparent); border-radius:6px;
 background:color-mix(in srgb,var(--category-accent) 6%,rgba(255,255,255,.02));
 box-shadow:0 0 8px color-mix(in srgb,var(--category-accent) 5%,transparent);
 opacity:0;
 transition:transform 380ms cubic-bezier(.22,.8,.25,1),opacity 200ms ease;
}
.rules-page .rules-nav-indicator.is-visible { opacity:1; }
.rules-page .rules-nav-indicator::before {
 content:""; position:absolute; left:0; top:10px; bottom:10px; width:1px;
 border-radius:2px; background:var(--category-accent);
 box-shadow:0 0 3px color-mix(in srgb,var(--category-accent) 35%,transparent);
}
.rules-page .rules-category-nav.is-enhanced .rules-category-link {
 display:grid; min-height:50px; padding:8px 9px; border-radius:6px;
 grid-template-columns:25px 17px minmax(0,1fr) max-content;
 grid-template-rows:auto 1px;
 column-gap:7px; row-gap:4px; align-items:center;
}
.rules-page .rules-category-nav.is-enhanced .rules-category-number {
 grid-column:1; grid-row:1; width:25px; height:25px; border-radius:5px; font-size:10px; font-weight:600;
}
.rules-page .rules-category-nav.is-enhanced .rules-nav-icon { grid-column:2; grid-row:1; }
.rules-page .rules-category-nav.is-enhanced .rules-category-label { display:contents; }
.rules-page .rules-category-nav.is-enhanced .rules-category-label strong {
 grid-column:3; grid-row:1; min-width:0; white-space:nowrap;
 overflow:hidden; text-overflow:ellipsis; font-size:13px; font-weight:600; line-height:1.35;
}
.rules-page .rules-category-nav.is-enhanced .rules-category-label small {
 grid-column:4; grid-row:1; justify-self:end; white-space:nowrap;
}
.rules-page .rules-nav-progress-track {
 grid-column:3 / 5; grid-row:2;
 display:block; position:relative; width:100%; height:1px; margin:0;
 background:rgba(255,255,255,.065); border-radius:2px; pointer-events:none;
}
.rules-page .rules-nav-progress {
 position:absolute; inset:0; border-radius:2px;
 background:var(--category-accent);
 box-shadow:0 0 3px color-mix(in srgb,var(--category-accent) 45%,transparent);
 transform:scaleX(var(--rules-nav-progress,0)); transform-origin:left;
 transition:transform 100ms linear;
}
.rules-page .rules-category-nav.is-enhanced .rules-category-link {
 background:transparent; border-color:transparent; box-shadow:none;
 transition:background 220ms ease,border-color 220ms ease;
}
.rules-page .rules-category-link strong { transition:color 220ms ease; }
.rules-page .rules-category-nav.is-enhanced .rules-category-link.is-current strong { color:var(--category-accent); }
.rules-page .rules-category-nav.is-enhanced .rules-category-link.active .rules-category-number {
 color:var(--category-accent); border-color:color-mix(in srgb,var(--category-accent) 20%,transparent);
 background:color-mix(in srgb,var(--category-accent) 5%,transparent);
}
.rules-page .rules-category-nav.is-enhanced .rules-category-link:focus-visible {
 outline:2px solid var(--category-accent); outline-offset:2px;
}
.rules-page .rules-nav-icon { width:17px; height:17px; flex:0 0 17px; display:grid; place-items:center; }
.rules-page .rules-nav-icon .rules-topic-icon { width:17px; height:17px; color:var(--category-accent); transition:filter 220ms ease; }
.rules-page .rules-category-link.is-current .rules-topic-icon { filter:drop-shadow(0 0 3px currentColor); }
.rules-page .rules-category-link.is-current .rules-nav-icon { animation:rules-nav-select 540ms ease both; }
@media(hover:hover) {
 .rules-page .rules-category-nav.is-enhanced .rules-category-link:hover { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.06); }
 .rules-page .rules-category-link:hover strong { color:#edf3ee; }
 .rules-page .rules-category-link:hover .rules-nav-icon { animation:rules-nav-icon 540ms ease both; }
 .rules-page .rules-category-link:hover .rules-topic-icon { filter:drop-shadow(0 0 3px currentColor); }
}
@keyframes rules-nav-icon {
 0%{transform:translateX(0) scale(1)}
 25%{transform:translateX(-2.5px) scale(1.06)}
 55%{transform:translateX(2px) scale(1.12)}
 100%{transform:translateX(0) scale(1.14)}
}
@keyframes rules-nav-select {
 0%{transform:scale(1);filter:drop-shadow(0 0 0 transparent)}
 45%{transform:scale(1.15);filter:drop-shadow(0 0 7px var(--category-accent))}
 100%{transform:scale(1.04);filter:drop-shadow(0 0 0 transparent)}
}
@media(min-width:901px) {
 .rules-page .rules-sidebar { top:var(--rules-nav-top,112px); align-self:start; }
 .rules-page .rules-sidebar-card { max-height:calc(100dvh - var(--rules-nav-top,112px) - 16px); overflow-y:auto; scrollbar-width:thin; }
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-nav-indicator,.rules-page .rules-nav-progress,.rules-page .rules-category-nav.is-enhanced .rules-category-link,.rules-page .rules-category-link strong,.rules-page .rules-nav-icon .rules-topic-icon { transition:none; }
 .rules-page .rules-category-nav .rules-category-link .rules-nav-icon { animation:none; }
}

/* Rule footer and real, optional content revisions. */
.rules-page .rules-visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0; }
.rules-page .rules-rule-footer { display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 18px 18px 70px;padding-top:14px;border-top:1px solid rgba(255,255,255,.065); }
.rules-page .rules-rule-meta { display:grid;gap:4px;min-width:0;color:#9aa69e;font:500 11px/1.6 Inter,sans-serif; }
.rules-page .rules-rule-meta time { color:#c3cec6;margin-left:5px;font-variant-numeric:tabular-nums; }
.rules-page .rules-rule-meta small { color:#78867c;font-size:10px; }
.rules-page .rules-rule-actions { display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0; }
.rules-page .rule-card-answer .rules-copy-link { width:40px;min-width:40px;height:40px;min-height:40px;padding:10px;margin:0;max-width:none;border-radius:999px; }
.rules-page .rules-copy-link svg { width:19px;height:19px; }
.rules-page .rules-link-check,.rules-page .rules-copy-link.is-copied .rules-link-icon { display:none; }
.rules-page .rules-copy-link.is-copied .rules-link-check { display:block; }
.rules-page .rules-history-toggle { display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;box-sizing:border-box;padding:10px;border:1px solid #ffffff12;border-radius:999px;background:linear-gradient(145deg,#ffffff0250,transparent 65%),var(--bg-panel,#0b110d);color:#dbe5de;box-shadow:0 8px 24px #0002;font:600 11px/1.5 Inter,sans-serif;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.rules-page .rules-history-toggle svg { width:16px;height:16px;flex:none; }
.rules-page .rules-history-toggle:hover { background:#1b211e;border-color:color-mix(in srgb,var(--category-accent) 22%,#ffffff12);box-shadow:0 0 12px color-mix(in srgb,var(--category-accent) 5%,transparent); }
.rules-page .rules-history-toggle:focus-visible,.rules-page [data-history-close]:focus-visible { outline:2px solid var(--category-accent);outline-offset:3px; }
.rules-page .rules-history { display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;margin:0 18px 0 70px;transition:grid-template-rows 300ms ease,opacity 250ms ease,visibility 300ms ease; }
.rules-page .rules-history.is-open { grid-template-rows:1fr;opacity:1;visibility:visible; }
.rules-page .rules-history-clip { min-height:0;overflow:hidden; }
.rules-page .rules-history-panel { padding:16px;margin-bottom:18px;border:1px solid var(--rules-panel-border);border-radius:var(--rules-panel-radius);background:var(--rules-panel-surface);box-shadow:0 3px 12px #0002; }
.rules-page .rules-history-heading,.rules-page .rules-history-heading>div { display:flex;align-items:center;gap:9px; }
.rules-page .rules-history-heading { justify-content:space-between; }
.rules-page .rules-history-heading>div>span { color:var(--category-accent);font-size:19px; }
.rules-page .rules-history-heading h5 { margin:0;color:#dfe7e1;font:600 13px/1.5 Inter,sans-serif; }
.rules-page [data-history-close] { display:grid;place-items:center;width:30px;height:30px;flex:none;border:1px solid #ffffff12;border-radius:6px;background:#ffffff04;color:#aab6ae;font-size:20px;cursor:pointer; }
.rules-page .rules-history-note { margin:8px 0 16px;color:#89968e;font-size:10px;line-height:1.8; }
.rules-page .rules-revision + .rules-revision { margin-top:18px;padding-top:18px;border-top:1px solid #ffffff0d; }
.rules-page .rules-revision>header { display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:10px;color:#adbab1;font-size:10px;font-variant-numeric:tabular-nums; }
.rules-page .rules-revision>header>span,.rules-page .rules-revision time small { color:#76857b; }
.rules-page .rules-revision-note { margin:0 0 12px;color:#b4c0b8;font-size:11px;line-height:1.8;white-space:normal;overflow-wrap:anywhere; }
.rules-page .rules-change-list { display:grid;gap:9px;list-style:none;padding:0;margin:0; }
.rules-page .rules-change { --change-color:var(--category-accent);position:relative;isolation:isolate;overflow:hidden;padding:12px;border:1px solid color-mix(in srgb,var(--change-color) 14%,transparent);border-left:2px solid color-mix(in srgb,var(--change-color) 48%,transparent);border-radius:6px;background:#ffffff02;min-width:0; }
.rules-page .rules-change.is-added { --change-color:#75bd91;background:color-mix(in srgb,var(--change-color) 5%,#111513); }
.rules-page .rules-change.is-removed { --change-color:#d68a8a;background:color-mix(in srgb,var(--change-color) 5%,#151112); }
.rules-page .rules-change:is(.is-added,.is-removed)::before {
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;opacity:0;
 background:linear-gradient(110deg,color-mix(in srgb,var(--change-color) 18%,transparent),color-mix(in srgb,var(--change-color) 7%,transparent));
 box-shadow:inset 3px 0 9px color-mix(in srgb,var(--change-color) 24%,transparent);
}
.rules-page .rules-history.is-open .rules-change:is(.is-added,.is-removed)::before { animation:rules-history-light 1250ms ease-out; }
@keyframes rules-history-light { 0% { opacity:1; } 25% { opacity:.72; } 100% { opacity:0; } }
.rules-page .rules-change-label { display:flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--change-color);font-size:9px;letter-spacing:.4px; }
.rules-page .rules-change-label b { font-size:14px;line-height:1; }
.rules-page .rules-change-label span { margin-left:auto;color:#88978e;letter-spacing:0; }
.rules-page .rules-change-text small { display:block;margin-bottom:5px;color:#8c9b92;font-size:9px; }
.rules-page .rules-change-text p { margin:0;color:#bdc9c1;font-size:11px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere; }
.rules-page .rules-change.is-removed p,.rules-page .is-edited .is-before p { color:#b9a0a0; }
.rules-page .rules-change.is-removed .rules-change-text p { color:#c19898;text-decoration:line-through;text-decoration-color:#b97e7e99;text-decoration-thickness:1px; }
.rules-page .is-edited .rules-change-text + .rules-change-text { margin-top:10px;padding-top:10px;border-top:1px solid #ffffff0b; }
@media(max-width:600px) {
 .rules-page .rules-rule-footer { margin:14px 12px 12px;flex-wrap:wrap;gap:10px; }
 .rules-page .rules-rule-meta { font-size:10px; }
 .rules-page .rules-rule-actions { margin-left:auto; }
 .rules-page .rules-history { margin:0 12px; }
 .rules-page .rules-history-panel { padding:12px;margin-bottom:12px; }
 .rules-page .rules-history-toggle { padding:8px 10px;font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-history,.rules-page .rules-history-toggle { transition:none; }
 .rules-page .rules-history.is-open .rules-change:is(.is-added,.is-removed)::before { animation:none;opacity:0; }
}

/* Local amber lighting; the reminder's dimensions and entry effect stay unchanged. */
.rules-page .rules-reminder {
 --rules-reminder-accent:#e1b95e;
 border-color:color-mix(in srgb,var(--rules-reminder-accent) 27%,transparent);
 background:
  radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--rules-reminder-accent) 6%,transparent),transparent 58%),
  radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--rules-reminder-accent) 5%,transparent),transparent 58%),
  linear-gradient(110deg,rgba(225,185,94,.045),rgba(225,185,94,.01)),#0e100c;
 box-shadow:0 -3px 16px color-mix(in srgb,var(--rules-reminder-accent) 6%,transparent),
  0 0 22px color-mix(in srgb,var(--rules-reminder-accent) 5%,transparent),
  inset 0 1px color-mix(in srgb,var(--rules-reminder-accent) 16%,transparent),
  inset 0 14px 24px -22px color-mix(in srgb,var(--rules-reminder-accent) 28%,transparent);
 transition:border-color 300ms ease,box-shadow 300ms ease;
}
@media(hover:hover) {
 .rules-page .rules-reminder:hover {
  border-color:color-mix(in srgb,var(--rules-reminder-accent) 38%,transparent);
  box-shadow:0 -3px 18px color-mix(in srgb,var(--rules-reminder-accent) 9%,transparent),
   0 0 24px color-mix(in srgb,var(--rules-reminder-accent) 8%,transparent),
   inset 0 1px color-mix(in srgb,var(--rules-reminder-accent) 22%,transparent),
   inset 0 14px 24px -22px color-mix(in srgb,var(--rules-reminder-accent) 34%,transparent);
 }
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-reminder { transition:none; }
}
/* Exact archive-card surface from pedia.css (354–355); neutral border retained on hover. */
.rules-page {
 --rules-hero-surface:var(--profile-surface,var(--bg-panel,#101512));
 --rules-hero-hover:var(--rules-hero-surface);
 --rules-hero-border:var(--profile-border,var(--border,#ffffff12));
 --rules-hero-border-hover:var(--rules-hero-border);
 --rules-hero-shadow:0 3px 12px #0002,0 0 14px color-mix(in srgb,var(--green) 3%,transparent),inset 0 1px color-mix(in srgb,var(--green) 7%,transparent);
 --rules-hero-shadow-hover:0 5px 16px #0003,0 0 20px color-mix(in srgb,var(--green) 6%,transparent),inset 0 1px color-mix(in srgb,var(--green) 12%,transparent);
}
.rules-page .rules-category-section .rule-card:not(.is-open) {
 box-shadow:var(--rules-hero-shadow);transition-duration:300ms;
}
@media(hover:hover) and (pointer:fine) {
 .rules-page .rules-category-section .rule-card:not(.is-open):hover {box-shadow:var(--rules-hero-shadow-hover)}
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-category-section .rule-card:not(.is-open) {transition:none}
}
/* Compact KiwiPedia metric surfaces, scoped to the rules hero only. */
.rules-page .rules-hero-aside .rules-recent {
 position:relative;min-width:0;padding:13px;border:1px solid var(--rules-hero-border);
 border-radius:14px;
 background:var(--rules-hero-surface);
 box-shadow:var(--rules-hero-shadow);
 transition:background-color 300ms ease,border-color 300ms ease,box-shadow 300ms ease;
}
.rules-page .rules-hero-aside .rules-recent h2 {
 display:flex;align-items:center;gap:8px;margin:0;padding:0 0 10px;
 border-bottom:1px solid var(--rules-hero-border);
 color:var(--text-main);font:600 12px/1.5 Inter,sans-serif;letter-spacing:.1px;text-transform:none;
}
.rules-page .rules-hero-aside .rules-recent h2 svg {width:16px;height:16px;flex:none;color:#f0f1f2}
.rules-page .rules-hero-aside .rules-recent-link {
 grid-template-columns:auto minmax(0,1fr) minmax(48px,max-content);
 min-width:0;min-height:36px;padding:6px 4px;gap:8px;
 border-bottom-color:var(--rules-hero-border);color:var(--text-main);
 background:transparent;
 transition:background-color 300ms ease,box-shadow 300ms ease;
}
.rules-page .rules-hero-aside .rules-recent-title {
 white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
 color:var(--text-main);font-weight:500;transition:color 300ms ease;
}
.rules-page .rules-hero-aside .rules-recent-link time {color:var(--text-soft);font-size:10px}
.rules-page .rules-hero-aside .rules-recent-empty {padding-top:10px;color:var(--text-soft)}
.rules-page .rules-hero-aside .rules-recent-number {color:var(--text-soft);font:600 10px/1.5 Inter,sans-serif}
.rules-page .rules-hero-aside .rules-recent-leading {display:flex;align-items:center;gap:6px;grid-column:1;grid-row:1;white-space:nowrap}
.rules-page .rules-hero-aside .rules-recent-type {
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;
 padding:0;box-sizing:border-box;border-radius:6px;
 color:var(--recent-type-color);background:color-mix(in srgb,var(--recent-type-color) 5%,transparent);
 border:1px solid color-mix(in srgb,var(--recent-type-color) 23%,transparent);
 box-shadow:none;
 font:600 8px/1.5 Inter,sans-serif;letter-spacing:.25px;
 transform:none;transform-origin:center center;
}
.rules-page .rules-hero-aside .rules-recent-type svg {
 display:block;flex:0 0 13px;width:13px;height:13px;
 stroke-width:2.8;transform:none;transition:filter 220ms ease;
}
.rules-page .rules-hero-aside .rules-recent-type.is-edited {--recent-type-color:#e4c080}
.rules-page .rules-hero-aside .rules-recent-type.is-added {--recent-type-color:var(--green)}
.rules-page .rules-hero-aside .rules-recent-type.is-removed {--recent-type-color:#e5a0a0}
@media(hover:hover) {
 .rules-page .rules-hero-aside .rules-recent-link:hover .rules-recent-type {
  animation:rules-nav-icon 540ms ease both;
 }
 .rules-page .rules-hero-aside .rules-recent-link:hover .rules-recent-type svg {filter:drop-shadow(0 0 3px currentColor)}
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-hero-aside .rules-recent-type svg {transition:none}
 .rules-page .rules-hero-aside .rules-recent-link:hover .rules-recent-type {animation:none}
}
.rules-page .rules-hero-aside .rules-recent-sidebar .rules-recent-badge:is(.is-new,.is-updated) {
 --recent-accent:#c7cace;color:#c7cace;border:1px solid rgba(255,255,255,.09);
 background:rgba(255,255,255,.025);box-shadow:none;transition:none;
}
.rules-page .rules-hero-aside .rules-recent-sidebar .rules-recent-link:is(:hover,:focus-visible) .rules-recent-badge:is(.is-new,.is-updated),
.rules-page .rules-hero-aside .rules-recent-sidebar .rules-recent-badge:is(.is-new,.is-updated):hover {
 border-color:rgba(255,255,255,.16);box-shadow:none;
}
.rules-page .rules-hero-aside .rules-recent-link:focus-visible {outline:2px solid #d7dade;outline-offset:2px;background:var(--profile-neutral-hover)}
@media(hover:hover) {
 .rules-page .rules-hero-aside .rules-recent:hover {
  background:var(--rules-hero-hover);border-color:var(--rules-hero-border-hover);
  box-shadow:var(--rules-hero-shadow-hover);
 }
 .rules-page .rules-hero-aside .rules-recent-link:hover {
  background:rgba(255,255,255,.035);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),inset 0 1px rgba(255,255,255,.035);
 }
 .rules-page .rules-hero-aside .rules-recent-link:hover .rules-recent-title {color:#edf3ee}
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-hero-aside :is(.rules-recent,.rules-recent-link) {transition:none}
 .rules-page .rules-hero-aside .rules-recent-title {transition:none}
 .rules-page .rules-hero-aside .rules-recent-link:hover .rules-recent-type {transform:none}
}
.rules-page .rules-page-header .rules-hero-stats {
 gap:10px;
}
.rules-page .rules-hero-stats>.rules-stat {
 --rules-stat-accent:var(--text-main);
 position:relative;display:flex;flex-direction:column;align-items:flex-start;
 justify-content:center;gap:10px;min-width:0;min-height:108px;padding:13px;
 border:1px solid var(--rules-hero-border);border-radius:14px;
 background:var(--rules-hero-surface);
 box-shadow:var(--rules-hero-shadow);
 transition:background-color 300ms ease,border-color 300ms ease,box-shadow 300ms ease;
}
.rules-page .rules-hero-stats>.rules-stat:last-child {gap:10px}
.rules-page .rules-hero-stats>.rules-stat::after {
 content:none;position:absolute;top:0;left:14px;width:24px;height:1px;
 background:var(--rules-stat-accent);opacity:.45;pointer-events:none;
}
.rules-page .rules-hero-stats .rules-stat-copy {
 display:flex;align-items:center;gap:8px;min-width:0;
}
.rules-page .rules-hero-stats .rules-stat-icon {
 display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;
 border:1px solid color-mix(in srgb,var(--rules-stat-accent) 13%,transparent);
 border-radius:9px;background:var(--profile-neutral-hover);
 color:#f0f1f2;
}
.rules-page .rules-hero-stats .rules-stat-icon svg {width:16px;height:16px}
.rules-page .rules-hero-stats .rules-stat-kicker {
 color:var(--text-soft);font:600 10px/1.5 Inter,sans-serif;letter-spacing:.35px;
 overflow-wrap:normal;
}
.rules-page .rules-hero-stats>.rules-stat>strong {
 flex:none;max-width:100%;min-width:0;color:var(--text-main);
 font:700 30px/1.15 Inter,sans-serif;letter-spacing:-1px;
 font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.rules-page .rules-hero-stats>.rules-stat:last-child>strong {
 max-width:100%;font-size:21px;line-height:1.3;letter-spacing:-.4px;
}
@media(hover:hover) {
 .rules-page .rules-hero-stats>.rules-stat:hover {
  background:var(--rules-hero-hover);border-color:var(--rules-hero-border-hover);
  box-shadow:var(--rules-hero-shadow-hover);
 }
}
@media(max-width:600px) {
 .rules-page .rules-page-header .rules-hero-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .rules-page .rules-hero-stats>.rules-stat {min-height:96px;padding:12px}
 .rules-page .rules-hero-stats>.rules-stat:last-child {
  grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;min-height:96px;
 }
 .rules-page .rules-hero-stats>.rules-stat:last-child>strong {max-width:48%;font-size:20px}
}
@media(max-width:340px) {
 .rules-page .rules-page-header .rules-hero-stats {grid-template-columns:minmax(0,1fr)}
 .rules-page .rules-hero-stats>.rules-stat {flex-direction:row;align-items:center;justify-content:space-between;min-height:64px}
}
@media(prefers-reduced-motion:reduce) {
 .rules-page .rules-hero-stats>.rules-stat {transition:none}
}
