/* 24 Nov 2026 (Jas): LUCKY WHEEL page (js/wheel.js) */
#wheelRoot{ --c1:#00e5ff; --c2:#6B3BFF; }

/* tabs look like buttons: light box, the selected one coloured */
.wh-tabs{ display:flex; gap:8px; margin:4px 0 14px; overflow-x:auto; padding-bottom:2px; }
.wh-tab{ flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px 16px; border-radius:12px; cursor:pointer;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); color:#d8d0f0; font-weight:800; font-size:14px; white-space:nowrap; }
.wh-tab img{ width:22px; height:22px; }
.wh-tab span{ font-size:11px; padding:2px 7px; border-radius:999px; background:rgba(255,255,255,.1); }
.wh-tab.active{ background:linear-gradient(100deg,#6B3BFF,#8b3fff); border-color:transparent; color:#fff; box-shadow:0 6px 18px rgba(107,59,255,.45); }
.wh-tab.active span{ background:rgba(0,0,0,.25); }

.wh-ticker{ overflow:hidden; border-radius:10px; background:rgba(255,184,0,.08); border:1px solid rgba(255,184,0,.25); margin-bottom:12px; }
.wh-ticker-in{ display:inline-flex; gap:34px; padding:7px 0; white-space:nowrap; animation:whTick 30s linear infinite; }
.wh-tick{ font-size:12.5px; color:#ffe3a0; }
.wh-tick b{ color:#fff; }
@keyframes whTick{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.wh-main{ display:grid; grid-template-columns:minmax(280px,440px) 1fr; gap:22px; align-items:center;
    padding:18px; border-radius:18px; background:radial-gradient(ellipse at 30% 50%, rgba(107,59,255,.18), transparent 60%), rgba(12,8,30,.6); border:1px solid rgba(160,120,255,.2); }
.wh-stage{ position:relative; aspect-ratio:1; width:100%; }
.wh-glow{ position:absolute; inset:6%; border-radius:50%; background:radial-gradient(circle, var(--c1), transparent 65%); opacity:.25; filter:blur(18px); }
.wh-wrap{ position:absolute; inset:0; }
.wh-svg{ width:100%; height:100%; display:block; overflow:visible; filter:drop-shadow(0 12px 30px rgba(0,0,0,.6)); }
.wh-rim{ fill:#120a2c; stroke:var(--c1); stroke-width:6; filter:drop-shadow(0 0 10px var(--c1)); }
.wh-stud{ fill:#fff; opacity:.85; }
.wh-wrap.spinning .wh-stud{ animation:whStud .25s linear infinite alternate; }
@keyframes whStud{ from{ opacity:.35; } to{ opacity:1; } }
#whDisc{ transform-origin:0 0; transform-box:view-box; }
.wh-seg-t{ fill:#fff; font-size:15px; font-weight:900; paint-order:stroke; stroke:rgba(0,0,0,.6); stroke-width:3px; }
.wh-seg-t.jp{ fill:#fff; stroke:#a05a00; stroke-width:4px; font-size:26px; }
.wh-pointer{ position:absolute; left:50%; top:-2%; width:34px; height:44px; transform:translateX(-50%); z-index:2;
    background:linear-gradient(180deg,#fff,var(--c1)); clip-path:polygon(0 0,100% 0,50% 100%); filter:drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.wh-wrap.spinning .wh-pointer{ animation:whTickPtr .12s linear infinite alternate; }
@keyframes whTickPtr{ from{ transform:translateX(-50%) rotate(-7deg); } to{ transform:translateX(-50%) rotate(7deg); } }

.wh-side{ display:flex; flex-direction:column; gap:12px; }
.wh-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wh-tile{ padding:12px; border-radius:14px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); display:flex; flex-direction:column; gap:3px; }
.wh-tile span{ font-size:12px; color:#b9acdf; font-weight:700; }
.wh-tile b{ display:flex; align-items:center; gap:7px; font-size:22px; color:#fff; }
.wh-tile b img{ width:24px; height:24px; }
.wh-tile small{ font-size:11.5px; color:#9d92c4; }
.wh-tile small i{ font-style:normal; color:#fff; }
.wh-pity{ display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:#cfc6f5; }
.wh-pity-bar{ height:8px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; }
.wh-pity-bar i{ display:block; height:100%; background:linear-gradient(90deg,#6B3BFF,#ffd76a); }
.wh-btns{ display:flex; gap:10px; flex-wrap:wrap; }
.wh-spin{ flex:1; min-width:140px; padding:15px 18px; border:0; border-radius:14px; cursor:pointer; color:#fff; font-weight:900; font-size:17px; letter-spacing:.5px;
    background:linear-gradient(100deg,#6B3BFF,#8b3fff); box-shadow:0 8px 22px rgba(107,59,255,.5); }
.wh-spin.alt{ background:rgba(255,255,255,.08); border:1px solid rgba(160,120,255,.5); box-shadow:none; }
.wh-spin:disabled{ opacity:.45; cursor:default; }
.wh-closed{ margin:0; color:#ffb3b3; font-size:13px; }
.wh-note{ margin:0; color:#9d92c4; font-size:12px; }

.wh-lower{ display:grid; grid-template-columns:1.4fr 1fr; gap:14px; margin-top:14px; }
.wh-box{ padding:14px; border-radius:16px; background:rgba(12,8,30,.6); border:1px solid rgba(160,120,255,.18); }
.wh-box h4{ margin:0 0 10px; color:#fff; font-size:15px; }
.wh-odds{ display:flex; flex-direction:column; gap:6px; }
.wh-odd{ display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:10px; padding:6px 10px; border-radius:10px; background:rgba(255,255,255,.04); font-size:13px; color:#e3dcff; }
.wh-odd img{ width:28px; height:28px; object-fit:contain; }
.wh-odd b{ color:#fff; }
.wh-odd.rare{ background:rgba(139,63,255,.14); }
.wh-odd.jp{ background:linear-gradient(90deg,rgba(255,184,0,.22),rgba(255,184,0,.05)); border:1px solid rgba(255,184,0,.35); }
.wh-odd em{ font-style:normal; font-size:10px; font-weight:900; color:#3a1d00; background:#ffcf5a; padding:1px 6px; border-radius:99px; margin-left:4px; }
.wh-mine{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.wh-mine li{ display:flex; align-items:center; gap:8px; font-size:13px; color:#e3dcff; }
.wh-mine li img{ width:18px; height:18px; }
.wh-mine li .jp{ color:#ffd76a; font-weight:800; }
.wh-mine li.none{ color:#9d92c4; }
.wh-won{ text-align:left; margin:6px 0 0; padding-left:18px; }
.wh-won li{ margin:3px 0; }
.wh-won li.rare{ color:#c9a6ff; font-weight:700; }
.wh-won li.jp{ color:#ffd76a; font-weight:900; }
.wh-won-note{ font-size:13px; opacity:.85; }

.wh-confetti{ position:fixed; inset:0; pointer-events:none; z-index:100000; overflow:hidden; }
.wh-confetti i{ position:absolute; top:-12px; width:9px; height:14px; border-radius:2px; animation:whFall linear forwards; }
@keyframes whFall{ to{ transform:translateY(110vh) rotate(720deg); } }

@media (max-width: 820px){
    .wh-main{ grid-template-columns:1fr; padding:12px; }
    .wh-stage{ max-width:400px; margin:0 auto; }
    .wh-lower{ grid-template-columns:1fr; }
}
@media (max-width: 430px){
    .wh-tabs{ gap:6px; }
    .wh-tab{ padding:9px 4px; font-size:11.5px; gap:4px; }
    .wh-tab img{ display:none; }
    .wh-tab span{ padding:1px 5px; font-size:10px; }
    .wh-tile b{ font-size:18px; }
    .wh-spin{ min-width:0; font-size:15px; }
}

/* 24 Nov 2026 v2: prizes in a dropdown, prizes of a multi-spin, live wins table */
.wh-drop{ border-radius:14px; background:rgba(255,255,255,.04); border:1px solid rgba(160,120,255,.25); }
.wh-drop summary{ list-style:none; cursor:pointer; padding:11px 14px; font-weight:800; font-size:14px; color:#fff; display:flex; align-items:center; gap:8px; }
.wh-drop summary::-webkit-details-marker{ display:none; }
.wh-drop summary::after{ content:"▾"; margin-left:auto; color:#c9a6ff; transition:transform .2s; }
.wh-drop[open] summary::after{ transform:rotate(180deg); }
.wh-drop summary span{ font-size:11px; font-weight:700; color:#9d92c4; }
.wh-drop .wh-odds{ padding:0 10px 10px; max-height:320px; overflow-y:auto; }
.wh-run{ display:flex; flex-wrap:wrap; gap:6px; }
.wh-run:empty{ display:none; }
.wh-chip{ padding:5px 10px; border-radius:999px; font-size:12px; font-weight:700; color:#e3dcff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); animation:whPop .35s ease-out; }
.wh-chip.rare{ background:rgba(139,63,255,.25); border-color:rgba(201,166,255,.5); color:#fff; }
.wh-chip.jp{ background:linear-gradient(90deg,#ffcf5a,#ff9d00); color:#3a1d00; border-color:transparent; }
@keyframes whPop{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }
.wh-lower{ grid-template-columns:1.6fr 1fr; }
.wh-box h4{ display:flex; align-items:center; gap:8px; }
.wh-dot{ width:9px; height:9px; border-radius:50%; background:#ff3b5c; box-shadow:0 0 8px #ff3b5c; animation:whBlink 1.2s infinite; }
@keyframes whBlink{ 50%{ opacity:.25; } }
.wh-live{ overflow:hidden; }
.wh-live-t{ width:100%; border-collapse:collapse; font-size:12.5px; }
.wh-live-t th{ text-align:left; color:#9d92c4; font-weight:700; padding:4px 8px; position:sticky; top:0; background:#120b2a; }
.wh-live-t td{ padding:6px 8px; color:#e3dcff; border-top:1px solid rgba(255,255,255,.06); white-space:nowrap; }
.wh-live-t td:nth-child(3){ white-space:normal; }
.wh-live-t td:last-child{ color:#9d92c4; text-align:right; }
.wh-live-t td img{ width:15px; height:15px; vertical-align:-3px; margin-right:5px; }
.wh-live-t tr.rare td:nth-child(3){ color:#c9a6ff; font-weight:700; }
.wh-live-t tr.jp td{ background:rgba(255,184,0,.1); }
.wh-live-t tr.jp td:nth-child(3){ color:#ffd76a; font-weight:800; }
.wh-live-t em{ font-style:normal; font-size:9.5px; font-weight:900; color:#3a1d00; background:#ffcf5a; padding:1px 5px; border-radius:99px; }
.wh-live-t tr.new td{ animation:whNew 2s ease-out; }
@keyframes whNew{ from{ background:rgba(0,229,255,.25); } }
.wh-live-none{ color:#9d92c4; font-size:13px; margin:0; }
@media (max-width: 820px){ .wh-lower{ grid-template-columns:1fr; } }
@media (max-width: 430px){ .wh-live-t{ font-size:11.5px; } .wh-live-t td, .wh-live-t th{ padding:5px 4px; } .wh-live-t td:nth-child(2){ display:none; } .wh-live-t th:nth-child(2){ display:none; } }

/* 24 Nov 2026: choose the number of spins */
.wh-custom{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:#cfc6f5; }
.wh-custom input{ width:64px; padding:9px 6px; border-radius:10px; border:1px solid rgba(160,120,255,.45); background:rgba(255,255,255,.06); color:#fff; font-weight:800; font-size:15px; text-align:center; }
.wh-custom input::-webkit-inner-spin-button{ -webkit-appearance:none; }
.wh-step{ width:36px; height:38px; border-radius:10px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.07); color:#fff; font-size:18px; font-weight:900; cursor:pointer; }
.wh-custom .wh-spin{ flex:0 0 auto; min-width:90px; padding:10px 18px; font-size:15px; }
.wh-custom small{ color:#9d92c4; }

/* 24 Nov 2026 v3: Live wins move up by themselves, no scroll bar, no pages */
.wh-lhead, .wh-lrow{ display:grid; grid-template-columns:minmax(90px,1.2fr) 86px 2fr 64px; gap:8px; align-items:center; padding:7px 8px; font-size:12.5px; }
.wh-lhead{ color:#9d92c4; font-weight:700; background:#120b2a; border-radius:8px; }
.wh-lrow{ color:#e3dcff; border-top:1px solid rgba(255,255,255,.06); }
.wh-lrow span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wh-lrow .w{ display:flex; align-items:center; gap:5px; }
.wh-lrow .w img{ width:15px; height:15px; flex:0 0 auto; }
.wh-lrow .t{ color:#9d92c4; text-align:right; }
.wh-lrow .z{ white-space:normal; }
.wh-lrow.rare .z{ color:#c9a6ff; font-weight:700; }
.wh-lrow.jp{ background:rgba(255,184,0,.1); }
.wh-lrow.jp .z{ color:#ffd76a; font-weight:800; }
.wh-lrow em{ font-style:normal; font-size:9.5px; font-weight:900; color:#3a1d00; background:#ffcf5a; padding:1px 5px; border-radius:99px; }
.wh-lbox{ overflow:hidden; }
/* a new win slides in at the top */
.wh-lrow.new{ animation:whIn .6s ease-out, whNew 2.4s ease-out; }
@keyframes whIn{ from{ transform:translateY(-100%); opacity:0; } to{ transform:none; opacity:1; } }
@media (max-width: 430px){
    .wh-lhead, .wh-lrow{ grid-template-columns:minmax(70px,1fr) 1.6fr 50px; font-size:11.5px; padding:6px 4px; }
    .wh-lhead .w, .wh-lrow .w{ display:none; }
}
