:root {
    --primary: #FF4D4D;
    --secondary: #FFD700;
    --accent: #00F2FE;
    --background: #1A1B2F;
    --text: #FFFFFF;
    --dark: #141526;
    --card: #1F2142;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(255, 77, 77, 0.1), transparent 70%),
                radial-gradient(circle at bottom left, rgba(0, 242, 254, 0.1), transparent 70%);
}

/* Header Styles */
.app-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, var(--dark), var(--background));
    border-bottom: 2px solid var(--accent);
    margin-bottom: 2rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.glowing-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Game Preview */
.game-preview {
    max-width: 800px;
    height: 500px;
    margin: 0 auto 2rem;
    background: var(--card);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.plinko-animation {
    position: relative;
    height: 100%;
    background: 
        linear-gradient(to bottom, transparent, var(--accent) 300%),
        radial-gradient(circle at center, var(--accent) 0%, transparent 60%);
    opacity: 0.15;
}

.plinko-board {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('bg.png');
    background-size: cover;

}

.plinko-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, var(--secondary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    pointer-events: none;
}

.plinko-board::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 77, 77, 0.2),
        rgba(0, 242, 254, 0.2));
    mix-blend-mode: overlay;
}

.plinko-ball {
    width: 20px;
    height: 20px;
    background: #FF1493;
    border-radius: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    box-shadow: 
        0 0 20px #FF1493,
        0 0 40px #FF1493,
        0 0 60px rgba(255, 20, 147, 0.5);
    z-index: 10;
}

.plinko-ball::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #FF1493;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.6;
}

.ball1 { 
    left: 20%;
    animation: dropBall1 3s infinite;
    animation-delay: 0s;
}

.ball2 {
    left: 40%;
    animation: dropBall2 3s infinite;
    animation-delay: 0.6s;
}

.ball3 {
    left: 60%;
    animation: dropBall3 3s infinite;
    animation-delay: 1.2s;
}

.ball4 {
    left: 80%;
    animation: dropBall4 3s infinite;
    animation-delay: 1.8s;
}

.ball5 {
    left: 30%;
    animation: dropBall5 3s infinite;
    animation-delay: 2.4s;
}

@keyframes dropBall1 {
    0% { top: 0; left: 20%; }
    25% { left: 30%; }
    50% { left: 15%; }
    75% { left: 25%; }
    100% { top: 480px; left: 20%; }
}

@keyframes dropBall2 {
    0% { top: 0; left: 40%; }
    25% { left: 50%; }
    50% { left: 35%; }
    75% { left: 45%; }
    100% { top: 480px; left: 40%; }
}

@keyframes dropBall3 {
    0% { top: 0; left: 60%; }
    25% { left: 55%; }
    50% { left: 65%; }
    75% { left: 58%; }
    100% { top: 480px; left: 60%; }
}

@keyframes dropBall4 {
    0% { top: 0; left: 80%; }
    25% { left: 75%; }
    50% { left: 85%; }
    75% { left: 78%; }
    100% { top: 480px; left: 80%; }
}

@keyframes dropBall5 {
    0% { top: 0; left: 30%; }
    25% { left: 35%; }
    50% { left: 25%; }
    75% { left: 32%; }
    100% { top: 480px; left: 30%; }
}

@media (max-width: 768px) {
    @keyframes dropBall1, @keyframes dropBall2, @keyframes dropBall3, @keyframes dropBall4, @keyframes dropBall5 {
        100% { top: 380px; }
    }
}

@media (max-width: 480px) {
    @keyframes dropBall1, @keyframes dropBall2, @keyframes dropBall3, @keyframes dropBall4, @keyframes dropBall5 {
        100% { top: 280px; }
    }
}

/* Game Description */
.game-description {
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.feature-text {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem;
    margin-bottom: 3rem;
}

.play-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.play-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.5);
}

.play-button:hover:before {
    left: 100%;
}

.demo-notice {
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    text-align: center;
    padding: 2rem;
    background: var(--card);
    margin: 0 auto 2rem;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.about-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    background: var(--dark);
}

.privacy-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    background: rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 21, 38, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: var(--card);
    margin: 20px auto;
    padding: 3.5rem 2rem 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.close-button {
    position: fixed;
    right: calc(5% + 1.5rem);
    top: 35px;
    font-size: 2rem;
    color: var(--text);
    background: var(--dark);
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 20;
}

@media (min-width: 900px) {
    .close-button {
        right: calc((100% - 800px) / 2 + 1.5rem);
    }
}

.close-button:hover {
    background: rgba(0, 242, 254, 0.2);
    transform: rotate(90deg);
}

/* Privacy Content */
.privacy-content {
    color: var(--text);
    padding-right: 1rem;
}

.privacy-content h2 {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.privacy-content h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent);
}

.privacy-content h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content ul li {
    position: relative;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-content ul li:before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: -1.2rem;
    font-size: 1.2em;
}

.developer-info {
    background: rgba(0, 242, 254, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid var(--accent);
}

.last-updated {
    color: var(--accent);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.effective-date {
    text-align: center;
    color: var(--secondary);
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .game-preview {
        height: 400px;
        margin: 0 1rem 2rem;
        max-width: calc(100% - 2rem);
    }
    
    .feature-text {
        font-size: 1.2rem;
    }
    
    .features {
        gap: 2rem;
    }
    
    .play-button {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }
    
    .about-section {
        margin: 0 1rem 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 10px;
    }
    
    .privacy-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .game-preview {
        height: 300px;
    }
    
    .feature-text {
        font-size: 1rem;
    }
}
