/* The existing artwork and six-second reward renderer remain unchanged. */
body.spin-screen{margin:0;min-height:100svh;background:#061b2a url("wheel.webp") center top/cover fixed;color:#e9f5f6}
body.spin-screen:before{content:"";position:fixed;inset:0;background:rgba(3,18,30,.88);pointer-events:none;z-index:-1}
.spin-screen .site-header,.spin-screen .preview-bar,.spin-screen footer{display:none}
.spin-screen main{width:100%;max-width:none;margin:0;padding:0;min-height:100svh;background:rgba(3,18,30,.78)}
.spin-screen .spin-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;max-width:1000px;margin:auto;padding:4px 16px;font-size:14px;box-sizing:border-box}
.spin-nav a{display:inline-flex;align-items:center;min-height:40px;color:#e5f7fa;text-decoration:none}.spin-nav>div{display:flex;gap:18px}
.spin-screen .spin-experience{width:100%;margin:0;padding:0}.spin-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.spin-screen .formal-spin-stage{position:relative;width:min(100%,calc(100svh - 48px));max-width:960px;margin:0 auto;container-type:inline-size}
.spin-screen .formal-spin-canvas{display:block;width:100%;height:auto;margin:0;border-radius:0;aspect-ratio:1}
.spin-screen .sword-count{top:76.98%;font-size:clamp(12px,4.2cqw,34px)}
.spin-screen .prize-label{top:71.91%;font-size:clamp(11px,2.65cqw,24px)}
.spin-screen .formal-spin-go{top:33%;height:23%;border-radius:50%;min-height:44px}
.spin-support{width:min(100% - 32px,640px);margin:18px auto 0;padding-bottom:36px;line-height:1.65}
.spin-support>p{margin:8px 0 16px}.spin-support #formal-spin-result{overflow-wrap:anywhere;font-size:14px;color:#d4e4e8}
.spin-screen .daily-checkin{padding:20px 0 24px;border-bottom:1px solid #426675}.daily-checkin h2{font-size:22px;margin:0 0 10px}.daily-checkin p{margin:8px 0 16px}
.daily-checkin form{margin:0}.daily-checkin .line-button{width:100%;min-height:48px}.daily-checkin .line-button:disabled{cursor:default;background:#244c45;color:#c6eadf;border-color:#416d60;opacity:1}
.spin-screen .spin-fine{font-size:14px;color:#bfd2da;margin:14px 0 0}.spin-screen .bulk-spin{margin:24px 0;padding:0 0 24px;border:0;border-bottom:1px solid #426675;border-radius:0;background:none}
.spin-screen .bulk-spin h2{font-size:22px}.spin-screen .bulk-spin form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spin-screen .bulk-spin input{width:100px;min-height:44px}.spin-screen .bulk-spin button{min-height:44px}
.spin-screen .fm-details{margin:24px 0 0}.spin-screen .fm-details summary{min-height:44px;padding:10px 0;cursor:pointer}.spin-screen .alert{max-width:640px;margin:12px auto}
.spin-screen a:focus-visible,.spin-screen button:focus-visible,.spin-screen summary:focus-visible{outline:3px solid #e2fff8;outline-offset:4px}.spin-screen ::selection{background:#b5f5e6;color:#082a31}
.spin-screen [hidden]{display:none!important}
@media(max-width:767px){.spin-screen .formal-spin-stage{width:100%;max-width:none}.spin-screen .spin-nav{min-height:44px;padding:2px 12px;font-size:13px}.spin-nav>div{gap:12px}.spin-support{margin-top:14px}}
@media(prefers-reduced-motion:reduce){.spin-screen .sword-count:after{animation:none}}

.spin-screen .sword-count strong{font-size:1.45em}

.spin-screen .daily-checkin .line-button:disabled{background:#244c45!important;color:#d8eee7!important;border-color:#416d60!important}

.spin-screen .sword-count{background-image:url("sword-plaque-v2.svg")}

/* Anchor to the blade center (x 759, y 1052 in the 1254-square artwork). */
.spin-screen .sword-count{left:40.5%;top:79.7%;width:40%}

/* Keep the stage width stable when a receipt becomes visible. */
html{overflow-y:scroll}

/* Keep the stage width stable when a receipt becomes visible. */
html{overflow-y:scroll}

/* Identify the separate daily activity without covering the wheel or sword. */
.spin-screen .spin-mode-title{margin:0;padding:6px 16px;font-size:14px;line-height:1.4;text-align:center;color:#d4faf3;font-weight:700}
.spin-screen .daily-spin-experience .formal-spin-stage{width:min(100%,calc(100svh - 80px))}
@media(max-width:767px){.spin-screen .daily-spin-experience .formal-spin-stage{width:100%}}

/* Glow follows the actual draw control: unavailable, waiting and bulk draws stay dark. */
.spin-screen .formal-spin-go{opacity:1!important;background:transparent!important;border:0!important;color:transparent!important;padding:0;box-shadow:none}
.spin-screen .formal-spin-go[form="formal-spin-form"]:not(:disabled)::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse at center,#ddfff218 0%,#aaffdd08 57%,#f8e49b40 76%,transparent 80%);box-shadow:inset 0 0 15px #fff0b72e,0 0 15px #68ffe535;animation:goReadyBreath 2.8s ease-in-out infinite}
@keyframes goReadyBreath{0%,100%{opacity:.20}50%{opacity:.78}}
/* Sculpted jade and gold plaque, aligned to the original horizontal sword. */
.spin-screen .sword-count{background-image:url("sword-plaque-relief-v3.png");background-size:100% 190%;background-position:center 48%;aspect-ratio:360/76;gap:2.5%;font-family:"Noto Serif TC","PMingLiU",serif;font-size:clamp(12px,3.8cqw,30px);text-shadow:0 1px 0 #d9fff2,0 2px 1px #00534f,0 3px 2px #001f27,0 0 7px #59e7cc66;overflow:hidden}
.spin-screen .sword-count strong{font-family:Georgia,"Times New Roman",serif;font-size:1.55em;color:#ffe9a2;text-shadow:0 1px 0 #fff9d1,0 2px 1px #a46a1d,0 3px 2px #402405,0 0 8px #eedc7f66}
.spin-screen .sword-count:after{inset:20% 15%;background:linear-gradient(110deg,transparent 38%,#e8fff450 50%,transparent 62%);clip-path:inset(0 round 15%)}
@media(prefers-reduced-motion:reduce){.spin-screen .formal-spin-go::after{animation:none!important;opacity:.3}.spin-screen .sword-count:after{display:none}}
