/* Orbital Descent - CSS Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #FFC000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Phosphor grid container */
#grid-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000000;
}

/* Phosphor grid */
#phosphor-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 192, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 192, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: flicker 33.3ms infinite;
    pointer-events: none;
}

/* Flicker animation for phosphor grid */
@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Initiate button */
.initiate-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    background-color: transparent;
    color: #FFC000;
    border: 2px solid #FFC000;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 192, 0, 0.7);
    z-index: 10;
}

.initiate-button:hover {
    background-color: rgba(255, 192, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 192, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
}

/* NULLA VESPERA overlay */
.nulla-vespera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFC000;
    font-size: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 5px;
    z-index: 20;
    pointer-events: none;
}

/* Fail state */
.fail-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

.screaming-pixel {
    width: 1px;
    height: 1px;
    background-color: #00FF00;
    box-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
    animation: pulse 0.1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Cursor liquefaction effect */
body {
    cursor: none;
}

.liquefying-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 192, 0, 0.3);
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    animation: liquefy 0.5s infinite;
}

@keyframes liquefy {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}
