body:has(main > .ds-screen) :is(.mast,.rail,.bottom-nav) { display:none; }
body:has(main > .ds-screen) .frame { display:block; max-width:none; }
main:has(> .ds-screen) { padding:0; }
.ds-screen { --wheel:min(205vw,1100px); position:relative; isolation:isolate; width:100%; max-width:none; height:100dvh; min-height:380px; overflow:hidden; color:#fff; background:#0c0b1c url('/art/card-detail-bg.webp') center/cover; }
.ds-back,.ds-close { position:absolute; z-index:3; top:max(16px,env(safe-area-inset-top)); left:max(16px,env(safe-area-inset-left)); width:44px; height:44px; border-radius:50%; border:1px solid #ffffff29; background:#ffffff10; color:#fff; display:grid; place-items:center; }
.ds-back::after { content:''; width:10px; height:10px; border:solid currentColor; border-width:0 0 2px 2px; transform:translateX(2px) rotate(45deg); }
.ds-header { height:30%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:50px 16px 0; text-align:center; }
.ds-header h1 { margin:0; font-size:32px; font-weight:700; line-height:1.25; color:#fff; background:linear-gradient(180deg,#fff 0% 45%,#887cee); background-clip:text; -webkit-text-fill-color:transparent; }
.ds-kicker { color:#887cee; font-size:14px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; }
.ds-stage { position:relative; height:70%; display:flex; justify-content:center; align-items:flex-start; }
.ds-wheel { flex:none; width:var(--wheel); height:var(--wheel); position:relative; background:url('/art/daily-spin/spin-circle-bg.webp') center/contain no-repeat; touch-action:none; user-select:none; cursor:grab; }
.ds-wheel:active { cursor:grabbing; }
.ds-rotor { position:absolute; inset:2%; clip-path:circle(50%); border-radius:50%; background:repeating-conic-gradient(from calc(-1 * var(--half-step)),#211c3e 0deg calc(var(--step) - .45deg),#534c70 calc(var(--step) - .45deg) var(--step),#2c2750 var(--step) calc(2 * var(--step) - .45deg),#534c70 calc(2 * var(--step) - .45deg) calc(2 * var(--step))); }
.ds-rotor::before { content:''; position:absolute; inset:2%; border-radius:50%; border:2px dashed #c4bcec48; }
.ds-slices { list-style:none; margin:0; padding:0; position:absolute; inset:0; }
.ds-slice { position:absolute; inset:0; transform:rotate(var(--angle)); pointer-events:none; display:flex; justify-content:center; }
.ds-slice svg { width:100%; height:100%; }
.ds-segment-label { fill:#f4f1ff; font-size:2.5px; font-weight:700; }
.ds-again { position:absolute; top:20%; width:7%; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; color:#2b1a66; background:linear-gradient(145deg,#fff,#9c93d0,#f4f0ff); font-size:calc(var(--wheel)*.046); }
.ds-winner { fill:#fddc7a; }
.ds-screen[data-phase=revealed] .ds-rotor::after { content:''; position:absolute; inset:0; pointer-events:none; border-radius:50%; background:conic-gradient(from calc(var(--winning) - var(--half-step)),#fddc7abb 0deg .5deg,transparent .5deg calc(var(--step) - .5deg),#fddc7abb calc(var(--step) - .5deg) var(--step),#100b2070 var(--step)); }
.ds-pointer { width:13%; position:absolute; top:-7.2%; left:43.5%; pointer-events:none; }
.ds-gate { align-self:center; margin-bottom:10vh; max-width:256px; display:grid; justify-items:center; gap:12px; text-align:center; }
.ds-gate h2 { font-size:20px; }
.ds-gate p,.ds-message { font-size:14px; color:rgb(255 255 255 / .65); }
.ds-lock { width:56px; height:56px; border:1px solid #ffffff26; border-radius:50%; background:#ffffff1a url('/art/rewards/lock.svg') center/24px no-repeat; }
.ds-loader { display:block; width:28px; height:28px; border-radius:50%; border:3px solid #ffffff35; border-top-color:#aaa3ff; animation:ds-turn .8s linear infinite; }
@keyframes ds-turn { to { transform:rotate(360deg); } }
.ds-screen::after { content:''; pointer-events:none; position:absolute; inset:auto 0 0; height:min(256px,35%); background:linear-gradient(transparent,#0c0b1ce8); backdrop-filter:blur(8px); mask-image:linear-gradient(transparent,#000 60%); }
.ds-footer { z-index:2; position:absolute; inset:auto 0 0; display:grid; gap:8px; justify-items:center; padding:12px 20px max(18px,env(safe-area-inset-bottom)); text-align:center; }
.ds-message:empty { display:none; }
.ds-button { box-sizing:border-box; display:flex; align-items:center; justify-content:center; width:min(100%,520px); min-height:50px; border:1px solid #a986ff; border-radius:16px; background:linear-gradient(#9d6cff,#6e39e9); color:#fff; text-decoration:none; line-height:1.3; font-family:inherit; font-size:18px; font-weight:600; cursor:pointer; }
.ds-button:disabled { opacity:.5; cursor:default; }
.ds-reward { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:20px; border:0; background:transparent; color:#fff; }
.ds-reward[open] { display:grid; place-items:center; }
.ds-reward::backdrop { background:#080710e8; backdrop-filter:blur(12px); }
.ds-close { left:auto; right:20px; border:none; font-size:27px; cursor:pointer; }
.ds-prize { width:min(100%,376px); min-height:min(480px,77dvh); padding:28px; display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:center; text-align:center; background:#2a1c10 url('/art/daily-spin/reward-cash-bg.webp') center/cover; border:1px solid #c6a75d90; border-radius:26px; }
.ds-prize h2 { font-size:20px; }
.ds-coin { width:min(45%,160px); height:auto; object-fit:contain; }
.ds-amount { font-size:clamp(26px,5vw,36px); line-height:1.2; }
.ds-prize .ds-button { margin-top:22px; border-color:#fedb94; color:#35250b; background:linear-gradient(135deg,#b89756,#fddc7a 55%,#c6a75d); }
@media (prefers-reduced-motion:reduce) { .ds-loader { animation:none; } }
