.game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(40, 0, 0, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    color: #ff0033;
    font-family: 'Montserrat', sans-serif;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glitch-container {
    text-align: center;
    margin-bottom: 12px;
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin: 0;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.8), -2px 0 #00ffff, 2px 0 #ff00ff;
    animation: glitch-anim 0.2s infinite;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 1px);
    }

    40% {
        transform: translate(-2px, -1px);
    }

    60% {
        transform: translate(2px, 1px);
    }

    80% {
        transform: translate(2px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

.sub-glitch {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #ff5555;
    opacity: 0.8;
    margin-top: 5px;
}

.stats-panel {
    background: rgba(20, 0, 0, 0.8);
    border: 1px solid rgba(255, 0, 51, 0.4);
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.2);
    padding: 18px 22px;
    width: 450px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    clip-path: polygon(3% 0, 100% 0, 100% 97%, 97% 100%, 0 100%, 0 3%);
    box-sizing: border-box;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-group.main-stat {
    text-align: center;
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
    padding-bottom: 12px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

.stat-value.highlight {
    font-size: 1.8rem;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.stat-group .stat-value {
    font-size: 1rem;
}

.seed-display {
    text-align: center;
    margin-bottom: 15px;
}

.seed-display p {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #666;
    margin: 0 0 6px 0;
}

.seed-copy-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.seed-copy-box:hover {
    border-color: #ff0033;
    background: rgba(255, 0, 51, 0.1);
}

.seed-copy-box code {
    color: #ff0033;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-icon {
    font-size: 0.9rem;
}

.game-over-actions {
    display: flex;
    gap: 18px;
}

.reboot-btn {
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid #ff0033;
    color: #ff0033;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.reboot-btn.primary {
    background: #ff0033;
    color: white;
    box-shadow: 0 0 18px rgba(255, 0, 51, 0.4);
}

.reboot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
}

.reboot-btn.primary:hover {
    background: #ff3366;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.6);
}