/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    min-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Oswald', sans-serif;
    background: transparent;
    height: 100vh;
    width: 100vw;
    min-height: 100vh;
    min-width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/background.png') no-repeat center center;
    z-index: 1;
}

/* Logo */
.logo {
    position: fixed;
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
    transform: scale(1.4) !important;
}

/* ===== ANIMATED PROMO BUTTON ===== */
.kv__btn--play-free-now {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 140px;
    display: inline-block;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.kv__btn--play-free-now:hover {
    transform: scale(1.05);
}

.z_yuhecheng_85_000 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.z_yuhecheng_85_000-under-svg {
    width: 100%;
    height: 100%;
    font-size: 0;
    background: url("../assets/promo.png");
    background-size: 700% 700%;
    animation: sprite_z_yuhecheng_85_000 2s steps(1) infinite;
}

/* ===== SPRITE ANIMATION KEYFRAMES ===== */
@keyframes sprite_z_yuhecheng_85_000 {
    0% { background-position: 0 0; }
    2.1% { background-position: -342px 0; }
    4.2% { background-position: -684px 0; }
    6.3% { background-position: -1026px 0; }
    8.3% { background-position: -1368px 0; }
    10.4% { background-position: -1710px 0; }
    12.5% { background-position: -2052px 0; }
    14.6% { background-position: 0 -238px; }
    16.7% { background-position: -342px -238px; }
    18.8% { background-position: -684px -238px; }
    20.8% { background-position: -1026px -238px; }
    22.9% { background-position: -1368px -238px; }
    25% { background-position: -1710px -238px; }
    27.1% { background-position: -2052px -238px; }
    29.2% { background-position: 0 -476px; }
    31.3% { background-position: -342px -476px; }
    33.3% { background-position: -684px -476px; }
    35.4% { background-position: -1026px -476px; }
    37.5% { background-position: -1368px -476px; }
    39.6% { background-position: -1710px -476px; }
    41.7% { background-position: -2052px -476px; }
    43.8% { background-position: 0 -714px; }
    45.8% { background-position: -342px -714px; }
    47.9% { background-position: -684px -714px; }
    50% { background-position: -1026px -714px; }
    52.1% { background-position: -1368px -714px; }
    54.2% { background-position: -1710px -714px; }
    56.3% { background-position: -2052px -714px; }
    58.3% { background-position: 0 -952px; }
    60.4% { background-position: -342px -952px; }
    62.5% { background-position: -684px -952px; }
    64.6% { background-position: -1026px -952px; }
    66.7% { background-position: -1368px -952px; }
    68.8% { background-position: -1710px -952px; }
    70.8% { background-position: -2052px -952px; }
    72.9% { background-position: 0 -1190px; }
    75% { background-position: -342px -1190px; }
    77.1% { background-position: -684px -1190px; }
    79.2% { background-position: -1026px -1190px; }
    81.3% { background-position: -1368px -1190px; }
    83.3% { background-position: -1710px -1190px; }
    85.4% { background-position: -2052px -1190px; }
    87.5% { background-position: 0 -1428px; }
    89.6% { background-position: -342px -1428px; }
    91.7% { background-position: -684px -1428px; }
    93.8% { background-position: -1026px -1428px; }
    95.8% { background-position: -1368px -1428px; }
    97.9% { background-position: -1710px -1428px; }
    100% { background-position: -1710px -1428px; }
}

/* ===== COOKIE NOTICE ===== */
#cookie-notice {
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    background-color: rgba(0,0,0,0.7);
    height: 30px;
    z-index: 1000;
    position: fixed;
    transform: translateY(50px);
    transition: transform 0.3s ease-in-out;
}

#cookie-notice #exit {
    position: absolute;
    right: .5em;
    top: -3px;
    cursor: pointer;
    max-width: 30px;
    background: none;
    border: none;
}

#cookie-notice #exit span {
    color: white;
    font-size: 30px;
}

#cookie-notice .notice-wrapper {
    width: 100%;
    text-align: center;
    margin: 0 10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

#cookie-notice .notice-wrapper p,
#cookie-notice .notice-wrapper a {
    text-align: center;
    font-family: Arial, sans-serif !important;
    font-size: 14px;
    color: white;
}

#cookie-notice.opened-item {
    transform: translateY(0);
}

/* ===== GLITCH BUTTON CONTAINER ===== */
.button-container {
    margin-top: 2rem;
    position: relative;
    position: fixed;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%) scale(1.2) !important;
    z-index: 9999;
}

/* ===== MAIN GLITCH BUTTON ===== */
.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
    min-width: 200px;
    animation: randomGlitch 12s ease-in-out infinite;
}

/* ===== GLITCH OVERLAY ===== */
.play-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/glitch.png");
    background-size: 1000px 1000px;
    background-position: 0 0;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    animation: glitchSprite 0.8s steps(1) infinite, randomGlitchOverlay 12s ease-in-out infinite;
}

/* ===== HOVER EFFECTS ===== */
.play-button:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.play-button:hover .button-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ===== BUTTON IMAGE ===== */
.button-image {
    min-width: 200px;
    width: auto;
    height: auto;
    display: block;
    animation: randomImageOpacity 12s ease-in-out infinite;
}

/* ===== BUTTON TEXT ===== */
.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
    animation: randomTextGlitch 12s ease-in-out infinite;
}

/* ===== GLITCH ANIMATIONS ===== */
@keyframes randomGlitch {
    0%, 8% { transform: scale(1); }
    9% { transform: scale(1.02); }
    10% { transform: scale(0.98); }
    11% { transform: scale(1.01); }
    12% { transform: scale(0.99); }
    13% { transform: scale(1.03); }
    14% { transform: scale(0.97); }
    15% { transform: scale(1); }
    16%, 35% { transform: scale(1); }
    36% { transform: scale(1.02); }
    37% { transform: scale(0.98); }
    38% { transform: scale(1.01); }
    39% { transform: scale(1); }
    40%, 58% { transform: scale(1); }
    59% { transform: scale(1.03); }
    60% { transform: scale(0.97); }
    61% { transform: scale(1.02); }
    62% { transform: scale(1); }
    63%, 78% { transform: scale(1); }
    79% { transform: scale(1.01); }
    80% { transform: scale(0.99); }
    81% { transform: scale(1.02); }
    82% { transform: scale(1); }
    83%, 92% { transform: scale(1); }
    93% { transform: scale(1.03); }
    94% { transform: scale(0.97); }
    95% { transform: scale(1.01); }
    96% { transform: scale(1); }
    97%, 100% { transform: scale(1); }
}

@keyframes randomGlitchOverlay {
    0%, 8% { opacity: 0; }
    9%, 15% { opacity: 1; }
    16%, 35% { opacity: 0; }
    36%, 39% { opacity: 1; }
    40%, 58% { opacity: 0; }
    59%, 62% { opacity: 1; }
    63%, 78% { opacity: 0; }
    79%, 82% { opacity: 1; }
    83%, 92% { opacity: 0; }
    93%, 96% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

@keyframes randomTextGlitch {
    0%, 8% { color: #000000; transform: translate(-50%, -50%); }
    9% { color: #ff0000; transform: translate(-52%, -48%); }
    10% { color: #00ff00; transform: translate(-48%, -52%); }
    11% { color: #0000ff; transform: translate(-51%, -49%); }
    12% { color: #ffff00; transform: translate(-49%, -51%); }
    13% { color: #ff00ff; transform: translate(-53%, -47%); }
    14% { color: #00ffff; transform: translate(-47%, -53%); }
    15% { color: #000000; transform: translate(-50%, -50%); }
    16%, 35% { color: #000000; transform: translate(-50%, -50%); }
    36% { color: #ff0000; transform: translate(-51%, -49%); }
    37% { color: #00ff00; transform: translate(-49%, -51%); }
    38% { color: #0000ff; transform: translate(-50%, -50%); }
    39% { color: #000000; transform: translate(-50%, -50%); }
    40%, 58% { color: #000000; transform: translate(-50%, -50%); }
    59% { color: #ffff00; transform: translate(-52%, -48%); }
    60% { color: #ff00ff; transform: translate(-48%, -52%); }
    61% { color: #00ffff; transform: translate(-51%, -49%); }
    62% { color: #000000; transform: translate(-50%, -50%); }
    63%, 78% { color: #000000; transform: translate(-50%, -50%); }
    79% { color: #ff0000; transform: translate(-49%, -51%); }
    80% { color: #00ff00; transform: translate(-51%, -49%); }
    81% { color: #0000ff; transform: translate(-50%, -50%); }
    82% { color: #000000; transform: translate(-50%, -50%); }
    83%, 92% { color: #000000; transform: translate(-50%, -50%); }
    93% { color: #ffff00; transform: translate(-53%, -47%); }
    94% { color: #ff00ff; transform: translate(-47%, -53%); }
    95% { color: #00ffff; transform: translate(-52%, -48%); }
    96% { color: #000000; transform: translate(-50%, -50%); }
    97%, 100% { color: #000000; transform: translate(-50%, -50%); }
}

@keyframes randomImageOpacity {
    0%, 8% { opacity: 1; }
    9% { opacity: 0.8; }
    10% { opacity: 0.3; }
    11% { opacity: 0.9; }
    12% { opacity: 0.2; }
    13% { opacity: 1; }
    14% { opacity: 0.4; }
    15% { opacity: 1; }
    16%, 35% { opacity: 1; }
    36% { opacity: 0.7; }
    37% { opacity: 0.1; }
    38% { opacity: 0.8; }
    39% { opacity: 1; }
    40%, 58% { opacity: 1; }
    59% { opacity: 0.3; }
    60% { opacity: 0.9; }
    61% { opacity: 0.5; }
    62% { opacity: 1; }
    63%, 78% { opacity: 1; }
    79% { opacity: 0.6; }
    80% { opacity: 0.2; }
    81% { opacity: 0.8; }
    82% { opacity: 1; }
    83%, 92% { opacity: 1; }
    93% { opacity: 0.4; }
    94% { opacity: 0.1; }
    95% { opacity: 0.7; }
    96% { opacity: 1; }
    97%, 100% { opacity: 1; }
}

@keyframes glitchSprite {
    0% { background-position: 0 0; }
    4% { background-position: -200px 0; }
    8% { background-position: -400px 0; }
    12% { background-position: -600px 0; }
    16% { background-position: -800px 0; }
    20% { background-position: 0 -200px; }
    24% { background-position: -200px -200px; }
    28% { background-position: -400px -200px; }
    32% { background-position: -600px -200px; }
    36% { background-position: -800px -200px; }
    40% { background-position: 0 -400px; }
    44% { background-position: -200px -400px; }
    48% { background-position: -400px -400px; }
    52% { background-position: -600px -400px; }
    56% { background-position: -800px -400px; }
    60% { background-position: 0 -600px; }
    64% { background-position: -200px -600px; }
    68% { background-position: -400px -600px; }
    72% { background-position: -600px -600px; }
    76% { background-position: -800px -600px; }
    80% { background-position: 0 -800px; }
    84% { background-position: -200px -800px; }
    88% { background-position: -400px -800px; }
    92% { background-position: -600px -800px; }
    96% { background-position: -800px -800px; }
    100% { background-position: -800px -800px; }
}

/* Character Names */
.character-names {
    position: fixed;
    top: 8vh;
    right: 2vw;
    z-index: 10000;
    pointer-events: none;
}

.character-names .character-name {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: scale(1.0);
}

.character-names .character-name.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
}

/* Responsive positioning - Character Names */
@media (max-width: 1200px) {
    .character-names .character-name {
        width: 250px;
    }
}

@media (max-width: 900px) {
    .character-names .character-name {
        width: 220px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .kv__btn--play-free-now {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .character-names {
        top: 50vh;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .character-names .character-name {
        width: 200px;
    }
    
    /* Tablet/mobile button adjustments */
    .button-container {
        transform: translateX(-50%) scale(1.3) !important;
        bottom: 13vh !important;
    }
    
    .button-image {
        min-width: 240px !important;
        max-width: 240px !important;
        width: 240px !important;
        height: auto !important;
        transform: scale(1.0) !important;
    }
    
    .button-text {
        font-size: 2.4rem !important;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .character-names {
        top: 45vh;
    }
    
    .character-names .character-name {
        width: 180px;
    }
    
    /* Mobile button adjustments */
    .button-container {
        transform: translateX(-50%) scale(1.5) !important;
        bottom: 12vh !important;
    }
    
    .button-image {
        min-width: 220px !important;
        max-width: 220px !important;
        width: 220px !important;
        height: auto !important;
        transform: scale(1.5) !important;
    }
    
    .button-text {
        font-size: 2.6rem !important;
    }
}

@media (max-width: 480px) {
    .button-text {
        font-size: 1.6rem !important;
    }
}

/* iPhone 16 Pro Max specific adjustments */
@media (max-width: 430px) and (max-height: 932px) {
    html, body {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .character-names {
        top: 40vh;
    }
    
    .character-names .character-name {
        width: 160px;
    }
    
    .button-container {
        transform: translateX(-50%) scale(1.4) !important;
        bottom: 10vh !important;
    }
}

/* Character Slider with Arch Effect */
.character-slider {
    position: fixed;
    top: 50vh;
    left: 50%;
    transform: translateX(-50%) scale(1.1);
    z-index: 60;
    width: 1400px;
    height: 700px;
    perspective: 1000px;
    overflow: visible;
    pointer-events: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    overflow: visible;
}

.slide {
    position: absolute;
    width: 400px;
    height: 520px;
    left: 50%;
    top: 50%;
    transform-origin: center bottom;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Active slide (center) - 50% larger size */
.slide.active {
    transform: translate(-50%, -50%) translateZ(50px) scale(1.5);
    z-index: 70;
}

/* Ensure slides stay behind top assets */
.slide {
    z-index: 65;
}

.slide.left {
    z-index: 60;
}

.slide.right {
    z-index: 60;
}

.slide.active img {
    filter: brightness(1.2) contrast(1.1) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.8));
}

/* Character animations are now handled by JavaScript */

/* Character 1 Name - make smaller when active */
.slide[data-index="0"].active ~ .name img {
    transform: scale(0.85);
}

/* Left slide - larger size, darker, blurred, adjusted for larger center */
.slide.left {
    transform: translate(-200%, -50%) scale(1.0) translateZ(-50px) rotateY(15deg);
    z-index: 20;
}

.slide.left img {
    filter: brightness(0.4) contrast(0.8) blur(1px) saturate(0.7);
    opacity: 1;
}

/* Right slide - larger size, darker, blurred, adjusted for larger center */
.slide.right {
    transform: translate(100%, -50%) scale(1.0) translateZ(-50px) rotateY(-15deg);
    z-index: 20;
}

.slide.right img {
    filter: brightness(0.4) contrast(0.8) blur(1px) saturate(0.7);
    opacity: 1;
}

/* Far left slide - even smaller and adjusted for larger center */
.slide.far-left {
    transform: translate(-300%, -50%) scale(0.6) translateZ(-100px) rotateY(25deg);
    z-index: 55;
}

.slide.far-left img {
    filter: brightness(0.3) contrast(0.7) blur(2px) saturate(0.6);
    opacity: 0.8;
}

/* Far right slide - even smaller and adjusted for larger center */
.slide.far-right {
    transform: translate(200%, -50%) scale(0.6) translateZ(-100px) rotateY(-25deg);
    z-index: 55;
}

.slide.far-right img {
    filter: brightness(0.3) contrast(0.7) blur(2px) saturate(0.6);
    opacity: 0.8;
}

/* Hidden slides - completely out of view */
.slide.hidden {
    transform: translate(-50%, -50%) scale(0.4) translateZ(-200px);
    opacity: 0;
    pointer-events: none;
}

/* Responsive adjustments */

/* 4K and Ultra-wide displays (2560px and above) */
@media (min-width: 2560px) {
    .character-slider {
        width: 70vw;
        height: 55vh;
        top: 60vh;
        transform: translateX(-50%) scale(1.3);
    }
    
    .slide {
        width: 25vw;
        height: 55vh;
    }
    
    /* Tighter character spacing for 4K */
    .slide.left {
        transform: translate(-150%, -50%) scale(1.0) translateZ(-50px) rotateY(15deg);
    }
    
    .slide.right {
        transform: translate(50%, -50%) scale(1.0) translateZ(-50px) rotateY(-15deg);
    }
    
    .slide.far-left {
        transform: translate(-250%, -50%) scale(0.6) translateZ(-100px) rotateY(25deg);
    }
    
    .slide.far-right {
        transform: translate(150%, -50%) scale(0.6) translateZ(-100px) rotateY(-25deg);
    }
    
    .logo img {
        transform: scale(1.6) !important;
    }
    
    .button-container {
        transform: translateX(-50%) scale(1.4) !important;
    }
    
    .character-names .name img {
        transform: scale(1.2) !important;
    }
    
    .background {
        background-size: cover;
        background-position: center;
    }
}

/* 2K displays (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .character-slider {
        width: 68vw;
        height: 52vh;
        top: 50vh;
        transform: translateX(-50%) scale(1.2);
    }
    
    .slide {
        width: 24vw;
        height: 52vh;
    }
    
    /* Tighter character spacing for 2K */
    .slide.left {
        transform: translate(-160%, -50%) scale(1.0) translateZ(-50px) rotateY(15deg);
    }
    
    .slide.right {
        transform: translate(60%, -50%) scale(1.0) translateZ(-50px) rotateY(-15deg);
    }
    
    .slide.far-left {
        transform: translate(-260%, -50%) scale(0.6) translateZ(-100px) rotateY(25deg);
    }
    
    .slide.far-right {
        transform: translate(160%, -50%) scale(0.6) translateZ(-100px) rotateY(-25deg);
    }
    
    .logo img {
        transform: scale(1.5) !important;
    }
    
    .button-container {
        transform: translateX(-50%) scale(1.3) !important;
    }
    
    .character-names .name img {
        transform: scale(1.1) !important;
    }
    
    .background {
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 1920px) {
    .character-slider {
        width: 65vw;
        height: 50vh;
        bottom: 0px;
        transform: translateX(-50%) scale(1.1);
    }
    
    .slide {
        width: 22vw;
        height: 50vh;
    }
}

@media (max-width: 1440px) {
    .character-slider {
        width: 60vw;
        height: 50vh;
        bottom: 0px;
        transform: translateX(-50%) scale(1.1);
    }
    
    .slide {
        width: 20vw;
        height: 50vh;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .character-slider {
        width: 55vw;
        height: 50vh;
        bottom: 0px;
        transform: translateX(-50%) scale(1.1);
    }
    
    .slide {
        width: 18vw;
        height: 50vh;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .character-slider {
        width: 50vw;
        height: 50vh;
        bottom: 0px;
        transform: translateX(-50%) scale(1.1);
    }
    
    .slide {
        width: 16vw;
        height: 50vh;
    }
}

@media (max-width: 900px) {
    .character-slider {
        width: 45vw;
        height: 50vh;
        bottom: 0px;
        transform: translateX(-50%) scale(1.1);
    }
    
    .slide {
        width: 14vw;
        height: 50vh;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {

    
    /* Logo positioning for mobile */
    .logo {
        top: 4vh !important;
        z-index: 40 !important;
    }
    
    .logo img {
        transform: scale(1.2) !important;
    }
    
    /* Hide character names on mobile */
    .character-names {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Button container with relative positioning for character names */
    .button-container {
        position: fixed !important;
        bottom: 15vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.0) !important;
        z-index: 9999 !important;
    }
    
    .button-image {
        min-width: 200px !important;
        max-width: 200px !important;
        width: 200px !important;
        height: auto !important;
    }
    
    .button-text {
        font-size: 1.8rem !important;
    }
    
    /* Ensure character slider doesn't overlap with logo on mobile */
    .character-slider {
        position: fixed !important;
        width: 100vw !important;
        height: 80vh !important;
        top: 25vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.5) !important;
        overflow: visible !important;
        pointer-events: none !important;
        z-index: 60 !important;
    }
    
    .slide {
        width: 95vw !important;
        height: 80vh !important;
        max-width: 600px !important;
    }
    
    .slide.active {
        transform: translate(-50%, -50%) translateZ(0px) scale(1.0) !important;
    }
    
    .slide.left {
        transform: translate(-120%, -50%) scale(0.8) translateZ(-50px) rotateY(15deg) !important;
    }
    
    .slide.right {
        transform: translate(20%, -50%) scale(0.8) translateZ(-50px) rotateY(-15deg) !important;
    }
    
    .slide.far-left {
        transform: translate(-200%, -50%) scale(0.6) translateZ(-100px) rotateY(25deg) !important;
    }
    
    .slide.far-right {
        transform: translate(120%, -50%) scale(0.6) translateZ(-100px) rotateY(-25deg) !important;
    }
}

@media (max-width: 480px) {

    
    /* Logo for small mobile */
    .logo {
        top: 3vh !important;
    }
    
    .logo img {
        transform: scale(1.0) !important;
    }
    
    /* Character slider adjustments for small mobile */
    .character-slider {
        position: fixed !important;
        top: 30vh !important;
        height: 70vh !important;
        transform: translateX(-50%) scale(1.3) !important;
        pointer-events: none !important;
        z-index: 60 !important;
    }
    
    /* Hide character names on small mobile */
    .character-names {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .button-container {
        bottom: 12vh !important;
    }
    
    .button-image {
        min-width: 180px !important;
        max-width: 180px !important;
        width: 180px !important;
    }
    
    .button-text {
        font-size: 1.6rem !important;
    }
}

/* CTA Button - Always 100% size */
@media (max-width: 1024px) {
    .button-container {
        transform: translateX(-50%) scale(1.0) !important;
        bottom: 18vh !important;
    }
    
    .button-image {
        transform: scale(1.5) !important;
        width: auto !important;
        height: auto !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .z_yuhecheng_85_000-under-svg {
        animation: none;
        background-position: 0 0;
    }
    
    .play-button {
        animation: none;
    }
    
    .play-button::after {
        animation: none;
    }
    
    .button-text {
        animation: none;
    }
    
    .button-image {
        animation: none;
    }
}

/* ===== POPUP MODAL ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-overlay.show {
    display: flex;
}

.popup-container {
    position: relative;
    width: 86vw;
    aspect-ratio: auto;
    margin: auto;
    transform-origin: center center;
    --popup-scale: 1;
}

.popup-background {
    width: 100%;
    height: auto;
    display: block;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 240px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: clamp(16px, 1.5rem, 24px);
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s ease;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-content-wrapper {
    position: absolute;
    top: 50%;
    right: 18vw;
    transform: translateY(-46%) scale(var(--popup-scale));
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 33px;
    width: 35vw;
    max-width: 500px;
    min-width: 300px;
    transform-origin: center center;
}

.popup-title-container {
    width: 563px;
    display: flex;
    justify-content: center;
}

.popup-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 3.625rem, 72px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
}

.popup-promo-section {
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.popup-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(16px, 1.5rem, 32px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    text-align: center;
    color: #ffffff;
}

.popup-promocode {
    text-align: center;
}

.popup-promocode img {
    width: 384px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.popup-promocode img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.popup-rewards {
    display: flex;
    gap: 33px;
    justify-content: center;
    align-items: center;
}

.reward-image {
    width: 117px;
    height: 94px;
    object-fit: contain;
}

.popup-button-container {
    display: flex;
    justify-content: center;
}

.popup-play-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.popup-play-button .button-image {
    width: auto;
    height: auto;
    min-width: 200px;
    display: block;
}

.popup-play-button .button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(14px, 1.125rem, 24px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    white-space: nowrap;
    z-index: 2;
}

/* ===== POPUP RESPONSIVE DESIGN ===== */
@media (min-width: 2560px) {
    .popup-container {
        width: 80vw;
        --popup-scale: 1.3;
    }
    
    .popup-content-wrapper {
        right: 23.4vw;
        width: 38vw;
    }
    
    .popup-close {
        right: 312px;
    }
}

@media (min-width: 3840px) {
    .popup-container {
        width: 75vw;
        --popup-scale: 1.6;
    }
    
    .popup-content-wrapper {
        right: 20.8vw;
        width: 40vw;
    }
    
    .popup-close {
        right: 384px;
    }
}

@media (max-width: 1400px) {
    .popup-container {
        width: 85vw;
        --popup-scale: 0.8;
    }
    
    .popup-content-wrapper {
        right: 14.4vw;
        width: 32vw;
    }
    
    .popup-close {
        right: 192px;
    }
}

@media (max-width: 1100px) {
    .popup-container {
        width: 90vw;
        --popup-scale: 0.65;
    }
    
    .popup-content-wrapper {
        right: 11.7vw;
        width: 30vw;
    }
    
    .popup-close {
        right: 156px;
    }
}

@media (max-width: 900px) {
    .popup-container {
        width: 95vw;
        --popup-scale: 0.5;
    }
    
    .popup-content-wrapper {
        right: 9vw;
        width: 28vw;
    }
    
    .popup-close {
        right: 120px;
    }
}

@media (max-width: 768px) {
    .popup-container {
        width: 98vw;
        --popup-scale: 0.4;
    }
    
    .popup-content-wrapper {
        right: 7.2vw;
        width: 26vw;
    }
    
    .popup-close {
        right: 96px;
    }
}

@media (max-width: 600px) {
    .popup-container {
        width: 100vw;
        --popup-scale: 0.3;
    }
    
    .popup-content-wrapper {
        right: 5.4vw;
        width: 24vw;
    }
    
    .popup-close {
        right: 72px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 100vw;
        --popup-scale: 0.25;
    }
    
    .popup-content-wrapper {
        right: 4.5vw;
        width: 22vw;
    }
    
    .popup-close {
        right: 60px;
    }
}

