/*! Xellence Shop – Spin & Win */
.xs-spin { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; background: rgba(17, 12, 34, .62); opacity: 0; transition: opacity .25s; font-family: inherit; -webkit-font-smoothing: antialiased; }
.xs-spin.is-in { opacity: 1; }
.xs-spin-open, .xs-spin-open body { overflow: hidden; }
.xs-spin__card { position: relative; display: grid; grid-template-columns: minmax(260px, 360px) minmax(260px, 340px); gap: 28px; align-items: center; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 30px; border-radius: 24px; background: radial-gradient(120% 90% at 0% 0%, #fff7e6 0%, #fff 55%), #fff; box-shadow: 0 30px 80px rgba(20, 10, 50, .35); color: #1e1b2e; transform: translateY(14px) scale(.98); transition: transform .3s; overflow-x: hidden; }
.xs-spin.is-in .xs-spin__card { transform: none; }
.xs-spin__x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(30, 27, 46, .06); color: #1e1b2e; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.xs-spin__x:hover { background: rgba(30, 27, 46, .12); }
.xs-spin__wheel { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(30, 20, 60, .25)); }
.xs-spin__svg { display: block; width: 100%; height: 100%; }
.xs-spin__rot { transform-origin: 160px 160px; transform-box: view-box; font-family: inherit; }
.xs-spin__pointer { position: absolute; top: -6px; left: 50%; z-index: 2; width: 0; height: 0; margin-left: -16px; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #e11d48; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
.xs-spin.is-spinning .xs-spin__pointer { animation: xs-spin-tick .12s linear infinite alternate; }
@keyframes xs-spin-tick { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.xs-spin__body { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.xs-spin__title { margin: 0; font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #1e1b2e; }
.xs-spin__sub { margin: 0; color: #575271; font-size: .98rem; line-height: 1.45; }
.xs-spin__terms { margin: 0; font-size: .82rem; color: #8a5a00; background: #fff4e0; border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.xs-spin__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 6px; padding: 12px 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff !important; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 24px rgba(124, 58, 237, .35); transition: transform .12s, box-shadow .12s; }
.xs-spin__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(124, 58, 237, .42); }
.xs-spin__btn:disabled { opacity: .7; cursor: progress; transform: none; }
.xs-spin__skip { align-self: center; border: 0; background: none; color: #8b87a3; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 6px; }
.xs-spin__err { margin: 0; min-height: 0; color: #b91c1c; font-size: .88rem; }
.xs-spin__err:empty { display: none; }
.xs-spin__form { display: flex; flex-direction: column; gap: 10px; }
.xs-spin__f { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: #3a3550; }
.xs-spin__f input, .xs-spin__tel { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #ddd8ea; border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: #1e1b2e; box-sizing: border-box; }
.xs-spin__tel { display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; }
.xs-spin__tel b { color: #575271; font-weight: 700; }
.xs-spin__tel input { border: 0; min-height: 44px; padding-left: 0; outline: none; }
.xs-spin__f input:focus, .xs-spin__tel:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); outline: none; }
.xs-spin__c { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: #575271; line-height: 1.35; }
.xs-spin__c input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.xs-spin__code { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px dashed #7c3aed; border-radius: 14px; background: #f5f0ff; }
.xs-spin__code span { font-size: .78rem; color: #6d28d9; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.xs-spin__code strong { flex: 1; min-width: 0; font-size: clamp(1rem, 4.2vw, 1.2rem); letter-spacing: .06em; white-space: nowrap; color: #1e1b2e; user-select: all; }
.xs-spin__code span { flex: none; }
.xs-spin__code button { border: 0; border-radius: 10px; background: #1e1b2e; color: #fff; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.xs-spin__conf { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: xs-spin-fall 2s ease-in forwards; pointer-events: none; }
@keyframes xs-spin-fall { to { top: 105%; opacity: .2; } }

.xs-spin-launch { position: fixed; left: 16px; bottom: 16px; z-index: 99980; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font: inherit; font-size: .9rem; font-weight: 800; box-shadow: 0 10px 24px rgba(124, 58, 237, .35); cursor: pointer; animation: xs-spin-pop .4s ease-out; }
.xs-spin-launch.is-code { background: #15803d; box-shadow: 0 10px 24px rgba(21, 128, 61, .3); letter-spacing: .02em; }
@keyframes xs-spin-pop { from { transform: translateY(20px); opacity: 0; } }

@media (max-width: 640px) {
	.xs-spin { place-items: end center; padding: 0; }
	.xs-spin__card { grid-template-columns: 1fr; gap: 14px; width: 100%; max-height: 94vh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(40px); }
	.xs-spin__wheel { max-width: min(300px, 76vw); }
	.xs-spin__body { text-align: center; }
	.xs-spin__terms { align-self: center; }
	.xs-spin__f, .xs-spin__c { text-align: left; }
	.xs-spin-launch { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
	body.xs-has-buybar .xs-spin-launch { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .xs-spin, .xs-spin__card, .xs-spin-launch { transition: none; animation: none; } }

.xs-spin-open .xctic-bar { transform: translateY(115%) !important; }
.xs-spin-open .xctic-wa, .xs-spin-open .xl-wa { visibility: hidden; }
