/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 暗紫色系魔法药水配色 */
    --primary-purple: #6b46c1;
    --primary-violet: #9333ea;
    --primary-indigo: #6366f1;
    --magic-pink: #c026d3;
    --dark-bg: #1a0a2e;
    --darker-bg: #0f0521;
    --text-light: #ffffff;
    --text-muted: #c4b5fd;
    --gradient-1: linear-gradient(135deg, #6b46c1 0%, #9333ea 50%, #c026d3 100%);
    --gradient-2: linear-gradient(135deg, #c026d3 0%, #9333ea 50%, #6b46c1 100%);
    --gradient-3: linear-gradient(135deg, #9333ea 0%, #c026d3 50%, #6366f1 100%);
    --water-blue: rgba(99, 102, 241, 0.6);
    --water-purple: rgba(147, 51, 234, 0.6);
    --water-pink: rgba(192, 38, 211, 0.6);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--darker-bg);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-purple);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-violet);
    top: 40%;
    right: -200px;
    animation-delay: 6s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: var(--magic-pink);
    bottom: -350px;
    left: 25%;
    animation-delay: 12s;
}

.orb-4 {
    width: 450px;
    height: 450px;
    background: var(--primary-indigo);
    top: 65%;
    right: 25%;
    animation-delay: 18s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, -60px) scale(1.15);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.85);
    }
}

/* Magic Particles */
.magic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-violet);
    animation: particleFloat 15s infinite ease-in-out;
    opacity: 0.6;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
    animation-duration: 14s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(26, 10, 46, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 15px rgba(147, 51, 234, 0.6));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(147, 51, 234, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(192, 38, 211, 0.8));
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero Section - 非对称布局 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 100px;
    align-items: center;
    max-width: 1400px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    padding: 0 40px;
}

.hero-text {
    text-align: left;
    padding-right: 60px;
    transform: translateX(-30px) translateY(20px);
    position: relative;
    z-index: 2;
}

.hero-image {
    text-align: center;
    position: relative;
    transform: translateX(50px) translateY(-50px) rotate(3deg);
    z-index: 1;
}

.magic-bottle-container {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    animation: floatImage 6s ease-in-out infinite;
}

.magic-bottle {
    position: relative;
    width: 200px;
    height: 350px;
    margin: 0 auto;
    background: linear-gradient(to bottom, 
        rgba(147, 51, 234, 0.3) 0%,
        rgba(107, 70, 193, 0.2) 50%,
        rgba(99, 102, 241, 0.3) 100%);
    border: 3px solid rgba(147, 51, 234, 0.5);
    border-radius: 20px 20px 60px 60px;
    box-shadow: 
        0 0 40px rgba(147, 51, 234, 0.5),
        inset 0 0 30px rgba(192, 38, 211, 0.2);
    overflow: hidden;
}

.water-layer {
    position: absolute;
    width: 100%;
    left: 0;
    border-radius: 0 0 60px 60px;
    animation: waterFlow 4s ease-in-out infinite;
}

.layer-1 {
    height: 40%;
    bottom: 0;
    background: var(--water-purple);
    animation-delay: 0s;
}

.layer-2 {
    height: 30%;
    bottom: 40%;
    background: var(--water-pink);
    animation-delay: 1.3s;
}

.layer-3 {
    height: 20%;
    bottom: 70%;
    background: var(--water-blue);
    animation-delay: 2.6s;
}

@keyframes waterFlow {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-5px) scaleY(1.05);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0) rotate(3deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: var(--gradient-1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        background: var(--gradient-2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-1);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.5);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.7);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid;
    border-image: var(--gradient-1) 1;
}

.cta-button.secondary:hover {
    background: var(--gradient-1);
    border-image: none;
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* 非对称标题偏移 */
.features-section .section-header {
    transform: translateX(-20px);
}

.how-to-play-section .section-header {
    transform: translateX(25px);
}

.screenshots-section .section-header {
    transform: translateX(-15px);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Features Section - 非对称网格布局 */
.features-section {
    background: rgba(26, 10, 46, 0.5);
    position: relative;
    overflow: hidden;
}

.features-section .container {
    position: relative;
    transform: rotate(-0.5deg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 25px;
    margin-top: 50px;
    padding: 20px 0;
}

.feature-card {
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* 非对称卡片大小和位置 */
.feature-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transform: translateY(0) translateX(-15px) rotate(-1.5deg);
    padding: 35px 25px;
}

.feature-card:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    transform: translateY(25px) translateX(10px) rotate(2deg);
    padding: 55px 40px;
    min-height: 350px;
}

.feature-card:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    transform: translateY(-20px) translateX(20px) rotate(-1deg);
    padding: 35px 25px;
}

.feature-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2 / 4;
    transform: translateX(-20px) translateY(-10px) rotate(1.8deg);
    padding: 55px 40px;
    min-height: 350px;
}

.feature-card:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    transform: translateY(15px) translateX(5px) rotate(-2deg);
    padding: 35px 25px;
}

.feature-card:nth-child(6) {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
    transform: translateX(25px) translateY(-25px) rotate(1.2deg);
    padding: 55px 40px;
    min-height: 350px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(0deg) !important;
    border-color: var(--primary-violet);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.4);
    z-index: 10;
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.5);
    color: var(--text-light);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* How to Play Section - 非对称布局 */
.how-to-play-section {
    background: rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.how-to-play-section .container {
    position: relative;
    transform: rotate(0.5deg);
}

.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
    padding: 20px 0;
}

.how-to-play-card {
    background: rgba(107, 70, 193, 0.15);
    border: 1px solid rgba(107, 70, 193, 0.4);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* 非对称步骤卡片布局 */
.how-to-play-card:nth-child(1) {
    grid-column: 1 / 3;
    transform: translateX(-20px) translateY(10px) rotate(-2deg);
    padding: 50px 35px;
    min-height: 280px;
}

.how-to-play-card:nth-child(2) {
    grid-column: 3 / 5;
    transform: translateX(25px) translateY(40px) rotate(2.5deg);
    padding: 50px 35px;
    min-height: 280px;
}

.how-to-play-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    transform: translateY(-25px) translateX(-10px) rotate(-1.5deg);
    padding: 35px 25px;
}

.how-to-play-card:nth-child(4) {
    grid-column: 2 / 5;
    grid-row: 2 / 3;
    transform: translateX(15px) translateY(20px) rotate(1.8deg);
    padding: 50px 35px;
    min-height: 280px;
}

.how-to-play-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.how-to-play-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(0deg) !important;
    border-color: var(--primary-indigo);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    z-index: 10;
}

.how-to-play-card:hover::before {
    opacity: 0.15;
}

.step-number {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.how-to-play-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.how-to-play-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Screenshots Section - 非对称布局 */
.screenshots-section {
    background: rgba(192, 38, 211, 0.08);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.screenshots-section .container {
    position: relative;
    transform: rotate(-0.3deg);
}

.screenshot-slider {
    padding: 40px 0 60px;
    position: relative;
    width: 100%;
}

.screenshot-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.4);
    transition: transform 0.3s ease;
    background: rgba(147, 51, 234, 0.15);
    border: 2px solid rgba(147, 51, 234, 0.4);
    width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(147, 51, 234, 0.6);
}

.screenshot-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    min-height: 400px;
    object-fit: cover;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 10, 46, 0.95), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screenshot-overlay p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    padding-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.swiper-slide {
    width: 100%;
    max-width: 200px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 1;
    visibility: visible;
}

/* 移动端确保完整显示一张图片 */
@media (max-width: 767px) {
    .swiper-slide {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .screenshot-slider {
        padding-left: 0;
        padding-right: 0;
    }
    
    .screenshot-slider .swiper-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .screenshot-card {
        width: calc(100% - 20px) !important;
        margin: 0 10px;
        min-height: 300px;
    }
    
    .screenshot-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        min-height: auto;
    }
}

.swiper-pagination-bullet {
    background: var(--primary-violet);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gradient-1);
    width: 30px;
    border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-violet);
    background: rgba(147, 51, 234, 0.25);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none !important;
    border: none;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gradient-1);
    color: var(--text-light);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Download Section - 非对称布局 */
.download-section {
    background: rgba(147, 51, 234, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section .container {
    position: relative;
    transform: rotate(0.4deg);
}

.download-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 60px;
    transform: translateX(-30px);
}

.download-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.download-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.feature-tag {
    padding: 10px 20px;
    background: rgba(147, 51, 234, 0.25);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 25px;
    font-size: 1rem;
    color: var(--text-light);
    backdrop-filter: blur(10px);
}

.download-motto {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.download-button i {
    font-size: 2.5rem;
}

.download-button:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.5);
}

.button-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.button-platform {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(15, 5, 33, 0.9);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--magic-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--text-muted);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 5, 33, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(26, 10, 46, 0.98);
    border: 2px solid rgba(147, 51, 234, 0.6);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(147, 51, 234, 0.5);
    transform: scale(0.8) translateY(50px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(147, 51, 234, 0.25);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: var(--gradient-1);
    transform: rotate(90deg);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.6);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 15px 40px rgba(147, 51, 234, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 50px rgba(192, 38, 211, 0.8);
    }
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.modal-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-button {
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modal-button.primary {
    background: var(--gradient-1);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.5);
}

.modal-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid .feature-card,
    .how-to-play-grid .how-to-play-card {
        transform: none !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
    
    .how-to-play-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section .container,
    .how-to-play-section .container,
    .screenshots-section .container,
    .download-section .container {
        transform: none !important;
    }
    
    .section-header {
        transform: none !important;
    }
    
    .download-content {
        transform: none !important;
        padding: 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        transform: none;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-image {
        transform: none;
        margin-top: 40px;
    }

    .hero-buttons,
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .download-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .swiper-slide {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .screenshot-slider {
        padding-left: 0;
        padding-right: 0;
        overflow: visible;
    }
    
    .screenshot-slider .swiper-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .screenshot-card {
        width: calc(100% - 30px) !important;
        margin: 0 15px;
        min-height: 300px;
    }
    
    .screenshot-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        min-height: auto;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

    .magic-bottle-container {
        width: 250px;
        height: 350px;
    }

    .magic-bottle {
        width: 150px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .swiper-slide {
        max-width: 100%;
        width: 100% !important;
    }

    .screenshot-card {
        width: 100%;
        min-height: 250px;
    }
}

