
#glitch-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.1s;
}


#game-over-screen[data-type="simulation"] {
    background: #000;
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.sim-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#matrix-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.45;
}

.sim-text-box {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #00ff41;
    padding: 2rem 3rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 0, 0, 0.75);
    max-width: 600px;
    width: 90%;
}

.sim-header {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #00ff41;
    margin-bottom: 1rem;
    animation: clignoter 1s step-end infinite;
}

.sim-unit {
    font-size: 0.85rem;
    color: #aaffcc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.sim-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: rgba(0, 255, 65, 0.7);
    margin-bottom: 1.5rem;
    text-align: left;
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 255, 65, 0.3);
}

.sim-footer {
    font-size: 0.85rem;
    color: rgba(0, 255, 65, 0.6);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.rouge { color: #ff4444; font-weight: bold; }

.btn-retry-sim {
    background: transparent;
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 1.8rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.btn-retry-sim:hover { background: #00ff41; color: #000; }

@keyframes clignoter {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}