/* Intro Screen Styles */
#intro-screen {
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #4d0099 100%);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

#intro-screen.active {
    display: block !important; /* Override parent flex centering only when active */
}

#intro-screen.screen.active {
    align-items: unset;
    justify-content: unset;
}

.intro-container {
    text-align: center;
    padding: 3rem var(--spacing-md);
    padding-bottom: 3rem;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
}

.game-title {
    font-family: var(--font-display);
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8));
    }
}

.game-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-accent);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.feature {
    font-size: 1.2rem;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-accent);
    transform: translateX(5px);
}

/* Email Disclaimer */
.email-disclaimer {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 68, 68, 0.15);
    border: 2px solid #ff4444;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffcccc;
    text-align: center;
}

.email-disclaimer strong {
    color: #ff4444;
    font-weight: bold;
}

/* Deadline Info */
.deadline-info {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #FFD700;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #ffe680;
    text-align: center;
}

.deadline-info strong {
    color: #FFD700;
    font-weight: bold;
}

.intro-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    text-align: left;
}

.intro-form input {
    font-size: 1.1rem;
}

.intro-form .btn-primary {
    margin-top: var(--spacing-sm);
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
}

.tutorial-hint {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--secondary-accent);
}

.tutorial-hint p {
    margin: 0.3rem 0;
    font-size: 1rem;
}

.tutorial-hint strong {
    color: var(--secondary-accent);
}

.mobile-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments for intro */
@media (max-width: 767px) {
    #intro-screen {
        padding-top: env(safe-area-inset-top, 20px); /* Handle notch on iOS */
    }

    .intro-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .game-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .feature {
        font-size: 1rem;
    }

    .intro-form input {
        font-size: 1rem;
    }

    .email-disclaimer {
        font-size: 0.85rem;
        padding: 0.75rem;
        margin-top: var(--spacing-md);
    }

    .deadline-info {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: var(--spacing-md);
    }
}
