:root {
    --ink: #fff7f8;
    --muted: #b9aeb6;
    --paper: #100c11;
    --surface: #1b141b;
    --rose: #ff2f65;
    --coral: #ff637d;
    --gold: #ffd33d;
    --mint: #19c8a2;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

body.ms-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 47, 101, 0.22), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(255, 211, 61, 0.12), transparent 24%),
        linear-gradient(160deg, #08060a 0%, #151017 52%, #08060a 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.ms-page.modal-open {
    overflow: hidden;
}

body.ms-page a {
    color: inherit;
}

body.ms-page .page {
    width: min(100%, 460px);
    margin: 0 auto;
    min-height: 100vh;
    background: #0f0b10;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}

body.ms-page .page-ambient {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

body.ms-page .page-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

body.ms-page .page-orb-a {
    width: 180px;
    height: 180px;
    left: -40px;
    top: 18%;
    background: rgba(255, 47, 101, 0.22);
    animation: ms-orb-a 14s ease-in-out infinite alternate;
}

body.ms-page .page-orb-b {
    width: 140px;
    height: 140px;
    right: -30px;
    top: 52%;
    background: rgba(255, 211, 61, 0.14);
    animation: ms-orb-b 16s ease-in-out infinite alternate;
}

@keyframes ms-orb-a {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(12px, 28px, 0);
    }
}

@keyframes ms-orb-b {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-10px, -22px, 0);
    }
}

body.ms-page .hero {
    position: relative;
    z-index: 1;
    min-height: 520px;
    padding: 18px;
    overflow: hidden;
    isolation: isolate;
}

body.ms-page .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

body.ms-page .hero-bg-media {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    filter: blur(10px) saturate(0.92);
    transform: scale(1.12) translate3d(0, calc(var(--ms-scroll-soft, 0px) * -0.35), 0);
    transition: opacity 0.9s ease, filter 1s ease;
    will-change: transform;
}

body.ms-page .hero-bg-media.media-ready {
    opacity: 1;
    filter: blur(0) saturate(1.05);
}

body.ms-page .hero-bg-media-a.media-ready {
    animation: ms-hero-kenburns-a 22s ease-in-out infinite alternate;
}

body.ms-page .hero-bg-media-b {
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(2px) saturate(1.2);
}

body.ms-page .hero-bg-media-b.media-ready {
    opacity: 0.28;
    animation: ms-hero-kenburns-b 28s ease-in-out infinite alternate;
}

@keyframes ms-hero-kenburns-a {
    0% {
        transform: scale(1.05) translate3d(0, calc(var(--ms-scroll-soft, 0px) * -0.35), 0);
    }
    100% {
        transform: scale(1.18) translate3d(-3%, calc(-1.8% + var(--ms-scroll-soft, 0px) * -0.15), 0);
    }
}

@keyframes ms-hero-kenburns-b {
    0% {
        transform: scale(1.12) translate3d(2%, 1%, 0);
    }
    100% {
        transform: scale(1.24) translate3d(-4%, -2%, 0);
    }
}

body.ms-page .hero-bg.is-carousel .hero-slide {
    opacity: 0;
    mix-blend-mode: normal;
    filter: blur(10px) saturate(0.92);
    animation: none;
    transition: opacity 1.25s ease, filter 1.25s ease;
}

body.ms-page .hero-bg.is-carousel .hero-slide.media-ready {
    opacity: 0;
    filter: blur(8px) saturate(0.96);
}

body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-active {
    opacity: 1;
    filter: blur(0) saturate(1.05);
    animation: ms-hero-kenburns-a 22s ease-in-out infinite alternate;
}

body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-next {
    opacity: 0.28;
    mix-blend-mode: screen;
    filter: blur(2px) saturate(1.2);
    animation: ms-hero-kenburns-b 28s ease-in-out infinite alternate;
}

body.ms-page .hero-bg.is-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 211, 61, 0) 34%,
        rgba(255, 247, 248, 0.22) 48%,
        rgba(255, 47, 101, 0.18) 58%,
        transparent 74%
    );
    transform: translate3d(-120%, 0, 0);
    opacity: 0;
}

body.ms-page .hero-bg.is-carousel.is-advancing::after {
    animation: ms-hero-slide-veil 1.2s ease;
}

@keyframes ms-hero-slide-veil {
    0% {
        opacity: 0;
        transform: translate3d(-120%, 0, 0);
    }
    32% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(120%, 0, 0);
    }
}

body.ms-page .hero-bg-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.03) 48%, transparent 100%);
    background-size: 100% 220%;
    animation: ms-scanline 6s linear infinite;
    opacity: 0.25;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes ms-scanline {
    from {
        background-position: 0 -120%;
    }
    to {
        background-position: 0 120%;
    }
}

body.ms-page .hero-bg-spotlight {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(
        circle at var(--ms-spot-x, 50%) var(--ms-spot-y, 40%),
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 47, 101, 0.08) 18%,
        transparent 52%
    );
    transition: opacity 0.35s ease;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

body.ms-page .hero.hero-spotlight-active .hero-bg-spotlight {
    opacity: 1;
}

body.ms-page .hero-sparkles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

body.ms-page .hero-sparkles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 8px rgba(255, 211, 61, 0.55);
    animation: ms-sparkle 4.8s ease-in-out infinite;
}

body.ms-page .hero-sparkles span:nth-child(1) {
    left: 12%;
    top: 22%;
    animation-delay: 0s;
}

body.ms-page .hero-sparkles span:nth-child(2) {
    left: 78%;
    top: 18%;
    animation-delay: 1.1s;
}

body.ms-page .hero-sparkles span:nth-child(3) {
    left: 64%;
    top: 42%;
    animation-delay: 2.2s;
}

body.ms-page .hero-sparkles span:nth-child(4) {
    left: 28%;
    top: 58%;
    animation-delay: 0.7s;
}

body.ms-page .hero-sparkles span:nth-child(5) {
    left: 86%;
    top: 68%;
    animation-delay: 1.8s;
}

@keyframes ms-sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.4) translate3d(0, 0, 0);
    }
    45% {
        opacity: 1;
        transform: scale(1) translate3d(0, -6px, 0);
    }
    70% {
        opacity: 0.35;
        transform: scale(0.7) translate3d(4px, -12px, 0);
    }
}

body.ms-page .hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 6, 10, 0.4) 0%, rgba(8, 6, 10, 0.26) 42%, #0f0b10 100%);
    pointer-events: none;
}

body.ms-page .hero-bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0, transparent 42%),
        radial-gradient(circle at 80% 0%, rgba(255, 47, 101, 0.12) 0, transparent 38%);
    mix-blend-mode: soft-light;
    animation: ms-grain-drift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ms-grain-drift {
    from {
        transform: translate3d(-1%, 0, 0);
    }
    to {
        transform: translate3d(1%, 1%, 0);
    }
}

body.ms-page .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 42%,
        transparent 58%
    );
    transform: translateX(-120%);
    animation: ms-hero-shimmer 8s ease-in-out infinite;
}

@keyframes ms-hero-shimmer {
    0%,
    72% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

body.ms-page .topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 96px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    background: rgba(16, 12, 17, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body.ms-page .showcase {
    position: relative;
    z-index: 2;
}

body.ms-page .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.ms-page .mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    overflow: visible;
}

body.ms-page .mark-live {
    animation: ms-logo-float 4.2s ease-in-out infinite;
}

@keyframes ms-logo-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

body.ms-page .mark-orbit {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 211, 61, 0.35);
    animation: ms-logo-orbit 8s linear infinite;
    pointer-events: none;
}

@keyframes ms-logo-orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body.ms-page .mark-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 47, 101, 0.35) 0%, transparent 68%);
    animation: ms-logo-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ms-logo-glow {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.06);
    }
}

body.ms-page .mark-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.7s ease, filter 0.8s ease;
}

body.ms-page .mark-media.media-ready {
    opacity: 1;
    filter: drop-shadow(0 4px 10px rgba(255, 47, 101, 0.25));
    animation: ms-logo-breathe 5s ease-in-out infinite;
}

@keyframes ms-logo-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

body.ms-page .mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.ms-page .brand-name {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: white;
}

body.ms-page .brand-subtitle {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
}

body.ms-page .bonus {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 211, 61, 0.34);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255, 211, 61, 0.14);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

body.ms-page .bonus-live {
    animation: ms-bonus-glow 2.8s ease-in-out infinite;
}

@keyframes ms-bonus-glow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 211, 61, 0.15);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 211, 61, 0.28);
    }
}

body.ms-page .hero-cta {
    position: relative;
    display: flex;
    width: min(100%, 360px);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #e81752, #ff6a88);
    color: white;
    font-size: 17px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(232, 23, 82, 0.38);
}

body.ms-page .hero-cta-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
    transform: translateX(-120%);
    animation: ms-cta-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}

body.ms-page .poster-stage {
    position: relative;
    display: flex;
    min-height: 300px;
    align-items: end;
}

body.ms-page .poster-stage::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, rgba(8, 6, 10, 0) 0%, rgba(8, 6, 10, 0.72) 72%, #0f0b10 100%);
}

body.ms-page .drama-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    color: white;
    text-align: center;
}

body.ms-page .tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

body.ms-page .tag-live {
    animation: ms-tag-glow 3.2s ease-in-out infinite;
}

@keyframes ms-tag-glow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 211, 61, 0);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 211, 61, 0.22);
    }
}

body.ms-page .drama-copy h1,
body.ms-page .hero-title-shimmer {
    margin: 14px auto 10px;
    max-width: 360px;
    font-size: 36px;
    line-height: 1.05;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

body.ms-page .hero-title-shimmer {
    background: linear-gradient(
        110deg,
        #fff 0%,
        #fff 38%,
        rgba(255, 211, 61, 0.95) 48%,
        #fff 58%,
        #fff 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ms-title-shimmer 6s ease-in-out infinite;
}

@keyframes ms-title-shimmer {
    0%,
    100% {
        background-position: 120% center;
    }
    50% {
        background-position: -20% center;
    }
}

body.ms-page .drama-copy p {
    margin: 0 auto;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

body.ms-page .section {
    position: relative;
    z-index: 1;
    padding: 22px 18px;
    border-top: 1px solid var(--line);
    background: #0f0b10;
}

body.ms-page .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

body.ms-page .section h2 {
    margin: 0;
    font-size: 21px;
}

body.ms-page .section-head span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 950;
}

body.ms-page .section-head .mint-label {
    color: var(--mint);
}

body.ms-page .dramas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

body.ms-page .drama {
    min-width: 0;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ms-page .drama:hover {
    transform: translateY(-3px);
}

body.ms-page .drama:active {
    transform: translateY(-1px) scale(0.99);
}

body.ms-page .cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 17px;
    background: linear-gradient(150deg, var(--from), var(--to));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    overflow: hidden;
    transform: translateZ(0);
}

body.ms-page .cover-live {
    transition:
        box-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--parallax-y, 0px));
    transform-style: preserve-3d;
    perspective: 900px;
}

body.ms-page .cover-live.is-spotlight {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 211, 61, 0.22);
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(calc(var(--parallax-y, 0px) - 4px))
        scale(1.02);
}

body.ms-page .cover-live.is-spotlight .cover-ring {
    opacity: 0.85;
    animation-duration: 3.2s;
}

body.ms-page .cover-live.is-spotlight .cover-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: ms-play-pulse 1.8s ease-in-out infinite;
}

body.ms-page .cover-tilt.is-tilting {
    transition: transform 0.12s ease-out;
}

body.ms-page .cover-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

body.ms-page .cover-ring {
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 211, 61, 0.65), rgba(255, 47, 101, 0.45), rgba(25, 200, 162, 0.35));
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.92;
    animation: ms-cover-ring 6.5s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes ms-cover-ring {
    to {
        filter: hue-rotate(360deg);
    }
}

body.ms-page .drama:hover .cover-live {
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(255, 47, 101, 0.16);
}

body.ms-page .cover-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(8px) saturate(0.9);
    transform: scale(1.1);
    transition: opacity 0.75s ease, filter 0.85s ease;
}

body.ms-page .cover-media.media-ready {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    animation: ms-cover-kenburns 8.2s ease-in-out infinite alternate;
    animation-delay: var(--motion-delay, 0s);
    will-change: transform;
}

@keyframes ms-cover-kenburns {
    0% {
        transform: scale(1.04) translate3d(1.6%, 1.1%, 0);
    }
    100% {
        transform: scale(1.15) translate3d(-2.4%, -1.8%, 0);
    }
}

body.ms-page .cover-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
    z-index: 1;
}

body.ms-page .cover-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.12) 0, transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(255, 47, 101, 0.1) 0, transparent 30%);
    mix-blend-mode: overlay;
    animation: ms-cover-grain 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ms-cover-grain {
    from {
        transform: translate3d(-1%, 0, 0);
    }
    to {
        transform: translate3d(1%, 1%, 0);
    }
}

body.ms-page .cover-pointer-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    background: radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 255, 255, 0.22) 0%,
        transparent 42%
    );
    transition: opacity 0.2s ease;
    pointer-events: none;
}

body.ms-page .cover-tilt.is-tilting .cover-pointer-shine {
    opacity: 1;
}

body.ms-page .cover-shine {
    position: absolute;
    inset: -20% -60%;
    z-index: 2;
    background: linear-gradient(105deg, transparent 36%, rgba(255, 228, 160, 0.16) 46%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 140, 176, 0.2) 56%, transparent 66%);
    transform: translateX(-120%) rotate(8deg);
    animation: ms-cover-shine 4.4s ease-in-out infinite;
    animation-delay: calc(var(--motion-delay, 0s) + 0.8s);
    pointer-events: none;
}

@keyframes ms-cover-shine {
    0%,
    58% {
        transform: translateX(-120%) rotate(8deg);
        opacity: 0;
    }
    72% {
        opacity: 1;
    }
    100% {
        transform: translateX(140%) rotate(8deg);
        opacity: 0;
    }
}

body.ms-page .cover-play {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.9;
    animation: ms-play-breathe 2.8s ease-in-out infinite;
    animation-delay: var(--motion-delay, 0s);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

@keyframes ms-play-breathe {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.94);
        box-shadow: 0 0 0 0 rgba(255, 211, 61, 0.28);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.06);
        box-shadow: 0 0 18px rgba(255, 47, 101, 0.38);
    }
}

body.ms-page .drama:hover .cover-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: ms-play-pulse 1.8s ease-in-out infinite;
}

@keyframes ms-play-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

body.ms-page .reward {
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 4;
    border-radius: 999px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.9);
    color: #130c11;
    font-size: 10px;
    font-weight: 950;
}

body.ms-page .reward-live {
    animation: ms-badge-pop 2.4s ease-in-out infinite;
}

@keyframes ms-badge-pop {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

body.ms-page .drama b {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.2;
}

body.ms-page .install-guide {
    border-top: 1px solid var(--line);
    background: #110d14;
}

body.ms-page .guide-steps {
    display: grid;
    gap: 14px;
}

body.ms-page .guide-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid rgba(25, 200, 162, 0.15);
    border-radius: 18px;
    padding: 16px;
    background: rgba(25, 200, 162, 0.03);
}

body.ms-page .guide-icon {
    font-size: 24px;
    flex: 0 0 auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ms-page .guide-content b {
    display: block;
    font-size: 15px;
    color: white;
    margin-bottom: 4px;
}

body.ms-page .guide-content p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

body.ms-page .guide-tip {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 211, 61, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 11px;
    color: var(--ink);
}

body.ms-page .security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--mint);
    font-size: 12px;
    font-weight: 700;
}

body.ms-page .final {
    position: relative;
    z-index: 1;
    padding: 24px 18px 30px;
    background: linear-gradient(135deg, #171017, #2a1524 58%, #561b33);
    color: white;
    text-align: center;
}

body.ms-page .final h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.05;
}

body.ms-page .final p {
    margin: 0 auto 18px;
    max-width: 330px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

body.ms-page .cta {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #e81752, #ff6a88);
    color: white;
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(251, 55, 99, 0.3);
}

body.ms-page .final .cta {
    background: white;
    color: var(--rose);
    box-shadow: none;
}

body.ms-page .page-footer {
    padding: 16px 18px 24px;
    background: #08060a;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

body.ms-page .page-footer p {
    margin: 0;
}

@keyframes ms-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

body.ms-page .hero-cta,
body.ms-page .cta {
    animation: ms-pulse 2s infinite ease-in-out;
}

body.ms-page .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.ms-page .modal-overlay.active {
    display: flex;
}

body.ms-page .modal-box {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #1b141b;
    border: 1px solid rgba(255, 47, 101, 0.3);
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

body.ms-page .modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #e81752, #ff6a88);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: white;
}

body.ms-page .modal-title {
    font-size: 20px;
    font-weight: 900;
    color: white;
    margin: 0 0 10px;
}

body.ms-page .modal-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 24px;
}

body.ms-page .modal-cta {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #e81752, #ff6a88);
    color: white;
    font-size: 16px;
    font-weight: 950;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

body.ms-page .modal-close-btn {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: 0;
}

@media (min-width: 760px) {
    body.ms-page {
        padding: 24px;
    }

    body.ms-page .page {
        border-radius: 32px;
    }
}

@media (max-width: 360px) {
    body.ms-page .drama-copy h1,
    body.ms-page .hero-title-shimmer {
        font-size: 28px;
    }
}

/* ── Auto entry download popup ── */
body.ms-page.entry-popup-open {
    overflow: hidden;
}

body.ms-page .entry-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 47, 101, 0.18), transparent 42%),
        rgba(8, 6, 10, 0.82);
    backdrop-filter: blur(14px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.ms-page .entry-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body.ms-page .entry-popup-card {
    position: relative;
    width: min(100%, 360px);
    padding: 30px 22px 24px;
    border-radius: 28px;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(0, 0, 0, 0.12) 100%),
        rgba(20, 14, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 47, 101, 0.12) inset,
        0 0 48px rgba(255, 47, 101, 0.12);
    transform: translateY(18px) scale(0.94);
    opacity: 0;
}

body.ms-page .entry-popup-overlay.is-open .entry-popup-card {
    animation: ms-entry-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ms-entry-pop {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

body.ms-page .entry-popup-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 211, 61, 0.55), rgba(255, 47, 101, 0.45), rgba(25, 200, 162, 0.35));
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: ms-border-glow 4s linear infinite;
}

@keyframes ms-border-glow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

body.ms-page .entry-popup-aurora {
    position: absolute;
    inset: -40% -20%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 47, 101, 0.22), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(255, 211, 61, 0.16), transparent 50%);
    animation: ms-aurora-drift 7s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ms-aurora-drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 1%, 0) scale(1.06);
    }
}

body.ms-page .entry-popup-shine {
    position: absolute;
    top: -60%;
    left: -30%;
    width: 60%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: rotate(18deg);
    animation: ms-card-shine 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ms-card-shine {
    0%,
    55% {
        transform: translateX(-120%) rotate(18deg);
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(260%) rotate(18deg);
        opacity: 0;
    }
}

body.ms-page .entry-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.ms-page .entry-popup-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
}

body.ms-page .entry-popup-logo {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
}

body.ms-page .entry-popup-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.6s ease, filter 0.7s ease;
}

body.ms-page .entry-popup-logo img.media-ready {
    opacity: 1;
    filter: drop-shadow(0 6px 16px rgba(255, 47, 101, 0.35));
    animation: ms-logo-breathe 4.8s ease-in-out infinite;
}

body.ms-page .entry-popup-logo-orbit {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 47, 101, 0.35);
    animation: ms-logo-orbit 6s linear infinite;
    pointer-events: none;
}

body.ms-page .entry-popup-badge-ring {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 211, 61, 0.18) 0%, transparent 70%);
    animation: ms-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes ms-badge-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 211, 61, 0.35);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(255, 211, 61, 0);
    }
}

body.ms-page .entry-popup-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 211, 61, 0.22), rgba(255, 127, 80, 0.18));
    border: 1px solid rgba(255, 211, 61, 0.45);
    color: var(--gold);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(255, 211, 61, 0.35);
}

body.ms-page .entry-popup-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: var(--mint);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.ms-page .entry-popup-title {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 950;
    text-wrap: balance;
}

body.ms-page .entry-popup-message {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: rgba(255, 247, 248, 0.92);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
    text-wrap: balance;
}

body.ms-page .entry-popup-cta {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #e81752, #ff6a88 52%, #ff8a5c);
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
    box-shadow:
        0 16px 34px rgba(232, 23, 82, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: ms-pulse 2s infinite ease-in-out;
}

body.ms-page .entry-popup-cta-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
    transform: translateX(-120%);
    animation: ms-cta-shimmer 2.6s ease-in-out infinite;
}

@keyframes ms-cta-shimmer {
    0%,
    35% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

body.ms-page .entry-popup-later {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

body.ms-page .entry-popup-later:hover {
    color: rgba(255, 255, 255, 0.82);
}

/* ── Scroll reveal ── */
body.ms-page .ms-reveal {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(6px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ms-page .ms-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

body.ms-page .drama.ms-reveal.is-visible {
    transition-delay: calc(var(--enter, 0) * 0.12s);
    animation: ms-card-float 5.6s ease-in-out infinite;
    animation-delay: calc(0.9s + var(--enter, 0) * 0.16s);
}

@keyframes ms-card-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ms-page .hero::after,
    body.ms-page .hero-bg-media-a.media-ready,
    body.ms-page .hero-bg-media-b.media-ready,
    body.ms-page .hero-bg.is-carousel .hero-slide,
    body.ms-page .hero-bg.is-carousel.is-advancing::after,
    body.ms-page .mark-media.media-ready,
    body.ms-page .cover-media.media-ready,
    body.ms-page .hero-bg-scanline,
    body.ms-page .hero-sparkles span,
    body.ms-page .mark-orbit,
    body.ms-page .tag-live,
    body.ms-page .hero-title-shimmer,
    body.ms-page .hero-cta-shimmer,
    body.ms-page .cover-grain,
    body.ms-page .entry-popup-logo img.media-ready,
    body.ms-page .entry-popup-logo-orbit,
    body.ms-page .page-orb-a,
    body.ms-page .page-orb-b,
    body.ms-page .cover-ring,
    body.ms-page .mark-live,
    body.ms-page .mark-glow,
    body.ms-page .mark-media,
    body.ms-page .bonus-live,
    body.ms-page .cover-media,
    body.ms-page .cover-shine,
    body.ms-page .cover-play,
    body.ms-page .cover-live,
    body.ms-page .drama.ms-reveal.is-visible,
    body.ms-page .reward-live,
    body.ms-page .entry-popup-card::before,
    body.ms-page .entry-popup-aurora,
    body.ms-page .entry-popup-shine,
    body.ms-page .entry-popup-badge-ring:has(.is-compact)::before,
    body.ms-page .entry-popup-badge.is-compact::after,
    body.ms-page .entry-popup-badge-ring,
    body.ms-page .entry-popup-cta,
    body.ms-page .entry-popup-cta-shimmer {
        animation: none;
    }

    body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-next {
        opacity: 0;
    }

    body.ms-page .hero-title-shimmer {
        color: #fff;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }

    body.ms-page .cover-live.is-spotlight {
        transform: none;
    }

    body.ms-page .entry-popup-overlay.is-open .entry-popup-card {
        animation: none;
        transform: none;
        opacity: 1;
    }

    body.ms-page .ms-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* AnyShort premium typography & popup layout refinements */

body.ms-page .bonus-live {
    max-width: 128px;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
}

body.ms-page .drama-copy h1,
body.ms-page .hero-title-shimmer {
    max-width: 380px;
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

body.ms-page .drama-copy p {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.58;
    letter-spacing: 0.01em;
    font-weight: 600;
}

body.ms-page .hero-cta {
    width: min(100%, 340px);
    min-height: 54px;
    padding: 0 22px;
    font-size: 16px;
    letter-spacing: 0.02em;
}

body.ms-page .hero-cta-label {
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

body.ms-page .entry-popup-card {
    width: min(100%, 372px);
    padding: 28px 24px 22px;
}

body.ms-page .entry-popup-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

body.ms-page .entry-popup-actions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
}

body.ms-page .entry-popup-badge-ring {
    margin-bottom: 6px;
}

body.ms-page .entry-popup-badge-ring:has(.is-compact) {
    width: auto;
    min-width: 172px;
    height: 54px;
    padding: 0 10px;
    border-radius: 999px;
    background: radial-gradient(ellipse 130% 100% at 50% 50%, rgba(255, 211, 61, 0.22) 0%, transparent 72%);
    box-shadow: 0 0 22px rgba(255, 211, 61, 0.14);
    animation: ms-badge-pulse-wide 2.6s ease-in-out infinite;
}

body.ms-page .entry-popup-badge-ring:has(.is-compact)::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    border: 1px dashed rgba(255, 211, 61, 0.44);
    opacity: 0.9;
    animation: ms-badge-orbit-wide 9s linear infinite;
    pointer-events: none;
}

@keyframes ms-badge-pulse-wide {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 211, 61, 0.34), 0 0 18px rgba(255, 211, 61, 0.16);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 211, 61, 0), 0 0 30px rgba(255, 211, 61, 0.3);
    }
}

@keyframes ms-badge-orbit-wide {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body.ms-page .entry-popup-badge.is-compact {
    position: relative;
    min-width: auto;
    max-width: none;
    padding: 9px 18px;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
}

body.ms-page .entry-popup-badge.is-compact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: ms-badge-shimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ms-badge-shimmer {
    0%,
    100% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(120%);
    }
}

body.ms-page .entry-popup-title {
    margin-bottom: 6px;
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1.18;
    letter-spacing: -0.015em;
}

body.ms-page .entry-popup-message {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.62;
    font-weight: 600;
    color: rgba(255, 247, 248, 0.88);
}

body.ms-page .entry-popup-cta {
    min-height: 50px;
    padding: 12px 20px;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.ms-page .entry-popup-cta-label {
    position: relative;
    z-index: 1;
    display: inline-block;
    line-height: 1.15;
    white-space: nowrap;
}

body.ms-page .entry-popup-later {
    margin-top: 12px;
}


body.ms-page .bonus-jackpot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 128px;
    min-height: 28px;
    padding: 6px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 226, 120, 0.85);
    border-radius: 999px;
    background: radial-gradient(circle at 32% 30%, #fff4b0 0%, #ffd23a 38%, #e39b00 100%);
    color: #4a2500;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
    box-shadow: 0 0 14px rgba(255, 196, 40, 0.55);
    animation: ms-jackpot-pulse 1.35s ease-in-out infinite;
}

body.ms-page .jackpot-value {
    position: relative;
    z-index: 1;
}

body.ms-page .jackpot-coin {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fff8d2, #f0b000 58%, #8a5600);
    box-shadow: 0 0 6px rgba(255, 224, 120, 0.9);
    animation: ms-jackpot-coin 0.9s linear infinite;
}

body.ms-page .jackpot-rays,
body.ms-page .jackpot-spark {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

body.ms-page .jackpot-rays {
    inset: -40% -20%;
    background: conic-gradient(from 0deg, transparent 0 18%, rgba(255, 255, 255, 0.55) 22%, transparent 28% 68%, rgba(255, 255, 255, 0.4) 74%, transparent 80%);
    animation: ms-jackpot-rays 1.6s linear infinite;
    opacity: 0.55;
}

body.ms-page .jackpot-spark {
    top: 3px;
    right: 8px;
    width: 4px;
    height: 4px;
    background: white;
    box-shadow: 0 0 6px white;
    animation: ms-jackpot-spark 1.1s ease-in-out infinite;
}

@keyframes ms-jackpot-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 196, 40, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 18px rgba(255, 220, 80, 0.85);
    }
}

@keyframes ms-jackpot-coin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes ms-jackpot-rays {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ms-jackpot-spark {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ms-page .bonus-jackpot,
    body.ms-page .jackpot-coin,
    body.ms-page .jackpot-rays,
    body.ms-page .jackpot-spark {
        animation: none;
    }
}

body.ms-page .entry-popup-badge-ring.is-reward {
    width: 188px;
    height: 168px;
    margin: -2px auto 0;
    border: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 211, 61, 0.24) 0%, rgba(255, 47, 101, 0.1) 36%, transparent 70%);
    box-shadow: none;
    overflow: visible;
    animation: none;
}
body.ms-page .entry-popup-card.is-geo .reward-hand {
    width: 176px;
    filter: drop-shadow(0 14px 16px rgba(255, 176, 48, 0.28)) drop-shadow(0 0 24px rgba(255, 47, 101, 0.2));
}
body.ms-page .entry-popup-card.is-geo {
    text-align: center;
}
body.ms-page .entry-popup-title.is-geo {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 750;
    letter-spacing: 0;
    text-align: center;
    text-wrap: pretty;
    max-width: 300px;
    margin: 2px auto 8px;
}
body.ms-page .entry-popup-card.is-geo .entry-popup-later {
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}
body.ms-page .entry-popup-jackpot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    min-height: 36px;
    padding: 8px 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 232, 150, 0.95);
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 28%, #fff8d4 0%, #ffe27a 28%, #ffc233 62%, #e09400 100%);
    color: #4a2500;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28) inset,
        0 8px 18px rgba(255, 176, 32, 0.35),
        0 0 22px rgba(255, 210, 70, 0.55);
    animation: ms-jackpot-pulse 1.35s ease-in-out infinite;
}
body.ms-page .entry-popup-jackpot .jackpot-coin {
    width: 16px;
    height: 16px;
}
body.ms-page .entry-popup-jackpot .jackpot-value {
    font-variant-numeric: tabular-nums;
}
body.ms-page .cash-rain {
    position: fixed;
    inset: 0;
    z-index: 1250;
    overflow: hidden;
    pointer-events: none;
    animation: cash-rain-veil 10s ease forwards;
}
body.ms-page .cash-rain-glow {
    position: absolute;
    left: 50%;
    bottom: -12%;
    width: 150%;
    height: 48%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 211, 61, 0.32), rgba(255, 176, 48, 0.08) 42%, transparent 72%);
    filter: blur(10px);
}
body.ms-page .cash-rain-glow-rose {
    bottom: auto;
    top: -14%;
    height: 38%;
    background: radial-gradient(ellipse at center, rgba(255, 47, 101, 0.28), rgba(255, 99, 125, 0.08) 46%, transparent 72%);
}
body.ms-page .cash-piece {
    position: absolute;
    top: -16%;
    animation-name: cash-fall;
    animation-timing-function: cubic-bezier(0.18, 0.62, 0.28, 1);
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}
body.ms-page .cash-piece.is-note {
    width: 64px;
    height: 32px;
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 46%),
        linear-gradient(118deg, #fff6d4 0%, #f6c86a 48%, #e39a3a 100%);
    box-shadow:
        0 12px 22px rgba(255, 176, 48, 0.28),
        inset 0 0 0 1px rgba(112, 62, 0, 0.28);
}
body.ms-page .cash-piece.is-note.tone-rose {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 44%),
        linear-gradient(118deg, #ffe7ee 0%, #ffb4c6 46%, #ff6d90 100%);
    box-shadow:
        0 12px 22px rgba(255, 47, 101, 0.24),
        inset 0 0 0 1px rgba(128, 24, 48, 0.2);
}
body.ms-page .cash-piece.is-note.tone-plum {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 44%),
        linear-gradient(118deg, #f6e8ff 0%, #ddb6f6 48%, #b07adf 100%);
    box-shadow:
        0 12px 22px rgba(176, 122, 223, 0.22),
        inset 0 0 0 1px rgba(78, 32, 110, 0.18);
}
body.ms-page .cash-note-mark {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 -6px 0 rgba(90, 42, 8, 0.14), 0 6px 0 rgba(90, 42, 8, 0.14);
}
body.ms-page .cash-piece.is-note::before,
body.ms-page .cash-piece.is-note::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
}
body.ms-page .cash-piece.is-note::before { left: 4px; }
body.ms-page .cash-piece.is-note::after { right: 4px; }
body.ms-page .cash-piece.is-coin {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff8d6, #ffd34a 40%, #c88810 78%);
    box-shadow:
        0 0 14px rgba(255, 210, 70, 0.7),
        inset 0 0 0 2px rgba(122, 72, 0, 0.35);
}
body.ms-page .cash-coin-mark {
    color: #6a3b00;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
body.ms-page .cash-piece.is-spark {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #ffd33d, 0 0 16px rgba(255, 47, 101, 0.75);
}
@keyframes cash-fall {
    0% {
        transform: translate3d(0, -6vh, 0) rotate(var(--rot)) scale(var(--scale));
        opacity: 0;
    }
    12% { opacity: 0.96; }
    100% {
        transform: translate3d(var(--drift), 112vh, 0) rotate(calc(var(--rot) + 96deg)) scale(var(--scale));
        opacity: 0.12;
    }
}
@keyframes cash-rain-veil {
    0% { opacity: 0; }
    3% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.ms-page .cash-rain { display: none; }
}
.reward-hand {
    width: 156px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(255, 64, 120, 0.38));
    animation: ms-reward-float 2.6s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}
.bonus-jackpot .reward-hand {
    width: 128px;
}
@keyframes ms-reward-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-7px) scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
    .reward-hand { animation: none; }
}

/* smooth-playback */
body.ms-page .hero-bg-media,
body.ms-page .hero-bg.is-carousel .hero-slide {
    filter: none !important;
    mix-blend-mode: normal !important;
    will-change: auto !important;
    animation: none !important;
    transition: opacity 0.45s linear !important;
}
body.ms-page .hero-bg-media-b,
body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-next {
    opacity: 0 !important;
}
body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-active {
    opacity: 1 !important;
}
body.ms-page .hero-bg.is-carousel::after,
body.ms-page .hero-bg.is-carousel.is-advancing::after {
    animation: none !important;
    opacity: 0 !important;
    display: none !important;
}
body.ms-page .cover-live.is-spotlight {
    animation: none !important;
    transform: none !important;
}
@media (max-width: 1024px) {
    body.ms-page .hero-bg-scanline,
    body.ms-page .hero-sparkles,
    body.ms-page .hero-bg-grain,
    body.ms-page .page-orb-a,
    body.ms-page .page-orb-b,
    body.ms-page .cover-shine,
    body.ms-page .cover-grain,
    body.ms-page .cover-ring,
    body.ms-page .mark-orbit,
    body.ms-page .mark-glow {
        display: none !important;
    }
    body.ms-page .cover-media,
    body.ms-page .cover-live,
    body.ms-page .drama.ms-reveal.is-visible,
    body.ms-page .ms-reveal {
        animation: none !important;
        filter: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
