#ht-pause-root {
    position: absolute;
    inset: 0;
    
    width: 100%;
    height: 100%;
    
    z-index: 20;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding: 2rem;
    
    background: rgba(2, 2, 5, 0.7);
    
    box-sizing: border-box;
    
    animation:
        ht-pause-fade-in
        0.35s ease-out
        forwards;
}

#ht-pause-header {
    width: min(70%, 900px);
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    margin-bottom: 2rem;
    
    position: relative;
    
    animation:
        ht-pause-grow
        0.4s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        forwards;
}

#ht-pause-title {
    order: 1;
    
    color: #00d4ff;
    
    font-family: myOtherFont;
    font-size: clamp(1.8rem, 4vw, 3rem);
    
    letter-spacing: 0.25rem;
    
    text-align: center;
    
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 25px rgba(0, 180, 255, 0.4);
}

#ht-pause-resume-btn {
    order: 2;
    
    width: 3.5rem;
    height: 3.5rem;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    margin-left: 1.25rem;
    padding: 0;
    
    color: #00d4ff;
    
    font-family: Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    
    background: rgba(0, 0, 0, 0.55);
    
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 0.6rem;
    
    cursor: pointer;
    
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.35);
    
    animation:
        ht-pause-resume-glow
        2s
        ease-in-out
        infinite;
    
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;
}

#ht-pause-resume-btn:hover {
    color: white;
    
    background: rgba(0, 212, 255, 0.12);
    
    border-color: rgba(0, 212, 255, 0.9);
    
    box-shadow:
        0 0 18px rgba(0, 212, 255, 0.7);
}

#ht-pause-resume-btn:active {
    transform: scale(0.97);
}

#ht-pause-buttons {
    width: min(70%, 900px);
    
    display: grid;
    
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    
    gap: 1rem;
    
    padding: 2rem;
    
    background: rgba(255, 255, 255, 0.05);
    
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 1.5rem;
    
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.2);
    
    box-sizing: border-box;
    
    animation:
        ht-pause-grow
        0.4s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        forwards;
}

#ht-pause-buttons button {
    min-height: 4rem;
    
    padding: 0.75rem;
    
    color: #00d4ff;
    
    font-family: myOtherFont;
    font-size: clamp(0.75rem, 1.4vw, 1.1rem);
    
    letter-spacing: 0.05rem;
    
    background: rgba(0, 0, 0, 0.55);
    
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.6rem;
    
    cursor: pointer;
    
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;
}

#ht-pause-buttons button:hover:not(:disabled) {
    color: white;
    
    background: rgba(0, 212, 255, 0.12);
    
    border-color: rgba(0, 212, 255, 0.8);
    
    box-shadow:
        0 0 18px rgba(0, 212, 255, 0.35);
}

#ht-pause-buttons button:active:not(:disabled) {
    transform: scale(0.97);
}

#ht-pause-buttons button:disabled {
    color: rgba(255, 255, 255, 0.3);
    
    background: rgba(0, 0, 0, 0.3);
    
    border-color: rgba(255, 255, 255, 0.1);
    
    cursor: not-allowed;
}

@keyframes ht-pause-fade-in {
    from {
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}

@keyframes ht-pause-grow {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ht-pause-resume-glow {
    0%,
    100% {
        box-shadow:
            0 0 8px rgba(0, 212, 255, 0.25);
    }
    
    50% {
        box-shadow:
            0 0 18px rgba(0, 212, 255, 0.7),
            0 0 30px rgba(0, 180, 255, 0.3);
    }
}

@media (orientation: portrait) {
    #ht-pause-header {
        width: min(88%, 600px);
    }
    
    #ht-pause-buttons {
        width: min(88%, 600px);
        
        grid-template-columns: 1fr;
        
        padding: 1.5rem;
    }
    
    #ht-pause-buttons button {
        min-height: 3.5rem;
    }
    
    #ht-pause-resume-btn {
        width: 3rem;
        height: 3rem;
    }
}