/* MoonTik — Roue de la Fortune (styles Roue / Caisse / Boîte bonus / Palier) */
@font-face { font-family: "MT Lilita"; src: url("/static/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: block; }
.rx-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: "MT Lilita", "Segoe UI", system-ui, sans-serif; }
.rx { position: relative; display: flex; flex-direction: column; align-items: center; }
.rx-user { background: #15161b; color: #fff; font: 700 12px/1 "Segoe UI", system-ui, sans-serif; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 4px 14px rgba(0,0,0,.5); white-space: nowrap; z-index: 3; }
/* Roue — jante or, gemmes, emblème central, piédestal */
.rx-roue { width: 320px; padding-top: 36px; padding-bottom: 8px; }
.rx-user-roue { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.rx-r-rot { width: 320px; height: 320px; will-change: transform; filter: drop-shadow(0 12px 26px rgba(0,0,0,.65)); }
.rx-wheel-svg { display: block; }
.rx-wlabel { font: 700 12px "Segoe UI", system-ui, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3px; }
.rx-r-pin { position: absolute; top: 6px; left: 50%; width: 28px; height: 38px; margin-left: -14px; z-index: 4; background: linear-gradient(#fff7ed, #f59e0b 42%, #b45309); clip-path: polygon(50% 100%, 4% 38%, 22% 0, 78% 0, 96% 38%); filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); transform-origin: 50% 18%; }
.rx-r-pin::after { content: ""; position: absolute; left: 10px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #fbbf24 50%, #92400e); box-shadow: 0 0 6px #fbbf24; }
.rx-r-pin.kick { animation: rxKick .14s ease-out; }
@keyframes rxKick { 0% { transform: rotate(0); } 40% { transform: rotate(-22deg); } 100% { transform: rotate(0); } }
.rx-r-hub { position: absolute; left: 50%; top: calc(36px + 160px); width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #2a1c0c, #0b0906 70%); border: 5px solid #d97706; box-shadow: 0 0 0 2px #78350f, 0 0 16px rgba(245,158,11,.45), inset 0 0 16px rgba(0,0,0,.65); display: grid; place-items: center; z-index: 3; overflow: hidden; }
.rx-r-hub img { width: 78%; height: 78%; object-fit: contain; border-radius: 50%; pointer-events: none; }
.rx-r-stand { position: relative; width: 210px; height: 46px; margin-top: -4px; border-radius: 0 0 50% 50% / 0 0 90% 90%; background: linear-gradient(#4b4540, #1c1917 58%, #0a0908); border: 2px solid #57534e; border-top: 0; box-shadow: 0 10px 16px rgba(0,0,0,.5); z-index: 1; }
.rx-r-stand::before { content: ""; position: absolute; left: 8%; right: 8%; top: -10px; height: 16px; border-radius: 50%; background: linear-gradient(#78716c, #292524); box-shadow: 0 0 0 2px #a8a29e, inset 0 2px 3px rgba(255,255,255,.2); }
.rx-r-stand::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 18px; height: 14px; margin-left: -9px; background: linear-gradient(#fde68a, #d97706); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 8px #f59e0b; }
.rx-r-stand i { display: none; }
.rxe-icons { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.rxe-icon { width: 32px; height: 32px; padding: 3px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #1a1c24; cursor: pointer; }
.rxe-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rxe-icon.on { border-color: #f5a524; box-shadow: 0 0 0 1px #f5a524; background: #2a220e; }
/* Caisse */
.rx-caisse { width: 320px; padding-top: 22px; }
.rx-user-caisse { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: transparent; border: 0; box-shadow: none; font-size: 11px; padding: 0; text-shadow: 0 1px 3px #000; }
.rx-c-win { position: relative; width: 320px; height: 96px; overflow: hidden; border-radius: 10px; background: linear-gradient(#1a1c24, #12131a); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 0 30px rgba(0,0,0,.6), 0 10px 26px rgba(0,0,0,.5); }
.rx-c-track { position: absolute; left: 0; top: 10px; display: flex; gap: 8px; transform: translateX(-16px); will-change: transform; }
.rx-c-card { position: relative; flex: none; width: 64px; height: 76px; border-radius: 8px; background: linear-gradient(#2a2d38, #1d1f27); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.rx-c-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 15px "Segoe UI", system-ui; box-shadow: 0 0 0 3px rgba(255,255,255,.18); overflow: hidden; }
.rx-c-badge img { width: 100%; height: 100%; object-fit: cover; }
.rx-c-name { color: #fff; font: 700 10px "Segoe UI", system-ui; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-c-pct { color: #aab; font: 600 9px "Segoe UI", system-ui; margin-top: -3px; }
.rx-c-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.rx-c-card.is-win { box-shadow: 0 0 0 2px var(--c), 0 0 18px var(--c); animation: rxPop .5s ease-out; }
.rx-c-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(transparent, #fff 15%, #fff 85%, transparent); box-shadow: 0 0 8px #fff; z-index: 2; }
.rx-c-line::before, .rx-c-line::after { content: ""; position: absolute; left: -4px; border: 5px solid transparent; }
.rx-c-line::before { top: 0; border-top-color: #fff; }
.rx-c-line::after { bottom: 0; border-bottom-color: #fff; }
.rx-c-fade { position: absolute; top: 0; bottom: 0; width: 46px; z-index: 1; pointer-events: none; }
.rx-c-fade.l { left: 0; background: linear-gradient(90deg, #12131a, transparent); }
.rx-c-fade.r { right: 0; background: linear-gradient(-90deg, #12131a, transparent); }
/* Boîte bonus */
.rx-boite { width: 220px; padding-top: 34px; }
.rx-user-boite { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.rx-b-cube { position: relative; width: 150px; height: 150px; border-radius: 20px; padding: 4px; background: conic-gradient(from var(--rxa, 0deg), #22d3ee, #a855f7, #f472b6, #facc15, #4ade80, #22d3ee); animation: rxHue 4s linear infinite; box-shadow: 0 0 30px rgba(168,85,247,.45), 0 16px 30px rgba(0,0,0,.6); }
@property --rxa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rxHue { to { --rxa: 360deg; } }
.rx-b-inner { width: 100%; height: 100%; border-radius: 16px; background: radial-gradient(circle at 50% 30%, #3a4155, #161a24 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.rx-b-hex { width: 66px; height: 74px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); color: #fff; display: grid; place-items: center; font: 900 30px "Segoe UI", system-ui; text-shadow: 0 2px 4px rgba(0,0,0,.4); overflow: hidden; }
.rx-b-hex img { width: 70%; height: 70%; object-fit: contain; }
.rx-b-name { color: #fff; font: 800 15px "Segoe UI", system-ui; text-shadow: 0 1px 3px #000; }
.rx-b-glow { width: 120px; height: 14px; margin-top: 10px; border-radius: 50%; background: radial-gradient(rgba(34,211,238,.55), transparent 70%); filter: blur(2px); }
.rx-b-sparks { position: absolute; left: 50%; top: 110px; width: 0; height: 0; }
.rx-b-sparks i { position: absolute; width: 4px; height: 4px; border-radius: 1px; background: #8fe8ff; opacity: 0; }
.rx-boite.is-shake .rx-b-cube { animation: rxHue 1s linear infinite, rxShake .18s linear infinite; }
@keyframes rxShake { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-3px,1px) rotate(-2deg); } 75% { transform: translate(3px,-1px) rotate(2deg); } }
.rx-boite.is-burst .rx-b-cube { animation: rxHue 4s linear infinite, rxPop .55s cubic-bezier(.2,1.6,.4,1); }
.rx-boite.is-burst .rx-b-sparks i { animation: rxSpark .9s ease-out forwards; }
.rx-b-sparks i:nth-child(n) { --dx: calc((var(--k, 1) - 7) * 22px); }
.rx-b-sparks i:nth-child(1){--k:1;--dy:-90px}.rx-b-sparks i:nth-child(2){--k:2;--dy:-120px}.rx-b-sparks i:nth-child(3){--k:3;--dy:-70px}.rx-b-sparks i:nth-child(4){--k:4;--dy:-130px}.rx-b-sparks i:nth-child(5){--k:5;--dy:-95px}.rx-b-sparks i:nth-child(6){--k:6;--dy:-140px}.rx-b-sparks i:nth-child(7){--k:7;--dy:-110px}.rx-b-sparks i:nth-child(8){--k:8;--dy:-135px}.rx-b-sparks i:nth-child(9){--k:9;--dy:-85px}.rx-b-sparks i:nth-child(10){--k:10;--dy:-125px}.rx-b-sparks i:nth-child(11){--k:11;--dy:-75px}.rx-b-sparks i:nth-child(12){--k:12;--dy:-100px}.rx-b-sparks i:nth-child(13){--k:13;--dy:-60px}.rx-b-sparks i:nth-child(14){--k:4;--dy:40px}
@keyframes rxSpark { 0% { opacity: 1; transform: translate(0,0) scale(1.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
.rx-prev-boite .rx-b-sparks i { opacity: .7; transform: translate(calc(var(--dx) * .8), calc(var(--dy) * -.25 + 40px)); }
/* Palier */
.rx-palier { width: 400px; padding-top: 26px; }
.rx-user-palier { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--plate, #f7c623); color: #1a1a1a; border: 2px solid #1a1a1a; border-radius: 6px; font: 400 12px "MT Lilita", "Segoe UI", sans-serif; padding: 4px 10px; box-shadow: 0 3px 0 #1a1a1a; }
.rx-p-band { position: relative; display: flex; gap: 8px; justify-content: center; padding: 14px 16px; border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 10px, transparent 10px 22px), var(--bg, #1d3fb8); border: 3px solid #0d1a55; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 10px 24px rgba(0,0,0,.55); }
.rx-p-dot { position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #0d1a55; }
.rx-p-dot.t { top: -6px; } .rx-p-dot.b { bottom: -6px; }
.rx-p-card { position: relative; flex: none; width: 62px; height: 58px; border-radius: 6px; border: 3px solid #1a1a1a; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #fff) 0 18%, var(--c) 18% 82%, color-mix(in srgb, var(--c) 70%, #000) 82%); box-shadow: 0 3px 0 #1a1a1a; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s, filter .12s; }
.rx-p-card img { width: 30px; height: 30px; object-fit: contain; margin-bottom: 2px; }
.rx-p-name { background: #fff; color: #1a1a1a; font: 400 9px "MT Lilita", "Segoe UI", sans-serif; padding: 1px 5px; border-radius: 3px; border: 1.5px solid #1a1a1a; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-p-pct { color: #fff; font: 700 8px "Segoe UI", system-ui; margin-top: 2px; text-shadow: 0 1px 1px #000; }
.rx-p-card.is-hot { transform: translateY(-4px) scale(1.08); filter: brightness(1.25); box-shadow: 0 3px 0 #1a1a1a, 0 0 0 3px #fff; }
.rx-p-card.is-win { transform: translateY(-14px) scale(1.25); z-index: 2; box-shadow: 0 4px 0 #1a1a1a, 0 0 0 3px var(--plate, #f7c623), 0 0 24px var(--c); animation: rxJump .6s cubic-bezier(.2,1.8,.4,1); }
@keyframes rxJump { 0% { transform: translateY(0) scale(1); } 60% { transform: translateY(-22px) scale(1.32); } 100% { transform: translateY(-14px) scale(1.25); } }
@keyframes rxPop { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
/* Jingle */
.rx.is-jingle { animation: rxPulse .3s ease-in-out infinite alternate; }
@keyframes rxPulse { to { filter: brightness(1.25) drop-shadow(0 0 10px rgba(255,255,255,.35)); } }
/* Résultat */
.rx-result { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(12,13,18,.92); border: 2px solid var(--c, #fff); box-shadow: 0 0 22px color-mix(in srgb, var(--c, #fff) 60%, transparent); color: #fff; }
.rx-result.on { animation: rxRes .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes rxRes { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rx-res-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font: 800 16px "Segoe UI", system-ui; overflow: hidden; }
.rx-res-badge img { width: 100%; height: 100%; object-fit: cover; }
.rx-res-name { font: 400 18px "MT Lilita", "Segoe UI", sans-serif; }
.rx-res-user { font: 600 11px "Segoe UI", system-ui; opacity: .75; }
/* Galerie */
.ov-cat-preview .rx-prev-roue { --fxs: .5 !important; }
.ov-cat-preview .rx-prev-caisse { --fxs: .66 !important; }
.ov-cat-preview .rx-prev-boite { --fxs: .6 !important; }
.ov-cat-preview .rx-prev-palier { --fxs: .55 !important; }

/* —— Éditeur (panneau Configuration) —— */
.rxe-sec { background: #141519; border: 1px solid #24262d; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.rxe-sec h4 { margin: 0 0 10px; font: 800 11px "Segoe UI", system-ui; letter-spacing: .08em; color: #c9ccd5; }
.rxe-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; color: #d8dae0; font: 500 13px "Segoe UI", system-ui; }
.rxe-row-top { margin-bottom: 4px; }
.rxe-input { background: #1b1c22; border: 1px solid #2c2e36; color: #fff; border-radius: 8px; padding: 7px 10px; font: 500 13px "Segoe UI", system-ui; width: 100%; box-sizing: border-box; }
.rxe-num { width: 96px; text-align: right; }
.rxe-mid { width: 170px; }
.rxe-sm { width: 140px; }
.rxe-color { width: 40px; height: 28px; border: 1px solid #2c2e36; border-radius: 7px; background: none; padding: 0; cursor: pointer; }
.rxe-toggle-row { display: flex; align-items: center; justify-content: space-between; background: #1a1b21; border: 1px solid #26282f; border-radius: 10px; padding: 9px 12px; margin: 6px 0; color: #d8dae0; font: 500 13px "Segoe UI", system-ui; cursor: pointer; }
.rxe-switch { appearance: none; width: 34px; height: 19px; border-radius: 999px; background: #3a3c45; position: relative; cursor: pointer; transition: background .15s; }
.rxe-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #c8cad2; transition: left .15s; }
.rxe-switch:checked { background: #f3f4f6; }
.rxe-switch:checked::after { left: 17px; background: #18191e; }
.rxe-lot { background: #1a1b21; border: 1px solid #26282f; border-radius: 10px; margin-bottom: 8px; }
.rxe-lot-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; color: #fff; font: 600 14px "Segoe UI", system-ui; }
.rxe-chev { color: #9a9daa; width: 12px; }
.rxe-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font: 800 12px "Segoe UI", system-ui; color: #fff; overflow: hidden; flex: none; }
.rxe-badge img { width: 100%; height: 100%; object-fit: cover; }
.rxe-lot-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rxe-pct { color: #c9ccd5; font: 600 12px "Segoe UI", system-ui; }
.rxe-del { background: none; border: 0; color: #ef4444; cursor: pointer; font-size: 14px; }
.rxe-del:disabled { opacity: .3; cursor: default; }
.rxe-lot-body { padding: 0 12px 12px; }
.rxe-link { background: none; border: 0; color: #a3a6b2; cursor: pointer; font: 500 12px "Segoe UI", system-ui; }
.rxe-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 110px; border: 1.5px dashed #3a3c45; border-radius: 10px; color: #e5e7eb; font: 600 13px "Segoe UI", system-ui; cursor: pointer; text-align: center; padding: 10px; }
.rxe-drop.over { border-color: #f59e0b; background: rgba(245,158,11,.06); }
.rxe-drop small { color: #8b8e99; font-weight: 500; }
.rxe-drop img { max-width: 90px; max-height: 70px; object-fit: contain; }
.rxe-drop-ico { width: 34px; height: 34px; border-radius: 50%; background: #2a2c34; display: grid; place-items: center; }
.rxe-sub { margin: 12px 0 6px; color: #f5b041; font: 700 11px "Segoe UI", system-ui; letter-spacing: .05em; text-transform: uppercase; }
.rxe-react { display: grid; gap: 6px; }
.rxe-rules { max-height: 150px; overflow: auto; display: grid; gap: 4px; padding: 6px; background: #15161b; border-radius: 8px; }
.rxe-chk { color: #d8dae0; font: 500 12px "Segoe UI", system-ui; display: flex; gap: 6px; align-items: center; }
.rxe-muted { color: #8b8e99; font: 500 12px "Segoe UI", system-ui; }
.rxe-lot-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rxe-btn { background: #1b1c22; border: 1px solid #2c2e36; color: #fff; border-radius: 9px; padding: 8px 12px; font: 700 13px "Segoe UI", system-ui; cursor: pointer; }
.rxe-btn.ghost { color: #9a9daa; }
.rxe-btn:disabled { opacity: .4; cursor: default; }
.rxe-count { margin-left: auto; color: #c9ccd5; font: 600 12px "Segoe UI", system-ui; }
.rxe-range { width: 100%; accent-color: #f3f4f6; }
.rx-result[hidden] { display: none !important; }
