html.roulette-modal-open { overflow: hidden; }
.roulette-profile-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .8rem; }
.roulette-launcher { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: .5rem .75rem; font-size: .8rem; background: var(--ember); color: var(--night); border-color: transparent; }
.roulette-launcher:hover { background: #ffbc82; }
.roulette-launcher svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#roulette-dialog { --roulette-padding: clamp(1rem,2.5vw,1.6rem); width: min(1040px,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--glass-outline); background: linear-gradient(125deg,var(--glass-highlight),transparent 48%),#242827; box-shadow: var(--glass-shadow); padding: var(--roulette-padding); }
.roulette-heading { position: sticky; top: calc(-1 * var(--roulette-padding)); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 2.8rem .8rem 0; background: #242827; }
.roulette-heading .dialog-close { top: .15rem; right: 0; }
.roulette-heading h2 { margin: 0; font-size: clamp(1.5rem,3vw,2rem); }
.roulette-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(1.2rem,3vw,2rem); align-items: center; margin-top: .6rem; }
.roulette-play { min-width: 0; display: grid; justify-items: center; }
.roulette-wheel { position: relative; width: min(100%,420px); aspect-ratio: 1; }
.roulette-wheel::before { content: ''; position: absolute; inset: 7%; border-radius: 50%; box-shadow: 0 0 0 7px #292d2b,0 0 0 8px #ffa45d55,0 15px 50px #0005; }
.roulette-wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roulette-rotor { transform-origin: 50% 50%; }
.roulette-pointer { position: absolute; top: 3.5%; left: 50%; transform: translateX(-50%); z-index: 2; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 29px solid var(--ember); filter: drop-shadow(0 3px 2px #0009); }
.roulette-hub { position: absolute; inset: 38%; display: grid; place-items: center; border-radius: 50%; border: 5px solid #252925; background: radial-gradient(circle at 35% 30%,#3c4036,#202423); box-shadow: 0 0 0 1px #ffa45d99,0 5px 15px #0008; }
.roulette-hub img { width: 70%; height: 70%; object-fit: contain; border-radius: 50%; }
.roulette-wheel.is-spinning .roulette-hub { box-shadow: 0 0 0 1px var(--ember),0 0 24px #ffa45d35; }
.roulette-spin { width: min(100%,350px); min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .8rem; font-size: 1rem; box-shadow: 0 5px 20px #ffa45d1a; }
.roulette-spin svg { position: static; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.roulette-cooldown { margin: .7rem 0 0; min-height: 1.3rem; text-align: center; font-size: .76rem; }
.roulette-info { min-width: 0; }
.roulette-position { margin-bottom: 1.25rem; }
.roulette-position > strong { font-size: 2.7rem; color: var(--ember); letter-spacing: -.06em; line-height: 1; }
.roulette-result { margin: 1.25rem 0; }
.roulette-result h3 { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--cream); }
.roulette-result p { margin: 0; font-size: .83rem; overflow-wrap: anywhere; }
.roulette-result[data-kind="prize"] h3 { color: var(--green); }
.roulette-result[data-kind="penalty"] h3 { color: #e4a596; }
.roulette-result[data-kind="swap"] h3 { color: #afc4ce; }
#roulette-notification { position: fixed; inset: auto 1rem 1rem auto; margin: 0; width: min(360px,calc(100vw - 2rem)); box-sizing: border-box; padding: 1.2rem 2.5rem 1.2rem 1.2rem; border: 1px solid #ffa45d77; border-radius: 12px; background: #242827; color: var(--cream); box-shadow: var(--glass-shadow); z-index: 1000; }
#roulette-notification .dialog-close { top: .5rem; right: .5rem; }
#roulette-notification h3 { margin: 0 0 .5rem; font-size: .95rem; color: var(--ember); }
#roulette-notification p { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
#roulette-notification .roulette-notification-position { margin-top: .5rem; color: var(--ember); font-weight: 700; }
.roulette-odds { border-top: 1px solid var(--line); padding-top: 1rem; }
.roulette-odds summary { cursor: pointer; color: var(--muted); font-size: .8rem; }
.roulette-odds summary:hover { color: var(--cream); }
.roulette-odds ul { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.roulette-odds li { display: flex; align-items: center; gap: .4rem; font-size: .72rem; line-height: 1.45; min-width: 0; }
.roulette-odds li::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--sector-color); }
.roulette-odds li b { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: .7rem; }
.roulette-ineligible { opacity: .55; }
@media (max-width: 850px) { .roulette-layout { grid-template-columns: 1fr; } .roulette-info { width: 100%; } .roulette-play { max-width: 460px; width: 100%; justify-self: center; } }
@media (max-width: 480px) { #my-profile .profile-heading { flex-wrap: wrap; } .roulette-profile-actions { margin-left: auto; flex-direction: column; align-items: flex-end; gap: .5rem; } #roulette-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); } .roulette-heading { align-items: center; flex-wrap: wrap; gap: .5rem; } .roulette-heading h2 { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .roulette-spin { transition: none; } }
