:root:has(body.luckit-gacha-page) {
    color-scheme: light;
    background: #f7f7ff;
    color: #172554;
}

body.luckit-gacha-page {
    color: #172554;
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(249, 115, 22, .10),
            transparent 25%
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(139, 92, 246, .10),
            transparent 28%
        ),
        linear-gradient(180deg, #fffdf8, #f7f7ff 72%, #eef2ff);
}

body.luckit-gacha-page::before {
    background-image:
        radial-gradient(
            circle,
            rgba(249, 115, 22, .20) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(56, 189, 248, .16) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(139, 92, 246, .15) 2px,
            transparent 3px
        );
    background-position: 10px 18px, 44px 64px, 82px 28px;
    background-size: 96px 96px;
    opacity: .52;
}

.luckit-gacha-page .luckit-public-brand span,
.luckit-gacha-page .luckit-public-logo {
    color: #172554;
}

.luckit-gacha-page .luckit-public-logo::first-letter {
    color: #f97316;
}

.luckit-gacha-page .luckit-public-card {
    border-color: rgba(30, 64, 175, .10);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 65px rgba(30, 41, 59, .10);
}

.luckit-gacha-page .luckit-public-eyebrow {
    color: #ea580c;
}

.luckit-gacha-page .luckit-public-card h1,
.luckit-gacha-page .luckit-public-information h2 {
    color: #172554;
}

.luckit-gacha-page .luckit-public-description,
.luckit-gacha-page .luckit-public-count,
.luckit-gacha-page .luckit-demo-lead {
    color: #64748b;
}

.luckit-gacha-page .luckit-public-count strong {
    color: #ea580c;
}

.luckit-gacha-page .luckit-public-alert,
.luckit-gacha-page .luckit-demo-badge {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.luckit-gacha-page .luckit-demo-safe {
    background: #f0fdf4;
    color: #166534;
}

.luckit-gacha-page .luckit-public-note,
.luckit-gacha-page .luckit-public-footer {
    color: #64748b;
}

.luckit-gacha-page .luckit-public-information dl div {
    border-color: #e2e8f0;
}

.luckit-gacha-page .luckit-public-information dt {
    color: #64748b;
}

.luckit-gacha-page .gacha-stage {
    min-height: 500px;
    margin-top: 16px;
}

.luckit-gacha-page .gacha-machine {
    width: 304px;
    filter: drop-shadow(0 25px 24px rgba(30, 41, 59, .16));
}

.luckit-gacha-page .gacha-light {
    width: 13px;
    height: 13px;
    margin-bottom: 8px;
    background: #fb923c;
    box-shadow:
        0 0 0 6px rgba(251, 146, 60, .12),
        0 0 22px rgba(249, 115, 22, .42);
}

.luckit-gacha-page .gacha-dome {
    z-index: 2;
    height: 230px;
    border: 8px solid #172554;
    border-bottom-width: 10px;
    border-radius: 50% 50% 25px 25px / 58% 58% 22px 22px;
    background:
        linear-gradient(
            112deg,
            rgba(255, 255, 255, .92) 0 10%,
            rgba(255, 255, 255, .16) 11% 19%,
            transparent 20%
        ),
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 255, 255, .94),
            rgba(224, 231, 255, .65) 58%,
            rgba(196, 181, 253, .52)
        );
    box-shadow:
        inset 12px 13px 24px rgba(255, 255, 255, .85),
        inset -10px -12px 22px rgba(99, 102, 241, .13),
        0 12px 24px rgba(23, 37, 84, .16);
}

.luckit-gacha-page .gacha-dome::before {
    position: absolute;
    z-index: 4;
    top: 20px;
    left: 30px;
    width: 30px;
    height: 112px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
    content: "";
    transform: rotate(18deg);
}

.luckit-gacha-page .gacha-ball {
    width: 62px;
    height: 62px;
    border: 3px solid rgba(255, 255, 255, .92);
    box-shadow:
        inset 9px 10px 13px rgba(255, 255, 255, .30),
        inset -7px -10px 13px rgba(15, 23, 42, .14),
        0 7px 12px rgba(30, 41, 59, .16);
}

.luckit-gacha-page .gacha-ball::before {
    position: absolute;
    top: 9px;
    left: 13px;
    width: 16px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .70);
    content: "";
    transform: rotate(-25deg);
}

.luckit-gacha-page .ball-1 {
    bottom: 10px;
    left: 12px;
    background: #fb7185;
}

.luckit-gacha-page .ball-2 {
    bottom: 5px;
    left: 68px;
    background: #4ade80;
}

.luckit-gacha-page .ball-3 {
    right: 12px;
    bottom: 8px;
    background: #38bdf8;
}

.luckit-gacha-page .ball-4 {
    bottom: 60px;
    left: 35px;
    background: #facc15;
}

.luckit-gacha-page .ball-5 {
    right: 38px;
    bottom: 60px;
    background: #f472b6;
}

.luckit-gacha-page .ball-6 {
    bottom: 14px;
    left: 126px;
    background: #fb923c;
}

.luckit-gacha-page .ball-7 {
    bottom: 105px;
    left: 75px;
    background: #38bdf8;
}

.luckit-gacha-page .ball-8 {
    right: 72px;
    bottom: 108px;
    background: #facc15;
}

.luckit-gacha-page .ball-9 {
    bottom: 72px;
    left: 115px;
    background: #a78bfa;
}

.luckit-gacha-page .gacha-body {
    z-index: 1;
    height: 225px;
    margin-top: -3px;
    border: 8px solid #172554;
    border-radius: 20px 20px 48px 48px;
    background:
        linear-gradient(
            112deg,
            #fff,
            #f8fafc 55%,
            #e2e8f0
        );
    box-shadow:
        0 22px 35px rgba(30, 41, 59, .18),
        inset 10px 10px 18px rgba(255, 255, 255, .95),
        inset -8px -9px 16px rgba(148, 163, 184, .14);
}

.luckit-gacha-page .gacha-body::after {
    position: absolute;
    right: 18px;
    bottom: -19px;
    left: 18px;
    height: 28px;
    border: 7px solid #172554;
    border-radius: 8px 8px 22px 22px;
    background: #fff;
    content: "";
    box-shadow: 0 12px 20px rgba(30, 41, 59, .16);
}

.luckit-gacha-page .gacha-logo {
    width: fit-content;
    min-width: 112px;
    margin: 13px auto 0;
    padding: 6px 15px;
    border-radius: 999px;
    background: #172554;
    color: #fff;
}

.luckit-gacha-page .gacha-logo::first-letter {
    color: #fb923c;
}

.luckit-gacha-page .gacha-handle-button {
    top: 50px;
    right: auto;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 5px solid #fff;
    background: #172554;
    box-shadow:
        0 0 0 5px #172554,
        0 13px 19px rgba(30, 41, 59, .24);
    transform: translateX(-50%);
}

.luckit-gacha-page .gacha-handle-button:hover {
    box-shadow:
        0 0 0 5px #172554,
        0 16px 24px rgba(30, 41, 59, .28),
        0 0 0 11px rgba(249, 115, 22, .13);
    transform: translateX(-50%) scale(1.04);
}

.luckit-gacha-page .gacha-handle-button:active {
    transform: translateX(-50%) scale(.96);
}

.luckit-gacha-page .gacha-handle {
    inset: 9px;
    border: 0;
    background:
        radial-gradient(
            circle at 34% 25%,
            #fdba74,
            #f97316 42%,
            #c2410c
        );
    box-shadow:
        inset 7px 8px 10px rgba(255, 255, 255, .30),
        inset -8px -10px 12px rgba(124, 45, 18, .25);
}

.luckit-gacha-page .gacha-handle::before {
    inset: 30px 8px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #9a3412,
            #ffedd5 16%,
            #c2410c 50%,
            #ffedd5 84%,
            #9a3412
        );
    transform: rotate(45deg);
}

.luckit-gacha-page .gacha-handle-arm,
.luckit-gacha-page .gacha-handle-knob {
    display: none;
}

.luckit-gacha-page .gacha-chute {
    z-index: 2;
    bottom: 12px;
    left: 50%;
    width: 122px;
    height: 51px;
    padding: 7px;
    border: 4px solid #172554;
    border-radius: 13px 13px 24px 24px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.luckit-gacha-page .gacha-chute span {
    border-radius: 8px 8px 17px 17px;
    background: radial-gradient(
        ellipse at 50% 100%,
        #334155,
        #0f172a 72%
    );
}

.luckit-gacha-page .gacha-drop-capsule {
    bottom: -8px;
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 12px 10px rgba(30, 41, 59, .22));
}

.luckit-gacha-page .gacha-action-label {
    margin-top: 13px;
    color: #172554;
}

.luckit-gacha-page .luckit-result-card {
    color: #172554;
    background: rgba(255, 255, 255, .97);
}

.luckit-gacha-page .luckit-result-heading {
    color: #c2410c;
}

.luckit-gacha-page .luckit-result-rank,
.luckit-gacha-page .luckit-result-card h1 {
    color: #172554;
}

.luckit-gacha-page .luckit-result-meta {
    color: #64748b;
}

.luckit-gacha-page .luckit-demo-result {
    background: rgba(241, 245, 249, .94);
}

.luckit-gacha-page .luckit-demo-result-card {
    border-color: #fed7aa;
    background: #fff;
    box-shadow: 0 28px 80px rgba(30, 41, 59, .20);
}

.luckit-gacha-page .luckit-demo-result-card h2 {
    color: #172554;
}

.luckit-gacha-page .luckit-demo-result-card small {
    color: #64748b;
}

@media (max-width: 520px) {
    .luckit-gacha-page .gacha-stage {
        min-height: 458px;
        margin-bottom: -12px;
        transform: scale(.88);
    }

    .luckit-gacha-page .luckit-public-card {
        padding-inline: 15px;
    }
}

/* Photo-real capsule gacha */
.luckit-gacha-page .gacha-photo-stage {
    position: relative;
    min-height: 540px;
    margin: 10px auto 0;
}

.luckit-gacha-page .gacha-photo-machine {
    position: relative;
    width: min(100%, 390px);
    margin: 0 auto;
    aspect-ratio: 1145 / 1374;
    filter: drop-shadow(0 24px 22px rgba(30, 41, 59, .16));
}

.luckit-gacha-page .gacha-shell-image {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.luckit-gacha-page .gacha-photo-capsules {
    position: absolute;
    z-index: 4;
    top: 14%;
    left: 18%;
    width: 64%;
    height: 37%;
    overflow: hidden;
    border-radius: 46% 46% 22% 22%;
    pointer-events: none;
}

.luckit-gacha-page .gacha-photo-capsules .gacha-ball {
    position: absolute;
    width: 20%;
    height: auto;
    aspect-ratio: 1;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow:
        inset 7px 8px 10px rgba(255, 255, 255, .35),
        inset -6px -8px 11px rgba(15, 23, 42, .14),
        0 6px 10px rgba(30, 41, 59, .16);
}

.luckit-gacha-page .gacha-photo-capsules .gacha-ball::after {
    position: absolute;
    top: 47%;
    right: -2px;
    left: -2px;
    height: 3px;
    background: rgba(255, 255, 255, .9);
    content: "";
}

.luckit-gacha-page .gacha-photo-capsules .ball-1 {
    bottom: 3%;
    left: 3%;
    background: #fb7185;
}

.luckit-gacha-page .gacha-photo-capsules .ball-2 {
    bottom: 1%;
    left: 25%;
    background: #4ade80;
}

.luckit-gacha-page .gacha-photo-capsules .ball-3 {
    right: 2%;
    bottom: 4%;
    background: #38bdf8;
}

.luckit-gacha-page .gacha-photo-capsules .ball-4 {
    bottom: 24%;
    left: 12%;
    background: #facc15;
}

.luckit-gacha-page .gacha-photo-capsules .ball-5 {
    right: 11%;
    bottom: 25%;
    background: #f472b6;
}

.luckit-gacha-page .gacha-photo-capsules .ball-6 {
    bottom: 5%;
    left: 48%;
    background: #fb923c;
}

.luckit-gacha-page .gacha-photo-capsules .ball-7 {
    top: 8%;
    left: 25%;
    background: #38bdf8;
}

.luckit-gacha-page .gacha-photo-capsules .ball-8 {
    top: 7%;
    right: 24%;
    background: #facc15;
}

.luckit-gacha-page .gacha-photo-capsules .ball-9 {
    bottom: 27%;
    left: 40%;
    background: #a78bfa;
}

.luckit-gacha-page .gacha-photo-glass {
    position: absolute;
    z-index: 5;
    top: 12%;
    left: 16%;
    width: 68%;
    height: 41%;
    border-radius: 47% 47% 22% 22%;
    background:
        linear-gradient(
            112deg,
            rgba(255, 255, 255, .30),
            transparent 24% 72%,
            rgba(255, 255, 255, .18)
        );
    pointer-events: none;
}

.luckit-gacha-page .gacha-photo-logo {
    position: absolute;
    z-index: 6;
    top: 55.5%;
    left: 50%;
    padding: 3px 12px;
    border-radius: 999px;
    background: #172554;
    color: #fff;
    font-size: clamp(.58rem, 2.3vw, .76rem);
    font-weight: 900;
    letter-spacing: .16em;
    transform: translateX(-50%);
    pointer-events: none;
}

.luckit-gacha-page .gacha-photo-logo::first-letter {
    color: #fb923c;
}

.luckit-gacha-page .gacha-photo-handle {
    position: absolute;
    z-index: 8;
    top: 61.1%;
    left: 50%;
    width: 18.5%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    border: 4px solid #fff;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 34% 25%,
            #fdba74,
            #f97316 43%,
            #c2410c 78%
        );
    box-shadow:
        0 0 0 4px #172554,
        0 9px 13px rgba(30, 41, 59, .28);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: filter .2s ease, transform .2s ease;
}

.luckit-gacha-page .gacha-photo-handle:hover {
    filter: brightness(1.07);
    transform: translate(-50%, -50%) scale(1.05);
}

.luckit-gacha-page .gacha-photo-handle-bar {
    position: absolute;
    top: 46%;
    left: 20%;
    width: 60%;
    height: 13%;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7ed, #fed7aa 45%, #9a3412);
    box-shadow: 0 2px 4px rgba(67, 20, 7, .35);
    transform: rotate(45deg);
}

.luckit-gacha-page.luckit-is-drawing .gacha-photo-handle,
body.luckit-gacha-page.luckit-is-drawing .gacha-photo-handle {
    animation: luckit-photo-handle-spin 1.15s cubic-bezier(.3, .7, .2, 1);
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .gacha-ball {
    animation: luckit-photo-capsule-mix .42s ease-in-out infinite alternate;
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .gacha-ball:nth-child(2n) {
    animation-direction: alternate-reverse;
    animation-duration: .34s;
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .gacha-ball:nth-child(3n) {
    animation-duration: .51s;
}

.luckit-gacha-page .gacha-photo-drop {
    position: absolute;
    z-index: 12;
    top: 77%;
    left: 50%;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translateX(-50%);
}

.luckit-gacha-page .gacha-photo-drop:not([hidden]) {
    display: block;
    animation: luckit-photo-capsule-drop .65s cubic-bezier(.2, .8, .25, 1);
}

.luckit-gacha-page .gacha-photo-drop .capsule-top,
.luckit-gacha-page .gacha-photo-drop .capsule-bottom {
    position: absolute;
    right: 0;
    left: 0;
    height: 50%;
    border: 3px solid #fff;
    background: #fb923c;
    box-shadow: 0 7px 12px rgba(30, 41, 59, .22);
    transition: transform .52s cubic-bezier(.2, .8, .2, 1);
}

.luckit-gacha-page .gacha-photo-drop .capsule-top {
    top: 0;
    border-radius: 76px 76px 8px 8px;
    background: #fb923c;
}

.luckit-gacha-page .gacha-photo-drop .capsule-bottom {
    bottom: 0;
    border-radius: 8px 8px 76px 76px;
    background: #fde047;
}

.luckit-gacha-page .gacha-photo-drop.is-open .capsule-top {
    transform: translateY(-34px) rotate(-18deg);
}

.luckit-gacha-page .gacha-photo-drop.is-open .capsule-bottom {
    transform: translateY(18px) rotate(8deg);
}

.luckit-gacha-page .gacha-photo-drop.is-ready {
    animation:
        luckit-photo-capsule-drop .65s cubic-bezier(.2, .8, .25, 1),
        luckit-photo-capsule-ready 1s ease-in-out .7s infinite;
}

@keyframes luckit-photo-handle-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }
    75% {
        transform: translate(-50%, -50%) rotate(320deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes luckit-photo-capsule-mix {
    from {
        transform: translate(-10px, 8px) rotate(-14deg);
    }
    to {
        transform: translate(13px, -15px) rotate(16deg);
    }
}

@keyframes luckit-photo-capsule-drop {
    from {
        opacity: 0;
        transform: translate(-50%, -110px) scale(.55) rotate(-50deg);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, 8px) scale(1.05) rotate(12deg);
    }
    to {
        transform: translate(-50%, 0) scale(1) rotate(0);
    }
}

@keyframes luckit-photo-capsule-ready {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@media (max-width: 520px) {
    .luckit-gacha-page .gacha-photo-stage {
        min-height: 470px;
    }

    .luckit-gacha-page .gacha-photo-machine {
        width: min(100%, 335px);
    }

    .luckit-gacha-page .gacha-photo-drop {
        width: 66px;
        height: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.luckit-gacha-page.luckit-is-drawing
    .gacha-photo-capsules .gacha-ball,
    .luckit-gacha-page.luckit-is-drawing .gacha-photo-handle,
    .luckit-gacha-page .gacha-photo-drop {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Photo gacha position refinements */
.luckit-gacha-page .gacha-photo-handle {
    top: 65%;
}

.luckit-gacha-page .gacha-photo-drop {
    top: 80%;
}

.luckit-gacha-page .gacha-photo-capsules .ball-10 {
    top: 31%;
    left: 1%;
    background: #c084fc;
}

.luckit-gacha-page .gacha-photo-capsules .ball-11 {
    top: 29%;
    right: 1%;
    background: #fb7185;
}

.luckit-gacha-page .gacha-photo-capsules .ball-12 {
    top: 47%;
    left: 28%;
    background: #22d3ee;
}

.luckit-gacha-page .gacha-photo-capsules .ball-13 {
    top: 45%;
    right: 29%;
    background: #fbbf24;
}

.luckit-gacha-page .gacha-photo-capsules .ball-14 {
    top: 3%;
    left: 3%;
    background: #fb923c;
}

.luckit-gacha-page .gacha-photo-capsules .ball-15 {
    top: 2%;
    right: 3%;
    background: #4ade80;
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .ball-10,
body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .ball-13 {
    animation-direction: alternate-reverse;
    animation-duration: .29s;
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .ball-11,
body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .ball-14 {
    animation-duration: .38s;
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .ball-12,
body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-capsules .ball-15 {
    animation-direction: alternate-reverse;
    animation-duration: .47s;
}

/* LUCKIT wordmark with smile */
.luckit-gacha-page .gacha-photo-logo {
    top: 54.2%;
    display: flex;
    width: auto;
    min-width: 0;
    aspect-ratio: auto;
    padding: 3px 13px 9px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 4px 10px rgba(30, 41, 59, .10);
    color: #172554;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.luckit-gacha-page .gacha-photo-logo strong {
    font-size: clamp(.68rem, 2.8vw, .92rem);
    font-weight: 950;
    letter-spacing: .06em;
}

.luckit-gacha-page .gacha-photo-logo strong::first-letter {
    color: #fb923c;
}

.luckit-gacha-page .gacha-photo-smile {
    position: relative;
    inset: auto;
    display: block;
    width: 30px;
    height: 9px;
    margin-top: 3px;
    border: 0;
    border-bottom: 3px solid #172554;
    border-radius: 0 0 50% 50%;
}

.luckit-gacha-page .gacha-photo-smile::before,
.luckit-gacha-page .gacha-photo-smile::after {
    display: none;
    content: none;
}

/* Large centered LUCKIT dome logo */
.luckit-gacha-page .gacha-photo-logo {
    z-index: 7;
    top: 34%;
    left: 50%;
    width: 52%;
    padding: 12px 10px 14px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 50% / 42%;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .97),
            rgba(248, 250, 252, .91)
        );
    box-shadow:
        0 9px 20px rgba(30, 41, 59, .15),
        inset 4px 4px 8px rgba(255, 255, 255, .9);
    transform: translate(-50%, -50%) rotate(-1deg);
}

.luckit-gacha-page .gacha-photo-logo strong {
    font-size: clamp(1.15rem, 5vw, 1.65rem);
    font-weight: 950;
    letter-spacing: .035em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .9);
}

.luckit-gacha-page .gacha-photo-smile {
    width: 48px;
    height: 13px;
    margin-top: 5px;
    border-bottom-width: 5px;
}

/* Transparent LUCKIT dome logo image */
.luckit-gacha-page .gacha-photo-logo {
    top: 34%;
    width: 54%;
    padding: 13px 17px 15px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 50% / 44%;
    background: rgba(255, 255, 255, .91);
    box-shadow:
        0 10px 22px rgba(30, 41, 59, .14),
        inset 4px 4px 9px rgba(255, 255, 255, .95);
}

.luckit-gacha-page .gacha-photo-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Smaller dome logo */
.luckit-gacha-page .gacha-photo-logo {
    width: 42%;
    padding: 9px 13px 11px;
}

/* Raise dome logo */
.luckit-gacha-page .gacha-photo-logo {
    top: 30.5%;
}

/* Friendly local-event atmosphere */
body.luckit-gacha-page {
    background:
        radial-gradient(
            circle at 8% 22%,
            rgba(251, 146, 60, .15),
            transparent 24%
        ),
        radial-gradient(
            circle at 91% 28%,
            rgba(56, 189, 248, .14),
            transparent 25%
        ),
        radial-gradient(
            circle at 50% 88%,
            rgba(167, 139, 250, .12),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fff8ed 0,
            #fffdf8 24%,
            #f5f9ff 68%,
            #f7f5ff 100%
        );
}

body.luckit-gacha-page::before {
    background-image:
        radial-gradient(
            circle,
            rgba(249, 115, 22, .52) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(56, 189, 248, .44) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(236, 72, 153, .36) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(139, 92, 246, .38) 2px,
            transparent 3px
        ),
        linear-gradient(
            55deg,
            transparent 46%,
            rgba(250, 204, 21, .42) 47% 53%,
            transparent 54%
        );
    background-position:
        12px 24px,
        48px 72px,
        86px 38px,
        30px 112px,
        70px 94px;
    background-size:
        108px 108px,
        122px 122px,
        136px 136px,
        148px 148px,
        130px 130px;
    opacity: .65;
}

body.luckit-gacha-page::after {
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 58px;
    background:
        linear-gradient(
            165deg,
            transparent 0 43%,
            #fb923c 44% 66%,
            transparent 67%
        ) 0 0 / 80px 58px repeat-x,
        linear-gradient(
            195deg,
            transparent 0 43%,
            #38bdf8 44% 66%,
            transparent 67%
        ) 40px 0 / 80px 58px repeat-x;
    content: "";
    opacity: .42;
    pointer-events: none;
}

.luckit-gacha-page .luckit-public-shell {
    position: relative;
    z-index: 1;
}

@media (max-width: 520px) {
    body.luckit-gacha-page::after {
        height: 42px;
        background-size: 58px 42px;
        opacity: .34;
    }
}

/* Cheerful event title banner */
.luckit-gacha-page .luckit-campaign-intro h1,
.luckit-gacha-page .luckit-public-card > h1 {
    position: relative;
    display: table;
    max-width: 92%;
    margin: 14px auto 18px;
    padding: 14px 32px 16px;
    border: 3px solid #fff;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #fde047 0,
            #fdba74 48%,
            #fb923c 100%
        );
    box-shadow:
        0 8px 0 #ea580c,
        0 14px 26px rgba(194, 65, 12, .20);
    color: #172554;
    font-size: clamp(1.65rem, 6vw, 2.55rem);
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1.25;
    text-align: center;
    transform: rotate(-1deg);
}

.luckit-gacha-page .luckit-campaign-intro h1::before,
.luckit-gacha-page .luckit-public-card > h1::before {
    position: absolute;
    top: 50%;
    left: -24px;
    color: #fb7185;
    content: "★";
    font-size: 1.15rem;
    transform: translateY(-50%) rotate(-12deg);
}

.luckit-gacha-page .luckit-campaign-intro h1::after,
.luckit-gacha-page .luckit-public-card > h1::after {
    position: absolute;
    top: 50%;
    right: -24px;
    color: #38bdf8;
    content: "★";
    font-size: 1.15rem;
    transform: translateY(-50%) rotate(12deg);
}

@media (max-width: 520px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        max-width: 88%;
        padding: 12px 18px 14px;
        border-radius: 15px;
        font-size: 1.55rem;
    }
}

/* Premium navy and gold event title */
.luckit-gacha-page .luckit-campaign-intro h1,
.luckit-gacha-page .luckit-public-card > h1 {
    border: 2px solid #facc15;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(59, 130, 246, .34),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #0f275f 0,
            #172554 55%,
            #0b1739 100%
        );
    box-shadow:
        0 6px 0 #d4a80c,
        0 14px 28px rgba(15, 23, 42, .24),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    color: #fff;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .24);
    transform: none;
}

.luckit-gacha-page .luckit-campaign-intro h1::before,
.luckit-gacha-page .luckit-public-card > h1::before,
.luckit-gacha-page .luckit-campaign-intro h1::after,
.luckit-gacha-page .luckit-public-card > h1::after {
    color: #facc15;
    text-shadow: 0 2px 5px rgba(15, 23, 42, .18);
}

/* Soft event venue inside the demo card */
.luckit-gacha-page .luckit-public-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 175, .12);
    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(251, 191, 36, .24) 0 25px,
            transparent 27px
        ),
        radial-gradient(
            circle at 92% 24%,
            rgba(56, 189, 248, .20) 0 31px,
            transparent 33px
        ),
        radial-gradient(
            circle at 7% 68%,
            rgba(244, 114, 182, .14) 0 20px,
            transparent 22px
        ),
        radial-gradient(
            circle at 94% 76%,
            rgba(74, 222, 128, .14) 0 24px,
            transparent 26px
        ),
        linear-gradient(
            160deg,
            #fff8eb 0,
            #fffdf8 42%,
            #eef8ff 100%
        );
    box-shadow:
        0 24px 65px rgba(30, 41, 59, .12),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.luckit-gacha-page .luckit-public-card::before {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle,
            rgba(249, 115, 22, .28) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(37, 99, 235, .22) 2px,
            transparent 3px
        ),
        linear-gradient(
            45deg,
            transparent 45%,
            rgba(250, 204, 21, .25) 46% 54%,
            transparent 55%
        );
    background-position: 18px 34px, 68px 90px, 108px 52px;
    background-size: 126px 126px, 148px 148px, 164px 164px;
    content: "";
    opacity: .55;
    pointer-events: none;
}

.luckit-gacha-page .luckit-public-card > * {
    position: relative;
    z-index: 1;
}

.luckit-gacha-page .gacha-photo-machine {
    border-radius: 36% 36% 16% 16%;
}

/* Capsule opening flash */
body.luckit-gacha-page.luckit-capsule-open
.gacha-photo-drop::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .98) 0 9%,
            rgba(250, 204, 21, .82) 10% 23%,
            rgba(251, 146, 60, .36) 24% 44%,
            transparent 65%
        );
    content: "";
    transform: translate(-50%, -50%);
    animation: luckit-capsule-flash .7s ease-out forwards;
}

/* Winning overlay */
.luckit-gacha-page .luckit-demo-result {
    background:
        radial-gradient(
            circle at center,
            rgba(30, 64, 175, .40),
            rgba(8, 18, 48, .91) 70%
        );
    backdrop-filter: blur(8px);
}

.luckit-gacha-page .luckit-demo-result-card {
    position: relative;
    overflow: hidden;
    border: 3px solid #facc15;
    background:
        radial-gradient(
            circle at 50% 5%,
            rgba(250, 204, 21, .30),
            transparent 34%
        ),
        linear-gradient(155deg, #fffdf5, #fff 58%, #fff7dd);
    box-shadow:
        0 0 0 8px rgba(250, 204, 21, .13),
        0 28px 80px rgba(0, 0, 0, .38);
}

.luckit-gacha-page
.luckit-demo-result.is-celebrating
.luckit-demo-result-card {
    animation: luckit-winner-card .72s cubic-bezier(.18, .9, .25, 1.25);
}

.luckit-gacha-page .luckit-demo-result-rays {
    position: absolute;
    z-index: 0;
    top: 16%;
    left: 50%;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(250, 204, 21, .25) 0 8deg,
            transparent 8deg 18deg
        );
    transform: translate(-50%, -50%);
    animation: luckit-result-rays 12s linear infinite;
}

.luckit-gacha-page .luckit-demo-result-card > * {
    position: relative;
    z-index: 2;
}

.luckit-gacha-page .luckit-demo-result-mark {
    display: grid;
    width: 94px;
    height: 94px;
    margin-right: auto;
    margin-left: auto;
    border: 4px solid #fff;
    border-radius: 50%;
    background:
        linear-gradient(145deg, #fde047, #f97316);
    box-shadow:
        0 0 0 5px #172554,
        0 12px 22px rgba(30, 41, 59, .24);
    color: #172554;
    font-size: 1.25rem;
    font-weight: 950;
    place-items: center;
}

.luckit-gacha-page .luckit-demo-result-stars span {
    position: absolute;
    color: #facc15;
    font-size: 1.5rem;
    animation: luckit-result-star .9s ease-in-out infinite alternate;
}

.luckit-gacha-page .luckit-demo-result-stars span:nth-child(1) {
    top: 35px;
    left: 12%;
}

.luckit-gacha-page .luckit-demo-result-stars span:nth-child(2) {
    top: 82px;
    right: 10%;
    animation-delay: .18s;
}

.luckit-gacha-page .luckit-demo-result-stars span:nth-child(3) {
    top: 145px;
    left: 7%;
    color: #38bdf8;
    animation-delay: .32s;
}

.luckit-gacha-page .luckit-demo-result-stars span:nth-child(4) {
    top: 170px;
    right: 8%;
    color: #fb7185;
    animation-delay: .48s;
}

.luckit-gacha-page .luckit-demo-confetti {
    position: fixed;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.luckit-gacha-page .luckit-demo-confetti span {
    position: absolute;
    top: -12%;
    width: 11px;
    height: 22px;
    border-radius: 3px;
    background: #facc15;
    animation: luckit-confetti-fall 2.8s linear infinite;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(1) {
    left: 5%;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(2) {
    left: 14%;
    background: #38bdf8;
    animation-delay: .4s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(3) {
    left: 23%;
    background: #fb7185;
    animation-delay: .9s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(4) {
    left: 32%;
    background: #4ade80;
    animation-delay: .2s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(5) {
    left: 41%;
    background: #fb923c;
    animation-delay: 1.2s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(6) {
    left: 49%;
    background: #a78bfa;
    animation-delay: .6s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(7) {
    left: 58%;
    animation-delay: 1.5s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(8) {
    left: 67%;
    background: #38bdf8;
    animation-delay: .3s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(9) {
    left: 75%;
    background: #fb7185;
    animation-delay: 1s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(10) {
    left: 83%;
    background: #4ade80;
    animation-delay: .7s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(11) {
    left: 91%;
    background: #fb923c;
    animation-delay: 1.4s;
}

.luckit-gacha-page .luckit-demo-confetti span:nth-child(12) {
    left: 97%;
    background: #a78bfa;
    animation-delay: .1s;
}

@keyframes luckit-capsule-flash {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.15);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.35);
    }
}

@keyframes luckit-winner-card {
    from {
        opacity: 0;
        transform: translateY(35px) scale(.72) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes luckit-result-rays {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes luckit-result-star {
    from {
        opacity: .55;
        transform: scale(.75) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1.25) rotate(10deg);
    }
}

@keyframes luckit-confetti-fall {
    from {
        transform: translateY(-10vh) rotate(0);
    }
    to {
        transform: translateY(120vh) rotate(720deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .luckit-gacha-page .luckit-demo-result-card,
    .luckit-gacha-page .luckit-demo-result-rays,
    .luckit-gacha-page .luckit-demo-result-stars span,
    .luckit-gacha-page .luckit-demo-confetti span {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Gacha prize GET badge */
.luckit-gacha-page .luckit-demo-result-mark {
    line-height: 1;
    text-align: center;
}

.luckit-gacha-page .luckit-demo-result-mark span,
.luckit-gacha-page .luckit-demo-result-mark strong {
    display: block;
}

.luckit-gacha-page .luckit-demo-result-mark span {
    margin-bottom: 3px;
    font-size: .78rem;
    letter-spacing: .08em;
}

.luckit-gacha-page .luckit-demo-result-mark strong {
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: .02em;
}

/* Animated demo prize image */
.luckit-gacha-page .luckit-demo-prize-image {
    position: relative;
    z-index: 3;
    display: block;
    width: min(62%, 230px);
    height: auto;
    max-height: 230px;
    margin: -4px auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 15px 14px rgba(30, 41, 59, .22));
}

.luckit-gacha-page
.luckit-demo-result.is-celebrating
.luckit-demo-prize-image {
    animation: luckit-prize-pop 1s cubic-bezier(.16, 1.25, .3, 1);
}

@keyframes luckit-prize-pop {
    0% {
        opacity: 0;
        transform: translateY(70px) scale(.28) rotate(-9deg);
    }
    62% {
        opacity: 1;
        transform: translateY(-12px) scale(1.09) rotate(3deg);
    }
    82% {
        transform: translateY(4px) scale(.97) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@media (max-width: 520px) {
    .luckit-gacha-page .luckit-demo-prize-image {
        width: min(58%, 190px);
        max-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .luckit-gacha-page .luckit-demo-prize-image {
        animation-duration: .01ms !important;
    }
}

/* Compact single-screen prize result */
.luckit-gacha-page .luckit-demo-result-card {
    width: min(92vw, 430px);
    max-height: calc(100svh - 24px);
    padding: 20px 18px 18px;
    overflow: hidden;
}

.luckit-gacha-page .luckit-demo-result-mark {
    position: absolute;
    z-index: 6;
    top: 18px;
    right: 18px;
    width: 68px;
    height: 68px;
    margin: 0;
    border-width: 3px;
    box-shadow:
        0 0 0 4px #172554,
        0 9px 18px rgba(30, 41, 59, .24);
    transform: rotate(7deg);
}

.luckit-gacha-page .luckit-demo-result-mark span {
    margin-bottom: 2px;
    font-size: .64rem;
}

.luckit-gacha-page .luckit-demo-result-mark strong {
    font-size: 1.03rem;
}

.luckit-gacha-page .luckit-demo-result-rays {
    top: 105px;
    width: 230px;
    height: 230px;
}

.luckit-gacha-page .luckit-demo-prize-image {
    width: min(54%, 190px);
    max-height: 190px;
    margin: 0 auto -2px;
}

.luckit-gacha-page .luckit-demo-result-card > p {
    margin: 2px 0 5px;
    font-size: .72rem;
    letter-spacing: .12em;
}

.luckit-gacha-page .luckit-demo-result-card h2 {
    margin: 0 0 4px;
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.25;
}

.luckit-gacha-page .luckit-demo-result-card small {
    display: block;
    margin-bottom: 12px;
}

.luckit-gacha-page .luckit-demo-again {
    margin-top: 2px;
}

@media (max-width: 520px) {
    .luckit-gacha-page .luckit-demo-result-card {
        width: calc(100vw - 24px);
        padding: 14px 14px 13px;
        border-radius: 22px;
    }

    .luckit-gacha-page .luckit-demo-result-mark {
        top: 14px;
        right: 14px;
        width: 58px;
        height: 58px;
    }

    .luckit-gacha-page .luckit-demo-result-mark span {
        font-size: .56rem;
    }

    .luckit-gacha-page .luckit-demo-result-mark strong {
        font-size: .9rem;
    }

    .luckit-gacha-page .luckit-demo-prize-image {
        width: min(48vw, 158px);
        max-height: 158px;
    }

    .luckit-gacha-page .luckit-demo-result-rays {
        top: 82px;
        width: 190px;
        height: 190px;
    }

    .luckit-gacha-page .luckit-demo-result-stars span {
        font-size: 1rem;
    }

    .luckit-gacha-page .luckit-demo-result-card h2 {
        font-size: 1.35rem;
    }

    .luckit-gacha-page .luckit-demo-result-card small {
        margin-bottom: 9px;
        font-size: .72rem;
    }
}

/* Larger mobile gacha and event title */
@media (max-width: 520px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        width: max-content;
        max-width: calc(100% - 20px);
        padding: 13px 17px 15px;
        font-size: clamp(1.7rem, 7.3vw, 2rem);
        line-height: 1.2;
    }

    .luckit-gacha-page .gacha-photo-stage {
        min-height: 525px;
        margin-top: 4px;
    }

    .luckit-gacha-page .gacha-photo-machine {
        left: 50%;
        width: min(116vw, 410px);
        max-width: none;
        margin-right: 0;
        margin-left: 0;
        transform: translateX(-50%);
    }

    .luckit-gacha-page .gacha-photo-drop {
        top: 81%;
    }
}

@media (max-width: 350px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        width: auto;
        font-size: 1.58rem;
    }

    .luckit-gacha-page .gacha-photo-machine {
        width: 120vw;
    }
}

/* Keep mobile event title on one line */
@media (max-width: 520px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        display: block;
        width: fit-content;
        max-width: calc(100% - 12px);
        padding: 12px 13px 14px;
        font-size: clamp(1.25rem, 6.2vw, 1.7rem);
        letter-spacing: .01em;
        white-space: nowrap;
    }
}

@media (max-width: 350px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 1.2rem;
    }
}

/* Larger tablet presentation */
@media (min-width: 521px) and (max-width: 900px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        width: fit-content;
        max-width: calc(100% - 30px);
        padding: 15px 28px 17px;
        font-size: clamp(2rem, 4.6vw, 2.55rem);
        white-space: nowrap;
    }

    .luckit-gacha-page .gacha-photo-stage {
        min-height: 620px;
        margin-top: 8px;
    }

    .luckit-gacha-page .gacha-photo-machine {
        width: min(76vw, 480px);
        max-width: none;
    }

    .luckit-gacha-page .gacha-photo-drop {
        top: 82%;
        width: 82px;
        height: 82px;
    }

    .luckit-gacha-page .gacha-action-label {
        font-size: 1.15rem;
    }
}

/* Large tablet and iPad landscape/portrait presentation */
@media (min-width: 901px) and (max-width: 1180px) {
    .luckit-gacha-page .luckit-campaign-intro h1,
    .luckit-gacha-page .luckit-public-card > h1 {
        width: fit-content;
        max-width: calc(100% - 40px);
        padding: 16px 34px 18px;
        font-size: clamp(2.25rem, 4vw, 2.8rem);
        white-space: nowrap;
    }

    .luckit-gacha-page .gacha-photo-stage {
        min-height: 680px;
        margin-top: 10px;
    }

    .luckit-gacha-page .gacha-photo-machine {
        width: min(62vw, 530px);
        max-width: none;
    }

    .luckit-gacha-page .gacha-photo-drop {
        top: 83%;
        width: 88px;
        height: 88px;
    }

    .luckit-gacha-page .gacha-action-label {
        font-size: 1.25rem;
    }

    .luckit-gacha-page .luckit-public-note {
        font-size: 1rem;
    }
}

/* Production draw uses the approved demo capsule */
.luckit-gacha-page .gacha-photo-drop--automatic {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

body.luckit-gacha-page.luckit-is-drawing
.gacha-photo-drop--automatic {
    visibility: visible;
    animation:
        luckit-production-capsule-drop
        .7s cubic-bezier(.2, .8, .25, 1)
        1.6s forwards;
}

.luckit-gacha-page
.gacha-photo-drop--automatic.is-ready {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    animation:
        luckit-photo-capsule-ready
        1s ease-in-out infinite;
}

.luckit-gacha-page
.gacha-photo-drop--automatic.is-open {
    visibility: visible;
    opacity: 1;
}

.luckit-gacha-page
.gacha-photo-drop--automatic
.capsule-top {
    background:
        var(--capsule-top, #fb923c) !important;
}

.luckit-gacha-page
.gacha-photo-drop--automatic
.capsule-bottom {
    background:
        var(--capsule-bottom, #fde047) !important;
}

.luckit-gacha-page
.gacha-photo-drop--automatic.is-open
.capsule-top {
    transform: translateY(-34px) rotate(-18deg);
}

.luckit-gacha-page
.gacha-photo-drop--automatic.is-open
.capsule-bottom {
    transform: translateY(18px) rotate(8deg);
}

body.luckit-gacha-page.luckit-capsule-open
.gacha-photo-drop--automatic::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .98) 0 9%,
            rgba(250, 204, 21, .82) 10% 23%,
            rgba(251, 146, 60, .36) 24% 44%,
            transparent 65%
        );
    content: "";
    transform: translate(-50%, -50%);
    animation:
        luckit-capsule-flash .7s ease-out forwards;
}

@keyframes luckit-production-capsule-drop {
    from {
        opacity: 0;
        transform:
            translate(-50%, -105px)
            scale(.55)
            rotate(-45deg);
    }

    70% {
        opacity: 1;
        transform:
            translate(-50%, 7px)
            scale(1.05)
            rotate(10deg);
    }

    to {
        opacity: 1;
        transform:
            translate(-50%, 0)
            scale(1)
            rotate(0);
    }
}

/* The emitted capsule follows the selected result color */
body.luckit-gacha-page
.gacha-photo-stage
.gacha-photo-drop--automatic
.capsule-top {
    background:
        var(--capsule-top, #fb923c) !important;
}

body.luckit-gacha-page
.gacha-photo-stage
.gacha-photo-drop--automatic
.capsule-bottom {
    background:
        var(--capsule-bottom, #fde047) !important;
}

/* Keep the shared demo/result scene perfectly centered */
body.luckit-gacha-page .luckit-demo-result {
    position: fixed !important;
    z-index: 1000 !important;
    inset: 0 !important;
    display: grid !important;
    grid-template-rows: 1fr !important;
    grid-template-columns: 1fr !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100svh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 16px !important;
    place-items: center !important;
    overflow: auto !important;
    box-sizing: border-box !important;
    background:
        radial-gradient(
            circle at center,
            rgba(30, 64, 175, .40),
            rgba(8, 18, 48, .91) 70%
        ) !important;
    backdrop-filter: blur(8px);
}

body.luckit-gacha-page
.luckit-demo-result[hidden] {
    display: none !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-confetti {
    position: fixed !important;
    z-index: 1 !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100svh !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card {
    position: relative !important;
    z-index: 2 !important;
    grid-row: 1 !important;
    grid-column: 1 !important;
    display: flex !important;
    width: min(92vw, 430px) !important;
    min-width: 0 !important;
    max-width: 430px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100svh - 32px) !important;
    margin: auto !important;
    padding: 20px 18px 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-rays {
    position: absolute !important;
    z-index: 0 !important;
    top: 100px !important;
    left: 50% !important;
    width: 230px !important;
    height: 230px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-prize-image {
    position: relative !important;
    z-index: 3 !important;
    display: block !important;
    width: min(54%, 190px) !important;
    height: auto !important;
    max-height: 190px !important;
    margin: 0 auto 2px !important;
    object-fit: contain !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-mark {
    position: absolute !important;
    z-index: 10 !important;
    top: 18px !important;
    right: 18px !important;
    margin: 0 !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card > p {
    margin: 2px 0 5px !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card > h2 {
    margin: 0 0 4px !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card > small {
    margin-bottom: 12px !important;
}

@media (max-width: 520px) {
    body.luckit-gacha-page .luckit-demo-result {
        padding: 10px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-card {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        max-height: calc(100svh - 20px) !important;
        padding: 14px !important;
        border-radius: 22px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-prize-image {
        width: min(48vw, 158px) !important;
        max-height: 158px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-mark {
        top: 14px !important;
        right: 14px !important;
    }
}

/* Responsive shared result scene sizing */
body.luckit-gacha-page .luckit-demo-result {
    background:
        radial-gradient(
            circle at 50% 42%,
            #334a7d 0,
            #172554 48%,
            #0b1739 100%
        ) !important;
    backdrop-filter: none !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card {
    width: min(88vw, 620px) !important;
    max-width: 620px !important;
    min-height: 500px !important;
    padding: 30px 34px 26px !important;
    border-radius: 30px !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-prize-image {
    width: min(48%, 245px) !important;
    max-height: 245px !important;
    margin-top: 4px !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-rays {
    top: 135px !important;
    width: 310px !important;
    height: 310px !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-mark {
    top: 24px !important;
    right: 24px !important;
    width: 82px !important;
    height: 82px !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-mark span {
    font-size: .72rem !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-mark strong {
    font-size: 1.2rem !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card > p {
    font-size: .82rem !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card > h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem) !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card > small {
    font-size: .88rem !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-again {
    min-width: 240px;
    padding: 13px 24px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #facc15, #f97316);
    color: #172554;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(249, 115, 22, .24);
}

@media (min-width: 521px) and (max-width: 900px) {
    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-card {
        width: min(88vw, 520px) !important;
        max-width: 520px !important;
        min-height: 450px !important;
        padding: 24px 26px 22px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-prize-image {
        width: min(48%, 210px) !important;
        max-height: 210px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-rays {
        top: 118px !important;
        width: 270px !important;
        height: 270px !important;
    }
}

@media (max-width: 520px) {
    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-card {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 16px 15px 15px !important;
        border-radius: 22px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-prize-image {
        width: min(50vw, 175px) !important;
        max-height: 175px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-rays {
        top: 92px !important;
        width: 210px !important;
        height: 210px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-result-mark {
        top: 14px !important;
        right: 14px !important;
        width: 60px !important;
        height: 60px !important;
    }

    body.luckit-gacha-page
    .luckit-demo-result
    .luckit-demo-again {
        min-width: 0;
        width: 100%;
        padding: 11px 16px;
    }
}

/* Rotate rays independently from their centered position */
body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-rays {
    animation:
        luckit-shared-rays-spin
        12s linear infinite !important;
    transform:
        translate(-50%, -50%)
        scale(1) !important;
    transform-origin: center;
    rotate: 0deg;
    will-change: rotate;
}

@keyframes luckit-shared-rays-spin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/* Confetti falls in front of the prize card */
body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-confetti {
    z-index: 20 !important;
    pointer-events: none !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-confetti span {
    z-index: 20 !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .18);
}

/* Isolate rotation inside the rays element */
body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-rays {
    overflow: visible !important;
    background: none !important;
    animation: none !important;
    rotate: none !important;
    will-change: auto !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-rays::before {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(250, 204, 21, .27) 0 8deg,
            transparent 8deg 18deg
        ) !important;
    content: "" !important;
    opacity: 1 !important;
    transform: rotate(0deg);
    transform-origin: center !important;
    animation:
        luckit-rays-inner-spin
        12s linear infinite !important;
    pointer-events: none !important;
}

body.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-rays::after {
    display: none !important;
    content: none !important;
}

@keyframes luckit-rays-inner-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bright gacha ticket result history */
.luckit-gacha-page .luckit-ticket-results {
    border: 2px solid #e2e8f0;
    background: rgba(255, 255, 255, .97);
    color: #172554;
    box-shadow: 0 20px 48px rgba(30, 41, 59, .13);
}

.luckit-gacha-page
.luckit-ticket-results
.luckit-public-eyebrow {
    color: #c2410c;
    font-weight: 900;
}

.luckit-gacha-page .luckit-ticket-results h2 {
    color: #172554;
}

.luckit-gacha-page .luckit-ticket-results-count {
    color: #475569;
    font-weight: 800;
}

.luckit-gacha-page .luckit-ticket-results-count strong {
    color: #ea580c;
}

.luckit-gacha-page .luckit-ticket-remaining {
    border: 1px solid #fbbf24;
    background: #fffbeb;
    color: #78350f;
}

.luckit-gacha-page .luckit-ticket-remaining strong {
    color: #92400e;
}

.luckit-gacha-page .luckit-ticket-result-item {
    --ticket-accent: #64748b;
    --ticket-border: #cbd5e1;
    --ticket-soft: #f8fafc;

    border: 2px solid var(--ticket-border);
    background:
        linear-gradient(
            145deg,
            #fff 0 35%,
            var(--ticket-soft) 100%
        );
    color: #172554;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .09);
}

.luckit-gacha-page
.luckit-ticket-result-item.scratch-theme-1 {
    --ticket-accent: #be185d;
    --ticket-border: #f9a8d4;
    --ticket-soft: #fdf2f8;
}

.luckit-gacha-page
.luckit-ticket-result-item.scratch-theme-2 {
    --ticket-accent: #1d4ed8;
    --ticket-border: #93c5fd;
    --ticket-soft: #eff6ff;
}

.luckit-gacha-page
.luckit-ticket-result-item.scratch-theme-3 {
    --ticket-accent: #6d28d9;
    --ticket-border: #c4b5fd;
    --ticket-soft: #f5f3ff;
}

.luckit-gacha-page
.luckit-ticket-result-item.scratch-theme-4 {
    --ticket-accent: #15803d;
    --ticket-border: #86efac;
    --ticket-soft: #f0fdf4;
}

.luckit-gacha-page
.luckit-ticket-result-item.scratch-theme-5 {
    --ticket-accent: #a16207;
    --ticket-border: #facc15;
    --ticket-soft: #fffbeb;
}

.luckit-gacha-page
.luckit-ticket-result-item.scratch-theme-6 {
    --ticket-accent: #be123c;
    --ticket-border: #fda4af;
    --ticket-soft: #fff1f2;
}

.luckit-gacha-page
.luckit-ticket-result-item.is-lose {
    --ticket-accent: #475569;
    --ticket-border: #cbd5e1;
    --ticket-soft: #f1f5f9;
}

.luckit-gacha-page .luckit-ticket-result-number,
.luckit-gacha-page .luckit-ticket-result-rank {
    color: var(--ticket-accent);
    font-weight: 900;
}

.luckit-gacha-page
.luckit-ticket-result-content > strong {
    color: #172554;
    font-weight: 900;
}

.luckit-gacha-page .luckit-ticket-result-content time,
.luckit-gacha-page .luckit-redemption small {
    color: #475569;
    font-weight: 700;
}

.luckit-gacha-page .luckit-redemption-status.is-pending {
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.luckit-gacha-page .luckit-redemption-status.is-redeemed {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.luckit-gacha-page .luckit-redeem-button {
    border: 1px solid #f59e0b;
    background: #fbbf24;
    color: #422006;
    font-weight: 900;
}

.luckit-gacha-page .luckit-ticket-present-message {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

@media (max-width: 520px) {
    .luckit-gacha-page .luckit-ticket-results {
        padding: 18px 14px;
    }

    .luckit-gacha-page .luckit-ticket-result-item {
        padding: 15px 13px;
        border-radius: 16px;
    }

    .luckit-gacha-page .luckit-redemption {
        align-items: stretch;
        flex-direction: column;
    }

    .luckit-gacha-page .luckit-redeem-button {
        width: 100%;
        min-height: 44px;
    }
}


/* LUCKIT photo garapon display v1 */
.luckit-garapon-page .luckit-garapon-photo-machine {
    position: relative;
    width: min(100%, 620px);
    height: auto;
    aspect-ratio: 1232 / 1277;
    margin: 12px auto 0;
    isolation: isolate;
    background: transparent;
}

.luckit-garapon-page
.luckit-garapon-photo-machine::before,
.luckit-garapon-page
.luckit-garapon-photo-machine::after {
    display: none;
}

.luckit-garapon-page .luckit-garapon-photo-wheel {
    position: absolute;
    z-index: 1;
    top: 8.5%;
    left: 20.5%;
    width: 59%;
    aspect-ratio: 1;
    border: 8px solid #d6a532;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(255, 255, 255, .72),
            rgba(255, 255, 255, .18) 55%,
            rgba(251, 191, 36, .12)
        );
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, .75),
        0 10px 25px rgba(120, 83, 20, .15);
    transform-origin: center;
}

.luckit-garapon-page .garapon-spoke {
    position: absolute;
    z-index: 2;
    top: 49%;
    left: 5%;
    width: 90%;
    height: 7px;
    border-radius: 999px;
    background: rgba(214, 165, 50, .72);
    transform-origin: center;
}

.luckit-garapon-page .spoke-2 {
    transform: rotate(30deg);
}

.luckit-garapon-page .spoke-3 {
    transform: rotate(60deg);
}

.luckit-garapon-page .spoke-4 {
    transform: rotate(90deg);
}

.luckit-garapon-page .spoke-5 {
    transform: rotate(120deg);
}

.luckit-garapon-page .spoke-6 {
    transform: rotate(150deg);
}

.luckit-garapon-page .garapon-ball {
    position: absolute;
    z-index: 3;
    width: 10%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow:
        inset 4px 5px 7px rgba(255, 255, 255, .45),
        inset -4px -5px 7px rgba(15, 23, 42, .14),
        0 4px 8px rgba(30, 41, 59, .18);
}

.luckit-garapon-page .garapon-ball::after {
    position: absolute;
    top: 18%;
    left: 22%;
    width: 30%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .68);
    content: "";
    transform: rotate(-28deg);
}

.luckit-garapon-page .garapon-ball.ball-1 {
    top: 17%;
    left: 22%;
    background: #38bdf8;
}

.luckit-garapon-page .garapon-ball.ball-2 {
    top: 14%;
    right: 24%;
    background: #facc15;
}

.luckit-garapon-page .garapon-ball.ball-3 {
    top: 32%;
    left: 11%;
    background: #fb7185;
}

.luckit-garapon-page .garapon-ball.ball-4 {
    top: 34%;
    right: 12%;
    background: #4ade80;
}

.luckit-garapon-page .garapon-ball.ball-5 {
    top: 48%;
    left: 20%;
    background: #a78bfa;
}

.luckit-garapon-page .garapon-ball.ball-6 {
    top: 50%;
    right: 20%;
    background: #fb923c;
}

.luckit-garapon-page .garapon-ball.ball-7 {
    bottom: 18%;
    left: 13%;
    background: #f472b6;
}

.luckit-garapon-page .garapon-ball.ball-8 {
    right: 14%;
    bottom: 18%;
    background: #38bdf8;
}

.luckit-garapon-page .garapon-ball.ball-9 {
    bottom: 9%;
    left: 34%;
    background: #facc15;
}

.luckit-garapon-page .garapon-ball.ball-10 {
    right: 33%;
    bottom: 9%;
    background: #4ade80;
}

.luckit-garapon-page .garapon-ball.ball-11 {
    top: 38%;
    left: 44%;
    background: #fb7185;
}

.luckit-garapon-page .garapon-ball.ball-12 {
    top: 22%;
    left: 45%;
    background: #a78bfa;
}

.luckit-garapon-page .luckit-garapon-photo-body {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter:
        drop-shadow(0 18px 22px rgba(92, 62, 18, .16));
}

.luckit-garapon-page .luckit-garapon-photo-handle {
    position: absolute;
    z-index: 5;
    top: 27%;
    left: 20%;
    width: 31%;
    aspect-ratio: 2.8;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform-origin: 98% 50%;
}

.luckit-garapon-page .garapon-handle-hub {
    position: absolute;
    top: 50%;
    right: -9%;
    width: 26%;
    aspect-ratio: 1;
    border: 5px solid #d6a532;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 36% 30%,
            #fff7db,
            #e5b94c 55%,
            #9a6717
        );
    transform: translateY(-50%);
}

.luckit-garapon-page .garapon-handle-arm {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 88%;
    height: 12%;
    border: 2px solid #b7791f;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #fff4ca, #d6a532 58%, #976213);
    transform: translateY(-50%);
}

.luckit-garapon-page .garapon-handle-grip {
    position: absolute;
    top: 50%;
    left: -6%;
    width: 22%;
    aspect-ratio: 1;
    border: 4px solid #fff4d8;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffbe63,
            #f97316 55%,
            #c2410c
        );
    box-shadow: 0 5px 9px rgba(154, 52, 18, .3);
    transform: translateY(-50%);
}

.luckit-garapon-page
.luckit-garapon-photo-result-ball {
    position: absolute;
    z-index: 6;
    top: 69%;
    left: 50%;
    width: 7.5%;
    aspect-ratio: 1;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: var(--capsule-top, #fbbf24);
    box-shadow:
        inset 5px 5px 8px rgba(255, 255, 255, .42),
        0 7px 12px rgba(30, 41, 59, .22);
    transform: translate(-50%, -80%);
}

.luckit-garapon-page
.luckit-garapon-photo-result-ball[hidden] {
    display: none;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-photo-wheel {
    animation:
        luckit-photo-wheel
        .72s linear infinite;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.garapon-ball {
    animation:
        luckit-photo-ball
        .34s ease-in-out infinite alternate;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-photo-handle {
    animation:
        luckit-photo-handle
        .72s linear infinite;
}

.luckit-garapon-page
.luckit-garapon-stage.is-dropping
.luckit-garapon-photo-result-ball {
    animation:
        luckit-photo-drop
        .82s cubic-bezier(.2, .82, .28, 1) both;
}

@keyframes luckit-photo-wheel {
    to {
        transform: rotate(360deg);
    }
}

@keyframes luckit-photo-handle {
    to {
        transform: rotate(360deg);
    }
}

@keyframes luckit-photo-ball {
    from {
        translate: -8% -10%;
    }

    to {
        translate: 10% 14%;
    }
}

@keyframes luckit-photo-drop {
    0% {
        opacity: 0;
        transform: translate(-50%, -170%);
    }

    62% {
        opacity: 1;
        transform: translate(-50%, 110%);
    }

    80% {
        transform: translate(-50%, 62%);
    }

    100% {
        transform: translate(-50%, 88%);
    }
}

@media (max-width: 700px) {
    .luckit-garapon-page .luckit-garapon-photo-machine {
        width: 112%;
        margin-inline: -6%;
    }
}


/* LUCKIT premium garapon wheel v2 */
.luckit-garapon-page .luckit-garapon-photo-wheel {
    top: 5.8%;
    left: 18%;
    width: 64%;
    overflow: hidden;
    border: 0;
    background:
        linear-gradient(
            112deg,
            rgba(255, 255, 255, .88) 0 8%,
            rgba(255, 255, 255, .18) 9% 17%,
            transparent 18% 68%,
            rgba(255, 255, 255, .34) 69% 73%,
            transparent 74%
        ),
        repeating-conic-gradient(
            from -7.5deg,
            transparent 0 23deg,
            rgba(187, 128, 21, .72) 23deg 26deg,
            rgba(255, 239, 178, .94) 26deg 28deg,
            rgba(160, 102, 12, .70) 28deg 30deg
        ),
        radial-gradient(
            circle at 50% 48%,
            rgba(255, 255, 255, .08) 0 19%,
            rgba(255, 250, 235, .20) 20% 69%,
            rgba(255, 255, 255, .62) 70% 73%,
            rgba(208, 154, 42, .96) 74% 78%,
            #fff1b8 79% 81%,
            #a96b0f 82% 85%,
            transparent 86%
        );
    box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, .68),
        inset 0 0 28px rgba(214, 165, 50, .20),
        0 16px 30px rgba(92, 62, 18, .20);
}

.luckit-garapon-page
.luckit-garapon-photo-wheel::before {
    position: absolute;
    z-index: 4;
    inset: 4.5%;
    border: 3px solid rgba(255, 246, 211, .92);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 36% 26%,
            rgba(255, 255, 255, .68),
            transparent 19%
        ),
        radial-gradient(
            circle at 50% 50%,
            transparent 0 67%,
            rgba(255, 255, 255, .25) 68% 74%,
            transparent 75%
        );
    box-shadow:
        inset 8px 8px 18px rgba(255, 255, 255, .48),
        inset -8px -10px 18px rgba(146, 92, 12, .10);
    content: "";
    pointer-events: none;
}

.luckit-garapon-page
.luckit-garapon-photo-wheel::after {
    position: absolute;
    z-index: 5;
    top: 8%;
    left: 17%;
    width: 17%;
    height: 58%;
    border-radius: 50%;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .58),
            rgba(255, 255, 255, .08)
        );
    content: "";
    opacity: .72;
    pointer-events: none;
    transform: rotate(24deg);
}

.luckit-garapon-page .garapon-spoke {
    display: none;
}

.luckit-garapon-page .garapon-ball {
    z-index: 3;
    width: 11.5%;
    border-width: 3px;
    box-shadow:
        inset 6px 7px 9px rgba(255, 255, 255, .48),
        inset -5px -7px 9px rgba(15, 23, 42, .16),
        0 6px 11px rgba(30, 41, 59, .22);
}

.luckit-garapon-page .garapon-ball::before {
    position: absolute;
    inset: 46% -1px auto;
    height: 3px;
    background: rgba(255, 255, 255, .72);
    content: "";
    transform: rotate(-5deg);
}

.luckit-garapon-page .garapon-ball::after {
    top: 15%;
    left: 19%;
    width: 34%;
    height: 21%;
}

.luckit-garapon-page .luckit-garapon-photo-handle {
    top: 27.1%;
    left: 17.8%;
    width: 33.2%;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-photo-wheel {
    animation:
        luckit-photo-wheel
        .88s cubic-bezier(.42, 0, .58, 1) infinite;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.garapon-ball {
    animation:
        luckit-premium-garapon-ball
        .28s ease-in-out infinite alternate;
}

@keyframes luckit-premium-garapon-ball {
    from {
        translate: -12% -13%;
        rotate: -16deg;
    }

    to {
        translate: 13% 16%;
        rotate: 20deg;
    }
}


/* LUCKIT real octagonal SVG wheel v3 */
.luckit-garapon-page .luckit-garapon-photo-wheel {
    top: -1%;
    left: 15%;
    width: 70%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    clip-path:
        polygon(
            30% 0,
            70% 0,
            100% 30%,
            100% 70%,
            70% 100%,
            30% 100%,
            0 70%,
            0 30%
        );
    background: transparent;
    box-shadow: none;
}

.luckit-garapon-page
.luckit-garapon-photo-wheel::before,
.luckit-garapon-page
.luckit-garapon-photo-wheel::after {
    display: none;
}

.luckit-garapon-page .luckit-garapon-wheel-image {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.luckit-garapon-page .garapon-spoke {
    display: none;
}

.luckit-garapon-page .garapon-ball {
    z-index: 3;
    width: 11%;
}

.luckit-garapon-page .garapon-ball.ball-1 {
    top: 18%;
    left: 27%;
}

.luckit-garapon-page .garapon-ball.ball-2 {
    top: 16%;
    right: 26%;
}

.luckit-garapon-page .garapon-ball.ball-3 {
    top: 31%;
    left: 14%;
}

.luckit-garapon-page .garapon-ball.ball-4 {
    top: 32%;
    right: 14%;
}

.luckit-garapon-page .garapon-ball.ball-5 {
    top: 46%;
    left: 24%;
}

.luckit-garapon-page .garapon-ball.ball-6 {
    top: 47%;
    right: 23%;
}

.luckit-garapon-page .garapon-ball.ball-7 {
    bottom: 20%;
    left: 16%;
}

.luckit-garapon-page .garapon-ball.ball-8 {
    right: 16%;
    bottom: 20%;
}

.luckit-garapon-page .garapon-ball.ball-9 {
    bottom: 10%;
    left: 34%;
}

.luckit-garapon-page .garapon-ball.ball-10 {
    right: 34%;
    bottom: 10%;
}

.luckit-garapon-page .garapon-ball.ball-11 {
    top: 35%;
    left: 44.5%;
}

.luckit-garapon-page .garapon-ball.ball-12 {
    top: 22%;
    left: 44.5%;
}

.luckit-garapon-page .luckit-garapon-photo-handle {
    top: 27%;
    left: 15%;
    width: 36%;
}


/* LUCKIT concealed-ball premium drum v4 */
.luckit-garapon-page
.luckit-garapon-photo-wheel
.garapon-ball {
    display: none !important;
}

.luckit-garapon-page .luckit-garapon-photo-wheel {
    filter:
        drop-shadow(0 14px 17px rgba(96, 60, 8, .16));
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-wheel-image {
    filter:
        brightness(1.05)
        drop-shadow(0 0 9px rgba(255, 225, 128, .28));
}


/* LUCKIT pearl wheel and steel handle v5 */
.luckit-garapon-page .luckit-garapon-photo-wheel {
    top: -1%;
    left: 15%;
    width: 70%;
    filter:
        drop-shadow(0 15px 18px rgba(86, 54, 7, .18));
}

.luckit-garapon-page
.luckit-garapon-photo-wheel
.garapon-ball {
    display: none !important;
}

.luckit-garapon-page .luckit-garapon-photo-handle {
    top: 26.2%;
    left: 14%;
    width: 36%;
    aspect-ratio: 2.8;
    transform-origin: 100% 50%;
}

.luckit-garapon-page .garapon-handle-hub {
    top: 50%;
    right: -11%;
    width: 22%;
    border: 5px solid #c68a21;
    background:
        radial-gradient(
            circle at 34% 28%,
            #ffffff 0 10%,
            #dfe4e8 24%,
            #ffffff 43%,
            #9aa2aa 68%,
            #eef1f3 82%,
            #7c858d 100%
        );
    box-shadow:
        0 5px 10px rgba(51, 65, 85, .30),
        inset 3px 3px 5px rgba(255, 255, 255, .82),
        0 0 0 4px rgba(255, 238, 171, .42);
}

.luckit-garapon-page .garapon-handle-hub::after {
    position: absolute;
    inset: 28%;
    border: 2px solid #9a6717;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            #fff6c7,
            #d9a637 60%,
            #8d570a
        );
    content: "";
}

.luckit-garapon-page .garapon-handle-arm {
    top: 50%;
    right: 0;
    width: 91%;
    height: 14%;
    border: 1px solid #747d85;
    background:
        linear-gradient(
            180deg,
            #ffffff 0,
            #c8cfd4 20%,
            #f8fafc 42%,
            #8c969e 68%,
            #eef1f3 86%,
            #707981 100%
        );
    box-shadow:
        0 4px 7px rgba(51, 65, 85, .30),
        inset 0 1px 2px rgba(255, 255, 255, .92);
}

.luckit-garapon-page .garapon-handle-arm::after {
    position: absolute;
    top: 13%;
    right: 7%;
    left: 7%;
    height: 19%;
    border-radius: 999px;
    background: rgba(255, 255, 255, .80);
    content: "";
}

.luckit-garapon-page .garapon-handle-grip {
    left: -5%;
    width: 23%;
    border: 4px solid #f8fafc;
    background:
        radial-gradient(
            circle at 32% 26%,
            #ffd29b 0 8%,
            #fb923c 30%,
            #f97316 60%,
            #b9380a 100%
        );
    box-shadow:
        0 6px 11px rgba(154, 52, 18, .32),
        inset 4px 4px 6px rgba(255, 255, 255, .42),
        inset -4px -5px 7px rgba(124, 45, 18, .24);
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-photo-wheel {
    animation:
        luckit-pearl-wheel-spin
        .82s cubic-bezier(.45, 0, .55, 1) infinite;
}

.luckit-garapon-page
.luckit-garapon-stage.is-pausing
.luckit-garapon-photo-wheel {
    animation:
        luckit-pearl-wheel-settle
        .5s cubic-bezier(.16, .8, .3, 1) both;
}

@keyframes luckit-pearl-wheel-spin {
    0% {
        transform: rotate(0);
        filter:
            brightness(1)
            drop-shadow(0 15px 18px rgba(86, 54, 7, .18));
    }

    50% {
        filter:
            brightness(1.12)
            drop-shadow(0 0 18px rgba(244, 198, 79, .42));
    }

    100% {
        transform: rotate(360deg);
        filter:
            brightness(1)
            drop-shadow(0 15px 18px rgba(86, 54, 7, .18));
    }
}

@keyframes luckit-pearl-wheel-settle {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(135deg);
    }
}


/* LUCKIT simple premium garapon scene v6 */
body.luckit-garapon-page {
    color: #172554;
    background:
        radial-gradient(
            circle at 9% 9%,
            rgba(249, 115, 22, .09),
            transparent 25%
        ),
        radial-gradient(
            circle at 91% 13%,
            rgba(56, 189, 248, .09),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #fffdf8,
            #f8fafc 72%,
            #eef2ff
        );
}

body.luckit-garapon-page::before {
    background-image:
        radial-gradient(
            circle,
            rgba(249, 115, 22, .17) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(56, 189, 248, .14) 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(250, 204, 21, .15) 2px,
            transparent 3px
        );
    background-position:
        10px 18px,
        44px 64px,
        82px 28px;
    background-size: 96px 96px;
    opacity: .50;
}

.luckit-garapon-page .luckit-public-brand span,
.luckit-garapon-page .luckit-public-logo {
    color: #172554;
}

.luckit-garapon-page
.luckit-public-logo::first-letter {
    color: #f97316;
}

.luckit-garapon-page .luckit-public-card {
    border: 1px solid rgba(30, 64, 175, .10);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 24px 65px rgba(30, 41, 59, .10);
}

.luckit-garapon-page .luckit-public-eyebrow {
    color: #ea580c;
}

.luckit-garapon-page .luckit-public-card h1 {
    color: #172554;
}

.luckit-garapon-page .luckit-demo-lead,
.luckit-garapon-page .luckit-public-description,
.luckit-garapon-page .luckit-public-note {
    color: #64748b;
}

.luckit-garapon-page .luckit-demo-badge {
    border-color: #fed7aa;
    color: #9a3412;
    background: #fff7ed;
}

.luckit-garapon-page .luckit-demo-safe {
    color: #166534;
    background: #f0fdf4;
}

.luckit-garapon-page .luckit-garapon-marquee,
.luckit-garapon-page .luckit-garapon-guide,
.luckit-garapon-page .luckit-garapon-prize-colors {
    display: none !important;
}

.luckit-garapon-page .luckit-garapon-stage {
    width: min(100%, 660px);
    min-height: 0;
    margin: 12px auto 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.luckit-garapon-page
.luckit-garapon-stage::before,
.luckit-garapon-page
.luckit-garapon-stage::after {
    display: none;
}

.luckit-garapon-page .luckit-garapon-photo-machine {
    width: min(100%, 620px);
    margin: 0 auto;
}

.luckit-garapon-page .luckit-garapon-photo-wheel {
    filter:
        drop-shadow(0 4px 3px rgba(255, 255, 255, .70))
        drop-shadow(0 12px 14px rgba(93, 61, 10, .20))
        drop-shadow(0 22px 30px rgba(30, 41, 59, .10));
}

.luckit-garapon-page .luckit-garapon-wheel-image {
    filter:
        saturate(.92)
        contrast(1.045)
        brightness(1.025);
}

.luckit-garapon-page
.luckit-garapon-photo-wheel::before {
    position: absolute;
    z-index: 4;
    top: 8%;
    left: 15%;
    display: block;
    width: 22%;
    height: 57%;
    border-radius: 50%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .64),
            transparent
        );
    content: "";
    opacity: .52;
    pointer-events: none;
    transform: rotate(24deg);
}

.luckit-garapon-page
.luckit-garapon-photo-wheel::after {
    position: absolute;
    z-index: 4;
    right: 12%;
    bottom: 11%;
    display: block;
    width: 31%;
    height: 13%;
    border-radius: 50%;
    background: rgba(164, 105, 13, .12);
    content: "";
    filter: blur(8px);
    pointer-events: none;
    transform: rotate(-34deg);
}

.luckit-garapon-page .gacha-action-label {
    margin-top: 6px;
    color: #172554;
    font-weight: 900;
}

.luckit-garapon-page .luckit-public-footer {
    color: #64748b;
}

@media (max-width: 700px) {
    .luckit-garapon-page .luckit-garapon-stage {
        width: 100%;
    }

    .luckit-garapon-page
    .luckit-garapon-photo-machine {
        width: 112%;
        margin-inline: -6%;
    }
}


/* LUCKIT garapon festival showcase v7 */
body.luckit-garapon-page {
    background-color: #fff8ec;
    background-image:
        radial-gradient(
            circle at 7% 10%,
            rgba(249, 115, 22, .18) 0 3px,
            transparent 4px
        ),
        radial-gradient(
            circle at 15% 21%,
            rgba(56, 189, 248, .16) 0 3px,
            transparent 4px
        ),
        radial-gradient(
            circle at 26% 8%,
            rgba(244, 114, 182, .15) 0 3px,
            transparent 4px
        ),
        radial-gradient(
            circle at 82% 15%,
            rgba(250, 204, 21, .20) 0 3px,
            transparent 4px
        ),
        radial-gradient(
            circle at 93% 28%,
            rgba(74, 222, 128, .14) 0 3px,
            transparent 4px
        ),
        linear-gradient(
            135deg,
            rgba(255, 237, 213, .54),
            rgba(255, 255, 255, .76) 42%,
            rgba(239, 246, 255, .76)
        );
    background-size:
        96px 96px,
        126px 126px,
        154px 154px,
        112px 112px,
        144px 144px,
        auto;
}

body.luckit-garapon-page::before {
    background-image:
        linear-gradient(
            62deg,
            transparent 0 46%,
            rgba(249, 115, 22, .16) 47% 52%,
            transparent 53%
        ),
        linear-gradient(
            -58deg,
            transparent 0 46%,
            rgba(56, 189, 248, .13) 47% 52%,
            transparent 53%
        ),
        radial-gradient(
            circle,
            rgba(250, 204, 21, .22) 0 2px,
            transparent 3px
        );
    background-position:
        8px 12px,
        48px 38px,
        23px 72px;
    background-size:
        110px 110px,
        130px 130px,
        88px 88px;
    opacity: .55;
}

.luckit-garapon-page .luckit-public-shell {
    width: min(100%, 820px);
}

.luckit-garapon-page .luckit-public-card {
    position: relative;
    padding:
        clamp(20px, 4vw, 38px)
        clamp(14px, 4vw, 34px)
        clamp(24px, 5vw, 46px);
    overflow: hidden;
    border: 1px solid rgba(211, 159, 41, .34);
    border-radius: 34px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 247, .96),
            rgba(255, 249, 237, .91)
        );
    box-shadow:
        0 28px 80px rgba(88, 58, 18, .13),
        inset 0 1px 0 rgba(255, 255, 255, .92);
}

.luckit-garapon-page
.luckit-campaign-intro::before {
    position: absolute;
    z-index: 0;
    top: 18px;
    left: 18px;
    color: rgba(249, 115, 22, .26);
    content: "✦  ●  ✦";
    font-size: clamp(18px, 3vw, 27px);
    letter-spacing: .38em;
    transform: rotate(-7deg);
}

.luckit-garapon-page
.luckit-campaign-intro::after {
    position: absolute;
    z-index: 0;
    top: 24px;
    right: 15px;
    color: rgba(56, 189, 248, .25);
    content: "●  ✦  ●";
    font-size: clamp(17px, 3vw, 25px);
    letter-spacing: .34em;
    transform: rotate(7deg);
}

.luckit-garapon-page
.luckit-campaign-intro > * {
    position: relative;
    z-index: 1;
}

.luckit-garapon-page
.luckit-campaign-intro h1 {
    display: block;
    width: min(100%, 620px);
    margin: 13px auto 15px;
    padding:
        clamp(13px, 2.5vw, 18px)
        clamp(14px, 3vw, 27px);
    border: 3px solid #d6a532;
    border-radius: 20px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #10245c,
            #183a82 58%,
            #10245c
        );
    box-shadow:
        0 8px 0 #b98519,
        0 15px 25px rgba(23, 37, 84, .18),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    font-size: clamp(1.65rem, 5vw, 2.45rem);
    line-height: 1.18;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .20);
}

.luckit-garapon-page
.luckit-demo-lead {
    width: min(100%, 610px);
    margin: 0 auto 14px;
    color: #475569;
    font-size: clamp(.88rem, 2vw, 1rem);
    line-height: 1.75;
    text-align: center;
}

.luckit-garapon-page
.luckit-demo-safe {
    width: min(100%, 610px);
    margin: 13px auto 18px;
    padding: 11px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    color: #166534;
    background: #f0fdf4;
    font-size: clamp(.75rem, 1.8vw, .88rem);
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.luckit-garapon-page .luckit-garapon-stage {
    position: relative;
    width: min(100%, 690px);
    margin: 18px auto 0;
    padding:
        clamp(20px, 4vw, 34px)
        clamp(12px, 3vw, 25px)
        clamp(13px, 3vw, 22px);
    overflow: hidden;
    border: 2px solid rgba(214, 165, 50, .64);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255, 248, 218, .44),
            transparent 52%
        ),
        linear-gradient(
            180deg,
            #fff,
            #fffdf8
        );
    box-shadow:
        0 20px 45px rgba(51, 65, 85, .13),
        inset 0 0 0 7px rgba(255, 248, 218, .45);
}

.luckit-garapon-page
.luckit-garapon-stage::before {
    position: absolute;
    z-index: 0;
    top: 15px;
    left: 18px;
    display: block;
    width: auto;
    height: auto;
    color: rgba(249, 115, 22, .45);
    background: none;
    content: "✦";
    font-size: 28px;
    opacity: 1;
    transform: rotate(-12deg);
}

.luckit-garapon-page
.luckit-garapon-stage::after {
    position: absolute;
    z-index: 0;
    top: 18px;
    right: 18px;
    bottom: auto;
    left: auto;
    display: block;
    width: auto;
    height: auto;
    color: rgba(56, 189, 248, .40);
    background: none;
    content: "✦";
    font-size: 25px;
    opacity: 1;
    transform: rotate(12deg);
}

.luckit-garapon-page
.luckit-garapon-photo-machine {
    position: relative;
    z-index: 1;
    width: min(100%, 610px);
    margin: -8px auto 0;
}

.luckit-garapon-page
.gacha-action-label {
    width: fit-content;
    margin: 16px auto 0;
    padding: 10px 22px;
    border-radius: 999px;
    color: #172554;
    background: #fff7d6;
    box-shadow: inset 0 0 0 1px #fde68a;
    font-size: clamp(.9rem, 2vw, 1.05rem);
    font-weight: 900;
}

.luckit-garapon-page
.gacha-action-label + .luckit-public-note {
    margin: 9px auto 0;
    color: #64748b;
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}

.luckit-garapon-page .luckit-public-footer {
    color: #64748b;
    text-shadow: none;
}

@media (max-width: 700px) {
    .luckit-garapon-page .luckit-public-card {
        border-radius: 24px;
    }

    .luckit-garapon-page
    .luckit-campaign-intro h1 {
        border-width: 2px;
        border-radius: 16px;
        box-shadow:
            0 6px 0 #b98519,
            0 12px 20px rgba(23, 37, 84, .16);
    }

    .luckit-garapon-page
    .luckit-garapon-stage {
        width: 100%;
        padding: 17px 7px 12px;
        border-radius: 22px;
    }

    .luckit-garapon-page
    .luckit-garapon-photo-machine {
        width: 108%;
        margin-inline: -4%;
    }
}

@media (max-width: 430px) {
    .luckit-garapon-page .luckit-public-card {
        padding-inline: 10px;
    }

    .luckit-garapon-page
    .luckit-campaign-intro h1 {
        font-size: clamp(1.35rem, 7vw, 1.75rem);
    }

    .luckit-garapon-page
    .luckit-garapon-stage {
        padding-inline: 4px;
    }
}


/* LUCKIT garapon readable instructions v8 */
.luckit-garapon-page
.luckit-campaign-intro
.luckit-demo-safe {
    border: 1px solid #86efac !important;
    color: #14532d !important;
    background: #dcfce7 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.luckit-garapon-page
.luckit-campaign-intro
.gacha-action-label {
    color: #172554 !important;
    background: #fef3c7 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.luckit-garapon-page
.luckit-campaign-intro
.gacha-action-label
+ .luckit-public-note {
    color: #334155 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.luckit-garapon-page
.luckit-campaign-intro
.luckit-public-note {
    color: #334155 !important;
    text-shadow: none !important;
}


/* LUCKIT red-white festival and shared result v9 */
body.luckit-garapon-page {
    background-color: #fffaf5;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cpath fill='%23f59e0b' fill-opacity='.22' d='M25 14l3.2 7.2 7.8.7-5.9 5.2 1.7 7.7-6.8-4-6.8 4 1.7-7.7-5.9-5.2 7.8-.7z'/%3E%3Cpath fill='%23ef4444' fill-opacity='.13' d='M118 93l2.5 5.7 6.2.6-4.7 4.1 1.4 6.1-5.4-3.2-5.4 3.2 1.4-6.1-4.7-4.1 6.2-.6z'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, .90) 0 86px,
            rgba(254, 226, 226, .76) 86px 172px
        );
    background-size:
        150px 150px,
        auto;
}

body.luckit-garapon-page::before {
    background-image:
        radial-gradient(
            circle,
            rgba(249, 115, 22, .18) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(56, 189, 248, .14) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle,
            rgba(250, 204, 21, .18) 0 2px,
            transparent 3px
        );
    background-position:
        12px 18px,
        61px 42px,
        94px 79px;
    background-size:
        112px 112px,
        138px 138px,
        126px 126px;
    opacity: .70;
}

.luckit-garapon-page .luckit-public-card {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .97),
            rgba(255, 253, 247, .95)
        );
}

@media (min-width: 901px) {
    .luckit-garapon-page .luckit-garapon-stage {
        width: min(100%, 610px);
        padding:
            25px 22px
            16px;
    }

    .luckit-garapon-page
    .luckit-garapon-photo-machine {
        width: min(100%, 520px);
        margin: -5px auto 0;
    }
}

body.luckit-garapon-page.luckit-gacha-page
.luckit-demo-result {
    position: fixed !important;
    z-index: 1000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100svh !important;
    margin: 0 !important;
}

body.luckit-garapon-page.luckit-gacha-page
.luckit-demo-result
.luckit-demo-result-card {
    margin: auto !important;
}

body.luckit-garapon-page.luckit-gacha-page
.luckit-demo-result
.luckit-demo-prize-image {
    object-fit: contain !important;
}


/* LUCKIT visible garapon prize legend v10 */
.luckit-garapon-page
.luckit-garapon-prize-colors {
    position: relative;
    z-index: 2;
    display: flex !important;
    width: min(100%, 570px);
    margin: 0 auto 10px;
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: rgba(255, 253, 247, .96);
    box-shadow:
        0 8px 20px rgba(92, 62, 18, .08);
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: center;
}

.luckit-garapon-page
.luckit-garapon-prize-colors span {
    display: inline-flex;
    min-height: 27px;
    color: #334155 !important;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
}

.luckit-garapon-page
.luckit-garapon-prize-colors i {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: var(--capsule-top);
    box-shadow:
        0 0 0 1px rgba(51, 65, 85, .18),
        inset 3px 3px 4px rgba(255, 255, 255, .38);
}

@media (max-width: 430px) {
    .luckit-garapon-page
    .luckit-garapon-prize-colors {
        gap: 7px 11px;
        padding: 9px 8px;
    }

    .luckit-garapon-page
    .luckit-garapon-prize-colors span {
        font-size: .71rem;
    }
}


/* LUCKIT garapon pearl festival title v13 */
.luckit-garapon-page
.luckit-campaign-intro h1 {
    position: relative;
    width: min(100%, 620px);
    margin: 14px auto 18px;
    padding:
        clamp(15px, 2.8vw, 20px)
        clamp(62px, 10vw, 88px);
    border: 4px solid #d4a42f !important;
    border-radius: 20px;
    color: #172554 !important;
    background:
        radial-gradient(
            circle at 30% 18%,
            rgba(255, 255, 255, .96),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #fff,
            #fff9e9 52%,
            #f7e7bb
        ) !important;
    box-shadow:
        inset 0 0 0 3px #fff6cf,
        inset 0 0 0 5px rgba(164, 105, 13, .30),
        0 8px 0 #a96c12,
        0 16px 28px rgba(92, 62, 18, .17) !important;
    font-size: clamp(1.55rem, 4.7vw, 2.3rem);
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    text-shadow:
        0 1px 0 #fff,
        0 2px 3px rgba(92, 62, 18, .10) !important;
}

.luckit-garapon-page
.luckit-campaign-intro h1::before,
.luckit-garapon-page
.luckit-campaign-intro h1::after {
    position: absolute;
    top: 50%;
    display: grid;
    width: clamp(39px, 6vw, 50px);
    aspect-ratio: 1;
    place-items: center;
    border: 3px solid #facc15;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #fb923c,
            #dc2626
        );
    box-shadow:
        0 5px 10px rgba(185, 28, 28, .20),
        inset 2px 2px 3px rgba(255, 255, 255, .30);
    content: "祭";
    font-size: clamp(.78rem, 2vw, 1rem);
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
}

.luckit-garapon-page
.luckit-campaign-intro h1::before {
    left: clamp(10px, 2.5vw, 18px);
}

.luckit-garapon-page
.luckit-campaign-intro h1::after {
    right: clamp(10px, 2.5vw, 18px);
}

@media (max-width: 430px) {
    .luckit-garapon-page
    .luckit-campaign-intro h1 {
        padding:
            14px
            50px;
        border-width: 3px !important;
        border-radius: 16px;
        font-size: clamp(1.25rem, 6.3vw, 1.65rem);
    }

    .luckit-garapon-page
    .luckit-campaign-intro h1::before,
    .luckit-garapon-page
    .luckit-campaign-intro h1::after {
        width: 34px;
        border-width: 2px;
        font-size: .72rem;
    }

    .luckit-garapon-page
    .luckit-campaign-intro h1::before {
        left: 8px;
    }

    .luckit-garapon-page
    .luckit-campaign-intro h1::after {
        right: 8px;
    }
}


/* LUCKIT live garapon machine skin v14 */
.luckit-garapon-page .luckit-garapon-live-machine {
    position: relative;
    width: min(100%, 570px);
    height: auto;
    aspect-ratio: 1232 / 1277;
    margin: 16px auto 0;
    isolation: isolate;
    background: transparent;
}

.luckit-garapon-page
.luckit-garapon-live-machine::before,
.luckit-garapon-page
.luckit-garapon-live-machine::after {
    display: none !important;
}

.luckit-garapon-page .luckit-garapon-live-wheel {
    position: absolute;
    z-index: 1;
    top: -1%;
    left: 15%;
    width: 70%;
    height: auto;
    aspect-ratio: 1;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform-origin: center;
    filter:
        drop-shadow(0 4px 3px rgba(255, 255, 255, .70))
        drop-shadow(0 13px 16px rgba(93, 61, 10, .20));
}

.luckit-garapon-page
.luckit-garapon-live-wheel-face {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform-origin: 50% 50%;
}

.luckit-garapon-page
.luckit-garapon-live-wheel-face::before,
.luckit-garapon-page
.luckit-garapon-live-wheel-face::after {
    display: none;
}

.luckit-garapon-page
.luckit-garapon-live-wheel-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        saturate(.92)
        contrast(1.045)
        brightness(1.025);
}

.luckit-garapon-page .luckit-garapon-live-body {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter:
        drop-shadow(0 18px 22px rgba(92, 62, 18, .16));
}

.luckit-garapon-page .luckit-garapon-live-handle {
    position: absolute;
    z-index: 6;
    top: 32.4%;
    left: 50%;
    width: 150px;
    height: 150px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: grab;
    touch-action: none;
    transform: translate(-50%, -50%);
}

.luckit-garapon-page
.luckit-garapon-live-handle:active {
    cursor: grabbing;
}

.luckit-garapon-page
.luckit-garapon-live-handle:focus-visible {
    outline: 4px solid rgba(249, 115, 22, .34);
    outline-offset: 5px;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-handle-rotor {
    position: absolute;
    inset: 0;
    display: block;
    transform-origin: 50% 50%;
}

.luckit-garapon-page .luckit-garapon-live-hub {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 34%;
    aspect-ratio: 1;
    border: 5px solid #c68a21;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 34% 28%,
            #fff 0 10%,
            #dfe4e8 24%,
            #fff 43%,
            #9aa2aa 68%,
            #eef1f3 82%,
            #7c858d 100%
        );
    box-shadow:
        0 5px 10px rgba(51, 65, 85, .28),
        inset 3px 3px 5px rgba(255, 255, 255, .82),
        0 0 0 4px rgba(255, 238, 171, .38);
    transform: translate(-50%, -50%);
}

.luckit-garapon-page
.luckit-garapon-live-hub::after {
    position: absolute;
    inset: 29%;
    border: 2px solid #9a6717;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            #fff6c7,
            #d9a637 60%,
            #8d570a
        );
    content: "";
}

.luckit-garapon-page .luckit-garapon-live-arm {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 50%;
    width: 105%;
    height: 13px;
    border: 1px solid #747d85;
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            #fff 0,
            #c8cfd4 20%,
            #f8fafc 42%,
            #8c969e 68%,
            #eef1f3 86%,
            #707981 100%
        );
    box-shadow:
        0 4px 7px rgba(51, 65, 85, .28),
        inset 0 1px 2px rgba(255, 255, 255, .92);
    transform: translateY(-50%);
    transform-origin: 100% 50%;
}

.luckit-garapon-page
.luckit-garapon-live-arm::after {
    position: absolute;
    top: 12%;
    right: 7%;
    left: 7%;
    height: 20%;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    content: "";
}

.luckit-garapon-page .luckit-garapon-live-grip {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 142%;
    width: 38px;
    height: 56px;
    border: 4px solid #f8fafc;
    border-radius: 15px;
    background:
        linear-gradient(
            90deg,
            #c2410c,
            #fb923c 35%,
            #ffd09a 50%,
            #f97316 68%,
            #b9380a
        );
    box-shadow:
        0 6px 11px rgba(154, 52, 18, .32),
        inset 3px 2px 5px rgba(255, 255, 255, .38);
    transform:
        translate(50%, -50%)
        rotate(90deg);
}

.luckit-garapon-page
.luckit-garapon-live-machine
.luckit-garapon-chute,
.luckit-garapon-page
.luckit-garapon-live-machine
.luckit-garapon-tray {
    display: none;
}

.luckit-garapon-page
.luckit-garapon-live-result-ball {
    position: absolute;
    z-index: 7;
    top: 69%;
    left: 50%;
    width: 7.5%;
    height: auto;
    aspect-ratio: 1;
    border: 3px solid rgba(255, 255, 255, .90);
    border-radius: 50%;
    background: var(--capsule-top, #fbbf24);
    box-shadow:
        inset 5px 5px 8px rgba(255, 255, 255, .42),
        inset -4px -5px 7px rgba(15, 23, 42, .13),
        0 7px 12px rgba(30, 41, 59, .22);
    transform: translate(-50%, -80%);
}

.luckit-garapon-page
.luckit-garapon-live-result-ball[hidden] {
    display: none;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-live-handle,
.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-live-arm,
.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-live-grip {
    animation: none !important;
}

@media (max-width: 700px) {
    .luckit-garapon-page
    .luckit-garapon-live-machine {
        width: min(112%, 540px);
        margin-inline: -6%;
    }

    .luckit-garapon-page
    .luckit-garapon-live-handle {
        width: 126px;
        height: 126px;
    }

    .luckit-garapon-page
    .luckit-garapon-live-arm {
        height: 11px;
    }

    .luckit-garapon-page
    .luckit-garapon-live-grip {
        right: 139%;
        width: 33px;
        height: 49px;
    }
}


/* LUCKIT live garapon position correction v15 */
.luckit-garapon-page
.luckit-garapon-live-machine
.luckit-garapon-live-wheel {
    position: absolute !important;
    z-index: 1 !important;
    top: -1% !important;
    right: auto !important;
    bottom: auto !important;
    left: 15% !important;
    width: 70% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-live-wheel
.luckit-garapon-live-wheel-face {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-live-machine
.luckit-garapon-live-handle {
    position: absolute !important;
    z-index: 6 !important;
    top: 32.4% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: 150px !important;
    height: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform:
        translate(-50%, -50%) !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-handle-rotor {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-hub {
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    margin: 0 !important;
    transform:
        translate(-50%, -50%) !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm {
    position: absolute !important;
    top: 50% !important;
    right: 50% !important;
    bottom: auto !important;
    left: auto !important;
    width: 105% !important;
    margin: 0 !important;
    transform:
        translateY(-50%) !important;
    transform-origin: 100% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip {
    position: absolute !important;
    top: 50% !important;
    right: 142% !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform:
        translate(50%, -50%)
        rotate(90deg) !important;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-live-wheel {
    transform: none !important;
}

@media (max-width: 700px) {
    .luckit-garapon-page
    .luckit-garapon-live-machine
    .luckit-garapon-live-handle {
        width: 126px !important;
        height: 126px !important;
    }

    .luckit-garapon-page
    .luckit-garapon-live-handle
    .luckit-garapon-live-grip {
        right: 139% !important;
    }
}


/* LUCKIT live garapon axis and continuous rotation v16 */
.luckit-garapon-page .luckit-garapon-live-wheel {
    top: -2.6% !important;
    left: 15% !important;
    transform: none !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page .luckit-garapon-live-handle {
    top: 32.4% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-handle-rotor {
    inset: 0 !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-live-wheel-face {
    animation:
        luckit-live-garapon-wheel-spin
        1.05s
        linear
        infinite !important;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-handle-rotor {
    animation:
        luckit-live-garapon-handle-spin
        .72s
        linear
        infinite !important;
}

.luckit-garapon-page
.luckit-garapon-stage.is-pausing
.luckit-garapon-live-wheel-face {
    animation:
        luckit-live-garapon-wheel-stop
        .84s
        cubic-bezier(.12, .72, .22, 1)
        forwards !important;
}

@keyframes luckit-live-garapon-wheel-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes luckit-live-garapon-handle-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes luckit-live-garapon-wheel-stop {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(210deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .luckit-garapon-page
    .luckit-garapon-stage.is-spinning
    .luckit-garapon-live-wheel-face,
    .luckit-garapon-page
    .luckit-garapon-stage.is-spinning
    .luckit-garapon-handle-rotor {
        animation-duration: 2.4s !important;
    }
}


/* LUCKIT garapon round handle correction v17 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm {
    top: 50% !important;
    right: 66% !important;
    left: auto !important;
    width: 76% !important;
    height: 12px !important;
    border: 1px solid #747d85 !important;
    border-radius: 999px !important;
    transform: translateY(-50%) !important;
    transform-origin: 100% 50% !important;
}

/*
 * 棒の右端を中心ではなく、
 * 中央軸の外周に接続する。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm::before {
    position: absolute;
    top: 50%;
    right: -7px;
    width: 14px;
    height: 18px;
    border: 1px solid #9ca3aa;
    border-radius: 7px;
    background:
        linear-gradient(
            90deg,
            #7f8991,
            #fff 45%,
            #a1aab1
        );
    content: "";
    transform: translateY(-50%);
}

/*
 * 手前を向いた丸いオレンジ色の取っ手。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip {
    top: 50% !important;
    right: 127% !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    aspect-ratio: 1 !important;
    border: 4px solid #fff !important;
    border-radius: 50% !important;
    background:
        radial-gradient(
            circle at 35% 28%,
            #ffd4a3 0 9%,
            #fb923c 24%,
            #f97316 58%,
            #c2410c 82%,
            #8f2d08 100%
        ) !important;
    box-shadow:
        0 0 0 2px #d97706,
        0 7px 12px rgba(154, 52, 18, .30),
        inset -5px -6px 8px rgba(124, 45, 18, .24),
        inset 5px 5px 8px rgba(255, 255, 255, .34) !important;
    transform: translate(50%, -50%) !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip::before {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 12px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    content: "";
    transform: rotate(-28deg);
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip::after {
    display: none !important;
}

@media (max-width: 560px) {
    .luckit-garapon-page
    .luckit-garapon-live-handle
    .luckit-garapon-live-arm {
        height: 10px !important;
    }

    .luckit-garapon-page
    .luckit-garapon-live-handle
    .luckit-garapon-live-grip {
        width: 42px !important;
        height: 42px !important;
    }
}


/* LUCKIT garapon arm center correction v18 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm {
    top: 50% !important;
    right: 50% !important;
    left: auto !important;
    width: 90% !important;
    transform: translateY(-50%) !important;
    transform-origin: 100% 50% !important;
}

/*
 * 前回追加した軸外周の接続部品は非表示。
 * 棒を中心軸の真ん中まで通す。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm::before {
    display: none !important;
}

/*
 * 中央の金属軸を棒より手前に表示し、
 * 棒が軸の中央から出ているように見せる。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-hub {
    z-index: 5 !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm {
    z-index: 2 !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip {
    z-index: 4 !important;
}


/* LUCKIT garapon true center handle correction v19 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-hub {
    z-index: 3 !important;
}

.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm {
    z-index: 6 !important;
    top: 50% !important;
    right: 50% !important;
    left: auto !important;
    width: 90% !important;
    height: 12px !important;
    transform: translateY(-50%) !important;
    transform-origin: 100% 50% !important;
}

/*
 * 棒の先端を黄色い中心点に接続する金属部。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm::before {
    position: absolute !important;
    display: block !important;
    z-index: 7 !important;
    top: 50% !important;
    right: -7px !important;
    left: auto !important;
    width: 15px !important;
    height: 15px !important;
    border: 2px solid #9a6717 !important;
    border-radius: 50% !important;
    background:
        radial-gradient(
            circle at 35% 30%,
            #fff6c7 0 14%,
            #e5b94d 40%,
            #bd7e16 75%,
            #80500b 100%
        ) !important;
    content: "" !important;
    transform: translateY(-50%) !important;
    box-shadow:
        0 1px 3px rgba(92, 62, 18, .30),
        inset 1px 1px 2px rgba(255, 255, 255, .70) !important;
}

/*
 * 棒の光沢を維持する。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm::after {
    z-index: 8 !important;
    right: 10px !important;
    left: 8px !important;
}

/*
 * 丸い取っ手は棒より手前に表示。
 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip {
    z-index: 9 !important;
}


/* LUCKIT garapon axis and rotation synchronization v20 */
.luckit-garapon-page .luckit-garapon-live-wheel {
    top: -2.6% !important;
    left: 15% !important;
    width: 70% !important;
    transform: none !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page .luckit-garapon-live-handle {
    top: 32.4% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-live-wheel-face,
.luckit-garapon-page
.luckit-garapon-handle-rotor {
    transform-origin: 50% 50% !important;
}

.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-live-wheel-face,
.luckit-garapon-page
.luckit-garapon-stage.is-spinning
.luckit-garapon-handle-rotor {
    animation-duration: 1.05s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
}


/* LUCKIT garapon rod horizontal adjustment v25 */
.luckit-garapon-page .luckit-garapon-live-handle {
    left: 50% !important;
}

/* 中心軸は固定して、棒だけを微調整 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-arm {
    right: 48% !important;
}

/* 丸い取っ手も棒と同じ量だけ調整 */
.luckit-garapon-page
.luckit-garapon-live-handle
.luckit-garapon-live-grip {
    right: 125% !important;
}


/* LUCKIT garapon test notice readability v26 */
.luckit-garapon-page .luckit-public-alert {
    border: 1px solid #fdba74 !important;
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #fff7ed
        ) !important;
    color: #7c2d12 !important;
    font-size: clamp(13px, 1.8vw, 15px) !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    letter-spacing: .02em !important;
    text-shadow: none !important;
}

.luckit-garapon-page
.luckit-public-alert::first-line {
    color: #9a3412;
}


/* LUCKIT garapon prize sound preview v27 */
.luckit-garapon-page .luckit-prize-sound-preview {
    margin: 14px auto 18px;
    padding: 14px 16px;
    border: 1px solid #f3cf74;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .98),
            rgba(255, 250, 235, .98)
        );
    color: #172554;
    box-shadow: 0 8px 20px rgba(146, 93, 16, .10);
}

.luckit-garapon-page
.luckit-prize-sound-preview > p {
    margin: 0 0 10px;
    color: #7c2d12;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.luckit-garapon-page
.luckit-prize-sound-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.luckit-garapon-page
.luckit-prize-sound-buttons button {
    min-width: 70px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d9a62e;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            #fffdf5,
            #ffedb0
        );
    color: #172554;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 9px rgba(146, 93, 16, .12);
}

.luckit-garapon-page
.luckit-prize-sound-buttons button:hover {
    border-color: #f97316;
    background:
        linear-gradient(
            135deg,
            #fff7ed,
            #fed7aa
        );
    transform: translateY(-1px);
}

.luckit-garapon-page
.luckit-prize-sound-buttons button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .30);
    outline-offset: 2px;
}

.luckit-garapon-page
.luckit-prize-sound-preview small {
    display: block;
    margin-top: 9px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 520px) {
    .luckit-garapon-page
    .luckit-prize-sound-buttons button {
        min-width: calc(33.333% - 8px);
    }
}

/* 特賞のみタイトルを豪華にする */
body.luckit-garapon-result-page
.luckit-garapon-unified-result.is-grand-prize
.luckit-result-rank {
    min-width: 170px;
    border: 3px solid #fff1a8 !important;
    background:
        linear-gradient(
            115deg,
            #8b1d12,
            #d97706 30%,
            #ffd95a 50%,
            #d97706 70%,
            #8b1d12
        ) !important;
    background-size: 220% 100% !important;
    color: #fff !important;
    font-size: clamp(34px, 8vw, 52px);
    text-shadow:
        0 2px 0 #7c2d12,
        0 0 12px rgba(255, 238, 130, .95);
    box-shadow:
        0 0 0 4px #b77912,
        0 12px 28px rgba(180, 83, 9, .32),
        0 0 30px rgba(250, 204, 21, .30);
    animation:
        luckit-grand-title-shine
        2.2s
        linear
        infinite,
        luckit-grand-title-pulse
        1.35s
        ease-in-out
        infinite alternate;
}

body.luckit-garapon-result-page
.luckit-garapon-unified-result.is-grand-prize
.luckit-result-rank::before,
body.luckit-garapon-result-page
.luckit-garapon-unified-result.is-grand-prize
.luckit-result-rank::after {
    position: absolute;
    top: 50%;
    color: #facc15;
    font-size: 24px;
    content: "★";
    transform: translateY(-50%);
    animation:
        luckit-grand-star
        .85s
        ease-in-out
        infinite alternate;
}

body.luckit-garapon-result-page
.luckit-garapon-unified-result.is-grand-prize
.luckit-result-rank::before {
    left: -38px;
}

body.luckit-garapon-result-page
.luckit-garapon-unified-result.is-grand-prize
.luckit-result-rank::after {
    right: -38px;
    animation-delay: .22s;
}

@keyframes luckit-grand-title-shine {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

@keyframes luckit-grand-title-pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.045);
    }
}

@keyframes luckit-grand-star {
    from {
        opacity: .55;
        transform:
            translateY(-50%)
            scale(.78)
            rotate(-12deg);
    }

    to {
        opacity: 1;
        transform:
            translateY(-50%)
            scale(1.18)
            rotate(12deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.luckit-garapon-result-page
    .luckit-garapon-unified-result.is-grand-prize
    .luckit-result-rank,
    body.luckit-garapon-result-page
    .luckit-garapon-unified-result.is-grand-prize
    .luckit-result-rank::before,
    body.luckit-garapon-result-page
    .luckit-garapon-unified-result.is-grand-prize
    .luckit-result-rank::after {
        animation: none !important;
    }
}


/* LUCKIT garapon text readability and spacing v29 */
body.luckit-garapon-live-page
.luckit-campaign-intro > h1 {
    margin-bottom: 7px !important;
}

/* ハンドル操作中の「あと○%」を読みやすくする */
body.luckit-garapon-page
#luckit-action-label.gacha-action-label {
    position: relative;
    z-index: 10;
    width: fit-content;
    max-width: calc(100% - 28px);
    margin: 12px auto 7px !important;
    padding: 9px 18px;
    border: 1px solid #e4b84d;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .97),
            rgba(255, 248, 224, .97)
        );
    color: #172554 !important;
    font-size: clamp(14px, 2.3vw, 17px);
    font-weight: 900 !important;
    line-height: 1.45;
    letter-spacing: .03em;
    text-shadow: none !important;
    box-shadow: 0 6px 16px rgba(110, 74, 15, .12);
}

/* 結果ページのキャンペーンタイトル */
body.luckit-garapon-page
.luckit-result-card
.luckit-public-eyebrow {
    color: #92400e !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* 抽選券番号全体 */
body.luckit-garapon-page
.luckit-result-card
.luckit-result-ticket-number {
    color: #475569 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* 実際の抽選券番号 */
body.luckit-garapon-page
.luckit-result-card
.luckit-result-ticket-number strong {
    color: #172554 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

/* 景品タイトル */
body.luckit-garapon-page
.luckit-result-card h1,
body.luckit-garapon-page
.luckit-result-card
.luckit-result-heading {
    color: #172554 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* 賞名は統一した濃紺、特賞は専用装飾を優先 */
body.luckit-garapon-page
.luckit-result-card:not(.is-grand-prize)
.luckit-result-rank {
    color: #fff !important;
    opacity: 1 !important;
}

@media (max-width: 520px) {
    body.luckit-garapon-live-page
    .luckit-campaign-intro > h1 {
        margin-bottom: 5px !important;
    }

    body.luckit-garapon-page
    #luckit-action-label.gacha-action-label {
        padding: 8px 14px;
        font-size: 14px;
    }
}


/* LUCKIT garapon ticket information readability v30 */
body.luckit-garapon-live-page
.luckit-campaign-intro
.luckit-ticket-reference {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 8px auto 6px !important;
    padding: 7px 14px;
    border: 1px solid #e6c15a;
    border-radius: 999px;
    background: #fffaf0 !important;
    color: #7c2d12 !important;
    font-size: 13px;
    font-weight: 700 !important;
    line-height: 1.45;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #7c2d12 !important;
}

body.luckit-garapon-live-page
.luckit-campaign-intro
.luckit-ticket-reference strong {
    color: #172554 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #172554 !important;
}

body.luckit-garapon-live-page
.luckit-campaign-intro
.luckit-public-description {
    max-width: 560px;
    margin: 7px auto 8px !important;
    color: #475569 !important;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 600 !important;
    line-height: 1.7;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #475569 !important;
}

body.luckit-garapon-live-page
.luckit-campaign-intro
.luckit-public-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 9px auto 14px !important;
    padding: 8px 18px;
    border: 1px solid #f0cf76;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            #fff,
            #fff8df
        ) !important;
    color: #172554 !important;
    font-size: 14px;
    font-weight: 800 !important;
    line-height: 1.4;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #172554 !important;
    box-shadow: 0 5px 14px rgba(124, 77, 10, .09);
}

body.luckit-garapon-live-page
.luckit-campaign-intro
.luckit-public-count strong {
    color: #d97706 !important;
    font-size: 26px;
    font-weight: 900 !important;
    line-height: 1;
    opacity: 1 !important;
    -webkit-text-fill-color: #d97706 !important;
}

@media (max-width: 520px) {
    body.luckit-garapon-live-page
    .luckit-campaign-intro
    .luckit-ticket-reference {
        max-width: calc(100% - 20px);
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    body.luckit-garapon-live-page
    .luckit-campaign-intro
    .luckit-public-description {
        margin-right: 8px !important;
        margin-left: 8px !important;
        font-size: 13px;
    }

    body.luckit-garapon-live-page
    .luckit-campaign-intro
    .luckit-public-count {
        font-size: 13px;
    }

    body.luckit-garapon-live-page
    .luckit-campaign-intro
    .luckit-public-count strong {
        font-size: 23px;
    }
}

/* Unified gacha centering */
@media (min-width: 521px) {
    body.luckit-gacha-page
    .luckit-public-card
    .gacha-photo-stage.gacha-machine {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        display: block !important;
        width: min(100%, 530px) !important;
        max-width: 530px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        transform: none !important;
    }

    body.luckit-gacha-page
    .luckit-public-card
    .gacha-photo-stage.gacha-machine
    > .gacha-photo-machine {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        transform: none !important;
    }
}
