[hidden] { display: none !important; }
.roulette-lab { max-width: 1240px; }
.rl-loading { text-align: center; color: #aaa; margin: 70px 20px; }
.rl-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.rl-sidebar { background: #1b1b1b; border: 1px solid #333; border-radius: 10px; padding: 20px; }
.rl-sidebar fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rl-sidebar #rl-filters { margin-top: 20px; }
.rl-sidebar #rl-filters legend { margin-top: 0; }
.rl-sidebar-heading, .rl-heading, .rl-tag-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rl-sidebar h2, .rl-heading h2 { font-size: 20px; margin: 0; }
.rl-sidebar label, .rl-sidebar legend { display: block; font-size: 13px; color: #bbb; margin: 20px 0 9px; }
.rl-sidebar input:not([type=checkbox]), .rl-sidebar select { width: 100%; min-width: 0; background: #141414; color: #eee; border: 1px solid #3b3b3b; border-radius: 6px; padding: 11px 10px; font: inherit; font-size: 14px; }
.rl-sidebar input:focus, .rl-sidebar select:focus { outline: 2px solid #ff3b3b; outline-offset: 2px; }
.rl-sidebar fieldset:disabled { opacity: .48; }
.rl-sidebar #rl-controls:disabled { opacity: .8; }
.rl-placement { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-sidebar .rl-placement label { margin-top: 0; }
.rl-placement input { margin-top: 8px; }
.rl-tag-heading { margin: 17px 0 10px; }
.rl-tag-heading h3 { margin: 0; font-size: 14px; }
.rl-tag-heading > span { color: #999; font-size: 11px; }
.rl-sidebar .tag-selected { margin: 10px 0; }
.rl-sidebar .tag-category { background: #191919; }
.rl-sidebar .tag-category summary { padding: 11px 10px; }
.rl-sidebar .tag-options { padding: 0 8px 10px; }
.rl-sidebar .tag-option { font-size: 12px; }
.rl-match-count { font-size: 13px; color: #bbb; line-height: 1.5; margin: 20px 0 14px; }
.rl-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: #272727; border: 1px solid #444; border-radius: 7px; padding: 11px 16px; color: #fff; font: inherit; font-size: 14px; font-weight: bold; text-decoration: none; cursor: pointer; }
.rl-button:hover:not(:disabled) { background: #333; border-color: #777; }
.rl-button.primary { background: #ff3b3b; border-color: #ff3b3b; }
.rl-button.primary:hover:not(:disabled) { background: #e83030; border-color: #e83030; }
.rl-button:disabled { opacity: .4; cursor: default; }
.rl-button:focus-visible, .rl-text-button:focus-visible, .rl-sidebar button:focus-visible, .rl-motion:focus-within { outline: 2px solid #ff3b3b; outline-offset: 4px; }
.rl-wide { width: 100%; }
.rl-text-button { border: 0; background: transparent; color: #bfbfbf; font: inherit; font-size: 12px; cursor: pointer; padding: 4px 0; }
.rl-text-button:hover { color: white; }
.rl-refresh { display: block; margin: 12px auto 0; }
.rl-main { min-width: 0; }
.rl-heading { padding: 2px 0 18px; border-bottom: 1px solid #2d2d2d; }
.rl-heading > span { color: #999; font-size: 13px; }
.rl-wheel-stage { display: grid; place-items: center; padding: 32px 12px 24px; min-height: 220px; overflow: hidden; }
.rl-wheel-wrap { width: min(100%, 570px); aspect-ratio: 1; position: relative; }
#rl-wheel { display: block; width: 100%; height: 100%; border-radius: 50%; background: #191919; border: 5px solid #373737; overflow: hidden; transform-origin: 50% 50%; }
.rl-slice-bg { filter: blur(7px); opacity: .9; transition: filter .55s, opacity .55s; }
.rl-slice-name { filter: blur(3px); transition: filter .55s; fill: #fff; font-family: Arial, sans-serif; font-weight: bold; paint-order: stroke; stroke: #171717; stroke-width: 2px; }
.rl-slice-shade { fill: #050505; opacity: .42; transition: opacity .55s; }
.rl-slice-edge { fill: none; stroke: #121212; stroke-width: 3; }
.rl-slice.is-picked .rl-slice-bg, .rl-slice.is-picked .rl-slice-name { filter: none; }
.rl-slice.is-picked .rl-slice-shade { opacity: .14; }
.rl-slice.is-picked .rl-slice-edge { stroke: #ff3b3b; stroke-width: 4; }
.rl-wheel-rim { fill: none; pointer-events: none; }
.rl-rim-outer { stroke: #aaa; stroke-width: 2; }
.rl-rim-inner { stroke: #171717; stroke-width: 6; }
.rl-rim-tick { stroke: #888; stroke-width: 1.5; }
.rl-pointer { position: absolute; z-index: 2; left: 50%; top: -8px; transform: translateX(-50%); width: 25px; height: 33px; background: #ff3b3b; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.rl-hub { position: absolute; width: 13%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #1b1b1b; border: 3px solid #777; outline: 5px solid #141414; outline-offset: -9px; pointer-events: none; }
.rl-hub::after { content: ""; position: absolute; inset: 40%; border: 1px solid #777; border-radius: 50%; background: #333; }
.rl-spin-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
#rl-spin { min-width: 160px; font-size: 17px; padding: 13px 24px; }
.rl-motion { position: relative; display: flex; align-items: center; gap: 9px; font-size: 12px; color: #bbb; cursor: pointer; }
.rl-motion input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.rl-motion .resolved-checkbox-box { flex: none; }
.rl-motion input:checked + .resolved-checkbox-box { border-color: #ff3b45; transform: scale(1.05); }
.rl-motion input:checked + .resolved-checkbox-box::before { transform: scale(1); }
.rl-status { text-align: center; font-size: 13px; color: #bcbcbc; min-height: 20px; line-height: 1.5; margin: 16px 0 24px; }
.rl-empty { text-align: center; color: #bbb; font-size: 14px; padding: 25px; }
.rl-dropdown { margin-bottom: 0; }
.rl-dropdown .dropdown-button { min-height: 44px; width: 100%; font-size: 14px; }
.rl-dropdown .dropdown-menu button { font-size: 14px; }
.rl-dropdown [aria-selected="true"] { color: #ff9292; background: #292020; }
.rl-dropdown .dropdown-menu button:focus-visible { outline: 2px solid #ff3b3b; outline-offset: -3px; }
.rl-sidebar .tag-option { display: inline-flex; align-items: center; gap: 7px; }
.rl-tag-check { position: relative; overflow: hidden; width: 12px; height: 12px; flex: none; border: 1px solid #777; border-radius: 3px; background: #111; }
.rl-tag-check::before { content: ""; position: absolute; inset: 0; background: #ff3b45; transform: scale(0); transition: transform .22s ease; }
.tag-option[aria-pressed="true"] .rl-tag-check { border-color: #ff3b45; }
.tag-option[aria-pressed="true"] .rl-tag-check::before { transform: scale(1); }
.rl-sidebar details[open] .tag-options { animation: dropdown-unroll .18s ease; transform-origin: top; }
.rl-popup { width: min(430px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid #555; border-top: 3px solid #ff3b3b; border-radius: 9px; padding: 28px; background: #202020; color: #fff; }
.rl-popup[open] { animation: rl-popup-in .18s ease; }
.rl-popup::backdrop { background: rgba(0,0,0,.68); }
.rl-popup h2 { margin: 0 0 12px; font-size: 24px; overflow-wrap: anywhere; }
.rl-popup p { color: #bbb; margin: 0 0 26px; }
.rl-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@keyframes rl-popup-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.rl-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
    .rl-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .rl-sidebar { order: 1; }
    .rl-main { order: 0; }
    .rl-wheel-stage { padding: 28px 0 20px; }
    .roulette-lab { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .roulette-lab *, .roulette-lab *::before, .rl-popup { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
