/* Milesenberg Digital - Standard Start Screen Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

#milesenberg-start-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    color: #06b6d4; /* Tailwind cyan-500 */
    overflow: hidden;
    user-select: none;
}

#milesenberg-start-screen.fading-out {
    opacity: 0;
    transition: opacity 1s ease-out;
    pointer-events: none;
}

#start-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.start-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeIn 2s ease-out;
}

.start-title {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    position: relative;
    text-align: center;
}

.start-subtitle {
    font-size: 0.8rem;
    color: #4b5563; /* Tailwind gray-600 */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: -1.5rem;
}

.start-btn {
    position: relative;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid #0891b2; /* cyan-600 */
    color: #06b6d4;
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
    transition: 0.5s;
}

.start-btn:hover {
    background: rgba(8, 145, 178, 0.1);
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
    border-color: #22d3ee; /* cyan-400 */
    color: #22d3ee;
}

.start-btn:hover::before {
    left: 100%;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(6, 182, 212, 0.3);
    animation: scan 8s linear infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* Glitch Effect Utility Class */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    20% { clip: rect(50px, 9999px, 60px, 0); }
    40% { clip: rect(10px, 9999px, 80px, 0); }
    60% { clip: rect(80px, 9999px, 25px, 0); }
    80% { clip: rect(30px, 9999px, 50px, 0); }
    100% { clip: rect(60px, 9999px, 10px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 90px, 0); }
    20% { clip: rect(80px, 9999px, 10px, 0); }
    40% { clip: rect(40px, 9999px, 50px, 0); }
    60% { clip: rect(20px, 9999px, 80px, 0); }
    80% { clip: rect(60px, 9999px, 30px, 0); }
    100% { clip: rect(10px, 9999px, 40px, 0); }
}

@media (max-width: 768px) {
    .start-title {
        font-size: 1.75rem;
    }

    .start-subtitle {
        font-size: 0.7rem;
    }

    .start-btn {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }

    #start-bg-canvas {
        opacity: 0.5;
    }
}
