/* Lucky wheel — standalone, so it does not depend on the compiled application bundle. */
:root { --wheel-cyan: #4ef3dc; --wheel-ink: #06121c; }
#lucky-wheel-launcher { position: fixed; z-index: 9990; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(78,243,220,.6); border-radius: 999px; padding: 12px 17px; color: #06242a; background: linear-gradient(135deg,#a6fff2,#4ef3dc); box-shadow: 0 12px 34px rgba(15,224,195,.28); font: 700 14px/1 Arial,"Microsoft YaHei",sans-serif; cursor: pointer; }
#lucky-wheel-launcher:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lw-backdrop { position: fixed; z-index: 9999; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(1,7,13,.82); backdrop-filter: blur(12px); }
.lw-backdrop.is-open { display: flex; }
.lw-dialog { position: relative; width: min(100%, 530px); overflow: hidden; border: 1px solid rgba(152,255,236,.22); border-radius: 30px; background: radial-gradient(circle at 50% -18%,#174e58 0,#0d1b27 38%,#070d15 75%); color: #fff; box-shadow: 0 28px 100px rgba(0,0,0,.7); font-family: Arial,"Microsoft YaHei",sans-serif; text-align: center; }
.lw-close { position: absolute; z-index: 4; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #d9ffff; background: rgba(255,255,255,.09); font-size: 25px; line-height: 30px; cursor: pointer; }
.lw-content { padding: 30px 22px 25px; }.lw-kicker { margin: 0; color: var(--wheel-cyan); font-size: 12px; font-weight: 700; letter-spacing: .16em; }.lw-title { margin: 9px 0 6px; font-size: clamp(27px,7vw,38px); line-height: 1.1; }.lw-count { margin: 0; color: #b3c8d1; font-size: 14px; }.lw-count b { color: #fff0a8; font-size: 17px; }
.lw-stage { position: relative; width: min(78vw, 345px); aspect-ratio: 1; margin: 20px auto 18px; }.lw-pointer { position: absolute; z-index: 3; top: -2px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-right: 18px solid transparent; border-left: 18px solid transparent; border-bottom: 42px solid #fff3ae; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }.lw-wheel { position: absolute; inset: 8px; border: 7px solid #f7d576; border-radius: 50%; background: conic-gradient(from -22.5deg,#2478a6 0deg 45deg,#69359d 45deg 90deg,#eb7f3c 90deg 135deg,#c23e70 135deg 180deg,#187f77 180deg 225deg,#3c5fb9 225deg 270deg,#a94e33 270deg 315deg,#5b3b8e 315deg 360deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35),0 12px 30px rgba(0,0,0,.42); transition: transform 5.2s cubic-bezier(.12,.66,.08,1); }.lw-wheel::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }.lw-prize { position: absolute; top: 50%; left: 50%; width: 90px; margin: -12px 0 0 -45px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.18; text-shadow: 0 1px 2px rgba(0,0,0,.5); transform: rotate(var(--angle)) translateY(-125px) rotate(calc(var(--angle) * -1)); }.lw-hub { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 80px; height: 80px; place-items: center; transform: translate(-50%,-50%); border: 5px solid #fff3ae; border-radius: 50%; color: #26343d; background: radial-gradient(circle at 30% 25%,#fffef2,#ffd966); box-shadow: 0 4px 13px rgba(0,0,0,.42); font-size: 17px; font-weight: 900; }
.lw-spin { width: min(100%,345px); min-height: 54px; border: 0; border-radius: 16px; color: #0a2830; background: linear-gradient(135deg,#fff2a0,#f6c84f); box-shadow: 0 8px 22px rgba(246,200,79,.2); font: 800 17px/1 Arial,"Microsoft YaHei",sans-serif; cursor: pointer; }.lw-spin:disabled { opacity: .6; cursor: not-allowed; }.lw-note { min-height: 22px; margin: 13px 0 0; color: #98b1bc; font-size: 12px; line-height: 1.5; }
.lw-result { position: absolute; z-index: 5; inset: 0; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(5,14,23,.84); }.lw-result.is-visible { display: flex; }.lw-result-card { width: min(100%,330px); padding: 27px 22px; border: 1px solid rgba(255,235,149,.42); border-radius: 22px; background: #132633; box-shadow: 0 16px 50px rgba(0,0,0,.45); }.lw-result-card .spark { display:block; margin-bottom: 8px; color:#ffe98e; font-size:31px; }.lw-result-card h3 { margin: 0; font-size: 18px; }.lw-result-card strong { display: block; margin: 11px 0; color: #fff0a0; font-size: 28px; }.lw-result-card p { margin: 0 0 18px; color: #b7c7cf; font-size: 13px; line-height: 1.6; }.lw-result-card button { border: 0; border-radius: 11px; padding: 11px 22px; color: #09232d; background: #8af6e5; font-weight: 800; cursor: pointer; }
@media (max-width:420px) { #lucky-wheel-launcher { right: 12px; bottom: 12px; padding: 11px 14px; }.lw-content { padding: 25px 13px 19px; }.lw-prize { font-size: 11px; transform: rotate(var(--angle)) translateY(-28vw) rotate(calc(var(--angle) * -1)); }.lw-stage { margin-top: 16px; } }
