/* =============================================
   TITLE SCREEN
   ============================================= */

.title-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0a0a14 0%, #16213e 50%, #1a1a2e 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow: hidden;
}

.title-screen.active {
    display: flex;
}

.title-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.08) 0%, transparent 50%);
    animation: titleGlow 15s ease-in-out infinite;
    will-change: opacity;
}

@keyframes titleGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.title-screen-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    width: 90%;
    padding: 40px 20px;
}

.title-main {
    margin-bottom: 50px;
    animation: titleFloat 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.title-large {
    font-size: 48px;
    color: #00ffff;
    text-shadow: 
        4px 4px 0px #0066cc,
        0 0 25px rgba(0, 255, 255, 0.9);
    letter-spacing: 4px;
    margin-bottom: 15px;
    line-height: 1.2;
    animation: titlePulse 3s ease-in-out infinite;
    will-change: text-shadow;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 
        4px 4px 0px #0066cc,
        0 0 25px rgba(0, 255, 255, 0.9);
    }
    50% { text-shadow: 
        4px 4px 0px #0066cc,
        0 0 35px rgba(0, 255, 255, 1);
    }
}

.title-subtitle {
    font-size: 18px;
    color: #ff00ff;
    text-shadow: 
        3px 3px 0px #990099,
        0 0 15px rgba(255, 0, 255, 0.7);
    letter-spacing: 3px;
}

.start-button {
    background: linear-gradient(180deg, #8a2be2 0%, #4b0082 100%);
    border: 4px solid #00ffff;
    padding: 20px 40px;
    font-size: 13px;
    color: #ffff00;
    cursor: pointer;
    margin: 30px auto;
    display: block;
    box-shadow: 
        0 6px 0 #0f0f1e,
        0 0 20px rgba(0, 255, 255, 0.6);
    transition: all 0.2s;
    animation: startGlow 2s ease-in-out infinite;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
    will-change: box-shadow;
    position: relative;
    text-transform: lowercase;
}

@keyframes startGlow {
    0%, 100% { 
        box-shadow: 
            0 6px 0 #0f0f1e,
            0 0 20px rgba(0, 255, 255, 0.6);
    }
    50% { 
        box-shadow: 
            0 6px 0 #0f0f1e,
            0 0 35px rgba(0, 255, 255, 0.9),
            0 0 50px rgba(138, 43, 226, 0.5);
    }
}

.start-button:hover {
    background: linear-gradient(180deg, #9d3bff 0%, #5b0099 100%);
    box-shadow: 
        0 6px 0 #0f0f1e,
        0 0 30px rgba(0, 255, 255, 0.9);
    transform: translateY(-3px);
    animation: none;
}

.start-button:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #0f0f1e,
        0 0 20px rgba(0, 255, 255, 0.6);
}

.start-text {
    text-shadow: 
        2px 2px 0px #999900,
        0 0 10px rgba(255, 255, 0, 0.6);
    animation: textPulse 3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.boolean-quote {
    margin-top: 50px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    background: rgba(26, 26, 46, 0.5);
    font-size: 9px;
    color: #00ff00;
    line-height: 1.6;
    text-shadow: 1px 1px 0px #006600;
    letter-spacing: 0.5px;
    width: calc(100% + 40px);
    max-width: none;
}

.quote-author {
    margin-top: 10px;
    color: #00ffff;
    font-size: 8px;
    text-shadow: 1px 1px 0px #006699;
}
