.rules-history-shell { --history-radius:160px; --history-track-height:160px; --lever-offset:0px; --drop-lift:28px; --wheel-offset:0px; position:fixed; z-index:12; top:50%; left:calc(100% - 26px); width:44px; height:var(--history-track-height); transform:translate(-50%,-50%); }
.rules-history-shell[hidden],.rules-history-shell.is-outside,.rules-history-shell.is-unattached,.rules-history-shell.is-editing { visibility:hidden; pointer-events:none; }
.rules-history-track { position:absolute; inset:0; pointer-events:none; }
.rules-page { --rules-banner-bg:radial-gradient(circle at 78% 12%,rgba(185,130,215,.3),transparent 42%),linear-gradient(120deg,#383c66,#66517d); }
[data-rules-design="classic"] .rules-page { --rules-banner-bg:#353746; }
.rules-history-handle { position:absolute; z-index:2; top:50%; left:calc(50% - var(--history-handle-size,42px) / 2); width:var(--history-handle-size,42px); height:var(--history-handle-size,42px); padding:0; overflow:visible; transform:translate(var(--liquid-grip-x,11px),calc(-50% + var(--shore-offset,0px) + var(--lever-offset))); border:0; border-radius:50%; background:transparent; color:#a7a3b2; cursor:ns-resize; touch-action:none; user-select:none; }
.rules-history-wave { position:absolute; left:calc(50% - 32px); top:calc(50% + var(--shore-offset,0px)); width:112px; height:100px; pointer-events:none; background:var(--rules-banner-bg); clip-path:path('M32 0 C32 28 54 28 54 50 C54 72 32 72 32 100 Z'); transform:translateY(-50%); }
.rules-history-grip { position:absolute; z-index:1; top:calc(50% - 4px); left:calc(50% - 6px); width:12px; height:8px; transform:scaleX(calc(.65 + var(--liquid-phase,0) * .35)); border-top:2px solid currentColor; border-bottom:2px solid currentColor; border-radius:1px; opacity:calc(.55 + var(--liquid-phase,0) * .45); pointer-events:none; transition:color .2s; }
.rules-history-handle:hover { color:#ddd8e4; }
.rules-history-handle:focus-visible { outline:none; }
.rules-history-handle:focus-visible .rules-history-grip { color:#fff; opacity:1; }
.rules-history-shell.is-active .rules-history-grip { color:#eee8f5; }
.rules-history-fog { position:absolute; top:calc(50% + var(--wheel-anchor-y,0px)); left:calc(22px + var(--wheel-offset)); width:calc(var(--history-radius) * 1.45 + 24px); height:calc(var(--history-radius) * 2 + 64px); transform:translateY(-50%); pointer-events:none; opacity:0; background:linear-gradient(to right,var(--bg,#090d18),rgba(9,13,24,.94) 20%,rgba(9,13,24,.62) 52%,transparent); mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent); -webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent); transition:opacity .2s ease; }
.rules-history-half { position:absolute; top:calc(50% + var(--wheel-anchor-y,0px)); left:calc(22px + var(--wheel-offset)); width:var(--history-radius); height:calc(var(--history-radius) * 2); overflow:visible; transform:translateY(-50%); opacity:0; pointer-events:none; transition:opacity .15s ease; }
.rules-history-shell.is-active .rules-history-half,.rules-history-shell.is-active .rules-history-fog { opacity:1; }
.rules-history-wheel { position:absolute; top:0; right:0; width:calc(var(--history-radius) * 2); height:calc(var(--history-radius) * 2); }
.rules-history-entries { position:absolute; inset:0; }
.rules-history-entry { position:absolute; display:grid; place-items:center; width:min(94px,calc(var(--history-radius) * .7)); min-height:32px; transform:translate(-50%,-50%); color:#c4bdce; font:600 13px/1.3 Manrope,sans-serif; }
.rules-history-notch { position:absolute; width:12px; height:1px; transform:rotate(var(--tick-angle,0deg)); background:#82768d; }
.rules-history-version { position:absolute; right:calc(50% + 12px); top:50%; display:block; box-sizing:border-box; width:max-content; max-width:80px; padding:0; overflow:hidden; transform:translateY(-50%); text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.rules-history-entry.is-selected { color:#f2ecf8; font-weight:800; }
.rules-history-entry.is-selected .rules-history-notch { height:2px; background:#b9a7c8; }
.rules-history-entry.is-empty .rules-history-version { display:none; }
.rules-history-entry.is-empty .rules-history-notch { width:6px; opacity:.5; }
.rules-history-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.rules-history-feedback { position:absolute; top:calc(50% + 32px); right:0; width:160px; margin:0; color:#d6aabd; text-align:right; font:500 10px/1.5 Manrope,sans-serif; }
.rules-history-feedback[hidden] { display:none; }
.rules-reel { --rules-reel-height:clamp(320px,72dvh,820px); --rules-top-inset:64px; --rules-picker-slot:98px; position:relative; height:var(--rules-max-height,var(--rules-reel-height)); margin-right:28px; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; scrollbar-width:none; mask-image:linear-gradient(to bottom,transparent,#000 var(--rules-top-inset)); -webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--rules-top-inset)); }
.rules-reel::-webkit-scrollbar { display:none; }
.rules-reel-strip { position:relative; padding-top:var(--rules-top-inset); overflow-anchor:none; }
.rules-reel-page { box-sizing:border-box; min-height:var(--rules-max-height,var(--rules-reel-height)); overflow-anchor:none; }
.rules-version-banner { position:relative; display:flex; flex-direction:column; justify-content:flex-end; gap:5px; box-sizing:border-box; min-height:82px; margin-bottom:16px; padding:15px 20px; overflow:hidden; border:1px solid rgba(174,153,208,.2); border-radius:10px 10px 0 0; background:var(--rules-banner-bg); }
.rules-version-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,rgba(255,255,255,.08),transparent 45%); pointer-events:none; }
.rules-version-banner > span { position:relative; z-index:1; color:#d2c5df; font:600 9px/1.3 Manrope,sans-serif; letter-spacing:1px; text-transform:uppercase; }
.rules-version-banner > strong { position:relative; z-index:1; overflow:hidden; color:#faf4ff; text-overflow:ellipsis; white-space:nowrap; font:800 22px/1.2 Manrope,sans-serif; }
[data-rules-design="classic"] .rules-version-banner { border-color:#4b4d5f; background:#353746; }
[data-rules-design="classic"] .rules-version-banner > strong { color:#f2f3f5; }
.rules-reel-loading { padding:28px 8px; color:#73778c; font:500 12px/1.5 Manrope,sans-serif; }
.rules-reel.is-scrubbing .rules-reel-page { pointer-events:none; }
.rules-reel.is-expanded { height:var(--rules-max-height,auto); min-height:var(--rules-max-height,0px); overflow:visible; }
.rules-reel.is-expanded .rules-reel-strip { padding-bottom:0; }
.rules-reel.is-expanded .rules-reel-page { display:none; min-height:0; padding-top:0; }
.rules-reel.is-expanded .rules-reel-page.is-reading { display:block; height:auto; }
.rules-reel.is-selecting .rules-reel-strip { padding-bottom:max(0px,calc(var(--rules-max-height,var(--rules-reel-height)) - var(--rules-top-inset) - var(--rules-picker-slot))); }
.rules-reel.is-selecting .rules-reel-page { position:relative; display:flow-root; min-height:0; height:auto !important; }
.rules-reel.is-selecting .rules-reel-page > .rules-version-banner { margin-right:var(--rules-picker-gutter,0px); }
.rules-reel.is-selecting .rules-reel-page > .rules-list { position:relative; height:0; min-height:0; overflow:hidden; pointer-events:none; }
.rules-reel.is-selecting .rules-reel-loading { display:none; }
.rules-list.is-rolling { position:relative; overflow:hidden; background:var(--bg,#090d18); }
.rules-list.is-rolling::after { content:''; position:absolute; bottom:0; left:0; right:0; height:4px; border-radius:2px; background:linear-gradient(to bottom,#726483,#383341); box-shadow:0 -5px 12px rgba(0,0,0,.25); pointer-events:none; }
.rules-reel.is-editing { height:auto; overflow:visible; mask-image:none; -webkit-mask-image:none; }
.rules-reel.is-editing .rules-reel-strip { padding:0; }
.rules-size-probe { position:absolute; top:0; left:0; display:flow-root; height:auto; visibility:hidden; pointer-events:none; contain:layout style; }
.rules-page .rules-main { padding-bottom:0; }
.rules-page .site-footer { position:relative; margin-top:0; }
.rules-page .site-footer::before { content:''; position:absolute; bottom:100%; left:0; right:0; height:96px; background:linear-gradient(to bottom,transparent,var(--bg,#090d18)); pointer-events:none; z-index:1; }
@media (max-width:600px) {
  .rules-reel { margin-right:34px; --rules-reel-height:clamp(300px,72dvh,720px); --rules-picker-slot:86px; }
  .rules-history-entry { width:min(72px,calc(var(--history-radius) * .7)); font-size:11px; }
  .rules-version-banner { min-height:72px; margin-bottom:14px; padding:13px 15px; }
  .rules-version-banner > strong { font-size:19px; }
}
@media (prefers-reduced-motion:reduce) {
  .rules-reel,.rules-history-half,.rules-history-fog,.rules-history-wave,.rules-history-handle,.rules-history-grip { transition:none; }
}
